From: <bi...@fr...> - 2006-01-06 17:43:36
|
CVS Root: /cvs/gstreamer Module: gst-python Changes by: bilboed Date: Thu Jan 05 2006 06:49:39 PST Log message: * gst/base.defs: Use gchar* instead of guint8* for GstAdapter Added virtual methods definitions for base classes. Still have to override some functions, and figure out how to properly add reverse wrappers to the codegenerator. Modified files: . : ChangeLog gst : base.defs Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.390&r2=1.391 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/base.defs.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-python/ChangeLog,v retrieving revision 1.390 retrieving revision 1.391 diff -u -d -r1.390 -r1.391 --- ChangeLog 1 Jan 2006 21:18:27 -0000 1.390 +++ ChangeLog 5 Jan 2006 14:49:27 -0000 1.391 @@ -1,3 +1,11 @@ +2006-01-05 Edward Hervey <ed...@fl...> + + * gst/base.defs: + Use gchar* instead of guint8* for GstAdapter + Added virtual methods definitions for base classes. + Still have to override some functions, and figure + out how to properly add reverse wrappers to the codegenerator. 2006-01-01 Edward Hervey <ed...@fl...> First step at wrapping base elements in gst-python Index: base.defs RCS file: /cvs/gstreamer/gst-python/gst/base.defs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- base.defs 1 Jan 2006 21:18:28 -0000 1.1 +++ base.defs 5 Jan 2006 14:49:27 -0000 1.2 @@ -81,7 +81,7 @@ (define-method peek (of-object "GstAdapter") (c-name "gst_adapter_peek") - (return-type "const-guint8*") + (return-type "const-gchar*") (parameters '("guint" "size") ) @@ -99,7 +99,7 @@ (define-method take (c-name "gst_adapter_take") - (return-type "guint8*") + (return-type "gchar*") '("guint" "nbytes") @@ -131,7 +131,78 @@ (return-type "GType") ) +(define-virtual get_caps + (of-object "GstBaseSink") + (return-type "GstCaps*") +) +(define-virtual set_caps + (return-type "gboolean") + (parameters + '("GstCaps*" "caps") + ) +(define-virtual buffer_alloc + (return-type "GstFlowReturn") + '("guint64" "offset") + '("guint" "size") + '("GstBuffer**" "buffer") +(define-virtual get_times + (return-type "none") + '("GstBuffer*" "buffer") + '("GstClockTime*" "start") + '("GstClockTime*" "end") +(define-virtual start +(define-virtual stop +(define-virtual unlock +(define-virtual event + '("GstEvent*" "event") +(define-virtual preroll +(define-virtual render ;; From ../gstreamer/libs/gst/base/gstbasesrc.h @@ -164,6 +235,100 @@ + (of-object "GstBaseSrc") +(define-virtual negotiate +(define-virtual newsegment +(define-virtual get_size + '("guint64*" "size") +(define-virtual is_seekable +(define-virtual create + '("GstBuffer**" "buf") +(define-virtual do_seek + '("GstSegment*" "segment") +(define-virtual query + '("GstQuery*" "query") ;; From ../gstreamer/libs/gst/base/gstbasetransform.h @@ -203,6 +368,100 @@ (return-type "gboolean") +(define-virtual transform_caps + (of-object "GstBaseTransform") + '("GstPadDirection" "direction") +(define-virtual fixate_caps + '("GstCaps*" "othercaps") +(define-virtual transform_size + '("guint*" "othersize") +(define-virtual get_unit_size + '("guint*" "size") + '("GstCaps*" "incaps") + '("GstCaps*" "outcaps") +(define-virtual transform + '("GstBuffer*" "inbuf") + '("GstBuffer*" "outbuf") +(define-virtual transform_ip + '("GstBuffer*" "buf") +(define-virtual prepare_output_buffer + '("GstBuffer*" "input") + '("gint" "size") ;; From ../gstreamer/libs/gst/base/gstcollectpads.h @@ -338,6 +597,14 @@ + (of-object "GstPushSrc") ;; From ../gstreamer/libs/gst/base/gsttypefindhelper.h |