From 110de36d65b22e991154c6adf982081f9178c189 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 27 Jun 2010 10:35:55 +0200 Subject: [PATCH] Add gst-plugins-base 0.10.29/0.10.30 API additions --- configure.ac | 18 ++++++++++++++++++ gst/Makefile.am | 2 ++ gst/gst-pb-0.10.29.ignore | 9 +++++++++ gst/gst-pb-0.10.30.ignore | 7 +++++++ gst/gstversion.override.in | 2 ++ gst/tag.defs | 34 ++++++++++++++++++++++++++++++++++ gst/video.defs | 32 ++++++++++++++++++++++++++++++++ gst/xoverlay.defs | 12 ++++++++++++ 8 files changed, 116 insertions(+) create mode 100644 gst/gst-pb-0.10.29.ignore create mode 100644 gst/gst-pb-0.10.30.ignore diff --git a/configure.ac b/configure.ac index b122b5d..6735294 100644 --- a/configure.ac +++ b/configure.ac @@ -202,6 +202,20 @@ then else IGNORE_GST_PB_0_10_26="" fi + + if test $GST_PB_MINOR_VERSION -lt "29" + then + IGNORE_GST_PB_0_10_29="gst-pb-0.10.29.ignore" + else + IGNORE_GST_PB_0_10_29="" + fi + + if test $GST_PB_MINOR_VERSION -lt "30" + then + IGNORE_GST_PB_0_10_30="gst-pb-0.10.30.ignore" + else + IGNORE_GST_PB_0_10_30="" + fi else IGNORE_GST_0_10_18="" IGNORE_GST_0_10_20="" @@ -216,6 +230,8 @@ else IGNORE_GST_PB_0_10_23="" IGNORE_GST_PB_0_10_25="" IGNORE_GST_PB_0_10_26="" + IGNORE_GST_PB_0_10_29="" + IGNORE_GST_PB_0_10_30="" AC_DEFINE_UNQUOTED(HAVE_GST_AUDIO, 1, [We can use the gst-audio library]) AC_DEFINE_UNQUOTED(HAVE_GST_VIDEO, 1, [We can use the gst-video library]) AC_DEFINE_UNQUOTED(HAVE_GST_TAG, 1, [We can use the gst-tag library]) @@ -233,6 +249,8 @@ AC_SUBST(IGNORE_GST_0_10_30) AC_SUBST(IGNORE_GST_PB_0_10_23) AC_SUBST(IGNORE_GST_PB_0_10_25) AC_SUBST(IGNORE_GST_PB_0_10_26) +AC_SUBST(IGNORE_GST_PB_0_10_29) +AC_SUBST(IGNORE_GST_PB_0_10_30) AM_CONDITIONAL(HAVE_GST_AUDIO, $HAVE_GST_AUDIO) AM_CONDITIONAL(HAVE_GST_VIDEO, $HAVE_GST_VIDEO) AM_CONDITIONAL(HAVE_GST_TAG, $HAVE_GST_TAG) diff --git a/gst/Makefile.am b/gst/Makefile.am index 13fc41d..a80a59b 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -37,6 +37,8 @@ versioned_overrides = \ gst-pb-0.10.23.ignore \ gst-pb-0.10.25.ignore \ gst-pb-0.10.26.ignore \ + gst-pb-0.10.29.ignore \ + gst-pb-0.10.30.ignore \ gst-disable-loadsave.ignore INCLUDES = $(PYTHON_INCLUDES) diff --git a/gst/gst-pb-0.10.29.ignore b/gst/gst-pb-0.10.29.ignore new file mode 100644 index 0000000..8e39404 --- /dev/null +++ b/gst/gst-pb-0.10.29.ignore @@ -0,0 +1,9 @@ +%% +ignore + gst_x_overlay_set_render_rectangle + gst_tag_list_from_xmp_buffer + gst_tag_list_to_xmp_buffer + gst_video_format_is_gray + gst_video_parse_caps_chroma_site + gst_video_parse_caps_color_matrix +%% \ No newline at end of file diff --git a/gst/gst-pb-0.10.30.ignore b/gst/gst-pb-0.10.30.ignore new file mode 100644 index 0000000..ea1e659 --- /dev/null +++ b/gst/gst-pb-0.10.30.ignore @@ -0,0 +1,7 @@ +%% +ignore + gst_tag_list_to_exif_buffer + gst_tag_list_to_exif_buffer_with_tiff_header + gst_tag_list_from_exif_buffer + gst_tag_list_from_exif_buffer_with_tiff_header +%% diff --git a/gst/gstversion.override.in b/gst/gstversion.override.in index d166060..7bd66cd 100644 --- a/gst/gstversion.override.in +++ b/gst/gstversion.override.in @@ -12,5 +12,7 @@ include @IGNORE_GST_PB_0_10_26@ @IGNORE_GST_LOADSAVE@ @IGNORE_GST_0_10_29@ +@IGNORE_GST_PB_0_10_29@ @IGNORE_GST_0_10_30@ +@IGNORE_GST_PB_0_10_30@ %% diff --git a/gst/tag.defs b/gst/tag.defs index 3aebd02..a9f4927 100644 --- a/gst/tag.defs +++ b/gst/tag.defs @@ -179,6 +179,40 @@ ) ) +(define-method to_exif_buffer + (of-object "GstTagList") + (c-name "gst_tag_list_to_exif_buffer") + (return-type "GstBuffer*") + (parameters + '("gint" "byte_order") + '("guint32" "base_offset") + ) +) + +(define-method to_exif_buffer_with_tiff_header + (of-object "GstTagList") + (c-name "gst_tag_list_to_exif_buffer_with_tiff_header") + (return-type "GstBuffer*") +) + +(define-function tag_list_from_exif_buffer + (c-name "gst_tag_list_from_exif_buffer") + (return-type "GstTagList*") + (parameters + '("const-GstBuffer*" "buffer") + '("gint" "byte_order") + '("guint32" "base_offset") + ) +) + +(define-function tag_list_from_exif_buffer_with_tiff_header + (c-name "gst_tag_list_from_exif_buffer_with_tiff_header") + (return-type "GstTagList*") + (parameters + '("const-GstBuffer*" "buffer") + ) +) + (define-function parse_extended_comment (c-name "gst_tag_parse_extended_comment") (return-type "gboolean") diff --git a/gst/video.defs b/gst/video.defs index 671ecb4..5177979 100644 --- a/gst/video.defs +++ b/gst/video.defs @@ -45,6 +45,16 @@ '("v216" "GST_VIDEO_FORMAT_v216") '("nv12" "GST_VIDEO_FORMAT_NV12") '("nv21" "GST_VIDEO_FORMAT_NV21") + '("gray8" "GST_VIDEO_FORMAT_GRAY8") + '("gray16-be" "GST_VIDEO_FORMAT_GRAY16_BE") + '("gray16-le" "GST_VIDEO_FORMAT_GRAY16_LE") + '("v308" "GST_VIDEO_FORMAT_v308") + '("y800" "GST_VIDEO_FORMAT_Y800") + '("y16" "GST_VIDEO_FORMAT_Y16") + '("rgb16" "GST_VIDEO_FORMAT_RGB16") + '("bgr16" "GST_VIDEO_FORMAT_BGR16") + '("rgb15" "GST_VIDEO_FORMAT_RGB15") + '("bgr15" "GST_VIDEO_FORMAT_BGR15") ) ) @@ -145,6 +155,22 @@ ) ) +(define-function parse_caps_color_matrix + (c-name "gst_video_parse_caps_color_matrix") + (return-type "const-char*") + (parameters + '("GstCaps*" "caps") + ) +) + +(define-function parse_caps_chroma_site + (c-name "gst_video_parse_caps_chroma_site") + (return-type "const-char*") + (parameters + '("GstCaps*" "caps") + ) +) + (define-method new_caps (of-object "GstVideoFormat") (c-name "gst_video_format_new_caps") @@ -202,6 +228,12 @@ (return-type "gboolean") ) +(define-method is_gray + (of-object "GstVideoFormat") + (c-name "gst_video_format_is_gray") + (return-type "gboolean") +) + (define-method has_alpha (of-object "GstVideoFormat") (c-name "gst_video_format_has_alpha") diff --git a/gst/xoverlay.defs b/gst/xoverlay.defs index 1fed492..db7072d 100644 --- a/gst/xoverlay.defs +++ b/gst/xoverlay.defs @@ -19,6 +19,18 @@ ) ) +(define-method set_render_rectangle + (of-object "GstXOverlay") + (c-name "gst_x_overlay_set_render_rectangle") + (return-type "gboolean") + (parameters + '("gint" "x") + '("gint" "y") + '("gint" "width") + '("gint" "height") + ) +) + (define-method expose (of-object "GstXOverlay") (c-name "gst_x_overlay_expose") -- 2.7.4