[gstreamermm] Gst::BaseTransform: wrap BaseTransform methods



commit 9e885501bf90b75385b40e59334e72b2355c824c
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Thu Feb 26 23:02:58 2015 +0100

    Gst::BaseTransform: wrap BaseTransform methods
    
        * gstreamer/src/basetransform.{ccg|hg}: wrap methods:
          gst_base-transform_{reconfigure_sink|reconfigure_src|
          set_prefered_passthrough|get_allocator). One method left to wrap -
          gst_base_transform_get_buffer_pool - because GstBufferPool is not
          wrapped yet.

 gstreamer/src/basetransform.ccg |    7 +++++++
 gstreamer/src/basetransform.hg  |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer/src/basetransform.ccg b/gstreamer/src/basetransform.ccg
index 1c04cc9..9222b41 100644
--- a/gstreamer/src/basetransform.ccg
+++ b/gstreamer/src/basetransform.ccg
@@ -93,4 +93,11 @@ FlowReturn Gst::BaseTransform::prepare_output_buffer_vfunc(const Glib::RefPtr<Gs
   return RType();
 }
 
+Glib::RefPtr<Allocator> BaseTransform::get_allocator(AllocationParams& params)
+{
+  GstAllocator* alloc;
+  gst_base_transform_get_allocator(gobj(), &alloc, params.gobj());
+  return Glib::wrap(alloc, false);
+}
+
 } //namespace Gst
diff --git a/gstreamer/src/basetransform.hg b/gstreamer/src/basetransform.hg
index eed626b..b1b8128 100644
--- a/gstreamer/src/basetransform.hg
+++ b/gstreamer/src/basetransform.hg
@@ -148,6 +148,13 @@ public:
   _WRAP_METHOD(void set_qos_enabled(bool enabled), gst_base_transform_set_qos_enabled)
   _WRAP_METHOD(void update_qos(double proportion, ClockTimeDiff diff, ClockTime timestamp), 
gst_base_transform_update_qos)
   _WRAP_METHOD(void set_gap_aware(bool gap_aware), gst_base_transform_set_gap_aware)
+  _WRAP_METHOD(void reconfigure_sink(), gst_base_transform_reconfigure_sink)
+  _WRAP_METHOD(void reconfigure_src(), gst_base_transform_reconfigure_src)
+  _WRAP_METHOD(void set_prefer_passthrough(bool prefer_passthrough), 
gst_base_transform_set_prefer_passthrough)
+
+  Glib::RefPtr<Gst::Allocator> get_allocator(Gst::AllocationParams& params);
+  _IGNORE(gst_base_transform_get_allocator)
+
 
   /** Gives the refptr to the sink Gst::Pad object of the element.
    */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]