2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GST_VIDEO_SCALE_H__
21 #define __GST_VIDEO_SCALE_H__
24 #include <gst/video/video.h>
25 #include <gst/video/gstvideofilter.h>
31 GST_DEBUG_CATEGORY_EXTERN (video_scale_debug);
32 #define GST_CAT_DEFAULT video_scale_debug
34 #define GST_TYPE_VIDEO_SCALE \
35 (gst_video_scale_get_type())
36 #define GST_VIDEO_SCALE(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_SCALE,GstVideoScale))
38 #define GST_VIDEO_SCALE_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_SCALE,GstVideoScaleClass))
40 #define GST_IS_VIDEO_SCALE(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_SCALE))
42 #define GST_IS_VIDEO_SCALE_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_SCALE))
44 #define GST_VIDEO_SCALE_CAST(obj) ((GstVideoScale *)(obj))
48 * GstVideoScaleMethod:
49 * @GST_VIDEO_SCALE_NEAREST: use nearest neighbour scaling (fast and ugly)
50 * @GST_VIDEO_SCALE_BILINEAR: use bilinear scaling (slower but prettier).
51 * @GST_VIDEO_SCALE_4TAP: use a 4-tap filter for scaling (slow).
52 * @GST_VIDEO_SCALE_LANCZOS: use a multitap Lanczos filter for scaling (slow).
54 * The videoscale method to use.
57 GST_VIDEO_SCALE_NEAREST,
58 GST_VIDEO_SCALE_BILINEAR,
60 GST_VIDEO_SCALE_LANCZOS
61 } GstVideoScaleMethod;
63 typedef struct _GstVideoScale GstVideoScale;
64 typedef struct _GstVideoScaleClass GstVideoScaleClass;
69 * Opaque data structure
71 struct _GstVideoScale {
72 GstVideoFilter element;
75 GstVideoScaleMethod method;
83 /* negotiated stuff */
84 GstVideoInfo from_info;
94 struct _GstVideoScaleClass {
95 GstVideoFilterClass parent_class;
98 GType gst_video_scale_get_type(void);
102 #endif /* __GST_VIDEO_SCALE_H__ */