Update bindings

This commit is contained in:
Olivier Crête 2020-11-04 17:21:01 -05:00
parent 9fdd11cda3
commit 1209ab54f3
27 changed files with 2360 additions and 809 deletions

File diff suppressed because it is too large Load diff

View file

@ -622,7 +622,10 @@ you must check the caps on the samples to get the actual used caps.</doc>
line="1113">a #GstAppSink</doc>
<type name="AppSink" c:type="GstAppSink*"/>
</instance-parameter>
<parameter name="caps" transfer-ownership="none">
<parameter name="caps"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="gst-libs/gst/app/gstappsink.c"
line="1114">caps to set</doc>
@ -1866,7 +1869,10 @@ buffers must match the caps or left NULL.</doc>
line="1422">a #GstAppSrc</doc>
<type name="AppSrc" c:type="GstAppSrc*"/>
</instance-parameter>
<parameter name="caps" transfer-ownership="none">
<parameter name="caps"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="gst-libs/gst/app/gstappsrc.c"
line="1423">caps to set</doc>

View file

@ -15444,6 +15444,22 @@ channel positions.</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="gstaudio">
<doc xml:space="preserve"
filename="gst-libs/gst/audio/audio.c"
line="19">This library contains some helper functions for audio elements.</doc>
</docsection>
<docsection name="gstaudiochannels">
<doc xml:space="preserve"
filename="gst-libs/gst/audio/audio-channels.c"
line="19">This library contains some helper functions for multichannel audio.</doc>
</docsection>
<docsection name="gstaudioiec61937">
<doc xml:space="preserve"
filename="gst-libs/gst/audio/gstaudioiec61937.c"
line="22">This module contains some helper functions for encapsulating various
audio formats in IEC 61937 headers and padding.</doc>
</docsection>
<function name="stream_volume_convert_volume"
c:identifier="gst_stream_volume_convert_volume"
moved-to="StreamVolume.convert_volume">

View file

