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))
46 * GstVideoScaleMethod:
47 * @GST_VIDEO_SCALE_NEAREST: use nearest neighbour scaling (fast and ugly)
48 * @GST_VIDEO_SCALE_BILINEAR: use bilinear scaling (slower but prettier).
49 * @GST_VIDEO_SCALE_4TAP: use a 4-tap filter for scaling (slow).
51 * The videoscale method to use.
54 GST_VIDEO_SCALE_NEAREST,
55 GST_VIDEO_SCALE_BILINEAR,
57 } GstVideoScaleMethod;
59 typedef struct _GstVideoScale GstVideoScale;
60 typedef struct _GstVideoScaleClass GstVideoScaleClass;
65 * Opaque data structure
67 struct _GstVideoScale {
68 GstVideoFilter element;
70 GstVideoScaleMethod method;
73 /* negotiated stuff */
74 GstVideoInfo from_info;
84 struct _GstVideoScaleClass {
85 GstVideoFilterClass parent_class;
88 GType gst_video_scale_get_type(void);
92 #endif /* __GST_VIDEO_SCALE_H__ */