gnomemm r1423 - in gstreamermm/trunk: . gstreamer/src gstreamerbase/src
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1423 - in gstreamermm/trunk: . gstreamer/src gstreamerbase/src
- Date: Wed, 26 Mar 2008 00:09:33 +0000 (GMT)
Author: jaalburqu
Date: Wed Mar 26 00:09:33 2008
New Revision: 1423
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1423&view=rev
Log:
2008-03-25 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/generate-enums.sh:
* gstreamer/src/generate-methods.sh: Added two scripts to generate
gst_enums.defs and gst_methods.def (when generating must take care of
handwritten things in gst_methods.defs -- see comment at top of file
which would be best to keep in file after regenerating)
* gstreamerbase/src/generate-enums.sh:
* gstreamerbase/src/generate-methods.sh: Added scripts to generate
gstbase_enums.defs and gstbase_methods.defs
* gstreamerbase/src/gstbase_enums.defs:
* gstreamerbase/src/gstbase_methods.defs: Regenerated these after
building most recent update of gst-plugins-base
Added:
gstreamermm/trunk/gstreamer/src/generate-enums.sh (contents, props changed)
gstreamermm/trunk/gstreamer/src/generate-methods.sh (contents, props changed)
gstreamermm/trunk/gstreamerbase/src/generate-enums.sh (contents, props changed)
gstreamermm/trunk/gstreamerbase/src/generate-methods.sh (contents, props changed)
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamerbase/src/gstbase_enums.defs
gstreamermm/trunk/gstreamerbase/src/gstbase_methods.defs
Added: gstreamermm/trunk/gstreamer/src/generate-enums.sh
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/generate-enums.sh Wed Mar 26 00:09:33 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Note that enum.pl should be in $PATH for this script to work
+
+PREFIX=/opt/usr-jhbuild
+
+enum.pl $PREFIX/include/gstreamer-0.10/gst/*.h /opt/usr-jhbuild/include/gstreamer-0.10/gst/{base,controller,dataprotocol,net,check}/*.h > gst_enums.defs
Added: gstreamermm/trunk/gstreamer/src/generate-methods.sh
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/generate-methods.sh Wed Mar 26 00:09:33 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Note that h2def.py should be in $PATH for this script to work
+
+PREFIX=/opt/usr-jhbuild
+
+h2def.py $PREFIX/include/gstreamer-0.10/gst/*.h /opt/usr-jhbuild/include/gstreamer-0.10/gst/{base,controller,dataprotocol,net,check}/*.h > gst_methods.defs
Added: gstreamermm/trunk/gstreamerbase/src/generate-enums.sh
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamerbase/src/generate-enums.sh Wed Mar 26 00:09:33 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Note that enum.pl should be in $PATH for this script to work
+
+PREFIX=/opt/usr-jhbuild
+
+enum.pl $PREFIX/include/gstreamer-0.10/gst/{audio,cdda,fft,floatcast,interfaces,netbuffer,riff,rtp,rtsp,sdp,tag,pbutils,video}/*.h > gstbase_enums.defs
Added: gstreamermm/trunk/gstreamerbase/src/generate-methods.sh
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamerbase/src/generate-methods.sh Wed Mar 26 00:09:33 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Note that h2def.py should be in $PATH for this script to work
+
+PREFIX=/opt/usr-jhbuild
+
+h2def.py $PREFIX/include/gstreamer-0.10/gst/{audio,cdda,fft,floatcast,interfaces,netbuffer,riff,rtp,rtsp,sdp,tag,pbutils,video}/*.h > gstbase_methods.defs
Modified: gstreamermm/trunk/gstreamerbase/src/gstbase_enums.defs
==============================================================================
--- gstreamermm/trunk/gstreamerbase/src/gstbase_enums.defs (original)
+++ gstreamermm/trunk/gstreamerbase/src/gstbase_enums.defs Wed Mar 26 00:09:33 2008
@@ -628,6 +628,26 @@
)
)
+;; From /opt/usr-jhbuild/include/gstreamer-0.10/gst/pbutils/install-plugins.h
+
+(define-enum-extended InstallPluginsReturn
+ (in-module "Gst")
+ (c-name "GstInstallPluginsReturn")
+ (values
+ '("success" "GST_INSTALL_PLUGINS_SUCCESS" "0")
+ '("not-found" "GST_INSTALL_PLUGINS_NOT_FOUND" "1")
+ '("error" "GST_INSTALL_PLUGINS_ERROR" "2")
+ '("partial-success" "GST_INSTALL_PLUGINS_PARTIAL_SUCCESS" "3")
+ '("user-abort" "GST_INSTALL_PLUGINS_USER_ABORT" "4")
+ '("crashed" "GST_INSTALL_PLUGINS_CRASHED" "100")
+ '("invalid" "GST_INSTALL_PLUGINS_INVALID" "101")
+ '("started-ok" "GST_INSTALL_PLUGINS_STARTED_OK" "200")
+ '("internal-failure" "GST_INSTALL_PLUGINS_INTERNAL_FAILURE" "201")
+ '("helper-missing" "GST_INSTALL_PLUGINS_HELPER_MISSING" "202")
+ '("install-in-progress" "GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS" "203")
+ )
+)
+
;; From /opt/usr-jhbuild/include/gstreamer-0.10/gst/video/video.h
(define-enum-extended VideoFormat
@@ -655,23 +675,3 @@
)
)
-;; From /opt/usr-jhbuild/include/gstreamer-0.10/gst/pbutils/install-plugins.h
-
-(define-enum-extended InstallPluginsReturn
- (in-module "Gst")
- (c-name "GstInstallPluginsReturn")
- (values
- '("success" "GST_INSTALL_PLUGINS_SUCCESS" "0")
- '("not-found" "GST_INSTALL_PLUGINS_NOT_FOUND" "1")
- '("error" "GST_INSTALL_PLUGINS_ERROR" "2")
- '("partial-success" "GST_INSTALL_PLUGINS_PARTIAL_SUCCESS" "3")
- '("user-abort" "GST_INSTALL_PLUGINS_USER_ABORT" "4")
- '("crashed" "GST_INSTALL_PLUGINS_CRASHED" "100")
- '("invalid" "GST_INSTALL_PLUGINS_INVALID" "101")
- '("started-ok" "GST_INSTALL_PLUGINS_STARTED_OK" "200")
- '("internal-failure" "GST_INSTALL_PLUGINS_INTERNAL_FAILURE" "201")
- '("helper-missing" "GST_INSTALL_PLUGINS_HELPER_MISSING" "202")
- '("install-in-progress" "GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS" "203")
- )
-)
-
Modified: gstreamermm/trunk/gstreamerbase/src/gstbase_methods.defs
==============================================================================
--- gstreamermm/trunk/gstreamerbase/src/gstbase_methods.defs (original)
+++ gstreamermm/trunk/gstreamerbase/src/gstbase_methods.defs Wed Mar 26 00:09:33 2008
@@ -829,6 +829,25 @@
)
)
+(define-enum InstallPluginsReturn
+ (in-module "Gst")
+ (c-name "GstInstallPluginsReturn")
+ (gtype-id "GST_TYPE_INSTALL_PLUGINS_RETURN")
+ (values
+ '("success" "GST_INSTALL_PLUGINS_SUCCESS")
+ '("not-found" "GST_INSTALL_PLUGINS_NOT_FOUND")
+ '("error" "GST_INSTALL_PLUGINS_ERROR")
+ '("partial-success" "GST_INSTALL_PLUGINS_PARTIAL_SUCCESS")
+ '("user-abort" "GST_INSTALL_PLUGINS_USER_ABORT")
+ '("crashed" "GST_INSTALL_PLUGINS_CRASHED")
+ '("invalid" "GST_INSTALL_PLUGINS_INVALID")
+ '("started-ok" "GST_INSTALL_PLUGINS_STARTED_OK")
+ '("internal-failure" "GST_INSTALL_PLUGINS_INTERNAL_FAILURE")
+ '("helper-missing" "GST_INSTALL_PLUGINS_HELPER_MISSING")
+ '("install-in-progress" "GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS")
+ )
+)
+
(define-enum VideoFormat
(in-module "Gst")
(c-name "GstVideoFormat")
@@ -855,25 +874,6 @@
)
)
-(define-enum InstallPluginsReturn
- (in-module "Gst")
- (c-name "GstInstallPluginsReturn")
- (gtype-id "GST_TYPE_INSTALL_PLUGINS_RETURN")
- (values
- '("success" "GST_INSTALL_PLUGINS_SUCCESS")
- '("not-found" "GST_INSTALL_PLUGINS_NOT_FOUND")
- '("error" "GST_INSTALL_PLUGINS_ERROR")
- '("partial-success" "GST_INSTALL_PLUGINS_PARTIAL_SUCCESS")
- '("user-abort" "GST_INSTALL_PLUGINS_USER_ABORT")
- '("crashed" "GST_INSTALL_PLUGINS_CRASHED")
- '("invalid" "GST_INSTALL_PLUGINS_INVALID")
- '("started-ok" "GST_INSTALL_PLUGINS_STARTED_OK")
- '("internal-failure" "GST_INSTALL_PLUGINS_INTERNAL_FAILURE")
- '("helper-missing" "GST_INSTALL_PLUGINS_HELPER_MISSING")
- '("install-in-progress" "GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS")
- )
-)
-
;; From audio.h
@@ -4859,217 +4859,6 @@
-;; From gstvideofilter.h
-
-(define-function gst_video_filter_get_type
- (c-name "gst_video_filter_get_type")
- (return-type "GType")
-)
-
-
-
-;; From gstvideosink.h
-
-(define-function gst_video_sink_get_type
- (c-name "gst_video_sink_get_type")
- (return-type "GType")
-)
-
-(define-function gst_video_sink_center_rect
- (c-name "gst_video_sink_center_rect")
- (return-type "none")
- (parameters
- '("GstVideoRectangle" "src")
- '("GstVideoRectangle" "dst")
- '("GstVideoRectangle*" "result")
- '("gboolean" "scaling")
- )
-)
-
-
-
-;; From video.h
-
-(define-function gst_video_get_size
- (c-name "gst_video_get_size")
- (return-type "gboolean")
- (parameters
- '("GstPad*" "pad")
- '("gint*" "width")
- '("gint*" "height")
- )
-)
-
-(define-function gst_video_calculate_display_ratio
- (c-name "gst_video_calculate_display_ratio")
- (return-type "gboolean")
- (parameters
- '("guint*" "dar_n")
- '("guint*" "dar_d")
- '("guint" "video_width")
- '("guint" "video_height")
- '("guint" "video_par_n")
- '("guint" "video_par_d")
- '("guint" "display_par_n")
- '("guint" "display_par_d")
- )
-)
-
-(define-function gst_video_format_parse_caps
- (c-name "gst_video_format_parse_caps")
- (return-type "gboolean")
- (parameters
- '("GstCaps*" "caps")
- '("GstVideoFormat*" "format")
- '("int*" "width")
- '("int*" "height")
- )
-)
-
-(define-function gst_video_parse_caps_framerate
- (c-name "gst_video_parse_caps_framerate")
- (return-type "gboolean")
- (parameters
- '("GstCaps*" "caps")
- '("int*" "fps_n")
- '("int*" "fps_d")
- )
-)
-
-(define-function gst_video_parse_caps_pixel_aspect_ratio
- (c-name "gst_video_parse_caps_pixel_aspect_ratio")
- (return-type "gboolean")
- (parameters
- '("GstCaps*" "caps")
- '("int*" "par_n")
- '("int*" "par_d")
- )
-)
-
-(define-method new_caps
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_new_caps")
- (return-type "GstCaps*")
- (parameters
- '("int" "width")
- '("int" "height")
- '("int" "framerate_n")
- '("int" "framerate_d")
- '("int" "par_n")
- '("int" "par_d")
- )
-)
-
-(define-function gst_video_format_from_fourcc
- (c-name "gst_video_format_from_fourcc")
- (return-type "GstVideoFormat")
- (parameters
- '("guint32" "fourcc")
- )
-)
-
-(define-method to_fourcc
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_to_fourcc")
- (return-type "guint32")
-)
-
-(define-method is_rgb
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_is_rgb")
- (return-type "gboolean")
-)
-
-(define-method is_yuv
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_is_yuv")
- (return-type "gboolean")
-)
-
-(define-method has_alpha
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_has_alpha")
- (return-type "gboolean")
-)
-
-(define-method get_row_stride
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_get_row_stride")
- (return-type "int")
- (parameters
- '("int" "component")
- '("int" "width")
- )
-)
-
-(define-method get_pixel_stride
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_get_pixel_stride")
- (return-type "int")
- (parameters
- '("int" "component")
- )
-)
-
-(define-method get_component_width
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_get_component_width")
- (return-type "int")
- (parameters
- '("int" "component")
- '("int" "width")
- )
-)
-
-(define-method get_component_height
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_get_component_height")
- (return-type "int")
- (parameters
- '("int" "component")
- '("int" "height")
- )
-)
-
-(define-method get_component_offset
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_get_component_offset")
- (return-type "int")
- (parameters
- '("int" "component")
- '("int" "width")
- '("int" "height")
- )
-)
-
-(define-method get_size
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_get_size")
- (return-type "int")
- (parameters
- '("int" "width")
- '("int" "height")
- )
-)
-
-(define-method convert
- (of-object "GstVideoFormat")
- (c-name "gst_video_format_convert")
- (return-type "gboolean")
- (parameters
- '("int" "width")
- '("int" "height")
- '("int" "fps_n")
- '("int" "fps_d")
- '("GstFormat" "src_format")
- '("gint64" "src_value")
- '("GstFormat" "dest_format")
- '("gint64*" "dest_value")
- )
-)
-
-
-
;; From descriptions.h
(define-function gst_pb_utils_add_codec_description_to_tag_list
@@ -5338,3 +5127,214 @@
)
+
+;; From gstvideofilter.h
+
+(define-function gst_video_filter_get_type
+ (c-name "gst_video_filter_get_type")
+ (return-type "GType")
+)
+
+
+
+;; From gstvideosink.h
+
+(define-function gst_video_sink_get_type
+ (c-name "gst_video_sink_get_type")
+ (return-type "GType")
+)
+
+(define-function gst_video_sink_center_rect
+ (c-name "gst_video_sink_center_rect")
+ (return-type "none")
+ (parameters
+ '("GstVideoRectangle" "src")
+ '("GstVideoRectangle" "dst")
+ '("GstVideoRectangle*" "result")
+ '("gboolean" "scaling")
+ )
+)
+
+
+
+;; From video.h
+
+(define-function gst_video_get_size
+ (c-name "gst_video_get_size")
+ (return-type "gboolean")
+ (parameters
+ '("GstPad*" "pad")
+ '("gint*" "width")
+ '("gint*" "height")
+ )
+)
+
+(define-function gst_video_calculate_display_ratio
+ (c-name "gst_video_calculate_display_ratio")
+ (return-type "gboolean")
+ (parameters
+ '("guint*" "dar_n")
+ '("guint*" "dar_d")
+ '("guint" "video_width")
+ '("guint" "video_height")
+ '("guint" "video_par_n")
+ '("guint" "video_par_d")
+ '("guint" "display_par_n")
+ '("guint" "display_par_d")
+ )
+)
+
+(define-function gst_video_format_parse_caps
+ (c-name "gst_video_format_parse_caps")
+ (return-type "gboolean")
+ (parameters
+ '("GstCaps*" "caps")
+ '("GstVideoFormat*" "format")
+ '("int*" "width")
+ '("int*" "height")
+ )
+)
+
+(define-function gst_video_parse_caps_framerate
+ (c-name "gst_video_parse_caps_framerate")
+ (return-type "gboolean")
+ (parameters
+ '("GstCaps*" "caps")
+ '("int*" "fps_n")
+ '("int*" "fps_d")
+ )
+)
+
+(define-function gst_video_parse_caps_pixel_aspect_ratio
+ (c-name "gst_video_parse_caps_pixel_aspect_ratio")
+ (return-type "gboolean")
+ (parameters
+ '("GstCaps*" "caps")
+ '("int*" "par_n")
+ '("int*" "par_d")
+ )
+)
+
+(define-method new_caps
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_new_caps")
+ (return-type "GstCaps*")
+ (parameters
+ '("int" "width")
+ '("int" "height")
+ '("int" "framerate_n")
+ '("int" "framerate_d")
+ '("int" "par_n")
+ '("int" "par_d")
+ )
+)
+
+(define-function gst_video_format_from_fourcc
+ (c-name "gst_video_format_from_fourcc")
+ (return-type "GstVideoFormat")
+ (parameters
+ '("guint32" "fourcc")
+ )
+)
+
+(define-method to_fourcc
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_to_fourcc")
+ (return-type "guint32")
+)
+
+(define-method is_rgb
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_is_rgb")
+ (return-type "gboolean")
+)
+
+(define-method is_yuv
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_is_yuv")
+ (return-type "gboolean")
+)
+
+(define-method has_alpha
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_has_alpha")
+ (return-type "gboolean")
+)
+
+(define-method get_row_stride
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_get_row_stride")
+ (return-type "int")
+ (parameters
+ '("int" "component")
+ '("int" "width")
+ )
+)
+
+(define-method get_pixel_stride
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_get_pixel_stride")
+ (return-type "int")
+ (parameters
+ '("int" "component")
+ )
+)
+
+(define-method get_component_width
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_get_component_width")
+ (return-type "int")
+ (parameters
+ '("int" "component")
+ '("int" "width")
+ )
+)
+
+(define-method get_component_height
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_get_component_height")
+ (return-type "int")
+ (parameters
+ '("int" "component")
+ '("int" "height")
+ )
+)
+
+(define-method get_component_offset
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_get_component_offset")
+ (return-type "int")
+ (parameters
+ '("int" "component")
+ '("int" "width")
+ '("int" "height")
+ )
+)
+
+(define-method get_size
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_get_size")
+ (return-type "int")
+ (parameters
+ '("int" "width")
+ '("int" "height")
+ )
+)
+
+(define-method convert
+ (of-object "GstVideoFormat")
+ (c-name "gst_video_format_convert")
+ (return-type "gboolean")
+ (parameters
+ '("int" "width")
+ '("int" "height")
+ '("int" "fps_n")
+ '("int" "fps_d")
+ '("GstFormat" "src_format")
+ '("gint64" "src_value")
+ '("GstFormat" "dest_format")
+ '("gint64*" "dest_value")
+ )
+)
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]