@ -1593,7 +1593,7 @@ to produce the next output buffer. This should only be called from
a #GstAggregator::samples-selected handler, and can be used to precisely
control aggregating parameters for a given set of input samples.</doc>
<source-position filename="libs/gst/base/gstaggregator.h" line="350"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstaggregator.c"
line="327">The sample that is about to be aggregated. It may hold a #GstBuffer
@ -1862,6 +1862,7 @@ Unref the @allocator after use it.</doc>
direction="out"
caller-allocates="0"
transfer-ownership="full"
nullable="1"
optional="1"
allow-none="1">
<doc xml:space="preserve"
@ -1873,7 +1874,7 @@ used</doc>
<parameter name="params"
direction="out"
caller-allocates="1"
transfer-ownership="full"
transfer-ownership="none"
optional="1"
allow-none="1">
<doc xml:space="preserve"
@ -1887,7 +1888,7 @@ used</doc>
<method name="get_buffer_pool"
c:identifier="gst_aggregator_get_buffer_pool">
<source-position filename="libs/gst/base/gstaggregator.h" line="402"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstaggregator.c"
line="3609">the instance of the #GstBufferPool used
@ -1961,7 +1962,7 @@ to produce the next output buffer. This should only be called from
a #GstAggregator::samples-selected handler, and can be used to precisely
control aggregating parameters for a given set of input samples.</doc>
<source-position filename="libs/gst/base/gstaggregator.h" line="417"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstaggregator.c"
line="327">The sample that is about to be aggregated. It may hold a #GstBuffer
@ -2671,7 +2672,7 @@ _finish_buffer from inside that function.</doc>
<callback name="peek_next_sample">
<source-position filename="libs/gst/base/gstaggregator.h"
line="350"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstaggregator.c"
line="327">The sample that is about to be aggregated. It may hold a #GstBuffer
@ -2804,7 +2805,7 @@ gst_aggregator_pad_pop_buffer().</doc>
</method>
<method name="peek_buffer" c:identifier="gst_aggregator_pad_peek_buffer">
<source-position filename="libs/gst/base/gstaggregator.h" line="113"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstaggregator.c"
line="3445">A reference to the buffer in @pad or
@ -2826,7 +2827,7 @@ usage.</doc>
filename="libs/gst/base/gstaggregator.c"
line="3361">Steal the ref to the buffer currently queued in @pad.</doc>
<source-position filename="libs/gst/base/gstaggregator.h" line="110"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstaggregator.c"
line="3367">The buffer in @pad or NULL if no buffer was
@ -3790,7 +3791,7 @@ Things that subclass need to take care of:
c:identifier="gst_base_parse_add_index_entry">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1975">Adds an entry to the index associating @offset to @ts. It is recommended
line="1973">Adds an entry to the index associating @offset to @ts. It is recommended
to only add keyframe entries. @force allows to bypass checks, such as
whether the stream is (upstream) seekable, another entry is already "close"
to the new entry, etc.</doc>
@ -3798,38 +3799,38 @@ to the new entry, etc.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1988">#gboolean indicating whether entry was added</doc>
line="1986">#gboolean indicating whether entry was added</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1977">#GstBaseParse.</doc>
line="1975">#GstBaseParse.</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="offset" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1978">offset of entry</doc>
line="1976">offset of entry</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="ts" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1979">timestamp associated with offset</doc>
line="1977">timestamp associated with offset</doc>
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1980">whether entry refers to keyframe</doc>
line="1978">whether entry refers to keyframe</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="force" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1981">add entry disregarding sanity checks</doc>
line="1979">add entry disregarding sanity checks</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@ -3838,37 +3839,37 @@ to the new entry, etc.</doc>
c:identifier="gst_base_parse_convert_default">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1737">Default implementation of #GstBaseParseClass.convert().</doc>
line="1735">Default implementation of #GstBaseParseClass.convert().</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="345"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1747">%TRUE if conversion was successful.</doc>
line="1745">%TRUE if conversion was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1739">#GstBaseParse.</doc>
line="1737">#GstBaseParse.</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="src_format" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1740">#GstFormat describing the source format.</doc>
line="1738">#GstFormat describing the source format.</doc>
<type name="Gst.Format" c:type="GstFormat"/>
</parameter>
<parameter name="src_value" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1741">Source value to be converted.</doc>
line="1739">Source value to be converted.</doc>
<type name="gint64" c:type="gint64"/>
</parameter>
<parameter name="dest_format" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1742">#GstFormat defining the converted format.</doc>
line="1740">#GstFormat defining the converted format.</doc>
<type name="Gst.Format" c:type="GstFormat"/>
</parameter>
<parameter name="dest_value"
@ -3877,7 +3878,7 @@ to the new entry, etc.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="1743">Pointer where the conversion result will be put.</doc>
line="1741">Pointer where the conversion result will be put.</doc>
<type name="gint64" c:type="gint64*"/>
</parameter>
</parameters>
@ -3885,7 +3886,7 @@ to the new entry, etc.</doc>
<method name="drain" c:identifier="gst_base_parse_drain" version="1.12">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2756">Drains the adapter until it is empty. It decreases the min_frame_size to
line="2754">Drains the adapter until it is empty. It decreases the min_frame_size to
match the current adapter size and calls chain method until the adapter
is emptied or chain returns with error.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="320"/>
@ -3896,7 +3897,7 @@ is emptied or chain returns with error.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2758">a #GstBaseParse</doc>
line="2756">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
</parameters>
@ -3904,7 +3905,7 @@ is emptied or chain returns with error.</doc>
<method name="finish_frame" c:identifier="gst_base_parse_finish_frame">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2660">Collects parsed data and pushes this downstream.
line="2658">Collects parsed data and pushes this downstream.
Source pad caps must be set when this is called.
If @frame's out_buffer is set, that will be used as subsequent frame data.
@ -3919,26 +3920,26 @@ caller retains ownership of @frame.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2678">a #GstFlowReturn that should be escalated to caller (of caller)</doc>
line="2676">a #GstFlowReturn that should be escalated to caller (of caller)</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2662">a #GstBaseParse</doc>
line="2660">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2663">a #GstBaseParseFrame</doc>
line="2661">a #GstBaseParseFrame</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2664">consumed input data represented by frame</doc>
line="2662">consumed input data represented by frame</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
@ -3948,7 +3949,7 @@ caller retains ownership of @frame.</doc>
version="1.6">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4992">Sets the parser subclass's tags and how they should be merged with any
line="4988">Sets the parser subclass's tags and how they should be merged with any
upstream stream tags. This will override any tags previously-set
with gst_base_parse_merge_tags().
@ -3962,7 +3963,7 @@ not required to use this and can still do tag handling on its own.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4994">a #GstBaseParse</doc>
line="4990">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="tags"
@ -3971,14 +3972,14 @@ not required to use this and can still do tag handling on its own.</doc>
allow-none="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4995">a #GstTagList to merge, or NULL to unset
line="4991">a #GstTagList to merge, or NULL to unset
previously-set tags</doc>
<type name="Gst.TagList" c:type="GstTagList*"/>
</parameter>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4997">the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE</doc>
line="4993">the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE</doc>
<type name="Gst.TagMergeMode" c:type="GstTagMergeMode"/>
</parameter>
</parameters>
@ -3986,7 +3987,7 @@ not required to use this and can still do tag handling on its own.</doc>
<method name="push_frame" c:identifier="gst_base_parse_push_frame">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2446">Pushes the frame's buffer downstream, sends any pending events and
line="2444">Pushes the frame's buffer downstream, sends any pending events and
does some timestamp and segment handling. Takes ownership of
frame's buffer, though caller retains ownership of @frame.
@ -3995,20 +3996,20 @@ This must be called with sinkpad STREAM_LOCK held.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2457">#GstFlowReturn</doc>
line="2455">#GstFlowReturn</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2448">#GstBaseParse.</doc>
line="2446">#GstBaseParse.</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="2449">a #GstBaseParseFrame</doc>
line="2447">a #GstBaseParseFrame</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</parameter>
</parameters>
@ -4017,7 +4018,7 @@ This must be called with sinkpad STREAM_LOCK held.</doc>
c:identifier="gst_base_parse_set_average_bitrate">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3882">Optionally sets the average bitrate detected in media (if non-zero),
line="3878">Optionally sets the average bitrate detected in media (if non-zero),
e.g. based on metadata, as it will be posted to the application.
By default, announced average bitrate is estimated. The average bitrate
@ -4032,13 +4033,13 @@ a seek position, if there's no index and the format is syncable
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3884">#GstBaseParse.</doc>
line="3880">#GstBaseParse.</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="bitrate" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3885">average bitrate in bits/second</doc>
line="3881">average bitrate in bits/second</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@ -4046,7 +4047,7 @@ a seek position, if there's no index and the format is syncable
<method name="set_duration" c:identifier="gst_base_parse_set_duration">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3831">Sets the duration of the currently playing media. Subclass can use this
line="3827">Sets the duration of the currently playing media. Subclass can use this
when it is able to determine duration and/or notices a change in the media
duration. Alternatively, if @interval is non-zero (default), then stream
duration is determined based on estimated bitrate, and updated every @interval
@ -4059,25 +4060,25 @@ frames.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3833">#GstBaseParse.</doc>
line="3829">#GstBaseParse.</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="fmt" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3834">#GstFormat.</doc>
line="3830">#GstFormat.</doc>
<type name="Gst.Format" c:type="GstFormat"/>
</parameter>
<parameter name="duration" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3835">duration value.</doc>
line="3831">duration value.</doc>
<type name="gint64" c:type="gint64"/>
</parameter>
<parameter name="interval" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3836">how often to update the duration estimate based on bitrate, or 0.</doc>
line="3832">how often to update the duration estimate based on bitrate, or 0.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
@ -4086,7 +4087,7 @@ frames.</doc>
c:identifier="gst_base_parse_set_frame_rate">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3920">If frames per second is configured, parser can take care of buffer duration
line="3916">If frames per second is configured, parser can take care of buffer duration
and timestamping. When performing segment clipping, or seeking to a specific
location, a corresponding decoder might need an initial @lead_in and a
following @lead_out number of frames to ensure the desired segment is
@ -4099,31 +4100,31 @@ entirely filled upon decoding.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3922">the #GstBaseParse to set</doc>
line="3918">the #GstBaseParse to set</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="fps_num" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3923">frames per second (numerator).</doc>
line="3919">frames per second (numerator).</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="fps_den" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3924">frames per second (denominator).</doc>
line="3920">frames per second (denominator).</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="lead_in" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3925">frames needed before a segment for subsequent decode</doc>
line="3921">frames needed before a segment for subsequent decode</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="lead_out" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3926">frames needed after a segment</doc>
line="3922">frames needed after a segment</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@ -4132,7 +4133,7 @@ entirely filled upon decoding.</doc>
c:identifier="gst_base_parse_set_has_timing_info">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3977">Set if frames carry timing information which the subclass can (generally)
line="3973">Set if frames carry timing information which the subclass can (generally)
parse and provide. In particular, intrinsic (rather than estimated) time
can be obtained following a seek.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="317"/>
@ -4143,13 +4144,13 @@ can be obtained following a seek.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3979">a #GstBaseParse</doc>
line="3975">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="has_timing" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3980">whether frames carry timing information</doc>
line="3976">whether frames carry timing information</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@ -4157,7 +4158,7 @@ can be obtained following a seek.</doc>
<method name="set_infer_ts" c:identifier="gst_base_parse_set_infer_ts">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4048">By default, the base class might try to infer PTS from DTS and vice
line="4044">By default, the base class might try to infer PTS from DTS and vice
versa. While this is generally correct for audio data, it may not
be otherwise. Sub-classes implementing such formats should disable
timestamp inferring.</doc>
@ -4169,13 +4170,13 @@ timestamp inferring.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4050">a #GstBaseParse</doc>
line="4046">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="infer_ts" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4051">%TRUE if parser should infer DTS/PTS from each other</doc>
line="4047">%TRUE if parser should infer DTS/PTS from each other</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@ -4183,7 +4184,7 @@ timestamp inferring.</doc>
<method name="set_latency" c:identifier="gst_base_parse_set_latency">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4065">Sets the minimum and maximum (which may likely be equal) latency introduced
line="4061">Sets the minimum and maximum (which may likely be equal) latency introduced
by the parsing process. If there is such a latency, which depends on the
particular parsing of the format, it typically corresponds to 1 frame duration.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="341"/>
@ -4194,19 +4195,19 @@ particular parsing of the format, it typically corresponds to 1 frame duration.<
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4067">a #GstBaseParse</doc>
line="4063">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="min_latency" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4068">minimum parse latency</doc>
line="4064">minimum parse latency</doc>
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</parameter>
<parameter name="max_latency" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4069">maximum parse latency</doc>
line="4065">maximum parse latency</doc>
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</parameter>
</parameters>
@ -4215,7 +4216,7 @@ particular parsing of the format, it typically corresponds to 1 frame duration.<
c:identifier="gst_base_parse_set_min_frame_size">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3902">Subclass can use this function to tell the base class that it needs to
line="3898">Subclass can use this function to tell the base class that it needs to
be given buffers of at least @min_size bytes.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="314"/>
<return-value transfer-ownership="none">
@ -4225,13 +4226,13 @@ be given buffers of at least @min_size bytes.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3904">#GstBaseParse.</doc>
line="3900">#GstBaseParse.</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="min_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3905">Minimum size in bytes of the data that this base class should
line="3901">Minimum size in bytes of the data that this base class should
give to subclass.</doc>
<type name="guint" c:type="guint"/>
</parameter>
@ -4241,7 +4242,7 @@ be given buffers of at least @min_size bytes.</doc>
c:identifier="gst_base_parse_set_passthrough">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4009">Set if the nature of the format or configuration does not allow (much)
line="4005">Set if the nature of the format or configuration does not allow (much)
parsing, and the parser should operate in passthrough mode (which only
applies when operating in push mode). That is, incoming buffers are
pushed through unmodified, i.e. no #GstBaseParseClass.handle_frame()
@ -4256,13 +4257,13 @@ passthrough semantics in #GstBaseParseClass.pre_push_frame().</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4011">a #GstBaseParse</doc>
line="4007">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="passthrough" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4012">%TRUE if parser should run in passthrough mode</doc>
line="4008">%TRUE if parser should run in passthrough mode</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@ -4271,7 +4272,7 @@ passthrough semantics in #GstBaseParseClass.pre_push_frame().</doc>
c:identifier="gst_base_parse_set_pts_interpolation">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4029">By default, the base class will guess PTS timestamps using a simple
line="4025">By default, the base class will guess PTS timestamps using a simple
interpolation (previous timestamp + duration), which is incorrect for
data streams with reordering, where PTS can go backward. Sub-classes
implementing such formats should disable PTS interpolation.</doc>
@ -4283,13 +4284,13 @@ implementing such formats should disable PTS interpolation.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4031">a #GstBaseParse</doc>
line="4027">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="pts_interpolate" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4032">%TRUE if parser should interpolate PTS timestamps</doc>
line="4028">%TRUE if parser should interpolate PTS timestamps</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@ -4297,7 +4298,7 @@ implementing such formats should disable PTS interpolation.</doc>
<method name="set_syncable" c:identifier="gst_base_parse_set_syncable">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3993">Set if frame starts can be identified. This is set by default and
line="3989">Set if frame starts can be identified. This is set by default and
determines whether seeking based on bitrate averages
is possible for a format/stream.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="323"/>
@ -4308,13 +4309,13 @@ is possible for a format/stream.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3995">a #GstBaseParse</doc>
line="3991">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="syncable" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="3996">set if frame starts can be identified</doc>
line="3992">set if frame starts can be identified</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@ -4324,7 +4325,7 @@ is possible for a format/stream.</doc>
version="1.2">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4952">This function should only be called from a @handle_frame implementation.
line="4948">This function should only be called from a @handle_frame implementation.
#GstBaseParse creates initial timestamps for frames by using the last
timestamp seen in the stream before the frame starts. In certain
@ -4340,13 +4341,13 @@ into the frame data that the picture starts.</doc>
<instance-parameter name="parse" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4954">a #GstBaseParse</doc>
line="4950">a #GstBaseParse</doc>
<type name="BaseParse" c:type="GstBaseParse*"/>
</instance-parameter>
<parameter name="offset" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="4955">offset into current buffer</doc>
line="4951">offset into current buffer</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
@ -4356,7 +4357,7 @@ into the frame data that the picture starts.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="552">If set to %TRUE, baseparse will unconditionally force parsing of the
line="551">If set to %TRUE, baseparse will unconditionally force parsing of the
incoming data. This can be required in the rare cases where the incoming
side-data (caps, pts, dts, ...) is not trusted by the user and wants to
force validation and parsing of the incoming data.
@ -4679,14 +4680,14 @@ of each frame's processing, i.e. parsing virtual method invocation sequence.</do
<constructor name="new" c:identifier="gst_base_parse_frame_new">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="749">Allocates a new #GstBaseParseFrame. This function is mainly for bindings,
line="748">Allocates a new #GstBaseParseFrame. This function is mainly for bindings,
elements written in C should usually allocate the frame on the stack and
then use gst_base_parse_frame_init() to initialise it.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="287"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="761">a newly-allocated #GstBaseParseFrame. Free with
line="760">a newly-allocated #GstBaseParseFrame. Free with
gst_base_parse_frame_free() when no longer needed.</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</return-value>
@ -4694,19 +4695,19 @@ then use gst_base_parse_frame_init() to initialise it.</doc>
<parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="751">a #GstBuffer</doc>
line="750">a #GstBuffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="752">the flags</doc>
line="751">the flags</doc>
<type name="BaseParseFrameFlags" c:type="GstBaseParseFrameFlags"/>
</parameter>
<parameter name="overhead" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="753">number of bytes in this frame which should be counted as
line="752">number of bytes in this frame which should be counted as
metadata overhead, ie. not used to calculate the average bitrate.
Set to -1 to mark the entire frame as metadata. If in doubt, set to 0.</doc>
<type name="gint" c:type="gint"/>
@ -4718,19 +4719,19 @@ then use gst_base_parse_frame_init() to initialise it.</doc>
version="1.12.1">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="680">Copies a #GstBaseParseFrame.</doc>
line="679">Copies a #GstBaseParseFrame.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="294"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="686">A copy of @frame</doc>
line="685">A copy of @frame</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</return-value>
<parameters>
<instance-parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="682">a #GstBaseParseFrame</doc>
line="681">a #GstBaseParseFrame</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</instance-parameter>
</parameters>
@ -4738,7 +4739,7 @@ then use gst_base_parse_frame_init() to initialise it.</doc>
<method name="free" c:identifier="gst_base_parse_frame_free">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="704">Frees the provided @frame.</doc>
line="703">Frees the provided @frame.</doc>
<source-position filename="libs/gst/base/gstbaseparse.h" line="296"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
@ -4747,7 +4748,7 @@ then use gst_base_parse_frame_init() to initialise it.</doc>
<instance-parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="706">A #GstBaseParseFrame</doc>
line="705">A #GstBaseParseFrame</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</instance-parameter>
</parameters>
@ -4755,7 +4756,7 @@ then use gst_base_parse_frame_init() to initialise it.</doc>
<method name="init" c:identifier="gst_base_parse_frame_init">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="731">Sets a #GstBaseParseFrame to initial state. Currently this means
line="730">Sets a #GstBaseParseFrame to initial state. Currently this means
all public fields are zero-ed and a private flag is set to make
sure gst_base_parse_frame_free() only frees the contents but not
the actual frame. Use this function to initialise a #GstBaseParseFrame
@ -4768,7 +4769,7 @@ allocated on the stack.</doc>
<instance-parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbaseparse.c"
line="733">#GstBaseParseFrame.</doc>
line="732">#GstBaseParseFrame.</doc>
<type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
</instance-parameter>
</parameters>
@ -7047,6 +7048,7 @@ Unref the @allocator after usage.</doc>
direction="out"
caller-allocates="0"
transfer-ownership="full"
nullable="1"
optional="1"
allow-none="1">
<doc xml:space="preserve"
@ -7058,13 +7060,12 @@ used</doc>
<parameter name="params"
direction="out"
caller-allocates="1"
transfer-ownership="full"
transfer-ownership="none"
optional="1"
allow-none="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasesrc.c"
line="4080">the
#GstAllocationParams of @allocator</doc>
line="4080">the #GstAllocationParams of @allocator</doc>
<type name="Gst.AllocationParams" c:type="GstAllocationParams*"/>
</parameter>
</parameters>
@ -7092,7 +7093,7 @@ used</doc>
<method name="get_buffer_pool"
c:identifier="gst_base_src_get_buffer_pool">
<source-position filename="libs/gst/base/gstbasesrc.h" line="319"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasesrc.c"
line="4057">the instance of the #GstBufferPool used
@ -7610,7 +7611,7 @@ helper thread.</doc>
version="1.14">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasesrc.c"
line="4104">Subclasses can call this from their create virtual method implementation
line="4103">Subclasses can call this from their create virtual method implementation
to submit a buffer list to be pushed out later. This is useful in
cases where the create function wants to produce multiple buffers to be
pushed out in one go in form of a #GstBufferList, which can reduce overhead
@ -7634,13 +7635,13 @@ mode.</doc>
<instance-parameter name="src" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasesrc.c"
line="4106">a #GstBaseSrc</doc>
line="4105">a #GstBaseSrc</doc>
<type name="BaseSrc" c:type="GstBaseSrc*"/>
</instance-parameter>
<parameter name="buffer_list" transfer-ownership="full">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasesrc.c"
line="4107">a #GstBufferList</doc>
line="4106">a #GstBufferList</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
@ -8674,6 +8675,7 @@ Unref the @allocator after use.</doc>
direction="out"
caller-allocates="0"
transfer-ownership="full"
nullable="1"
optional="1"
allow-none="1">
<doc xml:space="preserve"
@ -8685,13 +8687,12 @@ used</doc>
<parameter name="params"
direction="out"
caller-allocates="1"
transfer-ownership="full"
transfer-ownership="none"
optional="1"
allow-none="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasetransform.c"
line="2869">the
#GstAllocationParams of @allocator</doc>
line="2869">the #GstAllocationParams of @allocator</doc>
<type name="Gst.AllocationParams" c:type="GstAllocationParams*"/>
</parameter>
</parameters>
@ -8700,7 +8701,7 @@ used</doc>
c:identifier="gst_base_transform_get_buffer_pool">
<source-position filename="libs/gst/base/gstbasetransform.h"
line="337"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasetransform.c"
line="2850">the instance of the #GstBufferPool used
@ -9069,7 +9070,7 @@ running_time.</doc>
version="1.6">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasetransform.c"
line="2891">Updates the srcpad caps and sends the caps downstream. This function
line="2890">Updates the srcpad caps and sends the caps downstream. This function
can be used by subclasses when they have already negotiated their caps
but found a change in them (or computed new information). This way,
they can notify downstream about that change without losing any
@ -9079,20 +9080,20 @@ buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasetransform.c"
line="2903">%TRUE if the caps could be sent downstream %FALSE otherwise</doc>
line="2902">%TRUE if the caps could be sent downstream %FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="trans" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasetransform.c"
line="2893">a #GstBaseTransform</doc>
line="2892">a #GstBaseTransform</doc>
<type name="BaseTransform" c:type="GstBaseTransform*"/>
</instance-parameter>
<parameter name="updated_caps" transfer-ownership="none">
<doc xml:space="preserve"
filename="libs/gst/base/gstbasetransform.c"
line="2894">An updated version of the srcpad caps to be pushed
line="2893">An updated version of the srcpad caps to be pushed
downstream</doc>
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
@ -18039,6 +18040,14 @@ ISO-8859-1).</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="gsttypefindhelper">
<doc xml:space="preserve"
filename="libs/gst/base/gsttypefindhelper.c"
line="24">Utility functions for elements doing typefinding:
gst_type_find_helper() does typefinding in pull mode, while
gst_type_find_helper_for_buffer() is useful for elements needing to do
typefinding in push mode from a chain function.</doc>
</docsection>
<function name="queue_array_new"
c:identifier="gst_queue_array_new"
moved-to="QueueArray.new"

