vala r1415 - in trunk: . vapi vapi/packages/gstreamer-video-0.10
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1415 - in trunk: . vapi vapi/packages/gstreamer-video-0.10
- Date: Fri, 23 May 2008 20:43:50 +0000 (UTC)
Author: juergbi
Date: Fri May 23 20:43:50 2008
New Revision: 1415
URL: http://svn.gnome.org/viewvc/vala?rev=1415&view=rev
Log:
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
Added:
trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala
Modified:
trunk/ChangeLog
trunk/vapi/gstreamer-video-0.10.vapi
trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.deps
trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.gi
trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.metadata
Modified: trunk/vapi/gstreamer-video-0.10.vapi
==============================================================================
--- trunk/vapi/gstreamer-video-0.10.vapi (original)
+++ trunk/vapi/gstreamer-video-0.10.vapi Fri May 23 20:43:50 2008
@@ -19,7 +19,98 @@
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 @@
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);
+ 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, int64 dest_value);
+ 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 @@
[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);
}
Added: trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala Fri May 23 20:43:50 2008
@@ -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);
+ }
+}
Modified: trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.deps
==============================================================================
--- trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.deps (original)
+++ trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.deps Fri May 23 20:43:50 2008
@@ -1,2 +1,3 @@
gstreamer-0.10
gstreamer-base-0.10
+gmodule-2.0
Modified: trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.gi
==============================================================================
--- trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.gi (original)
+++ trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.gi Fri May 23 20:43:50 2008
@@ -180,6 +180,8 @@
<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"/>
@@ -204,7 +206,7 @@
<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"/>
Modified: trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.metadata
==============================================================================
--- trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.metadata (original)
+++ trunk/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10.metadata Fri May 23 20:43:50 2008
@@ -2,3 +2,16 @@
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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]