rtsprange: use gst_util_gdouble_to_guint64 in get_seconds
[platform/upstream/gstreamer.git] / gst / videoscale / gstvideoscale.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
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.
8  *
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.
13  *
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., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __GST_VIDEO_SCALE_H__
21 #define __GST_VIDEO_SCALE_H__
22
23 #include <gst/gst.h>
24 #include <gst/video/video.h>
25 #include <gst/video/gstvideofilter.h>
26
27 #include "vs_image.h"
28
29 G_BEGIN_DECLS
30
31 GST_DEBUG_CATEGORY_EXTERN (video_scale_debug);
32 #define GST_CAT_DEFAULT video_scale_debug
33
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))
45
46
47 /**
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).
53  *
54  * The videoscale method to use.
55  */
56 typedef enum {
57   GST_VIDEO_SCALE_NEAREST,
58   GST_VIDEO_SCALE_BILINEAR,
59   GST_VIDEO_SCALE_4TAP,
60   GST_VIDEO_SCALE_LANCZOS
61 } GstVideoScaleMethod;
62
63 typedef struct _GstVideoScale GstVideoScale;
64 typedef struct _GstVideoScaleClass GstVideoScaleClass;
65
66 /**
67  * GstVideoScale:
68  *
69  * Opaque data structure
70  */
71 struct _GstVideoScale {
72   GstVideoFilter element;
73
74   /* properties */
75   GstVideoScaleMethod method;
76   gboolean add_borders;
77   double sharpness;
78   double sharpen;
79   gboolean dither;
80   int submethod;
81   double envelope;
82
83   gint borders_h;
84   gint borders_w;
85
86   /*< private >*/
87   guint8 *tmp_buf;
88 };
89
90 struct _GstVideoScaleClass {
91   GstVideoFilterClass parent_class;
92 };
93
94 G_GNUC_INTERNAL GType gst_video_scale_get_type (void);
95
96 G_END_DECLS
97
98 #endif /* __GST_VIDEO_SCALE_H__ */