2006-01-01 21:18:28 +00:00
|
|
|
;; -*- scheme -*-
|
|
|
|
; object definitions ...
|
|
|
|
(define-object Adapter
|
|
|
|
(in-module "Gst")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "GstAdapter")
|
|
|
|
(gtype-id "GST_TYPE_ADAPTER")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object BaseSink
|
|
|
|
(in-module "Gst")
|
|
|
|
(parent "GstElement")
|
|
|
|
(c-name "GstBaseSink")
|
|
|
|
(gtype-id "GST_TYPE_BASE_SINK")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object BaseSrc
|
|
|
|
(in-module "Gst")
|
|
|
|
(parent "GstElement")
|
|
|
|
(c-name "GstBaseSrc")
|
|
|
|
(gtype-id "GST_TYPE_BASE_SRC")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object BaseTransform
|
|
|
|
(in-module "Gst")
|
|
|
|
(parent "GstElement")
|
|
|
|
(c-name "GstBaseTransform")
|
|
|
|
(gtype-id "GST_TYPE_BASE_TRANSFORM")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object CollectPads
|
|
|
|
(in-module "Gst")
|
|
|
|
(parent "GstObject")
|
|
|
|
(c-name "GstCollectPads")
|
|
|
|
(gtype-id "GST_TYPE_COLLECT_PADS")
|
|
|
|
)
|
|
|
|
|
2007-02-27 10:44:21 +00:00
|
|
|
; PushSrc doesn't work due to limitations in the code generator, so disable
|
|
|
|
;(define-object PushSrc
|
|
|
|
; (in-module "Gst")
|
|
|
|
; (parent "GstBaseSrc")
|
|
|
|
; (c-name "GstPushSrc")
|
|
|
|
; (gtype-id "GST_TYPE_PUSH_SRC")
|
|
|
|
;)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
|
|
|
;; Enumerations and flags ...
|
|
|
|
|
|
|
|
; (define-flags BaseSrcFlags
|
|
|
|
; (in-module "Gst")
|
|
|
|
; (c-name "GstBaseSrcFlags")
|
|
|
|
; (gtype-id "GST_TYPE_BASE_SRC_FLAGS")
|
|
|
|
; (values
|
|
|
|
; '("started" "GST_BASE_SRC_STARTED")
|
|
|
|
; '("flag-last" "GST_BASE_SRC_FLAG_LAST")
|
|
|
|
; )
|
|
|
|
; )
|
|
|
|
|
|
|
|
|
|
|
|
;; From ../gstreamer/libs/gst/base/gstadapter.h
|
|
|
|
|
|
|
|
(define-function gst_adapter_new
|
|
|
|
(c-name "gst_adapter_new")
|
|
|
|
(is-constructor-of "GstAdapter")
|
|
|
|
(return-type "GstAdapter*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method clear
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_clear")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method push
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_push")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "buf")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method peek
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_peek")
|
2006-01-09 11:42:25 +00:00
|
|
|
(return-type "const-guint8*")
|
2006-01-01 21:18:28 +00:00
|
|
|
(parameters
|
|
|
|
'("guint" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2007-01-26 11:58:55 +00:00
|
|
|
(define-method copy
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_copy")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("guint8*" "dest")
|
|
|
|
'("guint" "offset")
|
|
|
|
'("guint" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
(define-method flush
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_flush")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("guint" "flush")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method take
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_take")
|
2006-01-09 11:42:25 +00:00
|
|
|
(return-type "guint8*")
|
2006-01-01 21:18:28 +00:00
|
|
|
(parameters
|
|
|
|
'("guint" "nbytes")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-05-19 08:48:22 +00:00
|
|
|
(define-method take_buffer
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_take_buffer")
|
|
|
|
(return-type "GstBuffer*")
|
|
|
|
(parameters
|
|
|
|
'("guint" "nbytes")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
(define-method available
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_available")
|
|
|
|
(return-type "guint")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method available_fast
|
|
|
|
(of-object "GstAdapter")
|
|
|
|
(c-name "gst_adapter_available_fast")
|
|
|
|
(return-type "guint")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function gst_adapter_get_type
|
|
|
|
(c-name "gst_adapter_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; From ../gstreamer/libs/gst/base/gstbasesink.h
|
|
|
|
|
|
|
|
(define-function gst_base_sink_get_type
|
|
|
|
(c-name "gst_base_sink_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
2006-10-20 10:41:46 +00:00
|
|
|
(define-method wait_preroll
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_wait_preroll")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
)
|
2006-03-14 12:56:46 +00:00
|
|
|
|
|
|
|
(define-method set_sync
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_set_sync")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "sync")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_sync
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_get_sync")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_max_lateness
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_set_max_lateness")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gint64" "max_lateness")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_max_lateness
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_get_max_lateness")
|
|
|
|
(return-type "gint64")
|
|
|
|
)
|
|
|
|
|
2006-03-24 11:07:22 +00:00
|
|
|
(define-method set_qos_enabled
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_set_qos_enabled")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "enabled")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method is_qos_enabled
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_is_qos_enabled")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
2007-06-08 15:16:08 +00:00
|
|
|
(define-method query_latency
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_query_latency")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("gboolean*" "live")
|
|
|
|
'("gboolean*" "upstream_live")
|
|
|
|
'("GstClockTime*" "min_latency")
|
|
|
|
'("GstClockTime*" "max_latency")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_latency
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(c-name "gst_base_sink_get_latency")
|
|
|
|
(return-type "GstClockTime")
|
|
|
|
)
|
|
|
|
|
2006-01-05 14:49:27 +00:00
|
|
|
(define-virtual get_caps
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "GstCaps*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual set_caps
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual buffer_alloc
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("guint64" "offset")
|
|
|
|
'("guint" "size")
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
'("GstBuffer**" "buffer")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual get_times
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "buffer")
|
|
|
|
'("GstClockTime*" "start")
|
|
|
|
'("GstClockTime*" "end")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual start
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual stop
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual unlock
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual event
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstEvent*" "event")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual preroll
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "buffer")
|
|
|
|
)
|
|
|
|
)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
2006-01-05 14:49:27 +00:00
|
|
|
(define-virtual render
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "buffer")
|
|
|
|
)
|
|
|
|
)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
2007-06-08 15:16:08 +00:00
|
|
|
(define-virtual activate_pull
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "active")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual fixate
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual unlock_stop
|
|
|
|
(of-object "GstBaseSink")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
;; From ../gstreamer/libs/gst/base/gstbasesrc.h
|
|
|
|
|
|
|
|
(define-function gst_base_src_get_type
|
|
|
|
(c-name "gst_base_src_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
2006-10-20 10:41:46 +00:00
|
|
|
(define-method wait_playing
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(c-name "gst_base_src_wait_playing")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
)
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
(define-method set_live
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(c-name "gst_base_src_set_live")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "live")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method is_live
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(c-name "gst_base_src_is_live")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_format
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(c-name "gst_base_src_set_format")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstFormat" "format")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2007-06-08 15:16:08 +00:00
|
|
|
(define-method query_latency
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(c-name "gst_base_src_query_latency")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("gboolean*" "live")
|
|
|
|
'("GstClockTime*" "min_latency")
|
|
|
|
'("GstClockTime*" "max_latency")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-01-05 14:49:27 +00:00
|
|
|
(define-virtual get_caps
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "GstCaps*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual set_caps
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual negotiate
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual newsegment
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual start
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual stop
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual get_times
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "buffer")
|
|
|
|
'("GstClockTime*" "start")
|
|
|
|
'("GstClockTime*" "end")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual get_size
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("guint64*" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual is_seekable
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual unlock
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual event
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstEvent*" "event")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual create
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("guint64" "offset")
|
|
|
|
'("guint" "size")
|
|
|
|
'("GstBuffer**" "buf")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual do_seek
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstSegment*" "segment")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual query
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstQuery*" "query")
|
|
|
|
)
|
|
|
|
)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
2006-03-07 19:08:43 +00:00
|
|
|
(define-virtual check_get_range
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
2007-06-08 15:16:08 +00:00
|
|
|
(define-virtual fixate
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual unlock_stop
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual prepare_seek_segment
|
|
|
|
(of-object "GstBaseSrc")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstEvent*" "seek")
|
|
|
|
'("GstSegment*" "segment")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
;; From ../gstreamer/libs/gst/base/gstbasetransform.h
|
|
|
|
|
|
|
|
(define-function gst_base_transform_get_type
|
|
|
|
(c-name "gst_base_transform_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_passthrough
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_set_passthrough")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "passthrough")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method is_passthrough
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_is_passthrough")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_in_place
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_set_in_place")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "in_place")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method is_in_place
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_is_in_place")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
2006-03-24 11:07:22 +00:00
|
|
|
(define-method update_qos
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_update_qos")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gdouble" "proportion")
|
|
|
|
'("GstClockTimeDiff" "diff")
|
|
|
|
'("GstClockTime" "timestamp")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_qos_enabled
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_set_qos_enabled")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "enabled")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method is_qos_enabled
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(c-name "gst_base_transform_is_qos_enabled")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
2006-01-05 14:49:27 +00:00
|
|
|
(define-virtual transform_caps
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "GstCaps*")
|
|
|
|
(parameters
|
|
|
|
'("GstPadDirection" "direction")
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual fixate_caps
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstPadDirection" "direction")
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
'("GstCaps*" "othercaps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual transform_size
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstPadDirection" "direction")
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
'("guint" "size")
|
|
|
|
'("GstCaps*" "othercaps")
|
|
|
|
'("guint*" "othersize")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual get_unit_size
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
'("guint*" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual set_caps
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstCaps*" "incaps")
|
|
|
|
'("GstCaps*" "outcaps")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual start
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual stop
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual event
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstEvent*" "event")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual transform
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "inbuf")
|
|
|
|
'("GstBuffer*" "outbuf")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual transform_ip
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "buf")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-virtual prepare_output_buffer
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("GstBuffer*" "input")
|
|
|
|
'("gint" "size")
|
|
|
|
'("GstCaps*" "caps")
|
|
|
|
'("GstBuffer**" "buf")
|
|
|
|
)
|
|
|
|
)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
2007-06-08 15:16:08 +00:00
|
|
|
(define-virtual src_event
|
|
|
|
(of-object "GstBaseTransform")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstEvent*" "event")
|
|
|
|
)
|
|
|
|
)
|
2006-01-01 21:18:28 +00:00
|
|
|
|
|
|
|
;; From ../gstreamer/libs/gst/base/gstcollectpads.h
|
|
|
|
|
|
|
|
(define-function gst_collect_pads_get_type
|
|
|
|
(c-name "gst_collect_pads_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
2006-10-20 10:41:46 +00:00
|
|
|
(define-function collect_pads_new
|
2006-01-01 21:18:28 +00:00
|
|
|
(c-name "gst_collect_pads_new")
|
|
|
|
(is-constructor-of "GstCollectPads")
|
|
|
|
(return-type "GstCollectPads*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_function
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_set_function")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GstCollectPadsFunction" "func")
|
|
|
|
'("gpointer" "user_data")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method add_pad
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_add_pad")
|
|
|
|
(return-type "GstCollectData*")
|
|
|
|
(parameters
|
|
|
|
'("GstPad*" "pad")
|
|
|
|
'("guint" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2007-06-08 15:16:08 +00:00
|
|
|
(define-method add_pad_full
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_add_pad_full")
|
|
|
|
(return-type "GstCollectData*")
|
|
|
|
(parameters
|
|
|
|
'("GstPad*" "pad")
|
|
|
|
'("guint" "size")
|
|
|
|
'("GstCollectDataDestroyNotify" "destroy_notify")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
(define-method remove_pad
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_remove_pad")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstPad*" "pad")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method is_active
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_is_active")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GstPad*" "pad")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method collect
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_collect")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method collect_range
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_collect_range")
|
|
|
|
(return-type "GstFlowReturn")
|
|
|
|
(parameters
|
|
|
|
'("guint64" "offset")
|
|
|
|
'("guint" "length")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method start
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_start")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method stop
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_stop")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
2006-06-09 10:12:16 +00:00
|
|
|
(define-method set_flushing
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_set_flushing")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("gboolean" "flushing")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
(define-method peek
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_peek")
|
|
|
|
(return-type "GstBuffer*")
|
|
|
|
(parameters
|
|
|
|
'("GstCollectData*" "data")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method pop
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_pop")
|
|
|
|
(return-type "GstBuffer*")
|
|
|
|
(parameters
|
|
|
|
'("GstCollectData*" "data")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method available
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_available")
|
|
|
|
(return-type "guint")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method read
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_read")
|
|
|
|
(return-type "guint")
|
|
|
|
(parameters
|
|
|
|
'("GstCollectData*" "data")
|
|
|
|
'("guint8**" "bytes")
|
|
|
|
'("guint" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method flush
|
|
|
|
(of-object "GstCollectPads")
|
|
|
|
(c-name "gst_collect_pads_flush")
|
|
|
|
(return-type "guint")
|
|
|
|
(parameters
|
|
|
|
'("GstCollectData*" "data")
|
|
|
|
'("guint" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; From ../gstreamer/libs/gst/base/gstpushsrc.h
|
|
|
|
|
2007-02-27 10:44:21 +00:00
|
|
|
;(define-function gst_push_src_get_type
|
|
|
|
; (c-name "gst_push_src_get_type")
|
|
|
|
; (return-type "GType")
|
|
|
|
;)
|
|
|
|
|
|
|
|
;(define-virtual create
|
|
|
|
; (of-object "GstPushSrc")
|
|
|
|
; (return-type "GstFlowReturn")
|
|
|
|
; (parameters
|
|
|
|
; '("GstBuffer**" "buf")
|
|
|
|
; )
|
|
|
|
;)
|
2006-01-05 14:49:27 +00:00
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
;; From ../gstreamer/libs/gst/base/gsttypefindhelper.h
|
|
|
|
|
2006-03-10 11:22:31 +00:00
|
|
|
(define-function type_find_helper
|
2006-01-01 21:18:28 +00:00
|
|
|
(c-name "gst_type_find_helper")
|
|
|
|
(return-type "GstCaps*")
|
|
|
|
(parameters
|
|
|
|
'("GstPad*" "src")
|
|
|
|
'("guint64" "size")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-03-10 11:22:31 +00:00
|
|
|
(define-function type_find_helper_for_buffer
|
|
|
|
(c-name "gst_type_find_helper_for_buffer")
|
|
|
|
(return-type "GstCaps*")
|
|
|
|
(parameters
|
|
|
|
'("GstObject*" "obj")
|
|
|
|
'("GstBuffer*" "buf")
|
|
|
|
'("GstTypeFindProbability*" "prob")
|
|
|
|
)
|
|
|
|
)
|
2006-03-14 12:56:46 +00:00
|
|
|
|
|
|
|
(define-function type_find_helper_get_range
|
|
|
|
(c-name "gst_type_find_helper_get_range")
|
|
|
|
(return-type "GstCaps*")
|
|
|
|
(parameters
|
|
|
|
'("GstObject*" "obj")
|
|
|
|
'("GstTypeFindHelperGetRangeFunction" "func")
|
|
|
|
'("guint64" "size")
|
|
|
|
'("GstTypeFindProbability*" "prob")
|
|
|
|
)
|
|
|
|
)
|