View file

@ -1042,6 +1042,12 @@ is no such metadata on @buffer.</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="gstnetutils">
<doc xml:space="preserve"
filename="libs/gst/net/gstnetutils.c"
line="20">GstNetUtils gathers network utility functions, enabling use for all
gstreamer plugins.</doc>
</docsection>
<function name="net_address_meta_api_get_type"
c:identifier="gst_net_address_meta_api_get_type">
<source-position filename="libs/gst/net/gstnetaddressmeta.h" line="45"/>

View file

@ -5258,6 +5258,313 @@ invalid Opus caps.</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="encoding-profile">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/encoding-profile.c"
line="21">Functions to create and handle encoding profiles.
Encoding profiles describe the media types and settings one wishes to use
for an encoding process. The top-level profiles are commonly
#GstEncodingContainerProfile(s) (which contains a user-readable name and
description along with which container format to use). These, in turn,
reference one or more #GstEncodingProfile(s) which indicate which encoding
format should be used on each individual streams.
#GstEncodingProfile(s) can be provided to the 'encodebin' element, which
will take care of selecting and setting up the required elements to produce
an output stream conforming to the specifications of the profile.
Unlike other systems, the encoding profiles do not specify which #GstElement
to use for the various encoding and muxing steps, but instead relies on
specifying the format one wishes to use.
Encoding profiles can be created at runtime by the application or loaded
from (and saved to) file using the #GstEncodingTarget API.
## Defining a GstEncodingProfile as a string
### Serialized encoding profile formats
#### Using encoders and muxer element factory name:
```
muxer_factory_name:video_encoder_factory_name:audio_encoder_factory_name
```
For example to encode a stream into a WebM container, with an OGG audio
stream and a VP8 video stream, the serialized #GstEncodingProfile looks
like:
```
webmmux:vp8enc:vorbisenc
```
#### Define the encoding profile in a generic way using caps:
```
muxer_source_caps:video_encoder_source_caps:audio_encoder_source_caps
```
For example to encode a stream into a WebM container, with an OGG audio
stream and a VP8 video stream, the serialized #GstEncodingProfile looks
like:
```
video/webm:video/x-vp8:audio/x-vorbis
```
It is possible to mix caps and element type names so you can specify a specific
video encoder while using caps for other encoders/muxer.
### Advanced encoding format serialization features:
You can also set the preset name of the encoding profile using the
caps+preset_name syntax as in:
```
video/webm:video/x-vp8+youtube-preset:audio/x-vorbis
```
Moreover, you can set extra properties `presence`, `single-segment` and
`variable-framerate` * of an * encoding profile using the `|presence=` syntax
as in:
```
video/webm:video/x-vp8|presence=1,variable-framerate=true|single-segment=true:audio/x-vorbis
```
This field allows specifies the maximum number of times a
#GstEncodingProfile can be used inside an encodebin. If 0, it is not a
mandatory stream and can be used as many times as necessary.
You can also use the `restriction_caps-&gt;encoded_format_caps` syntax to
specify the restriction caps to be set on a #GstEncodingProfile
It corresponds to the restriction #GstCaps to apply before the encoder that
will be used in the profile. The fields present in restriction caps are
properties of the raw stream (that is, before encoding), such as height and
width for video and depth and sampling rate for audio. This property does
not make sense for muxers. See #gst_encoding_profile_get_restriction for
more details.
To force a video stream to be encoded with a Full HD resolution (using WebM
as the container format, VP8 as the video codec and Vorbis as the audio
codec), you should use:
```
"video/webm:video/x-raw,width=1920,height=1080-&gt;video/x-vp8:audio/x-vorbis"
```
&gt; NOTE: Make sure to enclose into quotes to avoid '&gt;' to be reinterpreted by
&gt; the shell.
In the case you are using encoder types, the following is also possible:
```
"matroskamux:x264enc,width=1920,height=1080:audio/x-vorbis"
```
## Some serialized encoding formats examples:
MP3 audio and H264 in MP4:
```
video/quicktime,variant=iso:video/x-h264:audio/mpeg,mpegversion=1,layer=3
```
Vorbis and theora in OGG:
```
application/ogg:video/x-theora:audio/x-vorbis
```
AC3 and H264 in MPEG-TS:
```
video/mpegts:video/x-h264:audio/x-ac3
```
## Loading a profile from encoding targets
Anywhere where you have to use a string to define a #GstEncodingProfile,
you can use load it from a #GstEncodingTarget using the following syntaxes:
```
target_name[/profilename/category]
```
or
```
/path/to/target.gep:profilename
```
## Examples
### Creating a profile
``` c
#include &lt;gst/pbutils/encoding-profile.h&gt;
...
GstEncodingProfile *
create_ogg_theora_profile(void)
{
GstEncodingContainerProfile *prof;
GstCaps *caps;
caps = gst_caps_from_string("application/ogg");
prof = gst_encoding_container_profile_new("Ogg audio/video",
"Standard OGG/THEORA/VORBIS",
caps, NULL);
gst_caps_unref (caps);
caps = gst_caps_from_string("video/x-theora");
gst_encoding_container_profile_add_profile(prof,
(GstEncodingProfile*) gst_encoding_video_profile_new(caps, NULL, NULL, 0));
gst_caps_unref (caps);
caps = gst_caps_from_string("audio/x-vorbis");
gst_encoding_container_profile_add_profile(prof,
(GstEncodingProfile*) gst_encoding_audio_profile_new(caps, NULL, NULL, 0));
gst_caps_unref (caps);
return (GstEncodingProfile*) prof;
}
```
### Example: Using an encoder preset with a profile
``` c
#include &lt;gst/pbutils/encoding-profile.h&gt;
...
GstEncodingProfile *
create_ogg_theora_profile(void)
{
GstEncodingVideoProfile *v;
GstEncodingAudioProfile *a;
GstEncodingContainerProfile *prof;
GstCaps *caps;
GstPreset *preset;
caps = gst_caps_from_string ("application/ogg");
prof = gst_encoding_container_profile_new ("Ogg audio/video",
"Standard OGG/THEORA/VORBIS",
caps, NULL);
gst_caps_unref (caps);
preset = GST_PRESET (gst_element_factory_make ("theoraenc", "theorapreset"));
g_object_set (preset, "bitrate", 1000, NULL);
// The preset will be saved on the filesystem,
// so try to use a descriptive name
gst_preset_save_preset (preset, "theora_bitrate_preset");
gst_object_unref (preset);
caps = gst_caps_from_string ("video/x-theora");
v = gst_encoding_video_profile_new (caps, "theora_bitrate_preset", NULL, 0);
gst_encoding_container_profile_add_profile (prof, (GstEncodingProfile*) v);
gst_caps_unref (caps);
caps = gst_caps_from_string ("audio/x-vorbis");
a = gst_encoding_audio_profile_new (caps, NULL, NULL, 0);
gst_encoding_container_profile_add_profile (prof, (GstEncodingProfile*) a);
gst_caps_unref (caps);
return (GstEncodingProfile*) prof;
}
```
### Listing categories, targets and profiles
``` c
#include &lt;gst/pbutils/encoding-profile.h&gt;
...
GstEncodingProfile *prof;
GList *categories, *tmpc;
GList *targets, *tmpt;
...
categories = gst_encoding_list_available_categories ();
... Show available categories to user ...
for (tmpc = categories; tmpc; tmpc = tmpc-&gt;next) {
gchar *category = (gchar *) tmpc-&gt;data;
... and we can list all targets within that category ...
targets = gst_encoding_list_all_targets (category);
... and show a list to our users ...
g_list_foreach (targets, (GFunc) gst_encoding_target_unref, NULL);
g_list_free (targets);
}
g_list_foreach (categories, (GFunc) g_free, NULL);
g_list_free (categories);
...
```</doc>
</docsection>
<docsection name="encoding-target">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/encoding-target.c"
line="20">On top of the notion of profiles, we implement the notion of EncodingTarget.
Encoding Targets are basically a higher level of abstraction to define formats
for specific target types. Those can define several GstEncodingProfiles with
different names, for example one for transcoding in full HD, another one for
low res, etc.. which are defined in the same encoding target.
Basically if you want to encode a stream to send it to, say, youtube you should
have a Youtube encoding target defined in the "online-service" category.
## Encoding target serialization format
Encoding targets are serialized in a KeyFile like files.
|[
[GStreamer Encoding Target]
name : &lt;name&gt;
category : &lt;category&gt;
\description : &lt;description&gt; #translatable
[profile-&lt;profile1name&gt;]
name : &lt;name&gt;
\description : &lt;description&gt; #optional
format : &lt;format&gt;
preset : &lt;preset&gt;
[streamprofile-&lt;id&gt;]
parent : &lt;encodingprofile.name&gt;[,&lt;encodingprofile.name&gt;..]
\type : &lt;type&gt; # "audio", "video", "text"
format : &lt;format&gt;
preset : &lt;preset&gt;
restriction : &lt;restriction&gt;
presence : &lt;presence&gt;
pass : &lt;pass&gt;
variableframerate : &lt;variableframerate&gt;
]|
## Location of encoding target files
$GST_DATADIR/gstreamer-GST_API_VERSION/encoding-profile
$HOME/gstreamer-GST_API_VERSION/encoding-profile
There also is a GST_ENCODING_TARGET_PATH environment variable
defining a list of folder containing encoding target files.
## Naming convention
|[
$(target.category)/$(target.name).gep
]|
## Naming restrictions:
* lowercase ASCII letter for the first character
* Same for all other characters + numerics + hyphens</doc>
</docsection>
<function name="encoding_list_all_targets"
c:identifier="gst_encoding_list_all_targets">
<doc xml:space="preserve"
@ -5368,6 +5675,318 @@ of #GstEncodingTarget categories.</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="gstpbutils">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/pbutils.c"
line="20">libgstpbutils is a general utility library for plugins and applications.
It currently provides the
following:
* human-readable description strings of codecs, elements, sources, decoders,
encoders, or sinks from decoder/encoder caps, element names, or protocol
names.
* support for applications to initiate installation of missing plugins (if
this is supported by the distribution or operating system used)
* API for GStreamer elements to create missing-plugin messages in order to
communicate to the application that a certain type of plugin is missing
(decoder, encoder, URI protocol source, URI protocol sink, named element)
* API for applications to recognise and handle missing-plugin messages
## Linking to this library
You should obtain the required CFLAGS and LIBS using pkg-config on the
gstreamer-plugins-base-1.0 module. You will then also need to add
'-lgstreamer-pbutils-1.0' manually to your LIBS line.
## Library initialisation
Before using any of its functions, applications and plugins must call
gst_pb_utils_init() to initialise the library.</doc>
</docsection>
<docsection name="gstpbutilscodecutils">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/codec-utils.c"
line="25">Provides codec-specific ulility functions such as functions to provide the
codec profile and level in human-readable string form from header data.</doc>
</docsection>
<docsection name="gstpbutilsdescriptions">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/descriptions.c"
line="20">The above functions provide human-readable strings for media formats
and decoder/demuxer/depayloader/encoder/muxer/payloader elements for use
in error dialogs or other messages shown to users.
gst_pb_utils_add_codec_description_to_tag_list() is a utility function
for demuxer and decoder elements to add audio/video codec tags from a
given (fixed) #GstCaps.</doc>
</docsection>
<docsection name="gstpbutilsinstallplugins">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/install-plugins.c"
line="21">## Overview
Using this API, applications can request the installation of missing
GStreamer plugins. These may be missing decoders/demuxers or
encoders/muxers for a certain format, sources or sinks for a certain URI
protocol (e.g. 'http'), or certain elements known by their element
factory name ('audioresample').
Whether plugin installation is supported or not depends on the operating
system and/or distribution in question. The vendor of the operating
system needs to make sure the necessary hooks and mechanisms are in
place for plugin installation to work. See below for more detailed
information.
From the application perspective, plugin installation is usually
triggered either
- when the application itself has found that it wants or needs to
install a certain element
- when the application has been notified by an element (such as
playbin or decodebin) that one or more plugins are missing *and* the
application has decided that it wants to install one or more of
those missing plugins
The install functions in this section all take one or more 'detail
strings'. These detail strings contain information about the type of
plugin that needs to be installed (decoder, encoder, source, sink, or
named element), and some additional information such GStreamer version
used and a human-readable description of the component to install for
user dialogs.
Applications should not concern themselves with the composition of the
string itself. They should regard the string as if it was a shared
secret between GStreamer and the plugin installer application.
Detail strings can be obtained using the function
gst_missing_plugin_message_get_installer_detail() on a
missing-plugin message. Such a message will either have been found by
the application on a pipeline's #GstBus, or the application will have
created it itself using gst_missing_element_message_new(),
gst_missing_decoder_message_new(),
gst_missing_encoder_message_new(),
gst_missing_uri_sink_message_new(), or
gst_missing_uri_source_message_new().
For each GStreamer element/plugin/component that should be installed,
the application needs one of those 'installer detail' string mentioned
in the previous section. This string can be obtained, as already
mentioned above, from a missing-plugin message using the function
gst_missing_plugin_message_get_installer_detail(). The
missing-plugin message is either posted by another element and then
found on the bus by the application, or the application has created it
itself as described above.
The application will then call gst_install_plugins_async(), passing a
NULL-terminated array of installer detail strings, and a function that
should be called when the installation of the plugins has finished
(successfully or not). Optionally, a #GstInstallPluginsContext created
with gst_install_plugins_context_new() may be passed as well. This
way additional optional arguments like the application window's XID can
be passed to the external installer application.
gst_install_plugins_async() will return almost immediately, with the
return code indicating whether plugin installation was started or not.
If the necessary hooks for plugin installation are in place and an
external installer application has in fact been called, the passed in
function will be called with a result code as soon as the external
installer has finished. If the result code indicates that new plugins
have been installed, the application will want to call
gst_update_registry() so the run-time plugin registry is updated and
the new plugins are made available to the application.
&gt; A Gtk/GLib main loop must be running in order for the result function
&gt; to be called when the external installer has finished. If this is not
&gt; the case, make sure to regularly call in your code:
&gt;
&gt; g_main_context_iteration (NULL,FALSE);
## 1. Installer hook
When GStreamer applications initiate plugin installation via
gst_install_plugins_async() or gst_install_plugins_sync(), a
pre-defined helper application will be called.
The exact path of the helper application to be called is set at compile
time, usually by the build system based on the install prefix.
For a normal package build into the `/usr` prefix, this will usually
default to `/usr/libexec/gst-install-plugins-helper` or
`/usr/lib/gst-install-plugins-helper`.
Vendors/distros who want to support GStreamer plugin installation should
either provide such a helper script/application or use the meson option
`-Dinstall_plugins_helper'=/path/to/installer` to make GStreamer call an
installer of their own directly.
It is strongly recommended that vendors provide a small helper
application as interlocutor to the real installer though, even more so
if command line argument munging is required to transform the command
line arguments passed by GStreamer to the helper application into
arguments that are understood by the real installer.
The helper application path defined at compile time can be overridden at
runtime by setting the GST_INSTALL_PLUGINS_HELPER environment
variable. This can be useful for testing/debugging purposes.
## 2. Arguments passed to the install helper
GStreamer will pass the following arguments to the install helper (this
is in addition to the path of the executable itself, which is by
convention argv[0]):
- none to many optional arguments in the form of `--foo-bar=val`.
Example: `--transient-for=XID` where XID is the X Window ID of the
main window of the calling application (so the installer can make
itself transient to that window). Unknown optional arguments should
be ignored by the installer.
- one 'installer detail string' argument for each plugin to be
installed; these strings will have a `gstreamer` prefix; the exact
format of the detail string is explained below
## 3. Detail string describing the missing plugin
The string is in UTF-8 encoding and is made up of several fields,
separated by '|' characters (but neither the first nor the last
character is a '|'). The fields are:
- plugin system identifier, ie. "gstreamer"
This identifier determines the format of the rest of the detail
string. Automatic plugin installers should not process detail
strings with unknown identifiers. This allows other plugin-based
libraries to use the same mechanism for their automatic plugin
installation needs, or for the format to be changed should it turn
out to be insufficient.
- plugin system version, e.g. "1.0"
This is required so that when there is GStreamer-2.0 at some point
in future, the different major versions can still co-exist and use
the same plugin install mechanism in the same way.
- application identifier, e.g. "totem"
This may also be in the form of "pid/12345" if the program name
can't be obtained for some reason.
- human-readable localised description of the required component, e.g.
"Vorbis audio decoder"
- identifier string for the required component (see below for details
about how to map this to the package/plugin that needs installing),
e.g.
- urisource-$(PROTOCOL_REQUIRED), e.g. urisource-http or
urisource-mms
- element-$(ELEMENT_REQUIRED), e.g. element-videoconvert
- decoder-$(CAPS_REQUIRED), e.g. (do read below for more
details!):
- decoder-audio/x-vorbis
- decoder-application/ogg
- decoder-audio/mpeg, mpegversion=(int)4
- decoder-video/mpeg, systemstream=(boolean)true,
mpegversion=(int)2
- encoder-$(CAPS_REQUIRED), e.g. encoder-audio/x-vorbis
- optional further fields not yet specified
An entire ID string might then look like this, for example: `
gstreamer|1.0|totem|Vorbis audio decoder|decoder-audio/x-vorbis`
Plugin installers parsing this ID string should expect further fields
also separated by '|' symbols and either ignore them, warn the user, or
error out when encountering them.
Those unfamiliar with the GStreamer 'caps' system should note a few
things about the caps string used in the above decoder/encoder case:
- the first part ("video/mpeg") of the caps string is a GStreamer
media type and *not* a MIME type. Wherever possible, the GStreamer
media type will be the same as the corresponding MIME type, but
often it is not.
- a caps string may or may not have additional comma-separated fields
of various types (as seen in the examples above)
- the caps string of a 'required' component (as above) will always
have fields with fixed values, whereas an introspected string (see
below) may have fields with non-fixed values. Compare for example:
- `audio/mpeg, mpegversion=(int)4` vs.
`audio/mpeg, mpegversion=(int){2, 4}`
- `video/mpeg, mpegversion=(int)2` vs.
`video/mpeg, systemstream=(boolean){ true, false}, mpegversion=(int)[1, 2]`
## 4. Exit codes the installer should return
The installer should return one of the following exit codes when it
exits:
- 0 if all of the requested plugins could be installed
(#GST_INSTALL_PLUGINS_SUCCESS)
- 1 if no appropriate installation candidate for any of the requested
plugins could be found. Only return this if nothing has been
installed (#GST_INSTALL_PLUGINS_NOT_FOUND)
- 2 if an error occurred during the installation. The application will
assume that the user will already have seen an error message by the
installer in this case and will usually not show another one
(#GST_INSTALL_PLUGINS_ERROR)
- 3 if some of the requested plugins could be installed, but not all
(#GST_INSTALL_PLUGINS_PARTIAL_SUCCESS)
- 4 if the user aborted the installation
(#GST_INSTALL_PLUGINS_USER_ABORT)
## 5. How to map the required detail string to packages
It is up to the vendor to find mechanism to map required components from
the detail string to the actual packages/plugins to install. This could
be a hardcoded list of mappings, for example, or be part of the
packaging system metadata.
GStreamer plugin files can be introspected for this information. The
`gst-inspect` utility has a special command line option that will output
information similar to what is required. For example `
$ gst-inspect-1.0 --print-plugin-auto-install-info /path/to/libgstvorbis.so
should output something along the lines of
`decoder-audio/x-vorbis`, `element-vorbisdec` `element-vorbisenc`
`element-vorbisparse`, `element-vorbistag`, `encoder-audio/x-vorbis`
Note that in the encoder and decoder case the introspected caps can be
more complex with additional fields, e.g.
`audio/mpeg,mpegversion=(int){2,4}`, so they will not always exactly
match the caps wanted by the application. It is up to the installer to
deal with this (either by doing proper caps intersection using the
GStreamer #GstCaps API, or by only taking into account the media type).
Another potential source of problems are plugins such as ladspa or
libvisual where the list of elements depends on the installed
ladspa/libvisual plugins at the time. This is also up to the
distribution to handle (but usually not relevant for playback
applications).</doc>
</docsection>
<docsection name="gstpbutilsmissingplugins">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/missing-plugins.c"
line="20">Functions to create, recognise and parse missing-plugins messages for
applications and elements.
Missing-plugin messages are posted on the bus by elements like decodebin
or playbin if they can't find an appropriate source element or decoder
element. The application can use these messages for two things:
* concise error/problem reporting to the user mentioning what exactly
is missing, see gst_missing_plugin_message_get_description()
* initiate installation of missing plugins, see
gst_missing_plugin_message_get_installer_detail() and
gst_install_plugins_async()
Applications may also create missing-plugin messages themselves to install
required elements that are missing, using the install mechanism mentioned
above.</doc>
</docsection>
<docsection name="gstpluginsbaseversion">
<doc xml:space="preserve"
filename="gst-libs/gst/pbutils/gstpluginsbaseversion.c"
line="20">Use the GST_PLUGINS_BASE_VERSION_* macros e.g. to check what version of
gst-plugins-base you are building against, and gst_plugins_base_version()
if you need to check at runtime what version of the gst-plugins-base
libraries are being used / you are currently linked against.
The version macros get defined by including &amp;lt;gst/pbutils/pbutils.h&amp;gt;.</doc>
</docsection>
<function name="install_plugins_async"
c:identifier="gst_install_plugins_async">
<doc xml:space="preserve"

View file

@ -7473,6 +7473,18 @@ is no such metadata on @buffer.</doc>
</parameter>
</parameters>
</function>
<docsection name="gstrtpdefs">
<doc xml:space="preserve"
filename="gst-libs/gst/rtp/gstrtpdefs.h"
line="30">Provides common defines for the RTP library.</doc>
</docsection>
<docsection name="gstrtppayloads">
<doc xml:space="preserve"
filename="gst-libs/gst/rtp/gstrtppayloads.c"
line="23">The GstRTPPayloads helper functions makes it easy to deal with static and dynamic
payloads. Its main purpose is to retrieve properties such as the default clock-rate
and get session bandwidth information.</doc>
</docsection>
<function name="rtcp_buffer_map"
c:identifier="gst_rtcp_buffer_map"
moved-to="RTCPBuffer.map">

View file

@ -6635,6 +6635,11 @@ not equal #GST_RTSP_OK.</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="gstrtspdefs">
<doc xml:space="preserve"
filename="gst-libs/gst/rtsp/gstrtspdefs.c"
line="43">Provides common defines for the RTSP library.</doc>
</docsection>
<function name="rtsp_auth_credentials_free"
c:identifier="gst_rtsp_auth_credentials_free"
version="1.12">

View file

@ -6322,6 +6322,12 @@ time.</doc>
</parameter>
</parameters>
</function-macro>
<docsection name="gstmikey">
<doc xml:space="preserve"
filename="gst-libs/gst/sdp/gstmikey.c"
line="22">The GstMIKEY helper functions makes it easy to parse and create MIKEY
messages.</doc>
</docsection>
<function name="sdp_address_is_multicast"
c:identifier="gst_sdp_address_is_multicast">
<doc xml:space="preserve"

View file

@ -1403,6 +1403,55 @@ the schema wasn't in the list</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
</record>
<docsection name="gsttag">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/tags.c"
line="33">Contains additional standardized GStreamer tag definitions for plugins
and applications, and functions to register them with the GStreamer
tag system.</doc>
</docsection>
<docsection name="gsttagexif">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/gstexiftag.c"
line="22">Contains utility function to parse #GstTagList&lt;!-- --&gt;s from exif
buffers and to create exif buffers from #GstTagList&lt;!-- --&gt;s
Note that next IFD fields on the created exif buffers are set to 0.</doc>
</docsection>
<docsection name="gsttagid3">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/gstid3tag.c"
line="22">Contains various utility functions for plugins to parse or create
ID3 tags and map ID3v2 identifiers to and from GStreamer identifiers.</doc>
</docsection>
<docsection name="gsttaglanguagecodes">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/lang.c"
line="20">Provides helper functions to convert between the various ISO-639 language
codes, and to map language codes to language names.</doc>
</docsection>
<docsection name="gsttaglicenses">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/licenses.c"
line="20">Provides information about Creative Commons media licenses, which are
often expressed in media files as a license URI in tags. Also useful
for applications creating media files, in case the user wants to license
the content under a Creative Commons license.</doc>
</docsection>
<docsection name="gsttagvorbis">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/gstvorbistag.c"
line="22">Contains various utility functions for plugins to parse or create
vorbiscomments and map them to and from #GstTagList&lt;!-- --&gt;s.</doc>
</docsection>
<docsection name="gsttagxmp">
<doc xml:space="preserve"
filename="gst-libs/gst/tag/gstxmptag.c"
line="23">Contains various utility functions for plugins to parse or create
xmp packets and map them to and from #GstTagList&lt;!-- --&gt;s.
Please note that the xmp parser is very lightweight and not strict at all.</doc>
</docsection>
<function name="tag_check_language_code"
c:identifier="gst_tag_check_language_code">
<doc xml:space="preserve"

File diff suppressed because it is too large Load diff

View file

@ -397,10 +397,10 @@ for more information.</doc>
glib:get-type="gst_webrtc_dtls_transport_get_type"
glib:type-struct="WebRTCDTLSTransportClass">
<source-position filename="gst-libs/gst/webrtc/dtlstransport.h"
line="62"/>
line="61"/>
<constructor name="new" c:identifier="gst_webrtc_dtls_transport_new">
<source-position filename="gst-libs/gst/webrtc/dtlstransport.h"
line="65"/>
line="64"/>
<return-value transfer-ownership="none">
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</return-value>
@ -408,15 +408,12 @@ for more information.</doc>
<parameter name="session_id" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="rtcp" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<method name="set_transport"
c:identifier="gst_webrtc_dtls_transport_set_transport">
<source-position filename="gst-libs/gst/webrtc/dtlstransport.h"
line="68"/>
line="67"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@ -438,12 +435,6 @@ for more information.</doc>
<property name="remote-certificate" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="rtcp"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="session-id"
writable="1"
construct-only="1"
@ -466,9 +457,6 @@ for more information.</doc>
<type name="WebRTCDTLSTransportState"
c:type="GstWebRTCDTLSTransportState"/>
</field>
<field name="is_rtcp">
<type name="gboolean" c:type="gboolean"/>
</field>
<field name="client">
<type name="gboolean" c:type="gboolean"/>
</field>
@ -491,7 +479,7 @@ for more information.</doc>
c:type="GstWebRTCDTLSTransportClass"
glib:is-gtype-struct-for="WebRTCDTLSTransport">
<source-position filename="gst-libs/gst/webrtc/dtlstransport.h"
line="62"/>
line="61"/>
<field name="parent_class">
<type name="Gst.ObjectClass" c:type="GstObjectClass"/>
</field>
@ -1656,46 +1644,14 @@ See &lt;http://w3c.github.io/webrtc-pc/#dom-rtcprioritytype&gt;</doc>
line="38">An object to track the receiving aspect of the stream
Mostly matches the WebRTC RTCRtpReceiver interface.</doc>
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h" line="65"/>
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h" line="63"/>
<constructor name="new" c:identifier="gst_webrtc_rtp_receiver_new">
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h"
line="68"/>
line="66"/>
<return-value transfer-ownership="none">
<type name="WebRTCRTPReceiver" c:type="GstWebRTCRTPReceiver*"/>
</return-value>
</constructor>
<method name="set_rtcp_transport"
c:identifier="gst_webrtc_rtp_receiver_set_rtcp_transport">
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h"
line="73"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="receiver" transfer-ownership="none">
<type name="WebRTCRTPReceiver" c:type="GstWebRTCRTPReceiver*"/>
</instance-parameter>
<parameter name="transport" transfer-ownership="none">
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</parameter>
</parameters>
</method>
<method name="set_transport"
c:identifier="gst_webrtc_rtp_receiver_set_transport">
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h"
line="70"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="receiver" transfer-ownership="none">
<type name="WebRTCRTPReceiver" c:type="GstWebRTCRTPReceiver*"/>
</instance-parameter>
<parameter name="transport" transfer-ownership="none">
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="Gst.Object" c:type="GstObject"/>
</field>
@ -1705,12 +1661,6 @@ Mostly matches the WebRTC RTCRtpReceiver interface.</doc>
line="40">The transport for RTP packets</doc>
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</field>
<field name="rtcp_transport">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpreceiver.h"
line="41">The transport for RTCP packets without rtcp-mux</doc>
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</field>
<field name="_padding">
<array zero-terminated="0" fixed-size="4">
<type name="gpointer" c:type="gpointer"/>
@ -1720,7 +1670,7 @@ Mostly matches the WebRTC RTCRtpReceiver interface.</doc>
<record name="WebRTCRTPReceiverClass"
c:type="GstWebRTCRTPReceiverClass"
glib:is-gtype-struct-for="WebRTCRTPReceiver">
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h" line="65"/>
<source-position filename="gst-libs/gst/webrtc/rtpreceiver.h" line="63"/>
<field name="parent_class">
<type name="Gst.ObjectClass" c:type="GstObjectClass"/>
</field>
@ -1743,9 +1693,9 @@ Mostly matches the WebRTC RTCRtpReceiver interface.</doc>
line="38">An object to track the sending aspect of the stream
Mostly matches the WebRTC RTCRtpSender interface.</doc>
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="70"/>
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="75"/>
<constructor name="new" c:identifier="gst_webrtc_rtp_sender_new">
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="73"/>
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="78"/>
<return-value transfer-ownership="none">
<type name="WebRTCRTPSender" c:type="GstWebRTCRTPSender*"/>
</return-value>
@ -1755,10 +1705,10 @@ Mostly matches the WebRTC RTCRtpSender interface.</doc>
version="1.20">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.c"
line="85">Sets the content of the IPv4 Type of Service (ToS), also known as DSCP
line="59">Sets the content of the IPv4 Type of Service (ToS), also known as DSCP
(Differentiated Services Code Point).
This also sets the Traffic Class field of IPv6.</doc>
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="82"/>
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="81"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@ -1766,54 +1716,24 @@ This also sets the Traffic Class field of IPv6.</doc>
<instance-parameter name="sender" transfer-ownership="none">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.c"
line="87">a #GstWebRTCRTPSender</doc>
line="61">a #GstWebRTCRTPSender</doc>
<type name="WebRTCRTPSender" c:type="GstWebRTCRTPSender*"/>
</instance-parameter>
<parameter name="priority" transfer-ownership="none">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.c"
line="88">The priority of this sender</doc>
line="62">The priority of this sender</doc>
<type name="WebRTCPriorityType" c:type="GstWebRTCPriorityType"/>
</parameter>
</parameters>
</method>
<method name="set_rtcp_transport"
c:identifier="gst_webrtc_rtp_sender_set_rtcp_transport">
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="79"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="sender" transfer-ownership="none">
<type name="WebRTCRTPSender" c:type="GstWebRTCRTPSender*"/>
</instance-parameter>
<parameter name="transport" transfer-ownership="none">
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</parameter>
</parameters>
</method>
<method name="set_transport"
c:identifier="gst_webrtc_rtp_sender_set_transport">
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="76"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="sender" transfer-ownership="none">
<type name="WebRTCRTPSender" c:type="GstWebRTCRTPSender*"/>
</instance-parameter>
<parameter name="transport" transfer-ownership="none">
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</parameter>
</parameters>
</method>
<property name="priority"
version="1.20"
writable="1"
transfer-ownership="none">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.c"
line="166">The priority from which to set the DSCP field on packets</doc>
line="136">The priority from which to set the DSCP field on packets</doc>
<type name="WebRTCPriorityType"/>
</property>
<field name="parent">
@ -1825,24 +1745,18 @@ This also sets the Traffic Class field of IPv6.</doc>
line="40">The transport for RTP packets</doc>
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</field>
<field name="rtcp_transport">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.h"
line="41">The transport for RTCP packets without rtcp-mux</doc>
<type name="WebRTCDTLSTransport" c:type="GstWebRTCDTLSTransport*"/>
</field>
<field name="send_encodings">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.h"
line="42">Unused</doc>
line="41">Unused</doc>
<array name="GLib.Array" c:type="GArray*">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
<field name="priority">
<field name="priority" version="1.20">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.h"
line="43">The priority of the stream (Since: 1.20)</doc>
line="50">The priority of the stream</doc>
<type name="WebRTCPriorityType" c:type="GstWebRTCPriorityType"/>
</field>
<field name="_padding">
@ -1854,7 +1768,7 @@ This also sets the Traffic Class field of IPv6.</doc>
<record name="WebRTCRTPSenderClass"
c:type="GstWebRTCRTPSenderClass"
glib:is-gtype-struct-for="WebRTCRTPSender">
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="70"/>
<source-position filename="gst-libs/gst/webrtc/rtpsender.h" line="75"/>
<field name="parent_class">
<type name="Gst.ObjectClass" c:type="GstObjectClass"/>
</field>
@ -1967,10 +1881,10 @@ the remote peer.</doc>
line="57">A caps representing the codec preferences (read-only)</doc>
<type name="Gst.Caps" c:type="GstCaps*"/>
</field>
<field name="kind">
<field name="kind" version="1.20">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtptransceiver.h"
line="58">Type of media (Since: 1.20)</doc>
line="64">Type of media</doc>
<type name="WebRTCKind" c:type="GstWebRTCKind"/>
</field>
<field name="_padding">
@ -2392,6 +2306,41 @@ See &lt;http://w3c.github.io/webrtc-pc/#dom-rtcsctptransportstate&gt;</doc>
line="248">certificate</doc>
</member>
</enumeration>
<docsection name="gstwebrtc-datachannel">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/datachannel.c"
line="21">&lt;https://www.w3.org/TR/webrtc/#rtcdatachannel&gt;</doc>
</docsection>
<docsection name="gstwebrtc-dtlstransport">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/dtlstransport.c"
line="20">&lt;https://www.w3.org/TR/webrtc/#rtcdtlstransport&gt;</doc>
</docsection>
<docsection name="gstwebrtc-icetransport">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/icetransport.c"
line="20">&lt;https://www.w3.org/TR/webrtc/#rtcicetransport&gt;</doc>
</docsection>
<docsection name="gstwebrtc-receiver">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpreceiver.c"
line="20">&lt;https://www.w3.org/TR/webrtc/#rtcrtpreceiver-interface&gt;</doc>
</docsection>
<docsection name="gstwebrtc-sender">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtpsender.c"
line="20">&lt;https://www.w3.org/TR/webrtc/#rtcrtpsender-interface&gt;</doc>
</docsection>
<docsection name="gstwebrtc-sessiondescription">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtcsessiondescription.c"
line="20">&lt;https://www.w3.org/TR/webrtc/#rtcsessiondescription-class&gt;</doc>
</docsection>
<docsection name="gstwebrtc-transceiver">
<doc xml:space="preserve"
filename="gst-libs/gst/webrtc/rtptransceiver.c"
line="20">&lt;https://www.w3.org/TR/webrtc/#rtcrtptransceiver-interface&gt;</doc>
</docsection>
<function name="webrtc_sdp_type_to_string"
c:identifier="gst_webrtc_sdp_type_to_string"
moved-to="WebRTCSDPType.to_string">

View file

@ -1743,18 +1743,18 @@ namespace Gst.Video {
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_decoder_set_interlaced_output_state(IntPtr raw, int fmt, int mode, uint width, uint height, IntPtr reference);
static extern IntPtr gst_video_decoder_set_interlaced_output_state(IntPtr raw, int fmt, int interlace_mode, uint width, uint height, IntPtr reference);
public Gst.Video.VideoCodecState SetInterlacedOutputState(Gst.Video.VideoFormat fmt, Gst.Video.VideoInterlaceMode mode, uint width, uint height, Gst.Video.VideoCodecState reference) {
public Gst.Video.VideoCodecState SetInterlacedOutputState(Gst.Video.VideoFormat fmt, Gst.Video.VideoInterlaceMode interlace_mode, uint width, uint height, Gst.Video.VideoCodecState reference) {
IntPtr native_reference = GLib.Marshaller.StructureToPtrAlloc (reference);
IntPtr raw_ret = gst_video_decoder_set_interlaced_output_state(Handle, (int) fmt, (int) mode, width, height, native_reference);
IntPtr raw_ret = gst_video_decoder_set_interlaced_output_state(Handle, (int) fmt, (int) interlace_mode, width, height, native_reference);
Gst.Video.VideoCodecState ret = Gst.Video.VideoCodecState.New (raw_ret);
Marshal.FreeHGlobal (native_reference);
return ret;
}
public Gst.Video.VideoCodecState SetInterlacedOutputState(Gst.Video.VideoFormat fmt, Gst.Video.VideoInterlaceMode mode, uint width, uint height) {
return SetInterlacedOutputState (fmt, mode, width, height, Gst.Video.VideoCodecState.Zero);
public Gst.Video.VideoCodecState SetInterlacedOutputState(Gst.Video.VideoFormat fmt, Gst.Video.VideoInterlaceMode interlace_mode, uint width, uint height) {
return SetInterlacedOutputState (fmt, interlace_mode, width, height, Gst.Video.VideoCodecState.Zero);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]

View file

@ -14,21 +14,19 @@ namespace Gst.WebRTC {
public WebRTCDTLSTransport (IntPtr raw) : base(raw) {}
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_webrtc_dtls_transport_new(uint session_id, bool rtcp);
static extern IntPtr gst_webrtc_dtls_transport_new(uint session_id);
public WebRTCDTLSTransport (uint session_id, bool rtcp) : base (IntPtr.Zero)
public WebRTCDTLSTransport (uint session_id) : base (IntPtr.Zero)
{
if (GetType () != typeof (WebRTCDTLSTransport)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
names.Add ("session_id");
vals.Add (new GLib.Value (session_id));
names.Add ("rtcp");
vals.Add (new GLib.Value (rtcp));
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
Raw = gst_webrtc_dtls_transport_new(session_id, rtcp);
Raw = gst_webrtc_dtls_transport_new(session_id);
}
[GLib.Property ("certificate")]
@ -71,16 +69,6 @@ namespace Gst.WebRTC {
}
}
[GLib.Property ("rtcp")]
public bool Rtcp {
get {
GLib.Value val = GetProperty ("rtcp");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("session-id")]
public uint SessionId {
get {
@ -135,15 +123,6 @@ namespace Gst.WebRTC {
}
}
public bool IsRtcp {
get {
unsafe {
bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("is_rtcp"));
return (*raw_ptr);
}
}
}
public bool ClientField {
get {
unsafe {
@ -239,22 +218,14 @@ namespace Gst.WebRTC {
, -1
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCDTLSTransportState))) // state
, "transport"
, "is_rtcp"
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_stateAlign), "state")
, 0
),
new GLib.AbiField("is_rtcp"
, -1
, (uint) Marshal.SizeOf(typeof(bool)) // is_rtcp
, "state"
, "client"
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_is_rtcpAlign), "is_rtcp")
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_stateAlign), "state")
, 0
),
new GLib.AbiField("client"
, -1
, (uint) Marshal.SizeOf(typeof(bool)) // client
, "is_rtcp"
, "state"
, "session_id"
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_clientAlign), "client")
, 0
@ -304,13 +275,6 @@ namespace Gst.WebRTC {
private Gst.WebRTC.WebRTCDTLSTransportState state;
}
[StructLayout(LayoutKind.Sequential)]
public struct GstWebRTCDTLSTransport_is_rtcpAlign
{
sbyte f1;
private bool is_rtcp;
}
[StructLayout(LayoutKind.Sequential)]
public struct GstWebRTCDTLSTransport_clientAlign
{

View file

@ -25,9 +25,6 @@ namespace Gst.WebRTC {
Raw = gst_webrtc_rtp_receiver_new();
}
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_webrtc_rtp_receiver_set_transport(IntPtr raw, IntPtr transport);
public Gst.WebRTC.WebRTCDTLSTransport Transport {
get {
unsafe {
@ -35,24 +32,6 @@ namespace Gst.WebRTC {
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport;
}
}
set {
gst_webrtc_rtp_receiver_set_transport(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_webrtc_rtp_receiver_set_rtcp_transport(IntPtr raw, IntPtr transport);
public Gst.WebRTC.WebRTCDTLSTransport RtcpTransport {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("rtcp_transport"));
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport;
}
}
set {
gst_webrtc_rtp_receiver_set_rtcp_transport(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
@ -106,14 +85,6 @@ namespace Gst.WebRTC {
, Gst.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // transport
, null
, "rtcp_transport"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("rtcp_transport"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // rtcp_transport
, "transport"
, "_padding"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
@ -121,7 +92,7 @@ namespace Gst.WebRTC {
new GLib.AbiField("_padding"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
, "rtcp_transport"
, "transport"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0

View file

@ -41,9 +41,6 @@ namespace Gst.WebRTC {
}
}
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_webrtc_rtp_sender_set_transport(IntPtr raw, IntPtr transport);
public Gst.WebRTC.WebRTCDTLSTransport Transport {
get {
unsafe {
@ -51,24 +48,6 @@ namespace Gst.WebRTC {
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport;
}
}
set {
gst_webrtc_rtp_sender_set_transport(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_webrtc_rtp_sender_set_rtcp_transport(IntPtr raw, IntPtr transport);
public Gst.WebRTC.WebRTCDTLSTransport RtcpTransport {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("rtcp_transport"));
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport;
}
}
set {
gst_webrtc_rtp_sender_set_rtcp_transport(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
public Gst.WebRTC.WebRTCPriorityType PriorityField {
@ -131,14 +110,6 @@ namespace Gst.WebRTC {
, Gst.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // transport
, null
, "rtcp_transport"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("rtcp_transport"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // rtcp_transport
, "transport"
, "send_encodings"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
@ -146,7 +117,7 @@ namespace Gst.WebRTC {
new GLib.AbiField("send_encodings"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // send_encodings
, "rtcp_transport"
, "transport"
, "priority"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0

View file

@ -869,6 +869,10 @@ namespace Gst {
gst_buffer_pool_config_set_params(config == null ? IntPtr.Zero : config.Handle, caps == null ? IntPtr.Zero : caps.Handle, size, min_buffers, max_buffers);
}
public static void ConfigSetParams(Gst.Structure config, uint size, uint min_buffers, uint max_buffers) {
ConfigSetParams (config, null, size, min_buffers, max_buffers);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_buffer_pool_config_validate_params(IntPtr config, IntPtr caps, uint size, uint min_buffers, uint max_buffers);
@ -878,6 +882,10 @@ namespace Gst {
return ret;
}
public static bool ConfigValidateParams(Gst.Structure config, uint size, uint min_buffers, uint max_buffers) {
return ConfigValidateParams (config, null, size, min_buffers, max_buffers);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_buffer_pool_acquire_buffer(IntPtr raw, out IntPtr buffer, IntPtr parms);

View file

@ -435,6 +435,17 @@ namespace Gst {
GLib.Marshaller.Free (native_name);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_device_provider_is_started(IntPtr raw);
public bool IsStarted {
get {
bool raw_ret = gst_device_provider_is_started(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_device_provider_start(IntPtr raw);

View file

@ -524,8 +524,8 @@ namespace Gst {
return ret;
}
public static bool TypeFindRegister(string name, uint rank, Gst.TypeFindFunction func, Gst.Caps possible_caps) {
return TypeFindRegister (null, name, rank, func, null, possible_caps);
public static bool TypeFindRegister(string name, uint rank, Gst.TypeFindFunction func) {
return TypeFindRegister (null, name, rank, func, null, null);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]

View file

@ -0,0 +1,114 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class SharedTaskPool : Gst.TaskPool {
public SharedTaskPool (IntPtr raw) : base(raw) {}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_shared_task_pool_new();
public SharedTaskPool () : base (IntPtr.Zero)
{
if (GetType () != typeof (SharedTaskPool)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_shared_task_pool_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.TaskPool.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_shared_task_pool_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_shared_task_pool_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_shared_task_pool_get_max_threads(IntPtr raw);
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_shared_task_pool_set_max_threads(IntPtr raw, uint max_threads);
public uint MaxThreads {
get {
uint raw_ret = gst_shared_task_pool_get_max_threads(Handle);
uint ret = raw_ret;
return ret;
}
set {
gst_shared_task_pool_set_max_threads(Handle, value);
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, Gst.TaskPool.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -253,6 +253,59 @@ namespace Gst {
unmanaged (this.Handle, id);
}
static DisposeHandleNativeDelegate DisposeHandle_cb_delegate;
static DisposeHandleNativeDelegate DisposeHandleVMCallback {
get {
if (DisposeHandle_cb_delegate == null)
DisposeHandle_cb_delegate = new DisposeHandleNativeDelegate (DisposeHandle_cb);
return DisposeHandle_cb_delegate;
}
}
static void OverrideDisposeHandle (GLib.GType gtype)
{
OverrideDisposeHandle (gtype, DisposeHandleVMCallback);
}
static void OverrideDisposeHandle (GLib.GType gtype, DisposeHandleNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("dispose_handle"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DisposeHandleNativeDelegate (IntPtr inst, IntPtr id);
static void DisposeHandle_cb (IntPtr inst, IntPtr id)
{
try {
TaskPool __obj = GLib.Object.GetObject (inst, false) as TaskPool;
__obj.OnDisposeHandle (id);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.TaskPool), ConnectionMethod="OverrideDisposeHandle")]
protected virtual void OnDisposeHandle (IntPtr id)
{
InternalDisposeHandle (id);
}
private void InternalDisposeHandle (IntPtr id)
{
DisposeHandleNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("dispose_handle"));
unmanaged = (DisposeHandleNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(DisposeHandleNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, id);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
@ -288,14 +341,22 @@ namespace Gst {
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // join
, "push"
, "dispose_handle"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("dispose_handle"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // dispose_handle
, "join"
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "join"
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _gst_reserved
, "dispose_handle"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
@ -327,6 +388,17 @@ namespace Gst {
gst_task_pool_cleanup(Handle);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_task_pool_dispose_handle(IntPtr raw, IntPtr id);
public void DisposeHandle(IntPtr id) {
gst_task_pool_dispose_handle(Handle, id);
}
public void DisposeHandle() {
DisposeHandle (IntPtr.Zero);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_task_pool_join(IntPtr raw, IntPtr id);

View file

@ -67,8 +67,8 @@ namespace Gst {
return ret;
}
public static bool Register(string name, uint rank, Gst.TypeFindFunction func, Gst.Caps possible_caps) {
return Register (null, name, rank, func, null, possible_caps);
public static bool Register(string name, uint rank, Gst.TypeFindFunction func) {
return Register (null, name, rank, func, null, null);
}
public TypeFind(IntPtr raw) : base(raw) {}

View file

@ -241,6 +241,9 @@ int main (int argc, char *argv[]) {
g_print("\"GstProxyPad.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstProxyPad, priv));
g_print("\"sizeof(GstRegistry)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRegistry));
g_print("\"GstRegistry.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRegistry, priv));
g_print("\"sizeof(GstSharedTaskPoolClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstSharedTaskPoolClass));
g_print("\"sizeof(GstSharedTaskPool)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstSharedTaskPool));
g_print("\"GstSharedTaskPool.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstSharedTaskPool, priv));
g_print("\"sizeof(GstStreamClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstStreamClass));
g_print("\"sizeof(GstStream)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstStream));
g_print("\"GstStream.stream_id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstStream, stream_id));
@ -270,6 +273,7 @@ int main (int argc, char *argv[]) {
g_print("\"GstTaskPoolClass.cleanup\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstTaskPoolClass, cleanup));
g_print("\"GstTaskPoolClass.push\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstTaskPoolClass, push));
g_print("\"GstTaskPoolClass.join\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstTaskPoolClass, join));
g_print("\"GstTaskPoolClass.dispose_handle\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstTaskPoolClass, dispose_handle));
g_print("\"sizeof(GstTaskPool)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstTaskPool));
g_print("\"GstTaskPool.pool\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstTaskPool, pool));
g_print("\"sizeof(GstTracerClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstTracerClass));
@ -981,7 +985,6 @@ int main (int argc, char *argv[]) {
g_print("\"sizeof(GstWebRTCDTLSTransport)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDTLSTransport));
g_print("\"GstWebRTCDTLSTransport.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, transport));
g_print("\"GstWebRTCDTLSTransport.state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, state));
g_print("\"GstWebRTCDTLSTransport.is_rtcp\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, is_rtcp));
g_print("\"GstWebRTCDTLSTransport.client\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, client));
g_print("\"GstWebRTCDTLSTransport.session_id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, session_id));
g_print("\"GstWebRTCDTLSTransport.dtlssrtpenc\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, dtlssrtpenc));
@ -1015,11 +1018,9 @@ int main (int argc, char *argv[]) {
g_print("\"sizeof(GstWebRTCRTPReceiverClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPReceiverClass));
g_print("\"sizeof(GstWebRTCRTPReceiver)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPReceiver));
g_print("\"GstWebRTCRTPReceiver.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPReceiver, transport));
g_print("\"GstWebRTCRTPReceiver.rtcp_transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPReceiver, rtcp_transport));
g_print("\"sizeof(GstWebRTCRTPSenderClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPSenderClass));
g_print("\"sizeof(GstWebRTCRTPSender)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPSender));
g_print("\"GstWebRTCRTPSender.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, transport));
g_print("\"GstWebRTCRTPSender.rtcp_transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, rtcp_transport));
g_print("\"GstWebRTCRTPSender.send_encodings\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, send_encodings));
g_print("\"GstWebRTCRTPSender.priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, priority));
g_print("\"sizeof(GstWebRTCRTPTransceiverClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPTransceiverClass));

View file

@ -235,6 +235,9 @@ namespace AbiTester {
Console.WriteLine("\"GstProxyPad.priv\": \"" + Gst.ProxyPad.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRegistry)\": \"" + Gst.Registry.abi_info.Size + "\"");
Console.WriteLine("\"GstRegistry.priv\": \"" + Gst.Registry.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstSharedTaskPoolClass)\": \"" + Gst.SharedTaskPool.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstSharedTaskPool)\": \"" + Gst.SharedTaskPool.abi_info.Size + "\"");
Console.WriteLine("\"GstSharedTaskPool.priv\": \"" + Gst.SharedTaskPool.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstStreamClass)\": \"" + Gst.Stream.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstStream)\": \"" + Gst.Stream.abi_info.Size + "\"");
Console.WriteLine("\"GstStream.stream_id\": \"" + Gst.Stream.abi_info.GetFieldOffset("stream_id") + "\"");
@ -264,6 +267,7 @@ namespace AbiTester {
Console.WriteLine("\"GstTaskPoolClass.cleanup\": \"" + Gst.TaskPool.class_abi.GetFieldOffset("cleanup") + "\"");
Console.WriteLine("\"GstTaskPoolClass.push\": \"" + Gst.TaskPool.class_abi.GetFieldOffset("push") + "\"");
Console.WriteLine("\"GstTaskPoolClass.join\": \"" + Gst.TaskPool.class_abi.GetFieldOffset("join") + "\"");
Console.WriteLine("\"GstTaskPoolClass.dispose_handle\": \"" + Gst.TaskPool.class_abi.GetFieldOffset("dispose_handle") + "\"");
Console.WriteLine("\"sizeof(GstTaskPool)\": \"" + Gst.TaskPool.abi_info.Size + "\"");
Console.WriteLine("\"GstTaskPool.pool\": \"" + Gst.TaskPool.abi_info.GetFieldOffset("pool") + "\"");
Console.WriteLine("\"sizeof(GstTracerClass)\": \"" + Gst.Tracer.class_abi.Size + "\"");
@ -975,7 +979,6 @@ namespace AbiTester {
Console.WriteLine("\"sizeof(GstWebRTCDTLSTransport)\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.Size + "\"");
Console.WriteLine("\"GstWebRTCDTLSTransport.transport\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("transport") + "\"");
Console.WriteLine("\"GstWebRTCDTLSTransport.state\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("state") + "\"");
Console.WriteLine("\"GstWebRTCDTLSTransport.is_rtcp\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("is_rtcp") + "\"");
Console.WriteLine("\"GstWebRTCDTLSTransport.client\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("client") + "\"");
Console.WriteLine("\"GstWebRTCDTLSTransport.session_id\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("session_id") + "\"");
Console.WriteLine("\"GstWebRTCDTLSTransport.dtlssrtpenc\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("dtlssrtpenc") + "\"");
@ -1009,11 +1012,9 @@ namespace AbiTester {
Console.WriteLine("\"sizeof(GstWebRTCRTPReceiverClass)\": \"" + Gst.WebRTC.WebRTCRTPReceiver.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstWebRTCRTPReceiver)\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.Size + "\"");
Console.WriteLine("\"GstWebRTCRTPReceiver.transport\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.GetFieldOffset("transport") + "\"");
Console.WriteLine("\"GstWebRTCRTPReceiver.rtcp_transport\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.GetFieldOffset("rtcp_transport") + "\"");
Console.WriteLine("\"sizeof(GstWebRTCRTPSenderClass)\": \"" + Gst.WebRTC.WebRTCRTPSender.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstWebRTCRTPSender)\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.Size + "\"");
Console.WriteLine("\"GstWebRTCRTPSender.transport\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("transport") + "\"");
Console.WriteLine("\"GstWebRTCRTPSender.rtcp_transport\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("rtcp_transport") + "\"");
Console.WriteLine("\"GstWebRTCRTPSender.send_encodings\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("send_encodings") + "\"");
Console.WriteLine("\"GstWebRTCRTPSender.priority\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("priority") + "\"");
Console.WriteLine("\"sizeof(GstWebRTCRTPTransceiverClass)\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.class_abi.Size + "\"");

View file

@ -2131,7 +2131,7 @@
<parameter name="config" type="GstStructure*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="size" type="guint" />
@ -2145,7 +2145,7 @@
<parameter name="config" type="GstStructure*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="size" type="guint" />
@ -3151,6 +3151,10 @@
<parameter name="name" type="const-gchar*" />
</parameters>
</method>
<method name="IsStarted" cname="gst_device_provider_is_started" version="1.20">
<return-type type="gboolean" />
<parameters />
</method>
<method name="Start" cname="gst_device_provider_start" version="1.4">
<return-type type="gboolean" />
<parameters />
@ -5603,6 +5607,33 @@
<return-type type="gboolean" />
</method>
</object>
<object name="SharedTaskPool" cname="GstSharedTaskPool" opaque="false" hidden="false" parent="GstTaskPool" version="1.20">
<class_struct cname="GstSharedTaskPoolClass" version="1.20">
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstTaskPoolClass">
<warning>missing glib:type-name</warning>
</field>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" />
</class_struct>
<method name="GetType" cname="gst_shared_task_pool_get_type" shared="true">
<return-type type="GType" />
</method>
<constructor cname="gst_shared_task_pool_new" disable_void_ctor="" version="1.20" />
<method name="GetMaxThreads" cname="gst_shared_task_pool_get_max_threads" version="1.20">
<return-type type="guint" />
<parameters />
</method>
<method name="SetMaxThreads" cname="gst_shared_task_pool_set_max_threads" version="1.20">
<return-type type="void" />
<parameters>
<parameter name="max_threads" type="guint" />
</parameters>
</method>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstTaskPool*" hidden="true" />
<field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstSharedTaskPoolPrivate*">
<warning>missing glib:type-name</warning>
</field>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" />
</object>
<object name="Stream" cname="GstStream" opaque="false" hidden="false" parent="GstObject" version="1.10">
<class_struct cname="GstStreamClass">
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
@ -5878,7 +5909,8 @@
<method vm="cleanup" />
<method vm="push" />
<method vm="join" />
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" />
<method vm="dispose_handle" />
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="3" padding="true" />
</class_struct>
<method name="GetType" cname="gst_task_pool_get_type" shared="true">
<return-type type="GType" />
@ -5888,10 +5920,16 @@
<return-type type="void" />
<parameters />
</virtual_method>
<virtual_method name="DisposeHandle" cname="dispose_handle" version="1.20">
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="id" type="gpointer*" owned="true" />
</parameters>
</virtual_method>
<virtual_method name="Join" cname="join">
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="id" type="gpointer" />
<parameter allow-none="1" name="id" type="gpointer*" owned="true" />
</parameters>
</virtual_method>
<virtual_method name="Prepare" cname="prepare">
@ -5901,7 +5939,7 @@
</parameters>
</virtual_method>
<virtual_method name="Push" cname="push">
<return-type type="gpointer" />
<return-type type="gpointer*" owned="true" />
<parameters throws="1">
<parameter closure="1" scope="async" name="func" type="GstTaskPoolFunction" />
<parameter closure="1" allow-none="1" name="user_data" type="gpointer" />
@ -5912,10 +5950,16 @@
<return-type type="void" />
<parameters />
</method>
<method name="DisposeHandle" cname="gst_task_pool_dispose_handle" version="1.20">
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="id" type="gpointer*" owned="true" />
</parameters>
</method>
<method name="Join" cname="gst_task_pool_join">
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="id" type="gpointer" />
<parameter allow-none="1" name="id" type="gpointer*" owned="true" />
</parameters>
</method>
<method name="Prepare" cname="gst_task_pool_prepare">
@ -5925,7 +5969,7 @@
</parameters>
</method>
<method name="Push" cname="gst_task_pool_push">
<return-type type="gpointer" />
<return-type type="gpointer*" owned="true" />
<parameters throws="1">
<parameter closure="1" scope="async" name="func" type="GstTaskPoolFunction" />
<parameter allow-none="1" name="user_data" type="gpointer" />
@ -10234,6 +10278,7 @@
</parameters>
</method>
</boxed>
<struct name="SharedTaskPoolPrivate" cname="GstSharedTaskPoolPrivate" opaque="true" hidden="true" />
<struct name="StaticCaps" cname="GstStaticCaps" opaque="false" hidden="false">
<field cname="caps" access="public" writeable="true" readable="true" is_callback="false" name="Caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
@ -11232,7 +11277,7 @@
<parameter name="rank" type="guint" />
<parameter closure="6" destroy="7" scope="notified" name="func" type="GstTypeFindFunction" />
<parameter allow-none="1" name="extensions" type="const-gchar*" />
<parameter name="possible_caps" type="GstCaps*">
<parameter allow-none="1" name="possible_caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter allow-none="1" name="data" type="gpointer" />
@ -11874,7 +11919,7 @@
<parameter name="rank" type="guint" />
<parameter closure="6" destroy="7" scope="notified" name="func" type="GstTypeFindFunction" />
<parameter allow-none="1" name="extensions" type="const-gchar*" />
<parameter name="possible_caps" type="GstCaps*">
<parameter allow-none="1" name="possible_caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter allow-none="1" name="data" type="gpointer" />
@ -13631,7 +13676,7 @@
<method name="SetCaps" cname="gst_app_sink_set_caps">
<return-type type="void" />
<parameters>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -13821,7 +13866,7 @@
<method name="SetCaps" cname="gst_app_src_set_caps">
<return-type type="void" />
<parameters>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -17260,7 +17305,7 @@
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="allocator" type="GstAllocator*" owned="true" pass_as="out" />
<parameter allow-none="1" name="params" type="GstAllocationParams*" owned="true" pass_as="out">
<parameter allow-none="1" name="params" type="GstAllocationParams*" pass_as="out">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -18211,7 +18256,7 @@
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="allocator" type="GstAllocator*" owned="true" pass_as="out" />
<parameter allow-none="1" name="params" type="GstAllocationParams*" owned="true" pass_as="out">
<parameter allow-none="1" name="params" type="GstAllocationParams*" pass_as="out">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -18621,7 +18666,7 @@
<return-type type="void" />
<parameters>
<parameter allow-none="1" name="allocator" type="GstAllocator*" owned="true" pass_as="out" />
<parameter allow-none="1" name="params" type="GstAllocationParams*" owned="true" pass_as="out">
<parameter allow-none="1" name="params" type="GstAllocationParams*" pass_as="out">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -28250,7 +28295,7 @@
</return-type>
<parameters>
<parameter name="fmt" type="GstVideoFormat" />
<parameter name="mode" type="GstVideoInterlaceMode" />
<parameter name="interlace_mode" type="GstVideoInterlaceMode" />
<parameter name="width" type="guint" />
<parameter name="height" type="guint" />
<parameter allow-none="1" name="reference" type="GstVideoCodecState*">
@ -31263,7 +31308,6 @@
<constructor cname="gst_webrtc_dtls_transport_new">
<parameters>
<parameter name="session_id" type="guint" />
<parameter name="rtcp" type="gboolean" />
</parameters>
</constructor>
<method name="SetTransport" cname="gst_webrtc_dtls_transport_set_transport">
@ -31275,14 +31319,12 @@
<property name="Certificate" cname="certificate" type="gchar*" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="Client" cname="client" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="RemoteCertificate" cname="remote-certificate" type="gchar*" readable="true" writeable="false" construct="false" construct-only="false" />
<property name="Rtcp" cname="rtcp" type="gboolean" readable="true" writeable="true" construct="false" construct-only="true" />
<property name="SessionId" cname="session-id" type="guint" readable="true" writeable="true" construct="false" construct-only="true" />
<property name="State" cname="state" type="GstWebRTCDTLSTransportState" readable="true" writeable="false" construct="false" construct-only="false" />
<property name="Transport" cname="transport" type="GstWebRTCICETransport*" readable="true" writeable="false" construct="false" construct-only="false" />
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="TransportField" type="GstWebRTCICETransport*" />
<field cname="state" access="public" writeable="false" readable="true" is_callback="false" name="StateField" type="GstWebRTCDTLSTransportState" />
<field cname="is_rtcp" access="public" writeable="false" readable="true" is_callback="false" name="IsRtcp" type="gboolean" />
<field cname="client" access="public" writeable="false" readable="true" is_callback="false" name="ClientField" type="gboolean" />
<field cname="session_id" access="public" writeable="false" readable="true" is_callback="false" name="SessionIdField" type="guint" />
<field cname="dtlssrtpenc" access="public" writeable="false" readable="true" is_callback="false" name="Dtlssrtpenc" type="GstElement*" />
@ -31513,21 +31555,8 @@
<return-type type="GType" />
</method>
<constructor cname="gst_webrtc_rtp_receiver_new" disable_void_ctor="" />
<method name="SetRtcpTransport" cname="gst_webrtc_rtp_receiver_set_rtcp_transport">
<return-type type="void" />
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*" />
</parameters>
</method>
<method name="SetTransport" cname="gst_webrtc_rtp_receiver_set_transport">
<return-type type="void" />
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*" />
</parameters>
</method>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*" />
<field cname="rtcp_transport" access="public" writeable="false" readable="true" is_callback="false" name="RtcpTransport" type="GstWebRTCDTLSTransport*" />
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
</object>
<object name="WebRTCRTPSender" cname="GstWebRTCRTPSender" opaque="false" hidden="false" parent="GstObject" version="1.16">
@ -31547,22 +31576,9 @@
<parameter name="priority" type="GstWebRTCPriorityType" />
</parameters>
</method>
<method name="SetRtcpTransport" cname="gst_webrtc_rtp_sender_set_rtcp_transport">
<return-type type="void" />
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*" />
</parameters>
</method>
<method name="SetTransport" cname="gst_webrtc_rtp_sender_set_transport">
<return-type type="void" />
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*" />
</parameters>
</method>
<property name="Priority" cname="priority" type="GstWebRTCPriorityType" readable="true" writeable="true" construct="false" construct-only="false" version="1.20" />
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*" />
<field cname="rtcp_transport" access="public" writeable="false" readable="true" is_callback="false" name="RtcpTransport" type="GstWebRTCDTLSTransport*" />
<field cname="send_encodings" access="public" writeable="false" readable="true" is_callback="false" name="SendEncodings" type="GArray*" array="true" null_term_array="true" />
<field cname="priority" access="public" writeable="false" readable="true" is_callback="false" name="PriorityField" type="GstWebRTCPriorityType" />
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />

View file

@ -724,6 +724,7 @@ generated_sources = [
'Gst/SeekType.cs',
'Gst/Segment.cs',
'Gst/SegmentFlags.cs',
'Gst/SharedTaskPool.cs',
'Gst/StackTraceFlags.cs',
'Gst/State.cs',
'Gst/StateChange.cs',

View file

@ -2138,7 +2138,7 @@
<parameter name="config" type="GstStructure*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="size" type="guint"/>
@ -2152,7 +2152,7 @@
<parameter name="config" type="GstStructure*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="size" type="guint"/>
@ -3158,6 +3158,10 @@
<parameter name="name" type="const-gchar*"/>
</parameters>
</method>
<method name="IsStarted" cname="gst_device_provider_is_started" version="1.20">
<return-type type="gboolean"/>
<parameters/>
</method>
<method name="Start" cname="gst_device_provider_start" version="1.4">
<return-type type="gboolean"/>
<parameters/>
@ -5598,6 +5602,33 @@
</parameters>
</signal>
</object>
<object name="SharedTaskPool" cname="GstSharedTaskPool" opaque="false" hidden="false" parent="GstTaskPool" version="1.20">
<class_struct cname="GstSharedTaskPoolClass" version="1.20">
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstTaskPoolClass">
<warning>missing glib:type-name</warning>
</field>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/>
</class_struct>
<method name="GetType" cname="gst_shared_task_pool_get_type" shared="true">
<return-type type="GType"/>
</method>
<constructor cname="gst_shared_task_pool_new" disable_void_ctor="" version="1.20"/>
<method name="GetMaxThreads" cname="gst_shared_task_pool_get_max_threads" version="1.20">
<return-type type="guint"/>
<parameters/>
</method>
<method name="SetMaxThreads" cname="gst_shared_task_pool_set_max_threads" version="1.20">
<return-type type="void"/>
<parameters>
<parameter name="max_threads" type="guint"/>
</parameters>
</method>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstTaskPool*"/>
<field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstSharedTaskPoolPrivate*">
<warning>missing glib:type-name</warning>
</field>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/>
</object>
<object name="Stream" cname="GstStream" opaque="false" hidden="false" parent="GstObject" version="1.10">
<class_struct cname="GstStreamClass">
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
@ -5873,7 +5904,8 @@
<method vm="cleanup"/>
<method vm="push"/>
<method vm="join"/>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/>
<method vm="dispose_handle"/>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="3"/>
</class_struct>
<method name="GetType" cname="gst_task_pool_get_type" shared="true">
<return-type type="GType"/>
@ -5883,10 +5915,16 @@
<return-type type="void"/>
<parameters/>
</virtual_method>
<virtual_method name="DisposeHandle" cname="dispose_handle" version="1.20">
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="id" type="gpointer*" owned="true"/>
</parameters>
</virtual_method>
<virtual_method name="Join" cname="join">
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="id" type="gpointer"/>
<parameter allow-none="1" name="id" type="gpointer*" owned="true"/>
</parameters>
</virtual_method>
<virtual_method name="Prepare" cname="prepare">
@ -5896,7 +5934,7 @@
</parameters>
</virtual_method>
<virtual_method name="Push" cname="push">
<return-type type="gpointer"/>
<return-type type="gpointer*" owned="true"/>
<parameters throws="1">
<parameter closure="1" scope="async" name="func" type="GstTaskPoolFunction"/>
<parameter closure="1" allow-none="1" name="user_data" type="gpointer"/>
@ -5907,10 +5945,16 @@
<return-type type="void"/>
<parameters/>
</method>
<method name="DisposeHandle" cname="gst_task_pool_dispose_handle" version="1.20">
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="id" type="gpointer*" owned="true"/>
</parameters>
</method>
<method name="Join" cname="gst_task_pool_join">
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="id" type="gpointer"/>
<parameter allow-none="1" name="id" type="gpointer*" owned="true"/>
</parameters>
</method>
<method name="Prepare" cname="gst_task_pool_prepare">
@ -5920,7 +5964,7 @@
</parameters>
</method>
<method name="Push" cname="gst_task_pool_push">
<return-type type="gpointer"/>
<return-type type="gpointer*" owned="true"/>
<parameters throws="1">
<parameter closure="1" scope="async" name="func" type="GstTaskPoolFunction"/>
<parameter allow-none="1" name="user_data" type="gpointer"/>
@ -10226,6 +10270,7 @@
</parameters>
</method>
</boxed>
<struct name="SharedTaskPoolPrivate" cname="GstSharedTaskPoolPrivate" opaque="true" hidden="true"/>
<struct name="StaticCaps" cname="GstStaticCaps" opaque="false" hidden="false">
<field cname="caps" access="public" writeable="true" readable="true" is_callback="false" name="Caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
@ -11224,7 +11269,7 @@
<parameter name="rank" type="guint"/>
<parameter closure="6" destroy="7" scope="notified" name="func" type="GstTypeFindFunction"/>
<parameter allow-none="1" name="extensions" type="const-gchar*"/>
<parameter name="possible_caps" type="GstCaps*">
<parameter allow-none="1" name="possible_caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter allow-none="1" name="data" type="gpointer"/>
@ -12251,7 +12296,7 @@
<parameter name="rank" type="guint"/>
<parameter closure="6" destroy="7" scope="notified" name="func" type="GstTypeFindFunction"/>
<parameter allow-none="1" name="extensions" type="const-gchar*"/>
<parameter name="possible_caps" type="GstCaps*">
<parameter allow-none="1" name="possible_caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter allow-none="1" name="data" type="gpointer"/>
@ -13324,7 +13369,7 @@
<method name="SetCaps" cname="gst_app_sink_set_caps">
<return-type type="void"/>
<parameters>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -13514,7 +13559,7 @@
<method name="SetCaps" cname="gst_app_src_set_caps">
<return-type type="void"/>
<parameters>
<parameter name="caps" type="GstCaps*">
<parameter allow-none="1" name="caps" type="GstCaps*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -16953,7 +16998,7 @@
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="allocator" type="GstAllocator*" owned="true" pass_as="out"/>
<parameter allow-none="1" name="params" type="GstAllocationParams*" owned="true" pass_as="out">
<parameter allow-none="1" name="params" type="GstAllocationParams*" pass_as="out">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -17904,7 +17949,7 @@
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="allocator" type="GstAllocator*" owned="true" pass_as="out"/>
<parameter allow-none="1" name="params" type="GstAllocationParams*" owned="true" pass_as="out">
<parameter allow-none="1" name="params" type="GstAllocationParams*" pass_as="out">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -18314,7 +18359,7 @@
<return-type type="void"/>
<parameters>
<parameter allow-none="1" name="allocator" type="GstAllocator*" owned="true" pass_as="out"/>
<parameter allow-none="1" name="params" type="GstAllocationParams*" owned="true" pass_as="out">
<parameter allow-none="1" name="params" type="GstAllocationParams*" pass_as="out">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
@ -28622,7 +28667,7 @@
</return-type>
<parameters>
<parameter name="fmt" type="GstVideoFormat"/>
<parameter name="mode" type="GstVideoInterlaceMode"/>
<parameter name="interlace_mode" type="GstVideoInterlaceMode"/>
<parameter name="width" type="guint"/>
<parameter name="height" type="guint"/>
<parameter allow-none="1" name="reference" type="GstVideoCodecState*">
@ -31652,7 +31697,6 @@
<constructor cname="gst_webrtc_dtls_transport_new">
<parameters>
<parameter name="session_id" type="guint"/>
<parameter name="rtcp" type="gboolean"/>
</parameters>
</constructor>
<method name="SetTransport" cname="gst_webrtc_dtls_transport_set_transport">
@ -31664,14 +31708,12 @@
<property name="Certificate" cname="certificate" type="gchar*" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="Client" cname="client" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="RemoteCertificate" cname="remote-certificate" type="gchar*" readable="true" writeable="false" construct="false" construct-only="false"/>
<property name="Rtcp" cname="rtcp" type="gboolean" readable="true" writeable="true" construct="false" construct-only="true"/>
<property name="SessionId" cname="session-id" type="guint" readable="true" writeable="true" construct="false" construct-only="true"/>
<property name="State" cname="state" type="GstWebRTCDTLSTransportState" readable="true" writeable="false" construct="false" construct-only="false"/>
<property name="Transport" cname="transport" type="GstWebRTCICETransport*" readable="true" writeable="false" construct="false" construct-only="false"/>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="TransportField" type="GstWebRTCICETransport*"/>
<field cname="state" access="public" writeable="false" readable="true" is_callback="false" name="StateField" type="GstWebRTCDTLSTransportState"/>
<field cname="is_rtcp" access="public" writeable="false" readable="true" is_callback="false" name="IsRtcp" type="gboolean"/>
<field cname="client" access="public" writeable="false" readable="true" is_callback="false" name="ClientField" type="gboolean"/>
<field cname="session_id" access="public" writeable="false" readable="true" is_callback="false" name="SessionIdField" type="guint"/>
<field cname="dtlssrtpenc" access="public" writeable="false" readable="true" is_callback="false" name="Dtlssrtpenc" type="GstElement*"/>
@ -31902,21 +31944,8 @@
<return-type type="GType"/>
</method>
<constructor cname="gst_webrtc_rtp_receiver_new" disable_void_ctor=""/>
<method name="SetRtcpTransport" cname="gst_webrtc_rtp_receiver_set_rtcp_transport">
<return-type type="void"/>
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*"/>
</parameters>
</method>
<method name="SetTransport" cname="gst_webrtc_rtp_receiver_set_transport">
<return-type type="void"/>
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*"/>
</parameters>
</method>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*"/>
<field cname="rtcp_transport" access="public" writeable="false" readable="true" is_callback="false" name="RtcpTransport" type="GstWebRTCDTLSTransport*"/>
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
</object>
<object name="WebRTCRTPSender" cname="GstWebRTCRTPSender" opaque="false" hidden="false" parent="GstObject" version="1.16">
@ -31936,22 +31965,9 @@
<parameter name="priority" type="GstWebRTCPriorityType"/>
</parameters>
</method>
<method name="SetRtcpTransport" cname="gst_webrtc_rtp_sender_set_rtcp_transport">
<return-type type="void"/>
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*"/>
</parameters>
</method>
<method name="SetTransport" cname="gst_webrtc_rtp_sender_set_transport">
<return-type type="void"/>
<parameters>
<parameter name="transport" type="GstWebRTCDTLSTransport*"/>
</parameters>
</method>
<property name="Priority" cname="priority" type="GstWebRTCPriorityType" readable="true" writeable="true" construct="false" construct-only="false" version="1.20"/>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*"/>
<field cname="rtcp_transport" access="public" writeable="false" readable="true" is_callback="false" name="RtcpTransport" type="GstWebRTCDTLSTransport*"/>
<field cname="send_encodings" access="public" writeable="false" readable="true" is_callback="false" name="SendEncodings" type="GArray*" array="true" null_term_array="true"/>
<field cname="priority" access="public" writeable="false" readable="true" is_callback="false" name="PriorityField" type="GstWebRTCPriorityType"/>
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>