1 /* gstreamer-video-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cprefix = "GST_VIDEO_CAPS_", lower_case_cprefix = "gst_video_caps_")]
7 [CCode (cheader_filename = "gst/video/video.h")]
8 public const string ABGR;
9 [CCode (cheader_filename = "gst/video/video.h")]
10 public const string ARGB;
11 [CCode (cheader_filename = "gst/video/video.h")]
12 public const string BGR;
13 [CCode (cheader_filename = "gst/video/video.h")]
14 public const string BGRA;
15 [CCode (cheader_filename = "gst/video/video.h")]
16 public const string BGRx;
17 [CCode (cheader_filename = "gst/video/video.h")]
18 public const string BGRx_HOST_ENDIAN;
19 [CCode (cheader_filename = "gst/video/video.h")]
20 public const string RGB;
21 [CCode (cheader_filename = "gst/video/video.h")]
22 public const string RGBA;
23 [CCode (cheader_filename = "gst/video/video.h")]
24 public const string RGB_15;
25 [CCode (cheader_filename = "gst/video/video.h")]
26 public const string RGB_16;
27 [CCode (cheader_filename = "gst/video/video.h")]
28 public const string RGBx;
29 [CCode (cheader_filename = "gst/video/video.h")]
30 public const string xBGR;
31 [CCode (cheader_filename = "gst/video/video.h")]
32 public const string xRGB;
33 [CCode (cheader_filename = "gst/video/video.h")]
34 public const string xRGB_HOST_ENDIAN;
35 [CCode (cname = "GST_VIDEO_CAPS_YUV", cheader_filename = "gst/video/video.h")]
36 public static unowned string YUV (string fourcc);
38 [CCode (cprefix = "GstVideoMask15", lower_case_cprefix = "gst_video_mask15_")]
39 namespace VideoMask15 {
40 [CCode (cname = "GST_VIDEO_BLUE_MASK_15", cheader_filename = "gst/video/video.h")]
41 public const string BLUE;
42 [CCode (cname = "GST_VIDEO_BLUE_MASK_15_INT", cheader_filename = "gst/video/video.h")]
43 public const int BLUE_INT;
44 [CCode (cname = "GST_VIDEO_GREEN_MASK_15", cheader_filename = "gst/video/video.h")]
45 public const string GREEN;
46 [CCode (cname = "GST_VIDEO_GREEN_MASK_15_INT", cheader_filename = "gst/video/video.h")]
47 public const int GREEN_INT;
48 [CCode (cname = "GST_VIDEO_RED_MASK_15", cheader_filename = "gst/video/video.h")]
49 public const string RED;
50 [CCode (cname = "GST_VIDEO_RED_MASK_15_INT", cheader_filename = "gst/video/video.h")]
51 public const int RED_INT;
53 [CCode (cprefix = "GstVideoMask16", lower_case_cprefix = "gst_video_mask16_")]
54 namespace VideoMask16 {
55 [CCode (cname = "GST_VIDEO_BLUE_MASK_16", cheader_filename = "gst/video/video.h")]
56 public const string BLUE;
57 [CCode (cname = "GST_VIDEO_BLUE_MASK_16_INT", cheader_filename = "gst/video/video.h")]
58 public const int BLUE_INT;
59 [CCode (cname = "GST_VIDEO_GREEN_MASK_16", cheader_filename = "gst/video/video.h")]
60 public const string GREEN;
61 [CCode (cname = "GST_VIDEO_GREEN_MASK_16_INT", cheader_filename = "gst/video/video.h")]
62 public const int GREEN_INT;
63 [CCode (cname = "GST_VIDEO_RED_MASK_16", cheader_filename = "gst/video/video.h")]
64 public const string RED;
65 [CCode (cname = "GST_VIDEO_RED_MASK_16_INT", cheader_filename = "gst/video/video.h")]
66 public const int RED_INT;
68 [CCode (cprefix = "GstVideoMask24", lower_case_cprefix = "gst_video_mask24_")]
69 namespace VideoMask24 {
70 [CCode (cname = "GST_VIDEO_BYTE1_MASK_24", cheader_filename = "gst/video/video.h")]
71 public const string BYTE1;
72 [CCode (cname = "GST_VIDEO_BYTE1_MASK_24_INT", cheader_filename = "gst/video/video.h")]
73 public const int BYTE1_INT;
74 [CCode (cname = "GST_VIDEO_BYTE2_MASK_24", cheader_filename = "gst/video/video.h")]
75 public const string BYTE2;
76 [CCode (cname = "GST_VIDEO_BYTE2_MASK_24_INT", cheader_filename = "gst/video/video.h")]
77 public const int BYTE2_INT;
78 [CCode (cname = "GST_VIDEO_BYTE3_MASK_24", cheader_filename = "gst/video/video.h")]
79 public const string BYTE3;
80 [CCode (cname = "GST_VIDEO_BYTE3_MASK_24_INT", cheader_filename = "gst/video/video.h")]
81 public const int BYTE3_INT;
83 [CCode (cprefix = "GstVideoMask32", lower_case_cprefix = "gst_video_mask32_")]
84 namespace VideoMask32 {
85 [CCode (cname = "GST_VIDEO_BYTE1_MASK_32", cheader_filename = "gst/video/video.h")]
86 public const string BYTE1;
87 [CCode (cname = "GST_VIDEO_BYTE1_MASK_32_INT", cheader_filename = "gst/video/video.h")]
88 public const int BYTE1_INT;
89 [CCode (cname = "GST_VIDEO_BYTE2_MASK_32", cheader_filename = "gst/video/video.h")]
90 public const string BYTE2;
91 [CCode (cname = "GST_VIDEO_BYTE2_MASK_32_INT", cheader_filename = "gst/video/video.h")]
92 public const int BYTE2_INT;
93 [CCode (cname = "GST_VIDEO_BYTE3_MASK_32", cheader_filename = "gst/video/video.h")]
94 public const string BYTE3;
95 [CCode (cname = "GST_VIDEO_BYTE3_MASK_32_INT", cheader_filename = "gst/video/video.h")]
96 public const int BYTE3_INT;
97 [CCode (cname = "GST_VIDEO_BYTE4_MASK_32", cheader_filename = "gst/video/video.h")]
98 public const string BYTE4;
99 [CCode (cname = "GST_VIDEO_BYTE4_MASK_32_INT", cheader_filename = "gst/video/video.h")]
100 public const int BYTE4_INT;
102 [CCode (cprefix = "GstVideoRange", lower_case_cprefix = "gst_video_range_")]
103 namespace VideoRange {
104 [CCode (cname = "GST_VIDEO_FPS_RANGE", cheader_filename = "gst/video/video.h")]
105 public const string FPS;
106 [CCode (cname = "GST_VIDEO_SIZE_RANGE", cheader_filename = "gst/video/video.h")]
107 public const string SIZE;
109 [CCode (cheader_filename = "gst/video/gstvideofilter.h")]
110 public class VideoFilter : Gst.BaseTransform {
112 [CCode (has_construct_function = false)]
113 protected VideoFilter ();
116 [CCode (cheader_filename = "gst/video/gstvideosink.h")]
117 public class VideoRectangle {
123 [CCode (cheader_filename = "gst/video/gstvideosink.h")]
124 public class VideoSink : Gst.BaseSink {
127 [CCode (has_construct_function = false)]
128 protected VideoSink ();
129 public static void center_rect (Gst.VideoRectangle src, Gst.VideoRectangle dst, Gst.VideoRectangle _result, bool scaling);
131 public virtual Gst.FlowReturn show_frame (Gst.Buffer buf);
133 public bool show_preroll_frame { get; set construct; }
135 [CCode (cprefix = "GST_VIDEO_FORMAT_", cheader_filename = "gst/video/video.h")]
136 public enum VideoFormat {
162 [CCode (cheader_filename = "gst/video/video.h")]
163 public static bool video_calculate_display_ratio (ref uint dar_n, ref uint dar_d, uint video_width, uint video_height, uint video_par_n, uint video_par_d, uint display_par_n, uint display_par_d);
164 [CCode (cheader_filename = "gst/video/video.h")]
165 public static unowned Gst.Event video_event_new_still_frame (bool in_still);
166 [CCode (cheader_filename = "gst/video/video.h")]
167 public static bool video_event_parse_still_frame (Gst.Event event, bool in_still);
168 [CCode (cheader_filename = "gst/video/video.h")]
169 public static bool video_format_convert (Gst.VideoFormat format, int width, int height, int fps_n, int fps_d, Gst.Format src_format, int64 src_value, Gst.Format dest_format, ref int64 dest_value);
170 [CCode (cheader_filename = "gst/video/video.h")]
171 public static Gst.VideoFormat video_format_from_fourcc (uint32 fourcc);
172 [CCode (cheader_filename = "gst/video/video.h")]
173 public static int video_format_get_component_height (Gst.VideoFormat format, ref int component, ref int height);
174 [CCode (cheader_filename = "gst/video/video.h")]
175 public static int video_format_get_component_offset (Gst.VideoFormat format, ref int component, ref int width, ref int height);
176 [CCode (cheader_filename = "gst/video/video.h")]
177 public static int video_format_get_component_width (Gst.VideoFormat format, ref int component, ref int width);
178 [CCode (cheader_filename = "gst/video/video.h")]
179 public static int video_format_get_pixel_stride (Gst.VideoFormat format, ref int component);
180 [CCode (cheader_filename = "gst/video/video.h")]
181 public static int video_format_get_row_stride (Gst.VideoFormat format, ref int component, ref int width);
182 [CCode (cheader_filename = "gst/video/video.h")]
183 public static int video_format_get_size (Gst.VideoFormat format, ref int width, ref int height);
184 [CCode (cheader_filename = "gst/video/video.h")]
185 public static bool video_format_has_alpha (Gst.VideoFormat format);
186 [CCode (cheader_filename = "gst/video/video.h")]
187 public static bool video_format_is_rgb (Gst.VideoFormat format);
188 [CCode (cheader_filename = "gst/video/video.h")]
189 public static bool video_format_is_yuv (Gst.VideoFormat format);
190 [CCode (cheader_filename = "gst/video/video.h")]
191 public static Gst.Caps video_format_new_caps (Gst.VideoFormat format, int width, int height, int framerate_n, int framerate_d, int par_n, int par_d);
192 [CCode (cheader_filename = "gst/video/video.h")]
193 public static Gst.Caps video_format_new_caps_interlaced (Gst.VideoFormat format, int width, int height, int framerate_n, int framerate_d, int par_n, int par_d, bool interlaced);
194 [CCode (cheader_filename = "gst/video/video.h")]
195 public static bool video_format_parse_caps (Gst.Caps caps, ref Gst.VideoFormat format, ref int width, ref int height);
196 [CCode (cheader_filename = "gst/video/video.h")]
197 public static bool video_format_parse_caps_interlaced (Gst.Caps caps, bool interlaced);
198 [CCode (cheader_filename = "gst/video/video.h")]
199 public static uint32 video_format_to_fourcc (Gst.VideoFormat format);
200 [CCode (cheader_filename = "gst/video/video.h")]
201 public static Gst.Value video_frame_rate (Gst.Pad pad);
202 [CCode (cheader_filename = "gst/video/video.h")]
203 public static bool video_get_size (Gst.Pad pad, ref int width, ref int height);
204 [CCode (cheader_filename = "gst/video/video.h")]
205 public static bool video_parse_caps_framerate (Gst.Caps caps, ref int fps_n, ref int fps_d);
206 [CCode (cheader_filename = "gst/video/video.h")]
207 public static bool video_parse_caps_pixel_aspect_ratio (Gst.Caps caps, ref int par_n, ref int par_d);