]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add bindings for constants, fix parameter direction for the gst_format_*
authorJuerg Billeter <j@bitron.ch>
Fri, 23 May 2008 20:43:50 +0000 (20:43 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 23 May 2008 20:43:50 +0000 (20:43 +0000)
2008-05-23  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-video-0.10/:

Add bindings for constants, fix parameter direction for the
gst_format_* functions, patch by Ali Sabil

* vapi/gstreamer-video-0.10.vapi: regenerated

svn path=/trunk/; revision=1415

ChangeLog
vapi/gstreamer-video-0.10.vapi
vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala [new file with mode: 0644]
vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.deps
vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.gi
vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.metadata

index 007f09af4cfbb9da8e7a31c1699891da4d1e5d82..49d84de83f3b58944cbcebd5f97dabb4276deae4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-05-23  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/packages/gstreamer-video-0.10/:
+
+       Add bindings for constants, fix parameter direction for the
+       gst_format_* functions, patch by Ali Sabil
+
+       * vapi/gstreamer-video-0.10.vapi: regenerated
+
 2008-05-23  Jürg Billeter  <j@bitron.ch>
 
        * vapi/packages/gstreamer-base-0.10/:
index d45cb58f6488679461dfd0e91468a2b6c0947581..9e19933dbcf44c59272571dc944f78140c89558a 100644 (file)
@@ -19,7 +19,98 @@ namespace Gst {
                ARGB,
                ABGR,
                RGB,
-               BGR
+               BGR,
+               Y41B,
+               Y42B
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask32 {
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_32")]
+               public const string BYTE1;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_32")]
+               public const string BYTE2;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_32")]
+               public const string BYTE3;
+               [CCode (cname = "GST_VIDEO_BYTE4_MASK_32")]
+               public const string BYTE4;
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_32_INT")]
+               public const int BYTE1_INT;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_32_INT")]
+               public const int BYTE2_INT;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_32_INT")]
+               public const int BYTE3_INT;
+               [CCode (cname = "GST_VIDEO_BYTE4_MASK_32_INT")]
+               public const int BYTE4_INT;
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask24 {
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_24")]
+               public const string BYTE1;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_24")]
+               public const string BYTE2;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_24")]
+               public const string BYTE3;
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_24_INT")]
+               public const int BYTE1_INT;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_24_INT")]
+               public const int BYTE2_INT;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_24_INT")]
+               public const int BYTE3_INT;
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask16 {
+               [CCode (cname = "GST_VIDEO_RED_MASK_16")]
+               public const string RED;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_16")]
+               public const string GREEN;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_16")]
+               public const string BLUE;
+               [CCode (cname = "GST_VIDEO_RED_MASK_16_INT")]
+               public const int RED_INT;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_16_INT")]
+               public const int GREEN_INT;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_16_INT")]
+               public const int BLUE_INT;
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask15 {
+               [CCode (cname = "GST_VIDEO_RED_MASK_15")]
+               public const string RED;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_15")]
+               public const string GREEN;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_15")]
+               public const string BLUE;
+               [CCode (cname = "GST_VIDEO_RED_MASK_15_INT")]
+               public const int RED_INT;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_15_INT")]
+               public const int GREEN_INT;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_15_INT")]
+               public const int BLUE_INT;
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoRange {
+               [CCode (cname = "GST_VIDEO_SIZE_RANGE")]
+               public const string SIZE;
+               [CCode (cname = "GST_VIDEO_FPS_RANGE")]
+               public const string FPS;
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoCaps {
+               public const string RGB;
+               public const string BGR;
+               public const string RGBx;
+               public const string xRGB;
+               public const string BGRx;
+               public const string xBGR;
+               public const string RGBA;
+               public const string ARGB;
+               public const string BGRA;
+               public const string ABGR;
+               public const string xRGB_HOST_ENDIAN;
+               public const string BGRx_HOST_ENDIAN;
+               public const string RGB_16;
+               public const string RGB_15;
+               public static string YUV (string fourcc);
        }
        [CCode (cheader_filename = "gst/video/gstvideosink.h")]
        public class VideoRectangle {
@@ -38,54 +129,24 @@ namespace Gst {
                public int height;
                public static void center_rect (Gst.VideoRectangle src, Gst.VideoRectangle dst, Gst.VideoRectangle _result, bool scaling);
        }
-       public const string VIDEO_BLUE_MASK_15;
-       public const int VIDEO_BLUE_MASK_15_INT;
-       public const string VIDEO_BLUE_MASK_16;
-       public const int VIDEO_BLUE_MASK_16_INT;
-       public const string VIDEO_BYTE1_MASK_24;
-       public const int VIDEO_BYTE1_MASK_24_INT;
-       public const string VIDEO_BYTE1_MASK_32;
-       public const int VIDEO_BYTE1_MASK_32_INT;
-       public const string VIDEO_BYTE2_MASK_24;
-       public const int VIDEO_BYTE2_MASK_24_INT;
-       public const string VIDEO_BYTE2_MASK_32;
-       public const int VIDEO_BYTE2_MASK_32_INT;
-       public const string VIDEO_BYTE3_MASK_24;
-       public const int VIDEO_BYTE3_MASK_24_INT;
-       public const string VIDEO_BYTE3_MASK_32;
-       public const int VIDEO_BYTE3_MASK_32_INT;
-       public const string VIDEO_BYTE4_MASK_32;
-       public const int VIDEO_BYTE4_MASK_32_INT;
-       public const string VIDEO_CAPS_RGB_15;
-       public const string VIDEO_CAPS_RGB_16;
-       public const string VIDEO_FPS_RANGE;
-       public const string VIDEO_GREEN_MASK_15;
-       public const int VIDEO_GREEN_MASK_15_INT;
-       public const string VIDEO_GREEN_MASK_16;
-       public const int VIDEO_GREEN_MASK_16_INT;
-       public const string VIDEO_RED_MASK_15;
-       public const int VIDEO_RED_MASK_15_INT;
-       public const string VIDEO_RED_MASK_16;
-       public const int VIDEO_RED_MASK_16_INT;
-       public const string VIDEO_SIZE_RANGE;
-       [CCode (cheader_filename = "gst/video/video.h")]
-       public static bool video_calculate_display_ratio (uint dar_n, 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);
-       [CCode (cheader_filename = "gst/video/video.h")]
-       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, int64 dest_value);
+       [CCode (cheader_filename = "gst/video/video.h")]
+       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);
+       [CCode (cheader_filename = "gst/video/video.h")]
+       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);
        [CCode (cheader_filename = "gst/video/video.h")]
        public static Gst.VideoFormat video_format_from_fourcc (uint fourcc);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static int video_format_get_component_height (Gst.VideoFormat format, int component, int height);
+       public static int video_format_get_component_height (Gst.VideoFormat format, ref int component, ref int height);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static int video_format_get_component_offset (Gst.VideoFormat format, int component, int width, int height);
+       public static int video_format_get_component_offset (Gst.VideoFormat format, ref int component, ref int width, ref int height);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static int video_format_get_component_width (Gst.VideoFormat format, int component, int width);
+       public static int video_format_get_component_width (Gst.VideoFormat format, ref int component, ref int width);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static int video_format_get_pixel_stride (Gst.VideoFormat format, int component);
+       public static int video_format_get_pixel_stride (Gst.VideoFormat format, ref int component);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static int video_format_get_row_stride (Gst.VideoFormat format, int component, int width);
+       public static int video_format_get_row_stride (Gst.VideoFormat format, ref int component, ref int width);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static int video_format_get_size (Gst.VideoFormat format, int width, int height);
+       public static int video_format_get_size (Gst.VideoFormat format, ref int width, ref int height);
        [CCode (cheader_filename = "gst/video/video.h")]
        public static bool video_format_has_alpha (Gst.VideoFormat format);
        [CCode (cheader_filename = "gst/video/video.h")]
@@ -95,15 +156,15 @@ namespace Gst {
        [CCode (cheader_filename = "gst/video/video.h")]
        public static weak 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);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static bool video_format_parse_caps (Gst.Caps caps, Gst.VideoFormat format, int width, int height);
+       public static bool video_format_parse_caps (Gst.Caps caps, ref Gst.VideoFormat format, ref int width, ref int height);
        [CCode (cheader_filename = "gst/video/video.h")]
        public static uint video_format_to_fourcc (Gst.VideoFormat format);
        [CCode (cheader_filename = "gst/video/video.h")]
        public static GLib.Value video_frame_rate (Gst.Pad pad);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static bool video_get_size (Gst.Pad pad, int width, int height);
+       public static bool video_get_size (Gst.Pad pad, ref int width, ref int height);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static bool video_parse_caps_framerate (Gst.Caps caps, int fps_n, int fps_d);
+       public static bool video_parse_caps_framerate (Gst.Caps caps, ref int fps_n, ref int fps_d);
        [CCode (cheader_filename = "gst/video/video.h")]
-       public static bool video_parse_caps_pixel_aspect_ratio (Gst.Caps caps, int par_n, int par_d);
+       public static bool video_parse_caps_pixel_aspect_ratio (Gst.Caps caps, ref int par_n, ref int par_d);
 }
diff --git a/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala b/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala
new file mode 100644 (file)
index 0000000..fbd9b30
--- /dev/null
@@ -0,0 +1,127 @@
+/* gstreamer-video-0.10-custom.vala
+ *
+ * Copyright (C) 2008  Ali Sabil
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ *
+ * Author:
+ *     Ali Sabil <ali.sabil@gmail.com>
+ */
+
+namespace Gst {
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask32 {
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_32")]
+               public const string BYTE1;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_32")]
+               public const string BYTE2;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_32")]
+               public const string BYTE3;
+               [CCode (cname = "GST_VIDEO_BYTE4_MASK_32")]
+               public const string BYTE4;
+
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_32_INT")]
+               public const int BYTE1_INT;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_32_INT")]
+               public const int BYTE2_INT;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_32_INT")]
+               public const int BYTE3_INT;
+               [CCode (cname = "GST_VIDEO_BYTE4_MASK_32_INT")]
+               public const int BYTE4_INT;
+       }
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask24 {
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_24")]
+               public const string BYTE1;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_24")]
+               public const string BYTE2;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_24")]
+               public const string BYTE3;
+
+               [CCode (cname = "GST_VIDEO_BYTE1_MASK_24_INT")]
+               public const int BYTE1_INT;
+               [CCode (cname = "GST_VIDEO_BYTE2_MASK_24_INT")]
+               public const int BYTE2_INT;
+               [CCode (cname = "GST_VIDEO_BYTE3_MASK_24_INT")]
+               public const int BYTE3_INT;
+       }
+
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask16 {
+               [CCode (cname = "GST_VIDEO_RED_MASK_16")]
+               public const string RED;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_16")]
+               public const string GREEN;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_16")]
+               public const string BLUE;
+
+               [CCode (cname = "GST_VIDEO_RED_MASK_16_INT")]
+               public const int RED_INT;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_16_INT")]
+               public const int GREEN_INT;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_16_INT")]
+               public const int BLUE_INT;
+       }
+
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoMask15 {
+               [CCode (cname = "GST_VIDEO_RED_MASK_15")]
+               public const string RED;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_15")]
+               public const string GREEN;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_15")]
+               public const string BLUE;
+
+               [CCode (cname = "GST_VIDEO_RED_MASK_15_INT")]
+               public const int RED_INT;
+               [CCode (cname = "GST_VIDEO_GREEN_MASK_15_INT")]
+               public const int GREEN_INT;
+               [CCode (cname = "GST_VIDEO_BLUE_MASK_15_INT")]
+               public const int BLUE_INT;
+       }
+
+       [CCode (cheader_filename = "gst/video/video.h")]
+       public static class VideoRange {
+               [CCode (cname = "GST_VIDEO_SIZE_RANGE")]
+               public const string SIZE;
+               [CCode (cname = "GST_VIDEO_FPS_RANGE")]
+               public const string FPS;
+       }
+
+       [CCode (cprefix = "GST_VIDEO_CAPS_", cheader_filename = "gst/video/video.h")]
+       public static class VideoCaps {
+               public const string RGB;
+               public const string BGR;
+
+               public const string RGBx;
+               public const string xRGB;
+               public const string BGRx;
+               public const string xBGR;
+
+               public const string RGBA;
+               public const string ARGB;
+               public const string BGRA;
+               public const string ABGR;
+
+               public const string xRGB_HOST_ENDIAN;
+               public const string BGRx_HOST_ENDIAN;
+
+               public const string RGB_16;
+               public const string RGB_15;
+
+               [CCode (cname = "GST_VIDEO_CAPS_YUV")]
+               public static string YUV (string fourcc);
+       }
+}
index e71b0029bd1ed8fff05755a60f414b434999a0fe..0cc476e02828aef70380b1b509a93a96cd2a114a 100644 (file)
@@ -1,2 +1,3 @@
 gstreamer-0.10
 gstreamer-base-0.10
+gmodule-2.0
index 3915298e3827d15bcd5f08473385793b78656729..05b7bbc8be6ef2d6c4220f01ea7fedfb48dd10b5 100644 (file)
                        <member name="GST_VIDEO_FORMAT_ABGR" value="13"/>
                        <member name="GST_VIDEO_FORMAT_RGB" value="14"/>
                        <member name="GST_VIDEO_FORMAT_BGR" value="15"/>
+                       <member name="GST_VIDEO_FORMAT_Y41B" value="16"/>
+                       <member name="GST_VIDEO_FORMAT_Y42B" value="17"/>
                </enum>
                <object name="GstVideoFilter" parent="GstBaseTransform" type-name="GstVideoFilter" get-type="gst_video_filter_get_type">
                        <field name="inited" type="gboolean"/>
                <constant name="GST_VIDEO_BYTE1_MASK_24" type="char*" value="0x00FF0000"/>
                <constant name="GST_VIDEO_BYTE1_MASK_24_INT" type="int" value="16711680"/>
                <constant name="GST_VIDEO_BYTE1_MASK_32" type="char*" value="0xFF000000"/>
-               <constant name="GST_VIDEO_BYTE1_MASK_32_INT" type="int" value="-16777216"/>
+               <constant name="GST_VIDEO_BYTE1_MASK_32_INT" type="int" value="2147483647"/>
                <constant name="GST_VIDEO_BYTE2_MASK_24" type="char*" value="0x0000FF00"/>
                <constant name="GST_VIDEO_BYTE2_MASK_24_INT" type="int" value="65280"/>
                <constant name="GST_VIDEO_BYTE2_MASK_32" type="char*" value="0x00FF0000"/>
index c5fdb2821e16ef9db08499c98be2ecd86464683a..0b01a08423f824706e1017671ac5fa4345b6e4e8 100644 (file)
@@ -2,3 +2,16 @@ Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/video/video.h"
 GstVideoRectangle cheader_filename="gst/video/gstvideosink.h"
 GstVideoSink cheader_filename="gst/video/gstvideosink.h"
 GstVideoFilter cheader_filename="gst/video/gstvideofilter.h"
+GST_VIDEO_* hidden="1"
+gst_video_calculate_display_ratio.dar* is_ref="1"
+gst_video_format_convert.dest_value is_ref="1"
+gst_video_format_get_*.component is_ref="1"
+gst_video_format_get_*.width is_ref="1"
+gst_video_format_get_*.height is_ref="1"
+gst_video_format_parse_caps.format is_ref="1"
+gst_video_format_parse_caps.width is_ref="1"
+gst_video_format_parse_caps.height is_ref="1"
+gst_video_parse_caps_framerate.fps_* is_ref="1"
+gst_video_parse_caps_pixel_aspect_ratio.par_* is_ref="1"
+gst_video_get_size.width is_ref="1"
+gst_video_get_size.height is_ref="1"