mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
Original commit message from CVS: * gstreamer/gstreamer.defs (element_link_many): This is function and not a method, despite popular belief (gst_element_factory_make): Make it the constructor of GstElement, so we can avoid dirty hacks. * gstreamer/gstreamer.override (_wrap_gst_element_link_many): Wrap (_wrap_gst_element_link_many): Wrap * gstreamer/common.defs: * gstreamer/common.override: * gstreamer/Makefile.am: Beginning of reorganization, to include gstreamer.defs and override (eg, not auto generate them) * examples/gstreamer/cp.py: Prettify and pythonify. Will do the other examples later * gstreamer/gstreamer.py: Backwards compatibility module * gstreamer/gstreamermodule.c: * gstreamer/Makefile.am: Rename the module to gst
71 lines
1 KiB
Scheme
71 lines
1 KiB
Scheme
;; -*- scheme -*-
|
|
;;
|
|
;; Boxed types
|
|
;;
|
|
|
|
(define-boxed Buffer
|
|
(in-module "Gst")
|
|
(c-name "GstBuffer")
|
|
(gtype-id "GST_TYPE_BUFFER")
|
|
)
|
|
|
|
(define-boxed Caps
|
|
(in-module "Gst")
|
|
(c-name "GstCaps")
|
|
(gtype-id "GST_TYPE_CAPS")
|
|
)
|
|
|
|
(define-boxed Event
|
|
(in-module "Gst")
|
|
(c-name "GstEvent")
|
|
(gtype-id "GST_TYPE_EVENT")
|
|
)
|
|
|
|
;;
|
|
;; Accelerate common GstBin iterate loop
|
|
;;
|
|
|
|
(define-function iterate_bin_all
|
|
(c-name "iterate_bin_all")
|
|
(return-type "none")
|
|
(parameters
|
|
'("GstBin*" "bin")
|
|
)
|
|
)
|
|
|
|
(define-function add_iterate_bin
|
|
(c-name "add_iterate_bin")
|
|
(return-type "guint")
|
|
(parameters
|
|
'("GstBin*" "bin")
|
|
)
|
|
)
|
|
|
|
(define-function remove_iterate_bin
|
|
(c-name "remove_iterate_bin")
|
|
(return-type "none")
|
|
(parameters
|
|
'("guint" "id")
|
|
)
|
|
)
|
|
|
|
;;
|
|
;; HACK
|
|
;;
|
|
|
|
(define-method get_data
|
|
(of-object "GstBuffer")
|
|
(c-name "gst_buffer_get_data")
|
|
(return-type "char*")
|
|
)
|
|
|
|
(define-method set_data
|
|
(of-object "GstBuffer")
|
|
(c-name "gst_buffer_set_data")
|
|
(return-type "none")
|
|
(parameters
|
|
'("char*" "data")
|
|
)
|
|
)
|
|
|
|
|