mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
gst: Update .defs to new API
This commit is contained in:
parent
64e9d7f25b
commit
589e66102f
5 changed files with 219 additions and 2 deletions
|
@ -455,6 +455,17 @@
|
|||
(return-type "gboolean")
|
||||
)
|
||||
|
||||
(define-method new_seamless_segment
|
||||
(of-object "GstBaseSrc")
|
||||
(c-name "gst_base_src_new_seamless_segment")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("gint64" "start")
|
||||
'("gint64" "stop")
|
||||
'("gint64" "position")
|
||||
)
|
||||
)
|
||||
|
||||
(define-virtual get_caps
|
||||
(of-object "GstBaseSrc")
|
||||
(return-type "GstCaps*")
|
||||
|
@ -803,6 +814,16 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method set_clip_function
|
||||
(of-object "GstCollectPads")
|
||||
(c-name "gst_collect_pads_set_clip_function")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GstCollectPadsClipFunction" "clipfunc")
|
||||
'("gpointer" "user_data")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method add_pad
|
||||
(of-object "GstCollectPads")
|
||||
(c-name "gst_collect_pads_add_pad")
|
||||
|
@ -996,6 +1017,18 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-function type_find_helper_get_range_ext
|
||||
(c-name "gst_type_find_helper_get_range_ext")
|
||||
(return-type "GstCaps*")
|
||||
(parameters
|
||||
'("GstObject*" "obj")
|
||||
'("GstTypeFindHelperGetRangeFunction" "func")
|
||||
'("guint64" "size")
|
||||
'("const-gchar*" "extension")
|
||||
'("GstTypeFindProbability*" "prob")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function type_find_helper_for_extension
|
||||
(c-name "gst_type_find_helper_for_extension")
|
||||
(return-type "GstCaps*")
|
||||
|
|
|
@ -606,11 +606,12 @@
|
|||
'("tag" "GST_EVENT_TAG")
|
||||
'("filler" "GST_EVENT_FILLER")
|
||||
'("buffersize" "GST_EVENT_BUFFERSIZE")
|
||||
'("sink-message" "GST_EVENT_SINK_MESSAGE")
|
||||
'("qos" "GST_EVENT_QOS")
|
||||
'("seek" "GST_EVENT_SEEK")
|
||||
'("navigation" "GST_EVENT_NAVIGATION")
|
||||
'("latency" "GST_EVENT_LATENCY")
|
||||
'("gst-event-step" "GST_EVENT_STEP")
|
||||
'("step" "GST_EVENT_STEP")
|
||||
'("custom-upstream" "GST_EVENT_CUSTOM_UPSTREAM")
|
||||
'("custom-downstream" "GST_EVENT_CUSTOM_DOWNSTREAM")
|
||||
'("custom-downstream-oob" "GST_EVENT_CUSTOM_DOWNSTREAM_OOB")
|
||||
|
@ -1013,7 +1014,8 @@
|
|||
(c-name "GstPluginFlags")
|
||||
(gtype-id "GST_TYPE_PLUGIN_FLAGS")
|
||||
(values
|
||||
'("d" "GST_PLUGIN_FLAG_CACHED")
|
||||
'("cached" "GST_PLUGIN_FLAG_CACHED")
|
||||
'("blacklisted" "GST_PLUGIN_FLAG_BLACKLISTED")
|
||||
)
|
||||
)
|
||||
|
||||
|
|
126
gst/gst.defs
126
gst/gst.defs
|
@ -776,6 +776,16 @@
|
|||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method set_value
|
||||
(of-object "GstCaps")
|
||||
(c-name "gst_caps_set_value")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("const-char*" "field")
|
||||
'("const-GValue*" "value")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method set_simple
|
||||
(of-object "GstCaps")
|
||||
(c-name "gst_caps_set_simple")
|
||||
|
@ -4385,6 +4395,12 @@
|
|||
(return-type "const-GstCaps*")
|
||||
)
|
||||
|
||||
(define-method get_caps_reffed
|
||||
(of-object "GstPad")
|
||||
(c-name "gst_pad_get_caps_reffed")
|
||||
(return-type "GstCaps*")
|
||||
)
|
||||
|
||||
(define-method get_caps
|
||||
(of-object "GstPad")
|
||||
(c-name "gst_pad_get_caps")
|
||||
|
@ -4419,6 +4435,12 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method peer_get_caps_reffed
|
||||
(of-object "GstPad")
|
||||
(c-name "gst_pad_peer_get_caps_reffed")
|
||||
(return-type "GstCaps*")
|
||||
)
|
||||
|
||||
(define-method peer_get_caps
|
||||
(of-object "GstPad")
|
||||
(c-name "gst_pad_peer_get_caps")
|
||||
|
@ -4775,6 +4797,77 @@
|
|||
'("gpointer" "user_data")
|
||||
)
|
||||
)
|
||||
(define-function util_greatest_common_divisor
|
||||
(c-name "gst_util_greatest_common_divisor")
|
||||
(return-type "gint")
|
||||
(parameters
|
||||
'("gint" "a")
|
||||
'("gint" "b")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function util_fraction_to_double
|
||||
(c-name "gst_util_fraction_to_double")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint" "src_n")
|
||||
'("gint" "src_d")
|
||||
'("gdouble*" "dest")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function util_double_to_fraction
|
||||
(c-name "gst_util_double_to_fraction")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gdouble" "src")
|
||||
'("gint*" "dest_n")
|
||||
'("gint*" "dest_d")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function util_fraction_multiply
|
||||
(c-name "gst_util_fraction_multiply")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("gint" "a_n")
|
||||
'("gint" "a_d")
|
||||
'("gint" "b_n")
|
||||
'("gint" "b_d")
|
||||
'("gint*" "res_n")
|
||||
'("gint*" "res_d")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function util_fraction_add
|
||||
(c-name "gst_util_fraction_add")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("gint" "a_n")
|
||||
'("gint" "a_d")
|
||||
'("gint" "b_n")
|
||||
'("gint" "b_d")
|
||||
'("gint*" "res_n")
|
||||
'("gint*" "res_d")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function event_new_sink_message
|
||||
(c-name "gst_event_new_sink_message")
|
||||
(return-type "GstEvent*")
|
||||
(parameters
|
||||
'("struct-GstMessage*" "msg")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method parse_sink_message
|
||||
(of-object "GstEvent")
|
||||
(c-name "gst_event_parse_sink_message")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("struct-GstMessage**" "msg")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function pad_load_and_link
|
||||
(c-name "gst_pad_load_and_link")
|
||||
|
@ -5200,6 +5293,14 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-function plugin_feature_list_copy
|
||||
(c-name "gst_plugin_feature_list_copy")
|
||||
(return-type "GList*")
|
||||
(parameters
|
||||
'("GList*" "list")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method check_version
|
||||
(of-object "GstPluginFeature")
|
||||
(c-name "gst_plugin_feature_check_version")
|
||||
|
@ -5963,6 +6064,13 @@
|
|||
'("const-gchar*" "name")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method get_feature_list_cookie
|
||||
(of-object "GstRegistry")
|
||||
(c-name "gst_registry_get_feature_list_cookie")
|
||||
(return-type "guint32")
|
||||
)
|
||||
|
||||
(define-method add_feature
|
||||
(of-object "GstRegistry")
|
||||
(c-name "gst_registry_add_feature")
|
||||
|
@ -6497,6 +6605,24 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method id_has_field
|
||||
(of-object "GstStructure")
|
||||
(c-name "gst_structure_id_has_field")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("GQuark" "field")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method id_has_field_typed
|
||||
(of-object "GstStructure")
|
||||
(c-name "gst_structure_id_has_field_typed")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("GQuark" "field")
|
||||
'("GType" "type")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method has_field
|
||||
(of-object "GstStructure")
|
||||
|
|
36
gst/tag.defs
36
gst/tag.defs
|
@ -216,4 +216,40 @@
|
|||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-function get_language_codes
|
||||
(c-name "gst_tag_get_language_codes")
|
||||
(return-type "gchar**")
|
||||
)
|
||||
|
||||
(define-function get_language_name
|
||||
(c-name "gst_tag_get_language_name")
|
||||
(return-type "const-gchar*")
|
||||
(parameters
|
||||
'("const-gchar*" "language_code")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function get_language_code_iso_639_1
|
||||
(c-name "gst_tag_get_language_code_iso_639_1")
|
||||
(return-type "const-gchar*")
|
||||
(parameters
|
||||
'("const-gchar*" "lang_code")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function get_language_code_iso_639_2B
|
||||
(c-name "gst_tag_get_language_code_iso_639_2B")
|
||||
(return-type "const-gchar*")
|
||||
(parameters
|
||||
'("const-gchar*" "lang_code")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function get_language_code_iso_639_2T
|
||||
(c-name "gst_tag_get_language_code_iso_639_2T")
|
||||
(return-type "const-gchar*")
|
||||
(parameters
|
||||
'("const-gchar*" "lang_code")
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@
|
|||
'("y41b" "GST_VIDEO_FORMAT_Y41B")
|
||||
'("y42b" "GST_VIDEO_FORMAT_Y42B")
|
||||
'("yvyu" "GST_VIDEO_FORMAT_YVYU")
|
||||
'("y444" "GST_VIDEO_FORMAT_Y444")
|
||||
'("v210" "GST_VIDEO_FORMAT_v210")
|
||||
'("v216" "GST_VIDEO_FORMAT_v216")
|
||||
'("nv12" "GST_VIDEO_FORMAT_NV12")
|
||||
'("nv21" "GST_VIDEO_FORMAT_NV21")
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -279,4 +284,19 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-function event_new_still_frame
|
||||
(c-name "gst_video_event_new_still_frame")
|
||||
(return-type "GstEvent*")
|
||||
(parameters
|
||||
'("gboolean" "in_still")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function event_parse_still_frame
|
||||
(c-name "gst_video_event_parse_still_frame")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("GstEvent*" "event")
|
||||
'("gboolean*" "in_still")
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue