forked from mirrors/gstreamer-rs
regen - remove get prefix for getters
This commit is contained in:
parent
2d093ef1cd
commit
08545cbefc
262 changed files with 1633 additions and 1657 deletions
|
@ -172,11 +172,11 @@ not allowed in negotiated caps. It is not allowed in any situation other
|
||||||
than the one mentioned below to have less bits set in the channel mask than
|
than the one mentioned below to have less bits set in the channel mask than
|
||||||
the number of channels.
|
the number of channels.
|
||||||
|
|
||||||
`AudioChannelPosition::Mono` can only be used with a single mono channel that
|
[`Mono`](Self::Mono) can only be used with a single mono channel that
|
||||||
has no direction information and would be mixed into all directional channels.
|
has no direction information and would be mixed into all directional channels.
|
||||||
This is expressed in caps by having a single channel and no channel mask.
|
This is expressed in caps by having a single channel and no channel mask.
|
||||||
|
|
||||||
`AudioChannelPosition::None` can only be used if all channels have this position.
|
[`None`](Self::None) can only be used if all channels have this position.
|
||||||
This is expressed in caps by having a channel mask with no bits set.
|
This is expressed in caps by having a channel mask with no bits set.
|
||||||
|
|
||||||
As another special case it is allowed to have two channels without a channel mask.
|
As another special case it is allowed to have two channels without a channel mask.
|
||||||
|
@ -279,7 +279,7 @@ base class of its expectation w.r.t. buffer handling.
|
||||||
though they may or may not correspond to 1 (or more) audio format frame.
|
though they may or may not correspond to 1 (or more) audio format frame.
|
||||||
* Input frame is provided to subclass' `handle_frame`.
|
* Input frame is provided to subclass' `handle_frame`.
|
||||||
* If codec processing results in decoded data, subclass should call
|
* If codec processing results in decoded data, subclass should call
|
||||||
`AudioDecoder::finish_frame` to have decoded data pushed
|
[`finish_frame`](Self::finish_frame) to have decoded data pushed
|
||||||
downstream.
|
downstream.
|
||||||
* Just prior to actually pushing a buffer downstream,
|
* Just prior to actually pushing a buffer downstream,
|
||||||
it is passed to `pre_push`. Subclass should either use this callback
|
it is passed to `pre_push`. Subclass should either use this callback
|
||||||
|
@ -299,7 +299,7 @@ Subclass is responsible for providing pad template caps for
|
||||||
source and sink pads. The pads need to be named "sink" and "src". It also
|
source and sink pads. The pads need to be named "sink" and "src". It also
|
||||||
needs to set the fixed caps on srcpad, when the format is ensured. This
|
needs to set the fixed caps on srcpad, when the format is ensured. This
|
||||||
is typically when base class calls subclass' `set_format` function, though
|
is typically when base class calls subclass' `set_format` function, though
|
||||||
it might be delayed until calling `AudioDecoder::finish_frame`.
|
it might be delayed until calling [`finish_frame`](Self::finish_frame).
|
||||||
|
|
||||||
In summary, above process should have subclass concentrating on
|
In summary, above process should have subclass concentrating on
|
||||||
codec data processing while leaving other matters to base class,
|
codec data processing while leaving other matters to base class,
|
||||||
|
@ -334,7 +334,7 @@ Things that subclass need to take care of:
|
||||||
expectations in context.
|
expectations in context.
|
||||||
|
|
||||||
* Accept data in `handle_frame` and provide encoded results to
|
* Accept data in `handle_frame` and provide encoded results to
|
||||||
`AudioDecoder::finish_frame`. If it is prepared to perform
|
[`finish_frame`](Self::finish_frame). If it is prepared to perform
|
||||||
PLC, it should also accept NULL data in `handle_frame` and provide for
|
PLC, it should also accept NULL data in `handle_frame` and provide for
|
||||||
data for indicated duration.
|
data for indicated duration.
|
||||||
|
|
||||||
|
@ -693,7 +693,7 @@ Subclass is responsible for providing pad template caps for
|
||||||
source and sink pads. The pads need to be named "sink" and "src". It also
|
source and sink pads. The pads need to be named "sink" and "src". It also
|
||||||
needs to set the fixed caps on srcpad, when the format is ensured. This
|
needs to set the fixed caps on srcpad, when the format is ensured. This
|
||||||
is typically when base class calls subclass' `set_format` function, though
|
is typically when base class calls subclass' `set_format` function, though
|
||||||
it might be delayed until calling `AudioEncoder::finish_frame`.
|
it might be delayed until calling [`finish_frame`](Self::finish_frame).
|
||||||
|
|
||||||
In summary, above process should have subclass concentrating on
|
In summary, above process should have subclass concentrating on
|
||||||
codec data processing while leaving other matters to base class,
|
codec data processing while leaving other matters to base class,
|
||||||
|
@ -1470,17 +1470,17 @@ This interface is implemented by elements that provide a stream volume. Examples
|
||||||
such elements are `volume` and `playbin`.
|
such elements are `volume` and `playbin`.
|
||||||
|
|
||||||
Applications can use this interface to get or set the current stream volume. For this
|
Applications can use this interface to get or set the current stream volume. For this
|
||||||
the "volume" `gobject::Object` property can be used or the helper functions `StreamVolume::set_volume`
|
the "volume" `glib::object::Object` property can be used or the helper functions `StreamVolume::set_volume`
|
||||||
and `StreamVolume::get_volume`. This volume is always a linear factor, i.e. 0.0 is muted
|
and `StreamVolume::get_volume`. This volume is always a linear factor, i.e. 0.0 is muted
|
||||||
1.0 is 100%. For showing the volume in a GUI it might make sense to convert it to
|
1.0 is 100%. For showing the volume in a GUI it might make sense to convert it to
|
||||||
a different format by using `StreamVolume::convert_volume`. Volume sliders should usually
|
a different format by using `StreamVolume::convert_volume`. Volume sliders should usually
|
||||||
use a cubic volume.
|
use a cubic volume.
|
||||||
|
|
||||||
Separate from the volume the stream can also be muted by the "mute" `gobject::Object` property or
|
Separate from the volume the stream can also be muted by the "mute" `glib::object::Object` property or
|
||||||
`StreamVolume::set_mute` and `StreamVolume::get_mute`.
|
`StreamVolume::set_mute` and `StreamVolume::get_mute`.
|
||||||
|
|
||||||
Elements that provide some kind of stream volume should implement the "volume" and
|
Elements that provide some kind of stream volume should implement the "volume" and
|
||||||
"mute" `gobject::Object` properties and handle setting and getting of them properly.
|
"mute" `glib::object::Object` properties and handle setting and getting of them properly.
|
||||||
The volume property is defined to be a linear volume factor.
|
The volume property is defined to be a linear volume factor.
|
||||||
|
|
||||||
# Implements
|
# Implements
|
||||||
|
|
|
@ -7,7 +7,7 @@ a file. So if you have undefined buffer sizes and require a specific size,
|
||||||
this object is for you.
|
this object is for you.
|
||||||
|
|
||||||
An adapter is created with `Adapter::new`. It can be freed again with
|
An adapter is created with `Adapter::new`. It can be freed again with
|
||||||
`gobject::ObjectExt::unref`.
|
`glib::object::ObjectExt::unref`.
|
||||||
|
|
||||||
The theory of operation is like this: All buffers received are put
|
The theory of operation is like this: All buffers received are put
|
||||||
into the adapter using `Adapter::push` and the data is then read back
|
into the adapter using `Adapter::push` and the data is then read back
|
||||||
|
@ -105,7 +105,7 @@ buffer pushed in it.
|
||||||
|
|
||||||
[`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html)
|
[`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html)
|
||||||
<!-- impl Adapter::fn new -->
|
<!-- impl Adapter::fn new -->
|
||||||
Creates a new `Adapter`. Free with `gobject::ObjectExt::unref`.
|
Creates a new `Adapter`. Free with `glib::object::ObjectExt::unref`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ Trait containing all `ARGBControlBinding` methods.
|
||||||
[`ARGBControlBinding`](struct.ARGBControlBinding.html)
|
[`ARGBControlBinding`](struct.ARGBControlBinding.html)
|
||||||
<!-- impl ARGBControlBinding::fn new -->
|
<!-- impl ARGBControlBinding::fn new -->
|
||||||
Create a new control-binding that attaches the given `gst::ControlSource` to the
|
Create a new control-binding that attaches the given `gst::ControlSource` to the
|
||||||
`gobject::Object` property.
|
`glib::object::Object` property.
|
||||||
## `object`
|
## `object`
|
||||||
the object of the property
|
the object of the property
|
||||||
## `property_name`
|
## `property_name`
|
||||||
|
@ -63,7 +63,7 @@ Trait containing all `DirectControlBinding` methods.
|
||||||
[`DirectControlBinding`](struct.DirectControlBinding.html)
|
[`DirectControlBinding`](struct.DirectControlBinding.html)
|
||||||
<!-- impl DirectControlBinding::fn new -->
|
<!-- impl DirectControlBinding::fn new -->
|
||||||
Create a new control-binding that attaches the `gst::ControlSource` to the
|
Create a new control-binding that attaches the `gst::ControlSource` to the
|
||||||
`gobject::Object` property. It will map the control source range [0.0 ... 1.0] to
|
`glib::object::Object` property. It will map the control source range [0.0 ... 1.0] to
|
||||||
the full target property range, and clip all values outside this range.
|
the full target property range, and clip all values outside this range.
|
||||||
## `object`
|
## `object`
|
||||||
the object of the property
|
the object of the property
|
||||||
|
@ -77,7 +77,7 @@ the control source
|
||||||
the new `DirectControlBinding`
|
the new `DirectControlBinding`
|
||||||
<!-- impl DirectControlBinding::fn new_absolute -->
|
<!-- impl DirectControlBinding::fn new_absolute -->
|
||||||
Create a new control-binding that attaches the `gst::ControlSource` to the
|
Create a new control-binding that attaches the `gst::ControlSource` to the
|
||||||
`gobject::Object` property. It will directly map the control source values to the
|
`glib::object::Object` property. It will directly map the control source values to the
|
||||||
target property range without any transformations.
|
target property range without any transformations.
|
||||||
## `object`
|
## `object`
|
||||||
the object of the property
|
the object of the property
|
||||||
|
@ -94,7 +94,7 @@ the new `DirectControlBinding`
|
||||||
control points. It supports several interpolation modes and property types.
|
control points. It supports several interpolation modes and property types.
|
||||||
|
|
||||||
To use `InterpolationControlSource` get a new instance by calling
|
To use `InterpolationControlSource` get a new instance by calling
|
||||||
`InterpolationControlSource::new`, bind it to a `gobject::ParamSpec` and set some
|
`InterpolationControlSource::new`, bind it to a `glib::object::ParamSpec` and set some
|
||||||
control points by calling `TimedValueControlSourceExt::set`.
|
control points by calling `TimedValueControlSourceExt::set`.
|
||||||
|
|
||||||
All functions are MT-safe.
|
All functions are MT-safe.
|
||||||
|
@ -132,7 +132,7 @@ monotonic cubic interpolation, will not
|
||||||
waveforms as control values.
|
waveforms as control values.
|
||||||
|
|
||||||
To use `LFOControlSource` get a new instance by calling
|
To use `LFOControlSource` get a new instance by calling
|
||||||
`LFOControlSource::new`, bind it to a `gobject::ParamSpec` and set the relevant
|
`LFOControlSource::new`, bind it to a `glib::object::ParamSpec` and set the relevant
|
||||||
properties.
|
properties.
|
||||||
|
|
||||||
All functions are MT-safe.
|
All functions are MT-safe.
|
||||||
|
@ -317,7 +317,7 @@ The removed `gst::TimedValue`
|
||||||
control points. It allows for a tolerance on the time-stamps.
|
control points. It allows for a tolerance on the time-stamps.
|
||||||
|
|
||||||
To use `TriggerControlSource` get a new instance by calling
|
To use `TriggerControlSource` get a new instance by calling
|
||||||
`TriggerControlSource::new`, bind it to a `gobject::ParamSpec` and set some
|
`TriggerControlSource::new`, bind it to a `glib::object::ParamSpec` and set some
|
||||||
control points by calling `TimedValueControlSourceExt::set`.
|
control points by calling `TimedValueControlSourceExt::set`.
|
||||||
|
|
||||||
All functions are MT-safe.
|
All functions are MT-safe.
|
||||||
|
|
|
@ -328,7 +328,7 @@ The `Extractable` object type that can be extracted from the asset.
|
||||||
The ID of the asset. This should be unique amongst all assets with
|
The ID of the asset. This should be unique amongst all assets with
|
||||||
the same `Asset:extractable-type`. Depending on the associated
|
the same `Asset:extractable-type`. Depending on the associated
|
||||||
`Extractable` implementation, this id may convey some information
|
`Extractable` implementation, this id may convey some information
|
||||||
about the `gobject::Object` that should be extracted. Note that, as such, the
|
about the `glib::object::Object` that should be extracted. Note that, as such, the
|
||||||
ID will have an expected format, and you can not choose this value
|
ID will have an expected format, and you can not choose this value
|
||||||
arbitrarily. By default, this will be set to the type name of the
|
arbitrarily. By default, this will be set to the type name of the
|
||||||
`Asset:extractable-type`, but you should check the documentation
|
`Asset:extractable-type`, but you should check the documentation
|
||||||
|
@ -338,7 +338,7 @@ default behaviour.
|
||||||
The ID of the asset. This should be unique amongst all assets with
|
The ID of the asset. This should be unique amongst all assets with
|
||||||
the same `Asset:extractable-type`. Depending on the associated
|
the same `Asset:extractable-type`. Depending on the associated
|
||||||
`Extractable` implementation, this id may convey some information
|
`Extractable` implementation, this id may convey some information
|
||||||
about the `gobject::Object` that should be extracted. Note that, as such, the
|
about the `glib::object::Object` that should be extracted. Note that, as such, the
|
||||||
ID will have an expected format, and you can not choose this value
|
ID will have an expected format, and you can not choose this value
|
||||||
arbitrarily. By default, this will be set to the type name of the
|
arbitrarily. By default, this will be set to the type name of the
|
||||||
`Asset:extractable-type`, but you should check the documentation
|
`Asset:extractable-type`, but you should check the documentation
|
||||||
|
@ -368,8 +368,8 @@ will *still* point to this other asset. So you should check the
|
||||||
`Asset:proxy` property of `target`-proxy before assuming it is the
|
`Asset:proxy` property of `target`-proxy before assuming it is the
|
||||||
current default proxy for the target.
|
current default proxy for the target.
|
||||||
|
|
||||||
Note that the `gobject::Object::notify` for this property is emitted after
|
Note that the `glib::object::Object::notify` for this property is emitted after
|
||||||
the `Asset:proxy` `gobject::Object::notify` for the corresponding (if any)
|
the `Asset:proxy` `glib::object::Object::notify` for the corresponding (if any)
|
||||||
asset it is now the proxy of/no longer the proxy of.
|
asset it is now the proxy of/no longer the proxy of.
|
||||||
<!-- struct BaseEffect -->
|
<!-- struct BaseEffect -->
|
||||||
A `BaseEffect` is some operation that applies an effect to the data
|
A `BaseEffect` is some operation that applies an effect to the data
|
||||||
|
@ -1145,7 +1145,7 @@ Feature: `v1_18`
|
||||||
<!-- trait ClipExt::fn get_property_layer -->
|
<!-- trait ClipExt::fn get_property_layer -->
|
||||||
The layer this clip lies in.
|
The layer this clip lies in.
|
||||||
|
|
||||||
If you want to connect to this property's `gobject::Object::notify` signal,
|
If you want to connect to this property's `glib::object::Object::notify` signal,
|
||||||
you should connect to it with `g_signal_connect_after` since the
|
you should connect to it with `g_signal_connect_after` since the
|
||||||
signal emission may be stopped internally.
|
signal emission may be stopped internally.
|
||||||
<!-- trait ClipExt::fn get_property_supported_formats -->
|
<!-- trait ClipExt::fn get_property_supported_formats -->
|
||||||
|
@ -1502,7 +1502,7 @@ pipeline description.
|
||||||
|
|
||||||
Example: "videobalance saturation=1.5 hue=+0.5"
|
Example: "videobalance saturation=1.5 hue=+0.5"
|
||||||
<!-- struct Extractable -->
|
<!-- struct Extractable -->
|
||||||
A `gobject::Object` that implements the `Extractable` interface can be
|
A `glib::object::Object` that implements the `Extractable` interface can be
|
||||||
extracted from a `Asset` using `AssetExt::extract`.
|
extracted from a `Asset` using `AssetExt::extract`.
|
||||||
|
|
||||||
Each extractable type will have its own way of interpreting the
|
Each extractable type will have its own way of interpreting the
|
||||||
|
@ -3257,7 +3257,7 @@ Gets the property of a child of the element.
|
||||||
|
|
||||||
`property_name` can either be in the format "prop-name" or
|
`property_name` can either be in the format "prop-name" or
|
||||||
"TypeName::prop-name", where "prop-name" is the name of the property
|
"TypeName::prop-name", where "prop-name" is the name of the property
|
||||||
to get (as used in `gobject::ObjectExt::get`), and "TypeName" is the type name of
|
to get (as used in `glib::object::ObjectExt::get`), and "TypeName" is the type name of
|
||||||
the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is
|
the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is
|
||||||
useful when two children of different types share the same property
|
useful when two children of different types share the same property
|
||||||
name.
|
name.
|
||||||
|
@ -3403,14 +3403,14 @@ returned array
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
An array of
|
An array of
|
||||||
`gobject::ParamSpec` corresponding to the child properties of `self`, or `None` if
|
`glib::object::ParamSpec` corresponding to the child properties of `self`, or `None` if
|
||||||
something went wrong.
|
something went wrong.
|
||||||
<!-- trait TimelineElementExt::fn lookup_child -->
|
<!-- trait TimelineElementExt::fn lookup_child -->
|
||||||
Looks up a child property of the element.
|
Looks up a child property of the element.
|
||||||
|
|
||||||
`prop_name` can either be in the format "prop-name" or
|
`prop_name` can either be in the format "prop-name" or
|
||||||
"TypeName::prop-name", where "prop-name" is the name of the property
|
"TypeName::prop-name", where "prop-name" is the name of the property
|
||||||
to look up (as used in `gobject::ObjectExt::get`), and "TypeName" is the type name
|
to look up (as used in `glib::object::ObjectExt::get`), and "TypeName" is the type name
|
||||||
of the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is
|
of the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is
|
||||||
useful when two children of different types share the same property
|
useful when two children of different types share the same property
|
||||||
name.
|
name.
|
||||||
|
@ -3543,7 +3543,7 @@ Sets the property of a child of the element.
|
||||||
|
|
||||||
`property_name` can either be in the format "prop-name" or
|
`property_name` can either be in the format "prop-name" or
|
||||||
"TypeName::prop-name", where "prop-name" is the name of the property
|
"TypeName::prop-name", where "prop-name" is the name of the property
|
||||||
to set (as used in `gobject::ObjectExt::set`), and "TypeName" is the type name of
|
to set (as used in `glib::object::ObjectExt::set`), and "TypeName" is the type name of
|
||||||
the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is
|
the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is
|
||||||
useful when two children of different types share the same property
|
useful when two children of different types share the same property
|
||||||
name.
|
name.
|
||||||
|
@ -3737,7 +3737,7 @@ The specification for the property that has been unregistered
|
||||||
<!-- trait TimelineElementExt::fn connect_deep_notify -->
|
<!-- trait TimelineElementExt::fn connect_deep_notify -->
|
||||||
Emitted when a child of the element has one of its registered
|
Emitted when a child of the element has one of its registered
|
||||||
properties set. See `TimelineElementExt::add_child_property`.
|
properties set. See `TimelineElementExt::add_child_property`.
|
||||||
Note that unlike `gobject::Object::notify`, a child property name can not be
|
Note that unlike `glib::object::Object::notify`, a child property name can not be
|
||||||
used as a signal detail.
|
used as a signal detail.
|
||||||
## `prop_object`
|
## `prop_object`
|
||||||
The child whose property has been set
|
The child whose property has been set
|
||||||
|
@ -4311,7 +4311,7 @@ The name of the first property to get
|
||||||
<!-- trait TrackElementExt::fn get_child_property -->
|
<!-- trait TrackElementExt::fn get_child_property -->
|
||||||
In general, a copy is made of the property contents and
|
In general, a copy is made of the property contents and
|
||||||
the caller is responsible for freeing the memory by calling
|
the caller is responsible for freeing the memory by calling
|
||||||
`gobject::Value::unset`.
|
`glib::object::Value::unset`.
|
||||||
|
|
||||||
Gets a property of a GstElement contained in `self`.
|
Gets a property of a GstElement contained in `self`.
|
||||||
|
|
||||||
|
@ -4338,7 +4338,7 @@ Gets a property of a child of `self`.
|
||||||
|
|
||||||
Use `TimelineElementExt::get_child_property_by_pspec`
|
Use `TimelineElementExt::get_child_property_by_pspec`
|
||||||
## `pspec`
|
## `pspec`
|
||||||
The `gobject::ParamSpec` that specifies the property you want to get
|
The `glib::object::ParamSpec` that specifies the property you want to get
|
||||||
## `value`
|
## `value`
|
||||||
return location for the value
|
return location for the value
|
||||||
<!-- trait TrackElementExt::fn get_child_property_valist -->
|
<!-- trait TrackElementExt::fn get_child_property_valist -->
|
||||||
|
@ -4445,7 +4445,7 @@ Feature: `v1_18`
|
||||||
|
|
||||||
`true` if `element` is a core track element.
|
`true` if `element` is a core track element.
|
||||||
<!-- trait TrackElementExt::fn list_children_properties -->
|
<!-- trait TrackElementExt::fn list_children_properties -->
|
||||||
Gets an array of `gobject::ParamSpec`* for all configurable properties of the
|
Gets an array of `glib::object::ParamSpec`* for all configurable properties of the
|
||||||
children of `self`.
|
children of `self`.
|
||||||
|
|
||||||
# Deprecated
|
# Deprecated
|
||||||
|
@ -4456,7 +4456,7 @@ return location for the length of the returned array
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
An array of `gobject::ParamSpec`* which should be freed after use or
|
An array of `glib::object::ParamSpec`* which should be freed after use or
|
||||||
`None` if something went wrong.
|
`None` if something went wrong.
|
||||||
<!-- trait TrackElementExt::fn lookup_child -->
|
<!-- trait TrackElementExt::fn lookup_child -->
|
||||||
Looks up which `element` and `pspec` would be effected by the given `name`. If various
|
Looks up which `element` and `pspec` would be effected by the given `name`. If various
|
||||||
|
@ -4551,7 +4551,7 @@ Sets a property of a child of `self`.
|
||||||
|
|
||||||
Use `ges_timeline_element_set_child_property_by_spec`
|
Use `ges_timeline_element_set_child_property_by_spec`
|
||||||
## `pspec`
|
## `pspec`
|
||||||
The `gobject::ParamSpec` that specifies the property you want to set
|
The `glib::object::ParamSpec` that specifies the property you want to set
|
||||||
## `value`
|
## `value`
|
||||||
The value
|
The value
|
||||||
<!-- trait TrackElementExt::fn set_child_property_valist -->
|
<!-- trait TrackElementExt::fn set_child_property_valist -->
|
||||||
|
@ -4745,10 +4745,10 @@ correspond to the type of data that the element can produce or
|
||||||
process.
|
process.
|
||||||
<!-- struct TrackType -->
|
<!-- struct TrackType -->
|
||||||
Types of content handled by a track. If the content is not one of
|
Types of content handled by a track. If the content is not one of
|
||||||
`TrackType::Audio`, `TrackType::Video` or `TrackType::Text`,
|
[`Audio`](Self::Audio), [`Video`](Self::Video) or [`Text`](Self::Text),
|
||||||
the user of the `Track` must set the type to `TrackType::Custom`.
|
the user of the `Track` must set the type to [`Custom`](Self::Custom).
|
||||||
|
|
||||||
`TrackType::Unknown` is for internal purposes and should not be used
|
[`Unknown`](Self::Unknown) is for internal purposes and should not be used
|
||||||
by users
|
by users
|
||||||
<!-- struct TrackType::const UNKNOWN -->
|
<!-- struct TrackType::const UNKNOWN -->
|
||||||
A track of unknown type (i.e. invalid)
|
A track of unknown type (i.e. invalid)
|
||||||
|
|
|
@ -597,7 +597,7 @@ a comparison function to run
|
||||||
The first `GLWindow` that causes a match
|
The first `GLWindow` that causes a match
|
||||||
from `compare_func`
|
from `compare_func`
|
||||||
<!-- trait GLDisplayExt::fn connect_create_context -->
|
<!-- trait GLDisplayExt::fn connect_create_context -->
|
||||||
Overrides the `GLContext` creation mechanism.
|
Overrides the [`crate::GLContext`] (XXX: @-reference does not belong to GLDisplayExt!) creation mechanism.
|
||||||
It can be called in any thread and it is emitted with
|
It can be called in any thread and it is emitted with
|
||||||
display's object lock held.
|
display's object lock held.
|
||||||
## `context`
|
## `context`
|
||||||
|
@ -1352,7 +1352,7 @@ The OpenGL texture target that an OpenGL texture can be bound to. The
|
||||||
`gst_gl_value_set_texture_target_from_mask`,
|
`gst_gl_value_set_texture_target_from_mask`,
|
||||||
`gst_gl_value_get_texture_target_mask`, and
|
`gst_gl_value_get_texture_target_mask`, and
|
||||||
`gst_gl_value_set_texture_target` functions can be used for handling texture
|
`gst_gl_value_set_texture_target` functions can be used for handling texture
|
||||||
targets with `gobject::Value`'s when e.g. dealing with `gst::Caps`.
|
targets with `glib::object::Value`'s when e.g. dealing with `gst::Caps`.
|
||||||
<!-- enum GLTextureTarget::variant None -->
|
<!-- enum GLTextureTarget::variant None -->
|
||||||
no texture target
|
no texture target
|
||||||
<!-- enum GLTextureTarget::variant 2d -->
|
<!-- enum GLTextureTarget::variant 2d -->
|
||||||
|
|
|
@ -20,7 +20,7 @@ A `NetClientClock` and `NtpClock` is typically set on a `gst::Pipeline` with
|
||||||
`gst::Pipeline::use_clock`.
|
`gst::Pipeline::use_clock`.
|
||||||
|
|
||||||
If you set a `gst::Bus` on the clock via the "bus" object property, it will
|
If you set a `gst::Bus` on the clock via the "bus" object property, it will
|
||||||
send `gst::MessageType::Element` messages with an attached `gst::Structure` containing
|
send [`crate::gst::MessageType::Element`] (XXX: @-reference does not belong to NetClientClock!) messages with an attached `gst::Structure` containing
|
||||||
statistics about clock accuracy and network traffic.
|
statistics about clock accuracy and network traffic.
|
||||||
|
|
||||||
# Implements
|
# Implements
|
||||||
|
|
|
@ -140,7 +140,7 @@ A Function to get current audio `PlayerAudioInfo` instance.
|
||||||
|
|
||||||
current audio track.
|
current audio track.
|
||||||
|
|
||||||
The caller should free it with `gobject::ObjectExt::unref`
|
The caller should free it with `glib::object::ObjectExt::unref`
|
||||||
<!-- impl Player::fn get_current_subtitle_track -->
|
<!-- impl Player::fn get_current_subtitle_track -->
|
||||||
A Function to get current subtitle `PlayerSubtitleInfo` instance.
|
A Function to get current subtitle `PlayerSubtitleInfo` instance.
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ A Function to get current subtitle `PlayerSubtitleInfo` instance.
|
||||||
|
|
||||||
current subtitle track.
|
current subtitle track.
|
||||||
|
|
||||||
The caller should free it with `gobject::ObjectExt::unref`
|
The caller should free it with `glib::object::ObjectExt::unref`
|
||||||
<!-- impl Player::fn get_current_video_track -->
|
<!-- impl Player::fn get_current_video_track -->
|
||||||
A Function to get current video `PlayerVideoInfo` instance.
|
A Function to get current video `PlayerVideoInfo` instance.
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ A Function to get current video `PlayerVideoInfo` instance.
|
||||||
|
|
||||||
current video track.
|
current video track.
|
||||||
|
|
||||||
The caller should free it with `gobject::ObjectExt::unref`
|
The caller should free it with `glib::object::ObjectExt::unref`
|
||||||
<!-- impl Player::fn get_current_visualization -->
|
<!-- impl Player::fn get_current_visualization -->
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
@ -177,7 +177,7 @@ A Function to get the current media info `PlayerMediaInfo` instance.
|
||||||
|
|
||||||
media info instance.
|
media info instance.
|
||||||
|
|
||||||
The caller should free it with `gobject::ObjectExt::unref`
|
The caller should free it with `glib::object::ObjectExt::unref`
|
||||||
<!-- impl Player::fn get_multiview_flags -->
|
<!-- impl Player::fn get_multiview_flags -->
|
||||||
Retrieve the current value of the indicated `type_`.
|
Retrieve the current value of the indicated `type_`.
|
||||||
|
|
||||||
|
|
|
@ -219,14 +219,14 @@ Get the `gio::TlsCertificate` used for negotiating TLS `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `gio::TlsCertificate` of `self`. `gobject::ObjectExt::unref` after
|
the `gio::TlsCertificate` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPAuthExt::fn get_tls_database -->
|
<!-- trait RTSPAuthExt::fn get_tls_database -->
|
||||||
Get the `gio::TlsDatabase` used for verifying client certificate.
|
Get the `gio::TlsDatabase` used for verifying client certificate.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `gio::TlsDatabase` of `self`. `gobject::ObjectExt::unref` after
|
the `gio::TlsDatabase` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPAuthExt::fn parse_htdigest -->
|
<!-- trait RTSPAuthExt::fn parse_htdigest -->
|
||||||
Parse the contents of the file at `path` and enable the privileges
|
Parse the contents of the file at `path` and enable the privileges
|
||||||
|
@ -346,7 +346,7 @@ Get the `RTSPAuth` used as the authentication manager of `self`.
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPAuth` of `self`.
|
the `RTSPAuth` of `self`.
|
||||||
`gobject::ObjectExt::unref` after usage.
|
`glib::object::ObjectExt::unref` after usage.
|
||||||
<!-- trait RTSPClientExt::fn get_connection -->
|
<!-- trait RTSPClientExt::fn get_connection -->
|
||||||
Get the `gst_rtsp::RTSPConnection` of `self`.
|
Get the `gst_rtsp::RTSPConnection` of `self`.
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ Get the `RTSPThreadPool` used as the thread pool of `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPThreadPool` of `self`. `gobject::ObjectExt::unref` after
|
the `RTSPThreadPool` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPClientExt::fn handle_message -->
|
<!-- trait RTSPClientExt::fn handle_message -->
|
||||||
Let the client handle `message`.
|
Let the client handle `message`.
|
||||||
|
@ -754,7 +754,7 @@ Get the `RTSPAddressPool` used as the address pool of `self`.
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPAddressPool` of `self`.
|
the `RTSPAddressPool` of `self`.
|
||||||
`gobject::ObjectExt::unref` after usage.
|
`glib::object::ObjectExt::unref` after usage.
|
||||||
<!-- trait RTSPMediaExt::fn get_base_time -->
|
<!-- trait RTSPMediaExt::fn get_base_time -->
|
||||||
Get the base_time that is used by the pipeline in `self`.
|
Get the base_time that is used by the pipeline in `self`.
|
||||||
|
|
||||||
|
@ -1328,7 +1328,7 @@ Get the `RTSPAddressPool` used as the address pool of `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPAddressPool` of `self`. `gobject::ObjectExt::unref` after
|
the `RTSPAddressPool` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPMediaFactoryExt::fn get_buffer_size -->
|
<!-- trait RTSPMediaFactoryExt::fn get_buffer_size -->
|
||||||
Get the kernel UDP buffer size.
|
Get the kernel UDP buffer size.
|
||||||
|
@ -1664,7 +1664,7 @@ the amount of `path` matched
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPMediaFactory` for `path`.
|
the `RTSPMediaFactory` for `path`.
|
||||||
`gobject::ObjectExt::unref` after usage.
|
`glib::object::ObjectExt::unref` after usage.
|
||||||
<!-- trait RTSPMountPointsExt::fn remove_factory -->
|
<!-- trait RTSPMountPointsExt::fn remove_factory -->
|
||||||
Remove the `RTSPMediaFactory` associated with `path` in `self`.
|
Remove the `RTSPMediaFactory` associated with `path` in `self`.
|
||||||
## `path`
|
## `path`
|
||||||
|
@ -1791,7 +1791,7 @@ Get the `RTSPAuth` used as the authentication manager of `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPAuth` of `self`. `gobject::ObjectExt::unref` after
|
the `RTSPAuth` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPServerExt::fn get_backlog -->
|
<!-- trait RTSPServerExt::fn get_backlog -->
|
||||||
The maximum amount of queued requests for the server.
|
The maximum amount of queued requests for the server.
|
||||||
|
@ -1819,7 +1819,7 @@ Get the `RTSPMountPoints` used as the mount points of `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPMountPoints` of `self`. `gobject::ObjectExt::unref` after
|
the `RTSPMountPoints` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPServerExt::fn get_service -->
|
<!-- trait RTSPServerExt::fn get_service -->
|
||||||
Get the service on which the server will accept connections.
|
Get the service on which the server will accept connections.
|
||||||
|
@ -1832,14 +1832,14 @@ Get the `RTSPSessionPool` used as the session pool of `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPSessionPool` used for sessions. `gobject::ObjectExt::unref` after
|
the `RTSPSessionPool` used for sessions. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPServerExt::fn get_thread_pool -->
|
<!-- trait RTSPServerExt::fn get_thread_pool -->
|
||||||
Get the `RTSPThreadPool` used as the thread pool of `self`.
|
Get the `RTSPThreadPool` used as the thread pool of `self`.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPThreadPool` of `self`. `gobject::ObjectExt::unref` after
|
the `RTSPThreadPool` of `self`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPServerExt::fn set_address -->
|
<!-- trait RTSPServerExt::fn set_address -->
|
||||||
Configure `self` to accept connections on the given address.
|
Configure `self` to accept connections on the given address.
|
||||||
|
@ -2018,7 +2018,7 @@ a `RTSPMedia`
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
a new `RTSPSessionMedia` object.
|
a new [`crate::RTSPSessionMedia`] (XXX: @-reference does not belong to RTSPSessionExt!) object.
|
||||||
<!-- trait RTSPSessionExt::fn next_timeout -->
|
<!-- trait RTSPSessionExt::fn next_timeout -->
|
||||||
Get the amount of milliseconds till the session will expire.
|
Get the amount of milliseconds till the session will expire.
|
||||||
|
|
||||||
|
@ -2187,7 +2187,7 @@ Create a new `RTSPSessionPool` instance.
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
A new `RTSPSessionPool`. `gobject::ObjectExt::unref` after
|
A new `RTSPSessionPool`. `glib::object::ObjectExt::unref` after
|
||||||
usage.
|
usage.
|
||||||
<!-- trait RTSPSessionPoolExt::fn cleanup -->
|
<!-- trait RTSPSessionPoolExt::fn cleanup -->
|
||||||
Inspect all the sessions in `self` and remove the sessions that are inactive
|
Inspect all the sessions in `self` and remove the sessions that are inactive
|
||||||
|
@ -2243,7 +2243,7 @@ the session id
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPSession` with `sessionid`
|
the `RTSPSession` with `sessionid`
|
||||||
or `None` when the session did not exist. `gobject::ObjectExt::unref` after usage.
|
or `None` when the session did not exist. `glib::object::ObjectExt::unref` after usage.
|
||||||
<!-- trait RTSPSessionPoolExt::fn get_max_sessions -->
|
<!-- trait RTSPSessionPoolExt::fn get_max_sessions -->
|
||||||
Get the maximum allowed number of sessions in `self`. 0 means an unlimited
|
Get the maximum allowed number of sessions in `self`. 0 means an unlimited
|
||||||
amount of sessions.
|
amount of sessions.
|
||||||
|
@ -2359,7 +2359,7 @@ Get the `RTSPAddressPool` used as the address pool of `self`.
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `RTSPAddressPool` of `self`.
|
the `RTSPAddressPool` of `self`.
|
||||||
`gobject::ObjectExt::unref` after usage.
|
`glib::object::ObjectExt::unref` after usage.
|
||||||
<!-- trait RTSPStreamExt::fn get_buffer_size -->
|
<!-- trait RTSPStreamExt::fn get_buffer_size -->
|
||||||
Get the size of the UDP transmission buffer (in bytes)
|
Get the size of the UDP transmission buffer (in bytes)
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ CEA-608 as byte pairs. Note that
|
||||||
this format is not recommended since is does not specify to
|
this format is not recommended since is does not specify to
|
||||||
which field the caption comes from and therefore assumes
|
which field the caption comes from and therefore assumes
|
||||||
it comes from the first field (and that there is no information
|
it comes from the first field (and that there is no information
|
||||||
on the second field). Use `VideoCaptionType::Cea708Raw`
|
on the second field). Use [`Cea708Raw`](Self::Cea708Raw)
|
||||||
if you wish to store CEA-608 from two fields and prefix each byte pair
|
if you wish to store CEA-608 from two fields and prefix each byte pair
|
||||||
with 0xFC for the first field and 0xFD for the second field.
|
with 0xFC for the first field and 0xFD for the second field.
|
||||||
<!-- enum VideoCaptionType::variant Cea608S3341a -->
|
<!-- enum VideoCaptionType::variant Cea608S3341a -->
|
||||||
|
@ -275,8 +275,8 @@ Decoders and encoders will receive such a state through their
|
||||||
respective `set_format` vmethods.
|
respective `set_format` vmethods.
|
||||||
|
|
||||||
Decoders and encoders can set the downstream state, by using the
|
Decoders and encoders can set the downstream state, by using the
|
||||||
`VideoDecoder::set_output_state`() or
|
[`crate::VideoDecoder::set_output_state`] (XXX: @-reference does not belong to VideoCodecState!)() or
|
||||||
`VideoEncoder::set_output_state`() methods.
|
[`crate::VideoEncoder::set_output_state`] (XXX: @-reference does not belong to VideoCodecState!)() methods.
|
||||||
<!-- impl VideoCodecState::fn ref -->
|
<!-- impl VideoCodecState::fn ref -->
|
||||||
Increases the refcount of the given state by one.
|
Increases the refcount of the given state by one.
|
||||||
|
|
||||||
|
@ -387,9 +387,9 @@ follows:
|
||||||
The ownership of the frame is given to the `handle_frame` callback.
|
The ownership of the frame is given to the `handle_frame` callback.
|
||||||
|
|
||||||
* If codec processing results in decoded data, the subclass should call
|
* If codec processing results in decoded data, the subclass should call
|
||||||
`VideoDecoder::finish_frame` to have decoded data pushed.
|
[`finish_frame`](Self::finish_frame) to have decoded data pushed.
|
||||||
downstream. Otherwise, the subclass must call
|
downstream. Otherwise, the subclass must call
|
||||||
`VideoDecoder::drop_frame`, to allow the base class to do timestamp
|
[`drop_frame`](Self::drop_frame), to allow the base class to do timestamp
|
||||||
and offset tracking, and possibly to requeue the frame for a later
|
and offset tracking, and possibly to requeue the frame for a later
|
||||||
attempt in the case of reverse playback.
|
attempt in the case of reverse playback.
|
||||||
|
|
||||||
|
@ -420,8 +420,8 @@ source and sink pads. The pads need to be named "sink" and "src". It also
|
||||||
needs to provide information about the output caps, when they are known.
|
needs to provide information about the output caps, when they are known.
|
||||||
This may be when the base class calls the subclass' `set_format` function,
|
This may be when the base class calls the subclass' `set_format` function,
|
||||||
though it might be during decoding, before calling
|
though it might be during decoding, before calling
|
||||||
`VideoDecoder::finish_frame`. This is done via
|
[`finish_frame`](Self::finish_frame). This is done via
|
||||||
`VideoDecoder::set_output_state`
|
[`set_output_state`](Self::set_output_state)
|
||||||
|
|
||||||
The subclass is also responsible for providing (presentation) timestamps
|
The subclass is also responsible for providing (presentation) timestamps
|
||||||
(likely based on corresponding input ones). If that is not applicable
|
(likely based on corresponding input ones). If that is not applicable
|
||||||
|
@ -432,7 +432,7 @@ if specifically requested by the subclass, as full-fledged support
|
||||||
should rather be left to upstream demuxer, parser or alike. This simple
|
should rather be left to upstream demuxer, parser or alike. This simple
|
||||||
approach caters for seeking and duration reporting using estimated input
|
approach caters for seeking and duration reporting using estimated input
|
||||||
bitrates. To enable it, a subclass should call
|
bitrates. To enable it, a subclass should call
|
||||||
`VideoDecoderExt::set_estimate_rate` to enable handling of incoming
|
[`crate::VideoDecoderExt::set_estimate_rate`] (XXX: @-reference does not belong to VideoDecoder!) to enable handling of incoming
|
||||||
byte-streams.
|
byte-streams.
|
||||||
|
|
||||||
The base class provides some support for reverse playback, in particular
|
The base class provides some support for reverse playback, in particular
|
||||||
|
@ -448,15 +448,15 @@ The bare minimum that a functional subclass needs to implement is:
|
||||||
|
|
||||||
* Provide pad templates
|
* Provide pad templates
|
||||||
* Inform the base class of output caps via
|
* Inform the base class of output caps via
|
||||||
`VideoDecoder::set_output_state`
|
[`set_output_state`](Self::set_output_state)
|
||||||
|
|
||||||
* Parse input data, if it is not considered packetized from upstream
|
* Parse input data, if it is not considered packetized from upstream
|
||||||
Data will be provided to `parse` which should invoke
|
Data will be provided to `parse` which should invoke
|
||||||
`VideoDecoderExt::add_to_frame` and `VideoDecoder::have_frame` to
|
[`crate::VideoDecoderExt::add_to_frame`] (XXX: @-reference does not belong to VideoDecoder!) and [`have_frame`](Self::have_frame) to
|
||||||
separate the data belonging to each video frame.
|
separate the data belonging to each video frame.
|
||||||
|
|
||||||
* Accept data in `handle_frame` and provide decoded results to
|
* Accept data in `handle_frame` and provide decoded results to
|
||||||
`VideoDecoder::finish_frame`, or call `VideoDecoder::drop_frame`.
|
[`finish_frame`](Self::finish_frame), or call [`drop_frame`](Self::drop_frame).
|
||||||
|
|
||||||
This is an Abstract Base Class, you cannot instantiate it.
|
This is an Abstract Base Class, you cannot instantiate it.
|
||||||
|
|
||||||
|
@ -836,7 +836,7 @@ GstVideoEncoder and subclass should cooperate as follows.
|
||||||
this to subclass' `handle_frame`.
|
this to subclass' `handle_frame`.
|
||||||
|
|
||||||
* If codec processing results in encoded data, subclass should call
|
* If codec processing results in encoded data, subclass should call
|
||||||
`VideoEncoder::finish_frame` to have encoded data pushed
|
[`finish_frame`](Self::finish_frame) to have encoded data pushed
|
||||||
downstream.
|
downstream.
|
||||||
|
|
||||||
* If implemented, baseclass calls subclass `pre_push` just prior to
|
* If implemented, baseclass calls subclass `pre_push` just prior to
|
||||||
|
@ -855,14 +855,14 @@ GstVideoEncoder and subclass should cooperate as follows.
|
||||||
Subclass is responsible for providing pad template caps for
|
Subclass is responsible for providing pad template caps for
|
||||||
source and sink pads. The pads need to be named "sink" and "src". It should
|
source and sink pads. The pads need to be named "sink" and "src". It should
|
||||||
also be able to provide fixed src pad caps in `getcaps` by the time it calls
|
also be able to provide fixed src pad caps in `getcaps` by the time it calls
|
||||||
`VideoEncoder::finish_frame`.
|
[`finish_frame`](Self::finish_frame).
|
||||||
|
|
||||||
Things that subclass need to take care of:
|
Things that subclass need to take care of:
|
||||||
|
|
||||||
* Provide pad templates
|
* Provide pad templates
|
||||||
* Provide source pad caps before pushing the first buffer
|
* Provide source pad caps before pushing the first buffer
|
||||||
* Accept data in `handle_frame` and provide encoded results to
|
* Accept data in `handle_frame` and provide encoded results to
|
||||||
`VideoEncoder::finish_frame`.
|
[`finish_frame`](Self::finish_frame).
|
||||||
|
|
||||||
|
|
||||||
The `VideoEncoder:qos` property will enable the Quality-of-Service
|
The `VideoEncoder:qos` property will enable the Quality-of-Service
|
||||||
|
@ -1107,7 +1107,7 @@ from the next call to `VideoEncoder::finish_frame`().
|
||||||
## `caps`
|
## `caps`
|
||||||
the `gst::Caps` to use for the output
|
the `gst::Caps` to use for the output
|
||||||
## `reference`
|
## `reference`
|
||||||
An optional reference `VideoCodecState`
|
An optional reference [`crate::VideoCodecState`] (XXX: @-reference does not belong to VideoEncoderExt!)
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
|
@ -1334,9 +1334,9 @@ planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)
|
||||||
<!-- enum VideoFormat::variant Gray10Le32 -->
|
<!-- enum VideoFormat::variant Gray10Le32 -->
|
||||||
10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14)
|
10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14)
|
||||||
<!-- enum VideoFormat::variant Nv1210le32 -->
|
<!-- enum VideoFormat::variant Nv1210le32 -->
|
||||||
10-bit variant of `VideoFormat::Nv12`, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
|
10-bit variant of [`Nv12`](Self::Nv12), packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
|
||||||
<!-- enum VideoFormat::variant Nv1610le32 -->
|
<!-- enum VideoFormat::variant Nv1610le32 -->
|
||||||
10-bit variant of `VideoFormat::Nv16`, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
|
10-bit variant of [`Nv16`](Self::Nv16), packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
|
||||||
<!-- enum VideoFormat::variant Nv1210le40 -->
|
<!-- enum VideoFormat::variant Nv1210le40 -->
|
||||||
Fully packed variant of NV12_10LE32 (Since: 1.16)
|
Fully packed variant of NV12_10LE32 (Since: 1.16)
|
||||||
<!-- enum VideoFormat::variant Y210 -->
|
<!-- enum VideoFormat::variant Y210 -->
|
||||||
|
@ -1639,7 +1639,7 @@ For frame-packed
|
||||||
<!-- struct VideoMultiviewFlags::const MIXED_MONO -->
|
<!-- struct VideoMultiviewFlags::const MIXED_MONO -->
|
||||||
The video stream contains both
|
The video stream contains both
|
||||||
mono and multiview portions, signalled on each buffer by the
|
mono and multiview portions, signalled on each buffer by the
|
||||||
absence or presence of the `VideoBufferFlags::MultipleView`
|
absence or presence of the [`crate::VideoBufferFlags::MultipleView`] (XXX: @-reference does not belong to VideoMultiviewFlags!)
|
||||||
buffer flag.
|
buffer flag.
|
||||||
<!-- enum VideoMultiviewFramePacking -->
|
<!-- enum VideoMultiviewFramePacking -->
|
||||||
`VideoMultiviewFramePacking` represents the subset of `VideoMultiviewMode`
|
`VideoMultiviewFramePacking` represents the subset of `VideoMultiviewMode`
|
||||||
|
@ -2132,7 +2132,7 @@ The highest property ID.
|
||||||
## `property_id`
|
## `property_id`
|
||||||
The property ID
|
The property ID
|
||||||
## `value`
|
## `value`
|
||||||
The `gobject::Value` to be set
|
The `glib::object::Value` to be set
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
|
|
|
@ -1320,7 +1320,7 @@ flag indicating that buffer meta should be
|
||||||
flag indicating that buffer memory should be reffed
|
flag indicating that buffer memory should be reffed
|
||||||
and appended to already existing memory. Unless the memory is marked as
|
and appended to already existing memory. Unless the memory is marked as
|
||||||
NO_SHARE, no actual copy of the memory is made but it is simply reffed.
|
NO_SHARE, no actual copy of the memory is made but it is simply reffed.
|
||||||
Add `BufferCopyFlags::Deep` to force a real copy.
|
Add [`Deep`](Self::Deep) to force a real copy.
|
||||||
<!-- struct BufferCopyFlags::const MERGE -->
|
<!-- struct BufferCopyFlags::const MERGE -->
|
||||||
flag indicating that buffer memory should be
|
flag indicating that buffer memory should be
|
||||||
merged
|
merged
|
||||||
|
@ -2739,7 +2739,7 @@ a newly allocated `Caps`
|
||||||
<!-- enum CapsIntersectMode -->
|
<!-- enum CapsIntersectMode -->
|
||||||
Modes of caps intersection
|
Modes of caps intersection
|
||||||
|
|
||||||
`CapsIntersectMode::ZigZag` tries to preserve overall order of both caps
|
[`ZigZag`](Self::ZigZag) tries to preserve overall order of both caps
|
||||||
by iterating on the caps' structures as the following matrix shows:
|
by iterating on the caps' structures as the following matrix shows:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
@ -2753,7 +2753,7 @@ Used when there is no explicit precedence of one caps over the other. e.g.
|
||||||
tee's sink pad getcaps function, it will probe its src pad peers' for their
|
tee's sink pad getcaps function, it will probe its src pad peers' for their
|
||||||
caps and intersect them with this mode.
|
caps and intersect them with this mode.
|
||||||
|
|
||||||
`CapsIntersectMode::First` is useful when an element wants to preserve
|
[`First`](Self::First) is useful when an element wants to preserve
|
||||||
another element's caps priority order when intersecting with its own caps.
|
another element's caps priority order when intersecting with its own caps.
|
||||||
Example: If caps1 is [A, B, C] and caps2 is [E, B, D, A], the result
|
Example: If caps1 is [A, B, C] and caps2 is [E, B, D, A], the result
|
||||||
would be [A, B], maintaining the first caps priority on the intersection.
|
would be [A, B], maintaining the first caps priority on the intersection.
|
||||||
|
@ -2837,11 +2837,11 @@ the number of child objects
|
||||||
MT safe.
|
MT safe.
|
||||||
<!-- trait ChildProxyExt::fn get_property -->
|
<!-- trait ChildProxyExt::fn get_property -->
|
||||||
Gets a single property using the GstChildProxy mechanism.
|
Gets a single property using the GstChildProxy mechanism.
|
||||||
You are responsible for freeing it by calling `gobject::Value::unset`
|
You are responsible for freeing it by calling `glib::object::Value::unset`
|
||||||
## `name`
|
## `name`
|
||||||
name of the property
|
name of the property
|
||||||
## `value`
|
## `value`
|
||||||
a `gobject::Value` that should take the result.
|
a `glib::object::Value` that should take the result.
|
||||||
<!-- trait ChildProxyExt::fn get_valist -->
|
<!-- trait ChildProxyExt::fn get_valist -->
|
||||||
Gets properties of the parent object and its children.
|
Gets properties of the parent object and its children.
|
||||||
## `first_property_name`
|
## `first_property_name`
|
||||||
|
@ -2849,16 +2849,16 @@ name of the first property to get
|
||||||
## `var_args`
|
## `var_args`
|
||||||
return location for the first property, followed optionally by more name/return location pairs, followed by `None`
|
return location for the first property, followed optionally by more name/return location pairs, followed by `None`
|
||||||
<!-- trait ChildProxyExt::fn lookup -->
|
<!-- trait ChildProxyExt::fn lookup -->
|
||||||
Looks up which object and `gobject::ParamSpec` would be effected by the given `name`.
|
Looks up which object and `glib::object::ParamSpec` would be effected by the given `name`.
|
||||||
|
|
||||||
MT safe.
|
MT safe.
|
||||||
## `name`
|
## `name`
|
||||||
name of the property to look up
|
name of the property to look up
|
||||||
## `target`
|
## `target`
|
||||||
pointer to a `gobject::Object` that
|
pointer to a `glib::object::Object` that
|
||||||
takes the real object to set property on
|
takes the real object to set property on
|
||||||
## `pspec`
|
## `pspec`
|
||||||
pointer to take the `gobject::ParamSpec`
|
pointer to take the `glib::object::ParamSpec`
|
||||||
describing the property
|
describing the property
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
@ -2875,7 +2875,7 @@ Sets a single property using the GstChildProxy mechanism.
|
||||||
## `name`
|
## `name`
|
||||||
name of the property to set
|
name of the property to set
|
||||||
## `value`
|
## `value`
|
||||||
new `gobject::Value` for the property
|
new `glib::object::Value` for the property
|
||||||
<!-- trait ChildProxyExt::fn set_valist -->
|
<!-- trait ChildProxyExt::fn set_valist -->
|
||||||
Sets properties of the parent object and its children.
|
Sets properties of the parent object and its children.
|
||||||
## `first_property_name`
|
## `first_property_name`
|
||||||
|
@ -2885,13 +2885,13 @@ value for the first property, followed optionally by more name/value pairs, foll
|
||||||
<!-- trait ChildProxyExt::fn connect_child_added -->
|
<!-- trait ChildProxyExt::fn connect_child_added -->
|
||||||
Will be emitted after the `object` was added to the `child_proxy`.
|
Will be emitted after the `object` was added to the `child_proxy`.
|
||||||
## `object`
|
## `object`
|
||||||
the `gobject::Object` that was added
|
the `glib::object::Object` that was added
|
||||||
## `name`
|
## `name`
|
||||||
the name of the new child
|
the name of the new child
|
||||||
<!-- trait ChildProxyExt::fn connect_child_removed -->
|
<!-- trait ChildProxyExt::fn connect_child_removed -->
|
||||||
Will be emitted after the `object` was removed from the `child_proxy`.
|
Will be emitted after the `object` was removed from the `child_proxy`.
|
||||||
## `object`
|
## `object`
|
||||||
the `gobject::Object` that was removed
|
the `glib::object::Object` that was removed
|
||||||
## `name`
|
## `name`
|
||||||
the name of the old child
|
the name of the old child
|
||||||
<!-- struct Clock -->
|
<!-- struct Clock -->
|
||||||
|
@ -3612,7 +3612,7 @@ Trait containing all `ControlBinding` methods.
|
||||||
<!-- trait ControlBindingExt::fn get_g_value_array -->
|
<!-- trait ControlBindingExt::fn get_g_value_array -->
|
||||||
Gets a number of `GValues` for the given controlled property starting at the
|
Gets a number of `GValues` for the given controlled property starting at the
|
||||||
requested time. The array `values` need to hold enough space for `n_values` of
|
requested time. The array `values` need to hold enough space for `n_values` of
|
||||||
`gobject::Value`.
|
`glib::object::Value`.
|
||||||
|
|
||||||
This function is useful if one wants to e.g. draw a graph of the control
|
This function is useful if one wants to e.g. draw a graph of the control
|
||||||
curve or apply a control curve sample by sample.
|
curve or apply a control curve sample by sample.
|
||||||
|
@ -7129,7 +7129,7 @@ undefined format
|
||||||
<!-- enum Format::variant Default -->
|
<!-- enum Format::variant Default -->
|
||||||
the default format of the pad/element. This can be
|
the default format of the pad/element. This can be
|
||||||
samples for raw audio, frames/fields for raw video (some, but not all,
|
samples for raw audio, frames/fields for raw video (some, but not all,
|
||||||
elements support this; use `Format::Time` if you don't have a good
|
elements support this; use [`Time`](Self::Time) if you don't have a good
|
||||||
reason to query for samples/frames)
|
reason to query for samples/frames)
|
||||||
<!-- enum Format::variant Bytes -->
|
<!-- enum Format::variant Bytes -->
|
||||||
bytes
|
bytes
|
||||||
|
@ -7809,7 +7809,7 @@ Creates a new instant-rate-request message. Elements handling the
|
||||||
instant-rate-change event must post this message. The message is
|
instant-rate-change event must post this message. The message is
|
||||||
handled at the pipeline, and allows the pipeline to select the
|
handled at the pipeline, and allows the pipeline to select the
|
||||||
running time when the rate change should happen and to send an
|
running time when the rate change should happen and to send an
|
||||||
`EventType::InstantRateSyncTime` event to notify the elements
|
[`crate::EventType::InstantRateSyncTime`] (XXX: @-reference does not belong to Message!) event to notify the elements
|
||||||
in the pipeline.
|
in the pipeline.
|
||||||
|
|
||||||
Feature: `v1_18`
|
Feature: `v1_18`
|
||||||
|
@ -8553,7 +8553,7 @@ the duration of the buffer that
|
||||||
Extract the QoS stats representing the history of the current continuous
|
Extract the QoS stats representing the history of the current continuous
|
||||||
pipeline playback period.
|
pipeline playback period.
|
||||||
|
|
||||||
When `format` is `Format::Undefined` both `dropped` and `processed` are
|
When `format` is [`crate::Format::Undefined`] (XXX: @-reference does not belong to Message!) both `dropped` and `processed` are
|
||||||
invalid. Values of -1 for either `processed` or `dropped` mean unknown values.
|
invalid. Values of -1 for either `processed` or `dropped` mean unknown values.
|
||||||
|
|
||||||
MT safe.
|
MT safe.
|
||||||
|
@ -8811,7 +8811,7 @@ the group id
|
||||||
Set the QoS stats representing the history of the current continuous pipeline
|
Set the QoS stats representing the history of the current continuous pipeline
|
||||||
playback period.
|
playback period.
|
||||||
|
|
||||||
When `format` is `Format::Undefined` both `dropped` and `processed` are
|
When `format` is [`crate::Format::Undefined`] (XXX: @-reference does not belong to Message!) both `dropped` and `processed` are
|
||||||
invalid. Values of -1 for either `processed` or `dropped` mean unknown values.
|
invalid. Values of -1 for either `processed` or `dropped` mean unknown values.
|
||||||
|
|
||||||
MT safe.
|
MT safe.
|
||||||
|
@ -8914,18 +8914,18 @@ pointer to a `Message` that will
|
||||||
<!-- struct Object -->
|
<!-- struct Object -->
|
||||||
`Object` provides a root for the object hierarchy tree filed in by the
|
`Object` provides a root for the object hierarchy tree filed in by the
|
||||||
GStreamer library. It is currently a thin wrapper on top of
|
GStreamer library. It is currently a thin wrapper on top of
|
||||||
`gobject::InitiallyUnowned`. It is an abstract class that is not very usable on its own.
|
`glib::object::InitiallyUnowned`. It is an abstract class that is not very usable on its own.
|
||||||
|
|
||||||
`Object` gives us basic refcounting, parenting functionality and locking.
|
`Object` gives us basic refcounting, parenting functionality and locking.
|
||||||
Most of the functions are just extended for special GStreamer needs and can be
|
Most of the functions are just extended for special GStreamer needs and can be
|
||||||
found under the same name in the base class of `Object` which is `gobject::Object`
|
found under the same name in the base class of `Object` which is `glib::object::Object`
|
||||||
(e.g. `gobject::ObjectExt::ref` becomes `GstObjectExt::ref`).
|
(e.g. `glib::object::ObjectExt::ref` becomes `GstObjectExt::ref`).
|
||||||
|
|
||||||
Since `Object` derives from `gobject::InitiallyUnowned`, it also inherits the
|
Since `Object` derives from `glib::object::InitiallyUnowned`, it also inherits the
|
||||||
floating reference. Be aware that functions such as `GstBinExt::add` and
|
floating reference. Be aware that functions such as `GstBinExt::add` and
|
||||||
`ElementExt::add_pad` take ownership of the floating reference.
|
`ElementExt::add_pad` take ownership of the floating reference.
|
||||||
|
|
||||||
In contrast to `gobject::Object` instances, `Object` adds a name property. The functions
|
In contrast to `glib::object::Object` instances, `Object` adds a name property. The functions
|
||||||
`Object::set_name` and `GstObjectExt::get_name` are used to set/get the name
|
`Object::set_name` and `GstObjectExt::get_name` are used to set/get the name
|
||||||
of the object.
|
of the object.
|
||||||
|
|
||||||
|
@ -9000,11 +9000,11 @@ using g_print.
|
||||||
MT safe. This function grabs and releases `object`'s LOCK for getting its
|
MT safe. This function grabs and releases `object`'s LOCK for getting its
|
||||||
path string.
|
path string.
|
||||||
## `object`
|
## `object`
|
||||||
the `gobject::Object` that signalled the notify.
|
the `glib::object::Object` that signalled the notify.
|
||||||
## `orig`
|
## `orig`
|
||||||
a `Object` that initiated the notify.
|
a `Object` that initiated the notify.
|
||||||
## `pspec`
|
## `pspec`
|
||||||
a `gobject::ParamSpec` of the property.
|
a `glib::object::ParamSpec` of the property.
|
||||||
## `excluded_props`
|
## `excluded_props`
|
||||||
|
|
||||||
a set of user-specified properties to exclude or `None` to show
|
a set of user-specified properties to exclude or `None` to show
|
||||||
|
@ -9019,7 +9019,7 @@ the floating flag while leaving the reference count unchanged. If the object
|
||||||
is not floating, then this call adds a new normal reference increasing the
|
is not floating, then this call adds a new normal reference increasing the
|
||||||
reference count by one.
|
reference count by one.
|
||||||
|
|
||||||
For more background on "floating references" please see the `gobject::Object`
|
For more background on "floating references" please see the `glib::object::Object`
|
||||||
documentation.
|
documentation.
|
||||||
## `object`
|
## `object`
|
||||||
a `Object` to sink
|
a `Object` to sink
|
||||||
|
@ -9088,7 +9088,7 @@ the control rate in nanoseconds
|
||||||
<!-- trait GstObjectExt::fn get_g_value_array -->
|
<!-- trait GstObjectExt::fn get_g_value_array -->
|
||||||
Gets a number of `GValues` for the given controlled property starting at the
|
Gets a number of `GValues` for the given controlled property starting at the
|
||||||
requested time. The array `values` need to hold enough space for `n_values` of
|
requested time. The array `values` need to hold enough space for `n_values` of
|
||||||
`gobject::Value`.
|
`glib::object::Value`.
|
||||||
|
|
||||||
This function is useful if one wants to e.g. draw a graph of the control
|
This function is useful if one wants to e.g. draw a graph of the control
|
||||||
curve or apply a control curve sample by sample.
|
curve or apply a control curve sample by sample.
|
||||||
|
@ -9339,13 +9339,13 @@ the object that originated the signal
|
||||||
the property that changed
|
the property that changed
|
||||||
<!-- trait GstObjectExt::fn get_property_parent -->
|
<!-- trait GstObjectExt::fn get_property_parent -->
|
||||||
The parent of the object. Please note, that when changing the 'parent'
|
The parent of the object. Please note, that when changing the 'parent'
|
||||||
property, we don't emit `gobject::Object::notify` and `Object::deep-notify`
|
property, we don't emit `glib::object::Object::notify` and `Object::deep-notify`
|
||||||
signals due to locking issues. In some cases one can use
|
signals due to locking issues. In some cases one can use
|
||||||
`Bin::element-added` or `Bin::element-removed` signals on the parent to
|
`Bin::element-added` or `Bin::element-removed` signals on the parent to
|
||||||
achieve a similar effect.
|
achieve a similar effect.
|
||||||
<!-- trait GstObjectExt::fn set_property_parent -->
|
<!-- trait GstObjectExt::fn set_property_parent -->
|
||||||
The parent of the object. Please note, that when changing the 'parent'
|
The parent of the object. Please note, that when changing the 'parent'
|
||||||
property, we don't emit `gobject::Object::notify` and `Object::deep-notify`
|
property, we don't emit `glib::object::Object::notify` and `Object::deep-notify`
|
||||||
signals due to locking issues. In some cases one can use
|
signals due to locking issues. In some cases one can use
|
||||||
`Bin::element-added` or `Bin::element-removed` signals on the parent to
|
`Bin::element-added` or `Bin::element-removed` signals on the parent to
|
||||||
achieve a similar effect.
|
achieve a similar effect.
|
||||||
|
@ -10635,9 +10635,9 @@ the default accept-caps handler will use
|
||||||
<!-- struct PadFlags::const LAST -->
|
<!-- struct PadFlags::const LAST -->
|
||||||
offset to define more flags
|
offset to define more flags
|
||||||
<!-- struct PadLinkCheck -->
|
<!-- struct PadLinkCheck -->
|
||||||
The amount of checking to be done when linking pads. `PadLinkCheck::Caps`
|
The amount of checking to be done when linking pads. [`Caps`](Self::Caps)
|
||||||
and `PadLinkCheck::TemplateCaps` are mutually exclusive. If both are
|
and [`TemplateCaps`](Self::TemplateCaps) are mutually exclusive. If both are
|
||||||
specified, expensive but safe `PadLinkCheck::Caps` are performed.
|
specified, expensive but safe [`Caps`](Self::Caps) are performed.
|
||||||
|
|
||||||
> Only disable some of the checks if you are 100% certain you know the link
|
> Only disable some of the checks if you are 100% certain you know the link
|
||||||
> will not fail because of hierarchy/caps compatibility failures. If uncertain,
|
> will not fail because of hierarchy/caps compatibility failures. If uncertain,
|
||||||
|
@ -10651,7 +10651,7 @@ Check the pads have same parents/grandparents.
|
||||||
pads are in the same bin.
|
pads are in the same bin.
|
||||||
<!-- struct PadLinkCheck::const TEMPLATE_CAPS -->
|
<!-- struct PadLinkCheck::const TEMPLATE_CAPS -->
|
||||||
Check if the pads are compatible by using
|
Check if the pads are compatible by using
|
||||||
their template caps. This is much faster than `PadLinkCheck::Caps`, but
|
their template caps. This is much faster than [`Caps`](Self::Caps), but
|
||||||
would be unsafe e.g. if one pad has `GST_CAPS_ANY`.
|
would be unsafe e.g. if one pad has `GST_CAPS_ANY`.
|
||||||
<!-- struct PadLinkCheck::const CAPS -->
|
<!-- struct PadLinkCheck::const CAPS -->
|
||||||
Check if the pads are compatible by comparing the
|
Check if the pads are compatible by comparing the
|
||||||
|
@ -10727,7 +10727,7 @@ Data has been handled in the probe and will not be
|
||||||
Since: 1.6
|
Since: 1.6
|
||||||
<!-- struct PadProbeType -->
|
<!-- struct PadProbeType -->
|
||||||
The different probing types that can occur. When either one of
|
The different probing types that can occur. When either one of
|
||||||
`PadProbeType::Idle` or `PadProbeType::Block` is used, the probe will be a
|
[`Idle`](Self::Idle) or [`Block`](Self::Block) is used, the probe will be a
|
||||||
blocking probe.
|
blocking probe.
|
||||||
<!-- struct PadProbeType::const INVALID -->
|
<!-- struct PadProbeType::const INVALID -->
|
||||||
invalid probe type
|
invalid probe type
|
||||||
|
@ -10746,8 +10746,8 @@ probe upstream events
|
||||||
<!-- struct PadProbeType::const EVENT_FLUSH -->
|
<!-- struct PadProbeType::const EVENT_FLUSH -->
|
||||||
probe flush events. This probe has to be
|
probe flush events. This probe has to be
|
||||||
explicitly enabled and is not included in the
|
explicitly enabled and is not included in the
|
||||||
@`PadProbeType::EventDownstream` or
|
@[`EventDownstream`](Self::EventDownstream) or
|
||||||
@`PadProbeType::EventUpstream` probe types.
|
@[`EventUpstream`](Self::EventUpstream) probe types.
|
||||||
<!-- struct PadProbeType::const QUERY_DOWNSTREAM -->
|
<!-- struct PadProbeType::const QUERY_DOWNSTREAM -->
|
||||||
probe downstream queries
|
probe downstream queries
|
||||||
<!-- struct PadProbeType::const QUERY_UPSTREAM -->
|
<!-- struct PadProbeType::const QUERY_UPSTREAM -->
|
||||||
|
@ -11566,7 +11566,7 @@ Trait containing all `PluginFeature` methods.
|
||||||
|
|
||||||
[`DeviceProviderFactory`](struct.DeviceProviderFactory.html), [`ElementFactory`](struct.ElementFactory.html), [`PluginFeature`](struct.PluginFeature.html), [`TypeFindFactory`](struct.TypeFindFactory.html)
|
[`DeviceProviderFactory`](struct.DeviceProviderFactory.html), [`ElementFactory`](struct.ElementFactory.html), [`PluginFeature`](struct.PluginFeature.html), [`TypeFindFactory`](struct.TypeFindFactory.html)
|
||||||
<!-- impl PluginFeature::fn list_copy -->
|
<!-- impl PluginFeature::fn list_copy -->
|
||||||
Copies the list of features. Caller should call `PluginFeature::list_free`
|
Copies the list of features. Caller should call [`list_free`](Self::list_free)
|
||||||
when done with the list.
|
when done with the list.
|
||||||
## `list`
|
## `list`
|
||||||
list
|
list
|
||||||
|
@ -11830,7 +11830,7 @@ with `Promise::reply`. The exact value returned is defined by the API
|
||||||
contract of the producer and `None` may be a valid reply.
|
contract of the producer and `None` may be a valid reply.
|
||||||
`Promise::interrupt` is for the consumer to
|
`Promise::interrupt` is for the consumer to
|
||||||
indicate to the producer that the value is not needed anymore and producing
|
indicate to the producer that the value is not needed anymore and producing
|
||||||
that value can stop. The `PromiseResult::Expired` state set by a call
|
that value can stop. The [`crate::PromiseResult::Expired`] (XXX: @-reference does not belong to Promise!) state set by a call
|
||||||
to `Promise::expire` indicates to the consumer that a value will never
|
to `Promise::expire` indicates to the consumer that a value will never
|
||||||
be produced and is intended to be called by a third party that implements
|
be produced and is intended to be called by a third party that implements
|
||||||
some notion of message handling such as `Bus`.
|
some notion of message handling such as `Bus`.
|
||||||
|
@ -12739,7 +12739,7 @@ in the `formats` array must be equal to `n_formats`.
|
||||||
the number of formats to set.
|
the number of formats to set.
|
||||||
## `formats`
|
## `formats`
|
||||||
an array containing `n_formats`
|
an array containing `n_formats`
|
||||||
`Format` values.
|
[`crate::Format`] (XXX: @-reference does not belong to Query!) values.
|
||||||
<!-- impl Query::fn set_latency -->
|
<!-- impl Query::fn set_latency -->
|
||||||
Answer a latency query by setting the requested values in the given format.
|
Answer a latency query by setting the requested values in the given format.
|
||||||
## `live`
|
## `live`
|
||||||
|
@ -12844,7 +12844,7 @@ will choose this element over an alternative one with the same function.
|
||||||
|
|
||||||
These constants serve as a rough guidance for defining the rank of a
|
These constants serve as a rough guidance for defining the rank of a
|
||||||
`PluginFeature`. Any value is valid, including values bigger than
|
`PluginFeature`. Any value is valid, including values bigger than
|
||||||
`Rank::Primary`.
|
[`Primary`](Self::Primary).
|
||||||
<!-- enum Rank::variant None -->
|
<!-- enum Rank::variant None -->
|
||||||
will be chosen last or not at all
|
will be chosen last or not at all
|
||||||
<!-- enum Rank::variant Marginal -->
|
<!-- enum Rank::variant Marginal -->
|
||||||
|
@ -13779,7 +13779,7 @@ reset the pipeline running_time to the segment
|
||||||
perform skip playback (Since: 1.6)
|
perform skip playback (Since: 1.6)
|
||||||
<!-- struct SegmentFlags::const SKIP -->
|
<!-- struct SegmentFlags::const SKIP -->
|
||||||
Deprecated backward compatibility flag, replaced
|
Deprecated backward compatibility flag, replaced
|
||||||
by `SegmentFlags::Trickmode`
|
by [`Trickmode`](Self::Trickmode)
|
||||||
<!-- struct SegmentFlags::const SEGMENT -->
|
<!-- struct SegmentFlags::const SEGMENT -->
|
||||||
send SEGMENT_DONE instead of EOS
|
send SEGMENT_DONE instead of EOS
|
||||||
<!-- struct SegmentFlags::const TRICKMODE_KEY_UNITS -->
|
<!-- struct SegmentFlags::const TRICKMODE_KEY_UNITS -->
|
||||||
|
@ -13897,7 +13897,7 @@ they should make sure to go back to real 'PAUSED' state (prerolling for example)
|
||||||
state change from PLAYING to PLAYING. (Since: 1.14)
|
state change from PLAYING to PLAYING. (Since: 1.14)
|
||||||
<!-- enum StateChangeReturn -->
|
<!-- enum StateChangeReturn -->
|
||||||
The possible return values from a state change function such as
|
The possible return values from a state change function such as
|
||||||
`Element::set_state`. Only `StateChangeReturn::Failure` is a real failure.
|
`Element::set_state`. Only [`Failure`](Self::Failure) is a real failure.
|
||||||
<!-- enum StateChangeReturn::variant Failure -->
|
<!-- enum StateChangeReturn::variant Failure -->
|
||||||
the state change failed
|
the state change failed
|
||||||
<!-- enum StateChangeReturn::variant Success -->
|
<!-- enum StateChangeReturn::variant Success -->
|
||||||
|
@ -14545,17 +14545,17 @@ the name of the first field to read
|
||||||
because the field requested did not exist, or was of a type other
|
because the field requested did not exist, or was of a type other
|
||||||
than the type specified), otherwise `true`.
|
than the type specified), otherwise `true`.
|
||||||
<!-- impl Structure::fn get_array -->
|
<!-- impl Structure::fn get_array -->
|
||||||
This is useful in language bindings where unknown `gobject::Value` types are not
|
This is useful in language bindings where unknown `glib::object::Value` types are not
|
||||||
supported. This function will convert the `GST_TYPE_ARRAY` into a newly
|
supported. This function will convert the `GST_TYPE_ARRAY` into a newly
|
||||||
allocated `gobject::ValueArray` and return it through `array`. Be aware that this is
|
allocated `glib::object::ValueArray` and return it through `array`. Be aware that this is
|
||||||
slower then getting the `gobject::Value` directly.
|
slower then getting the `glib::object::Value` directly.
|
||||||
|
|
||||||
Feature: `v1_12`
|
Feature: `v1_12`
|
||||||
|
|
||||||
## `fieldname`
|
## `fieldname`
|
||||||
the name of a field
|
the name of a field
|
||||||
## `array`
|
## `array`
|
||||||
a pointer to a `gobject::ValueArray`
|
a pointer to a `glib::object::ValueArray`
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
|
@ -14667,7 +14667,7 @@ the name of the field
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `gobject::Value` of the field
|
the `glib::object::Value` of the field
|
||||||
<!-- impl Structure::fn get_flagset -->
|
<!-- impl Structure::fn get_flagset -->
|
||||||
Read the GstFlagSet flags and mask out of the structure into the
|
Read the GstFlagSet flags and mask out of the structure into the
|
||||||
provided pointers.
|
provided pointers.
|
||||||
|
@ -14728,17 +14728,17 @@ a pointer to a `gint64` to set
|
||||||
with `fieldname` or the existing field did not contain a `gint64`, this function
|
with `fieldname` or the existing field did not contain a `gint64`, this function
|
||||||
returns `false`.
|
returns `false`.
|
||||||
<!-- impl Structure::fn get_list -->
|
<!-- impl Structure::fn get_list -->
|
||||||
This is useful in language bindings where unknown `gobject::Value` types are not
|
This is useful in language bindings where unknown `glib::object::Value` types are not
|
||||||
supported. This function will convert the `GST_TYPE_LIST` into a newly
|
supported. This function will convert the `GST_TYPE_LIST` into a newly
|
||||||
allocated GValueArray and return it through `array`. Be aware that this is
|
allocated GValueArray and return it through `array`. Be aware that this is
|
||||||
slower then getting the `gobject::Value` directly.
|
slower then getting the `glib::object::Value` directly.
|
||||||
|
|
||||||
Feature: `v1_12`
|
Feature: `v1_12`
|
||||||
|
|
||||||
## `fieldname`
|
## `fieldname`
|
||||||
the name of a field
|
the name of a field
|
||||||
## `array`
|
## `array`
|
||||||
a pointer to a `gobject::ValueArray`
|
a pointer to a `glib::object::ValueArray`
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
|
@ -14818,7 +14818,7 @@ the name of the field to get
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `gobject::Value` corresponding to the field with the given
|
the `glib::object::Value` corresponding to the field with the given
|
||||||
name.
|
name.
|
||||||
<!-- impl Structure::fn has_field -->
|
<!-- impl Structure::fn has_field -->
|
||||||
Check if `self` contains a field named `fieldname`.
|
Check if `self` contains a field named `fieldname`.
|
||||||
|
@ -14889,7 +14889,7 @@ the `glib::Quark` of the field to get
|
||||||
|
|
||||||
# Returns
|
# Returns
|
||||||
|
|
||||||
the `gobject::Value` corresponding to the field with the given
|
the `glib::object::Value` corresponding to the field with the given
|
||||||
name identifier.
|
name identifier.
|
||||||
<!-- impl Structure::fn id_has_field -->
|
<!-- impl Structure::fn id_has_field -->
|
||||||
Check if `self` contains a field named `field`.
|
Check if `self` contains a field named `field`.
|
||||||
|
@ -15021,26 +15021,26 @@ the name of the field to set
|
||||||
This is useful in language bindings where unknown GValue types are not
|
This is useful in language bindings where unknown GValue types are not
|
||||||
supported. This function will convert a `array` to `GST_TYPE_ARRAY` and set
|
supported. This function will convert a `array` to `GST_TYPE_ARRAY` and set
|
||||||
the field specified by `fieldname`. Be aware that this is slower then using
|
the field specified by `fieldname`. Be aware that this is slower then using
|
||||||
`GST_TYPE_ARRAY` in a `gobject::Value` directly.
|
`GST_TYPE_ARRAY` in a `glib::object::Value` directly.
|
||||||
|
|
||||||
Feature: `v1_12`
|
Feature: `v1_12`
|
||||||
|
|
||||||
## `fieldname`
|
## `fieldname`
|
||||||
the name of a field
|
the name of a field
|
||||||
## `array`
|
## `array`
|
||||||
a pointer to a `gobject::ValueArray`
|
a pointer to a `glib::object::ValueArray`
|
||||||
<!-- impl Structure::fn set_list -->
|
<!-- impl Structure::fn set_list -->
|
||||||
This is useful in language bindings where unknown GValue types are not
|
This is useful in language bindings where unknown GValue types are not
|
||||||
supported. This function will convert a `array` to `GST_TYPE_LIST` and set
|
supported. This function will convert a `array` to `GST_TYPE_LIST` and set
|
||||||
the field specified by `fieldname`. Be aware that this is slower then using
|
the field specified by `fieldname`. Be aware that this is slower then using
|
||||||
`GST_TYPE_LIST` in a `gobject::Value` directly.
|
`GST_TYPE_LIST` in a `glib::object::Value` directly.
|
||||||
|
|
||||||
Feature: `v1_12`
|
Feature: `v1_12`
|
||||||
|
|
||||||
## `fieldname`
|
## `fieldname`
|
||||||
the name of a field
|
the name of a field
|
||||||
## `array`
|
## `array`
|
||||||
a pointer to a `gobject::ValueArray`
|
a pointer to a `glib::object::ValueArray`
|
||||||
<!-- impl Structure::fn set_name -->
|
<!-- impl Structure::fn set_name -->
|
||||||
Sets the name of the structure to the given `name`. The string
|
Sets the name of the structure to the given `name`. The string
|
||||||
provided is copied before being used. It must not be empty, start with a
|
provided is copied before being used. It must not be empty, start with a
|
||||||
|
@ -15757,9 +15757,9 @@ a newly-allocated string, or `None` in case of
|
||||||
Copies the contents for the given tag into the value,
|
Copies the contents for the given tag into the value,
|
||||||
merging multiple values into one if multiple values are associated
|
merging multiple values into one if multiple values are associated
|
||||||
with the tag.
|
with the tag.
|
||||||
You must `gobject::Value::unset` the value after use.
|
You must `glib::object::Value::unset` the value after use.
|
||||||
## `dest`
|
## `dest`
|
||||||
uninitialized `gobject::Value` to copy into
|
uninitialized `glib::object::Value` to copy into
|
||||||
## `list`
|
## `list`
|
||||||
list to get the tag from
|
list to get the tag from
|
||||||
## `tag`
|
## `tag`
|
||||||
|
|
|
@ -23,7 +23,7 @@ impl AppSink {
|
||||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||||
#[doc(alias = "gst_app_sink_get_buffer_list_support")]
|
#[doc(alias = "gst_app_sink_get_buffer_list_support")]
|
||||||
pub fn get_buffer_list_support(&self) -> bool {
|
pub fn is_buffer_list_support(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_app_sink_get_buffer_list_support(
|
from_glib(ffi::gst_app_sink_get_buffer_list_support(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
|
@ -32,27 +32,27 @@ impl AppSink {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_sink_get_caps")]
|
#[doc(alias = "gst_app_sink_get_caps")]
|
||||||
pub fn get_caps(&self) -> Option<gst::Caps> {
|
pub fn caps(&self) -> Option<gst::Caps> {
|
||||||
unsafe { from_glib_full(ffi::gst_app_sink_get_caps(self.to_glib_none().0)) }
|
unsafe { from_glib_full(ffi::gst_app_sink_get_caps(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_sink_get_drop")]
|
#[doc(alias = "gst_app_sink_get_drop")]
|
||||||
pub fn get_drop(&self) -> bool {
|
pub fn is_drop(&self) -> bool {
|
||||||
unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_sink_get_emit_signals")]
|
#[doc(alias = "gst_app_sink_get_emit_signals")]
|
||||||
pub fn get_emit_signals(&self) -> bool {
|
pub fn emits_signals(&self) -> bool {
|
||||||
unsafe { from_glib(ffi::gst_app_sink_get_emit_signals(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_app_sink_get_emit_signals(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_sink_get_max_buffers")]
|
#[doc(alias = "gst_app_sink_get_max_buffers")]
|
||||||
pub fn get_max_buffers(&self) -> u32 {
|
pub fn max_buffers(&self) -> u32 {
|
||||||
unsafe { ffi::gst_app_sink_get_max_buffers(self.to_glib_none().0) }
|
unsafe { ffi::gst_app_sink_get_max_buffers(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_sink_get_wait_on_eos")]
|
#[doc(alias = "gst_app_sink_get_wait_on_eos")]
|
||||||
pub fn get_wait_on_eos(&self) -> bool {
|
pub fn is_wait_on_eos(&self) -> bool {
|
||||||
unsafe { from_glib(ffi::gst_app_sink_get_wait_on_eos(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_app_sink_get_wait_on_eos(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,8 @@ impl AppSink {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_buffer_list(&self) -> bool {
|
#[doc(alias = "get_property_buffer_list")]
|
||||||
|
pub fn is_buffer_list(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -168,7 +169,8 @@ impl AppSink {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_buffer_list(&self, buffer_list: bool) {
|
#[doc(alias = "set_property_buffer_list")]
|
||||||
|
pub fn set_buffer_list(&self, buffer_list: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -178,21 +180,6 @@ impl AppSink {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_eos(&self) -> bool {
|
|
||||||
unsafe {
|
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
|
||||||
glib::gobject_ffi::g_object_get_property(
|
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
|
||||||
b"eos\0".as_ptr() as *const _,
|
|
||||||
value.to_glib_none_mut().0,
|
|
||||||
);
|
|
||||||
value
|
|
||||||
.get()
|
|
||||||
.expect("Return Value for property `eos` getter")
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn connect_eos<F: Fn(&AppSink) + Send + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_eos<F: Fn(&AppSink) + Send + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe extern "C" fn eos_trampoline<F: Fn(&AppSink) + Send + 'static>(
|
unsafe extern "C" fn eos_trampoline<F: Fn(&AppSink) + Send + 'static>(
|
||||||
this: *mut ffi::GstAppSink,
|
this: *mut ffi::GstAppSink,
|
||||||
|
|
|
@ -22,39 +22,39 @@ glib::wrapper! {
|
||||||
|
|
||||||
impl AppSrc {
|
impl AppSrc {
|
||||||
#[doc(alias = "gst_app_src_get_caps")]
|
#[doc(alias = "gst_app_src_get_caps")]
|
||||||
pub fn get_caps(&self) -> Option<gst::Caps> {
|
pub fn caps(&self) -> Option<gst::Caps> {
|
||||||
unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) }
|
unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_src_get_current_level_bytes")]
|
#[doc(alias = "gst_app_src_get_current_level_bytes")]
|
||||||
pub fn get_current_level_bytes(&self) -> u64 {
|
pub fn current_level_bytes(&self) -> u64 {
|
||||||
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
|
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||||
#[doc(alias = "gst_app_src_get_duration")]
|
#[doc(alias = "gst_app_src_get_duration")]
|
||||||
pub fn get_duration(&self) -> gst::ClockTime {
|
pub fn duration(&self) -> gst::ClockTime {
|
||||||
unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_src_get_emit_signals")]
|
#[doc(alias = "gst_app_src_get_emit_signals")]
|
||||||
pub fn get_emit_signals(&self) -> bool {
|
pub fn emits_signals(&self) -> bool {
|
||||||
unsafe { from_glib(ffi::gst_app_src_get_emit_signals(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_app_src_get_emit_signals(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_src_get_max_bytes")]
|
#[doc(alias = "gst_app_src_get_max_bytes")]
|
||||||
pub fn get_max_bytes(&self) -> u64 {
|
pub fn max_bytes(&self) -> u64 {
|
||||||
unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) }
|
unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_src_get_size")]
|
#[doc(alias = "gst_app_src_get_size")]
|
||||||
pub fn get_size(&self) -> i64 {
|
pub fn size(&self) -> i64 {
|
||||||
unsafe { ffi::gst_app_src_get_size(self.to_glib_none().0) }
|
unsafe { ffi::gst_app_src_get_size(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_app_src_get_stream_type")]
|
#[doc(alias = "gst_app_src_get_stream_type")]
|
||||||
pub fn get_stream_type(&self) -> AppStreamType {
|
pub fn stream_type(&self) -> AppStreamType {
|
||||||
unsafe { from_glib(ffi::gst_app_src_get_stream_type(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_app_src_get_stream_type(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_block(&self) -> bool {
|
#[doc(alias = "get_property_block")]
|
||||||
|
pub fn is_block(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -122,7 +123,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_block(&self, block: bool) {
|
#[doc(alias = "set_property_block")]
|
||||||
|
pub fn set_block(&self, block: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -132,7 +134,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_format(&self) -> gst::Format {
|
#[doc(alias = "get_property_format")]
|
||||||
|
pub fn format(&self) -> gst::Format {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<gst::Format as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<gst::Format as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -147,7 +150,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_format(&self, format: gst::Format) {
|
#[doc(alias = "set_property_format")]
|
||||||
|
pub fn set_format(&self, format: gst::Format) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -159,7 +163,8 @@ impl AppSrc {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
pub fn get_property_handle_segment_change(&self) -> bool {
|
#[doc(alias = "get_property_handle_segment_change")]
|
||||||
|
pub fn is_handle_segment_change(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -176,7 +181,8 @@ impl AppSrc {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) {
|
#[doc(alias = "set_property_handle_segment_change")]
|
||||||
|
pub fn set_handle_segment_change(&self, handle_segment_change: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -186,7 +192,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_is_live(&self) -> bool {
|
#[doc(alias = "get_property_is_live")]
|
||||||
|
pub fn is_live(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -201,7 +208,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_is_live(&self, is_live: bool) {
|
#[doc(alias = "set_property_is_live")]
|
||||||
|
pub fn set_is_live(&self, is_live: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -211,7 +219,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_max_latency(&self) -> i64 {
|
#[doc(alias = "get_property_max_latency")]
|
||||||
|
pub fn max_latency(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -226,7 +235,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_max_latency(&self, max_latency: i64) {
|
#[doc(alias = "set_property_max_latency")]
|
||||||
|
pub fn set_max_latency(&self, max_latency: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -236,7 +246,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_min_latency(&self) -> i64 {
|
#[doc(alias = "get_property_min_latency")]
|
||||||
|
pub fn min_latency(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -251,7 +262,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_min_latency(&self, min_latency: i64) {
|
#[doc(alias = "set_property_min_latency")]
|
||||||
|
pub fn set_min_latency(&self, min_latency: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -261,7 +273,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_min_percent(&self) -> u32 {
|
#[doc(alias = "get_property_min_percent")]
|
||||||
|
pub fn min_percent(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -276,7 +289,8 @@ impl AppSrc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_min_percent(&self, min_percent: u32) {
|
#[doc(alias = "set_property_min_percent")]
|
||||||
|
pub fn set_min_percent(&self, min_percent: u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -30,19 +30,19 @@ pub trait AudioBaseSinkExt: 'static {
|
||||||
//fn create_ringbuffer(&self) -> /*Ignored*/Option<AudioRingBuffer>;
|
//fn create_ringbuffer(&self) -> /*Ignored*/Option<AudioRingBuffer>;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_sink_get_alignment_threshold")]
|
#[doc(alias = "gst_audio_base_sink_get_alignment_threshold")]
|
||||||
fn get_alignment_threshold(&self) -> gst::ClockTime;
|
fn alignment_threshold(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_sink_get_discont_wait")]
|
#[doc(alias = "gst_audio_base_sink_get_discont_wait")]
|
||||||
fn get_discont_wait(&self) -> gst::ClockTime;
|
fn discont_wait(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_sink_get_drift_tolerance")]
|
#[doc(alias = "gst_audio_base_sink_get_drift_tolerance")]
|
||||||
fn get_drift_tolerance(&self) -> i64;
|
fn drift_tolerance(&self) -> i64;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_sink_get_provide_clock")]
|
#[doc(alias = "gst_audio_base_sink_get_provide_clock")]
|
||||||
fn get_provide_clock(&self) -> bool;
|
fn is_provide_clock(&self) -> bool;
|
||||||
|
|
||||||
//#[doc(alias = "gst_audio_base_sink_get_slave_method")]
|
//#[doc(alias = "gst_audio_base_sink_get_slave_method")]
|
||||||
//fn get_slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod;
|
//fn slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_sink_report_device_failure")]
|
#[doc(alias = "gst_audio_base_sink_report_device_failure")]
|
||||||
fn report_device_failure(&self);
|
fn report_device_failure(&self);
|
||||||
|
@ -65,17 +65,23 @@ pub trait AudioBaseSinkExt: 'static {
|
||||||
//#[doc(alias = "gst_audio_base_sink_set_slave_method")]
|
//#[doc(alias = "gst_audio_base_sink_set_slave_method")]
|
||||||
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSinkSlaveMethod);
|
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSinkSlaveMethod);
|
||||||
|
|
||||||
fn get_property_buffer_time(&self) -> i64;
|
#[doc(alias = "get_property_buffer_time")]
|
||||||
|
fn buffer_time(&self) -> i64;
|
||||||
|
|
||||||
fn set_property_buffer_time(&self, buffer_time: i64);
|
#[doc(alias = "set_property_buffer_time")]
|
||||||
|
fn set_buffer_time(&self, buffer_time: i64);
|
||||||
|
|
||||||
fn get_property_can_activate_pull(&self) -> bool;
|
#[doc(alias = "get_property_can_activate_pull")]
|
||||||
|
fn can_activate_pull(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_can_activate_pull(&self, can_activate_pull: bool);
|
#[doc(alias = "set_property_can_activate_pull")]
|
||||||
|
fn set_can_activate_pull(&self, can_activate_pull: bool);
|
||||||
|
|
||||||
fn get_property_latency_time(&self) -> i64;
|
#[doc(alias = "get_property_latency_time")]
|
||||||
|
fn latency_time(&self) -> i64;
|
||||||
|
|
||||||
fn set_property_latency_time(&self, latency_time: i64);
|
#[doc(alias = "set_property_latency_time")]
|
||||||
|
fn set_latency_time(&self, latency_time: i64);
|
||||||
|
|
||||||
fn connect_property_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -123,7 +129,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_audio_base_sink_create_ringbuffer() }
|
// unsafe { TODO: call ffi:gst_audio_base_sink_create_ringbuffer() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_alignment_threshold(&self) -> gst::ClockTime {
|
fn alignment_threshold(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_base_sink_get_alignment_threshold(
|
from_glib(ffi::gst_audio_base_sink_get_alignment_threshold(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -131,7 +137,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_discont_wait(&self) -> gst::ClockTime {
|
fn discont_wait(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_base_sink_get_discont_wait(
|
from_glib(ffi::gst_audio_base_sink_get_discont_wait(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -139,11 +145,11 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_drift_tolerance(&self) -> i64 {
|
fn drift_tolerance(&self) -> i64 {
|
||||||
unsafe { ffi::gst_audio_base_sink_get_drift_tolerance(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_base_sink_get_drift_tolerance(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_provide_clock(&self) -> bool {
|
fn is_provide_clock(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_base_sink_get_provide_clock(
|
from_glib(ffi::gst_audio_base_sink_get_provide_clock(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -151,7 +157,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//fn get_slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod {
|
//fn slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod {
|
||||||
// unsafe { TODO: call ffi:gst_audio_base_sink_get_slave_method() }
|
// unsafe { TODO: call ffi:gst_audio_base_sink_get_slave_method() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
@ -205,7 +211,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_audio_base_sink_set_slave_method() }
|
// unsafe { TODO: call ffi:gst_audio_base_sink_set_slave_method() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_property_buffer_time(&self) -> i64 {
|
fn buffer_time(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -220,7 +226,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_buffer_time(&self, buffer_time: i64) {
|
fn set_buffer_time(&self, buffer_time: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -230,7 +236,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_can_activate_pull(&self) -> bool {
|
fn can_activate_pull(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -245,7 +251,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_can_activate_pull(&self, can_activate_pull: bool) {
|
fn set_can_activate_pull(&self, can_activate_pull: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -255,7 +261,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_latency_time(&self) -> i64 {
|
fn latency_time(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -270,7 +276,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_latency_time(&self, latency_time: i64) {
|
fn set_latency_time(&self, latency_time: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -30,10 +30,10 @@ pub trait AudioBaseSrcExt: 'static {
|
||||||
//fn create_ringbuffer(&self) -> /*Ignored*/Option<AudioRingBuffer>;
|
//fn create_ringbuffer(&self) -> /*Ignored*/Option<AudioRingBuffer>;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_src_get_provide_clock")]
|
#[doc(alias = "gst_audio_base_src_get_provide_clock")]
|
||||||
fn get_provide_clock(&self) -> bool;
|
fn is_provide_clock(&self) -> bool;
|
||||||
|
|
||||||
//#[doc(alias = "gst_audio_base_src_get_slave_method")]
|
//#[doc(alias = "gst_audio_base_src_get_slave_method")]
|
||||||
//fn get_slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod;
|
//fn slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_base_src_set_provide_clock")]
|
#[doc(alias = "gst_audio_base_src_set_provide_clock")]
|
||||||
fn set_provide_clock(&self, provide: bool);
|
fn set_provide_clock(&self, provide: bool);
|
||||||
|
@ -41,17 +41,23 @@ pub trait AudioBaseSrcExt: 'static {
|
||||||
//#[doc(alias = "gst_audio_base_src_set_slave_method")]
|
//#[doc(alias = "gst_audio_base_src_set_slave_method")]
|
||||||
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSrcSlaveMethod);
|
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSrcSlaveMethod);
|
||||||
|
|
||||||
fn get_property_actual_buffer_time(&self) -> i64;
|
#[doc(alias = "get_property_actual_buffer_time")]
|
||||||
|
fn actual_buffer_time(&self) -> i64;
|
||||||
|
|
||||||
fn get_property_actual_latency_time(&self) -> i64;
|
#[doc(alias = "get_property_actual_latency_time")]
|
||||||
|
fn actual_latency_time(&self) -> i64;
|
||||||
|
|
||||||
fn get_property_buffer_time(&self) -> i64;
|
#[doc(alias = "get_property_buffer_time")]
|
||||||
|
fn buffer_time(&self) -> i64;
|
||||||
|
|
||||||
fn set_property_buffer_time(&self, buffer_time: i64);
|
#[doc(alias = "set_property_buffer_time")]
|
||||||
|
fn set_buffer_time(&self, buffer_time: i64);
|
||||||
|
|
||||||
fn get_property_latency_time(&self) -> i64;
|
#[doc(alias = "get_property_latency_time")]
|
||||||
|
fn latency_time(&self) -> i64;
|
||||||
|
|
||||||
fn set_property_latency_time(&self, latency_time: i64);
|
#[doc(alias = "set_property_latency_time")]
|
||||||
|
fn set_latency_time(&self, latency_time: i64);
|
||||||
|
|
||||||
fn connect_property_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -89,7 +95,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_audio_base_src_create_ringbuffer() }
|
// unsafe { TODO: call ffi:gst_audio_base_src_create_ringbuffer() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_provide_clock(&self) -> bool {
|
fn is_provide_clock(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_base_src_get_provide_clock(
|
from_glib(ffi::gst_audio_base_src_get_provide_clock(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -97,7 +103,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//fn get_slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod {
|
//fn slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod {
|
||||||
// unsafe { TODO: call ffi:gst_audio_base_src_get_slave_method() }
|
// unsafe { TODO: call ffi:gst_audio_base_src_get_slave_method() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
@ -114,7 +120,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_audio_base_src_set_slave_method() }
|
// unsafe { TODO: call ffi:gst_audio_base_src_set_slave_method() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_property_actual_buffer_time(&self) -> i64 {
|
fn actual_buffer_time(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -129,7 +135,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_actual_latency_time(&self) -> i64 {
|
fn actual_latency_time(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -144,7 +150,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_buffer_time(&self) -> i64 {
|
fn buffer_time(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -159,7 +165,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_buffer_time(&self, buffer_time: i64) {
|
fn set_buffer_time(&self, buffer_time: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -169,7 +175,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_latency_time(&self) -> i64 {
|
fn latency_time(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -184,7 +190,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_latency_time(&self, latency_time: i64) {
|
fn set_latency_time(&self, latency_time: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -31,40 +31,40 @@ pub trait AudioDecoderExt: 'static {
|
||||||
fn allocate_output_buffer(&self, size: usize) -> Result<gst::Buffer, glib::BoolError>;
|
fn allocate_output_buffer(&self, size: usize) -> Result<gst::Buffer, glib::BoolError>;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_audio_info")]
|
#[doc(alias = "gst_audio_decoder_get_audio_info")]
|
||||||
fn get_audio_info(&self) -> Option<AudioInfo>;
|
fn audio_info(&self) -> Option<AudioInfo>;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_delay")]
|
#[doc(alias = "gst_audio_decoder_get_delay")]
|
||||||
fn get_delay(&self) -> i32;
|
fn delay(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_drainable")]
|
#[doc(alias = "gst_audio_decoder_get_drainable")]
|
||||||
fn get_drainable(&self) -> bool;
|
fn is_drainable(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_estimate_rate")]
|
#[doc(alias = "gst_audio_decoder_get_estimate_rate")]
|
||||||
fn get_estimate_rate(&self) -> i32;
|
fn estimate_rate(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_latency")]
|
#[doc(alias = "gst_audio_decoder_get_latency")]
|
||||||
fn get_latency(&self) -> (gst::ClockTime, gst::ClockTime);
|
fn latency(&self) -> (gst::ClockTime, gst::ClockTime);
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_max_errors")]
|
#[doc(alias = "gst_audio_decoder_get_max_errors")]
|
||||||
fn get_max_errors(&self) -> i32;
|
fn max_errors(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_min_latency")]
|
#[doc(alias = "gst_audio_decoder_get_min_latency")]
|
||||||
fn get_min_latency(&self) -> gst::ClockTime;
|
fn min_latency(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_needs_format")]
|
#[doc(alias = "gst_audio_decoder_get_needs_format")]
|
||||||
fn get_needs_format(&self) -> bool;
|
fn is_needs_format(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_parse_state")]
|
#[doc(alias = "gst_audio_decoder_get_parse_state")]
|
||||||
fn get_parse_state(&self) -> (bool, bool);
|
fn parse_state(&self) -> (bool, bool);
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_plc")]
|
#[doc(alias = "gst_audio_decoder_get_plc")]
|
||||||
fn get_plc(&self) -> bool;
|
fn is_plc(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_plc_aware")]
|
#[doc(alias = "gst_audio_decoder_get_plc_aware")]
|
||||||
fn get_plc_aware(&self) -> i32;
|
fn plc_aware(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_get_tolerance")]
|
#[doc(alias = "gst_audio_decoder_get_tolerance")]
|
||||||
fn get_tolerance(&self) -> gst::ClockTime;
|
fn tolerance(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_decoder_merge_tags")]
|
#[doc(alias = "gst_audio_decoder_merge_tags")]
|
||||||
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
|
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
|
||||||
|
@ -141,7 +141,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_audio_info(&self) -> Option<AudioInfo> {
|
fn audio_info(&self) -> Option<AudioInfo> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_audio_decoder_get_audio_info(
|
from_glib_full(ffi::gst_audio_decoder_get_audio_info(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -149,11 +149,11 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_delay(&self) -> i32 {
|
fn delay(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_decoder_get_delay(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_decoder_get_delay(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_drainable(&self) -> bool {
|
fn is_drainable(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_decoder_get_drainable(
|
from_glib(ffi::gst_audio_decoder_get_drainable(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -161,11 +161,11 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_estimate_rate(&self) -> i32 {
|
fn estimate_rate(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_decoder_get_estimate_rate(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_decoder_get_estimate_rate(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_latency(&self) -> (gst::ClockTime, gst::ClockTime) {
|
fn latency(&self) -> (gst::ClockTime, gst::ClockTime) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut min = mem::MaybeUninit::uninit();
|
let mut min = mem::MaybeUninit::uninit();
|
||||||
let mut max = mem::MaybeUninit::uninit();
|
let mut max = mem::MaybeUninit::uninit();
|
||||||
|
@ -180,11 +180,11 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_max_errors(&self) -> i32 {
|
fn max_errors(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_decoder_get_max_errors(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_decoder_get_max_errors(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_min_latency(&self) -> gst::ClockTime {
|
fn min_latency(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_decoder_get_min_latency(
|
from_glib(ffi::gst_audio_decoder_get_min_latency(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -192,7 +192,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_needs_format(&self) -> bool {
|
fn is_needs_format(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_decoder_get_needs_format(
|
from_glib(ffi::gst_audio_decoder_get_needs_format(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -200,7 +200,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_parse_state(&self) -> (bool, bool) {
|
fn parse_state(&self) -> (bool, bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut sync = mem::MaybeUninit::uninit();
|
let mut sync = mem::MaybeUninit::uninit();
|
||||||
let mut eos = mem::MaybeUninit::uninit();
|
let mut eos = mem::MaybeUninit::uninit();
|
||||||
|
@ -215,7 +215,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_plc(&self) -> bool {
|
fn is_plc(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_decoder_get_plc(
|
from_glib(ffi::gst_audio_decoder_get_plc(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -223,11 +223,11 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_plc_aware(&self) -> i32 {
|
fn plc_aware(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_decoder_get_plc_aware(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_decoder_get_plc_aware(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_tolerance(&self) -> gst::ClockTime {
|
fn tolerance(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_decoder_get_tolerance(
|
from_glib(ffi::gst_audio_decoder_get_tolerance(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -30,37 +30,37 @@ pub trait AudioEncoderExt: 'static {
|
||||||
fn allocate_output_buffer(&self, size: usize) -> Result<gst::Buffer, glib::BoolError>;
|
fn allocate_output_buffer(&self, size: usize) -> Result<gst::Buffer, glib::BoolError>;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_audio_info")]
|
#[doc(alias = "gst_audio_encoder_get_audio_info")]
|
||||||
fn get_audio_info(&self) -> Option<AudioInfo>;
|
fn audio_info(&self) -> Option<AudioInfo>;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_drainable")]
|
#[doc(alias = "gst_audio_encoder_get_drainable")]
|
||||||
fn get_drainable(&self) -> bool;
|
fn is_drainable(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_frame_max")]
|
#[doc(alias = "gst_audio_encoder_get_frame_max")]
|
||||||
fn get_frame_max(&self) -> i32;
|
fn frame_max(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_frame_samples_max")]
|
#[doc(alias = "gst_audio_encoder_get_frame_samples_max")]
|
||||||
fn get_frame_samples_max(&self) -> i32;
|
fn frame_samples_max(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_frame_samples_min")]
|
#[doc(alias = "gst_audio_encoder_get_frame_samples_min")]
|
||||||
fn get_frame_samples_min(&self) -> i32;
|
fn frame_samples_min(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_hard_min")]
|
#[doc(alias = "gst_audio_encoder_get_hard_min")]
|
||||||
fn get_hard_min(&self) -> bool;
|
fn is_hard_min(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_hard_resync")]
|
#[doc(alias = "gst_audio_encoder_get_hard_resync")]
|
||||||
fn get_hard_resync(&self) -> bool;
|
fn is_hard_resync(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_lookahead")]
|
#[doc(alias = "gst_audio_encoder_get_lookahead")]
|
||||||
fn get_lookahead(&self) -> i32;
|
fn lookahead(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_mark_granule")]
|
#[doc(alias = "gst_audio_encoder_get_mark_granule")]
|
||||||
fn get_mark_granule(&self) -> bool;
|
fn is_mark_granule(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_perfect_timestamp")]
|
#[doc(alias = "gst_audio_encoder_get_perfect_timestamp")]
|
||||||
fn get_perfect_timestamp(&self) -> bool;
|
fn is_perfect_timestamp(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_get_tolerance")]
|
#[doc(alias = "gst_audio_encoder_get_tolerance")]
|
||||||
fn get_tolerance(&self) -> gst::ClockTime;
|
fn tolerance(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_encoder_merge_tags")]
|
#[doc(alias = "gst_audio_encoder_merge_tags")]
|
||||||
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
|
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
|
||||||
|
@ -141,7 +141,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_audio_info(&self) -> Option<AudioInfo> {
|
fn audio_info(&self) -> Option<AudioInfo> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_audio_encoder_get_audio_info(
|
from_glib_full(ffi::gst_audio_encoder_get_audio_info(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -149,7 +149,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_drainable(&self) -> bool {
|
fn is_drainable(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_encoder_get_drainable(
|
from_glib(ffi::gst_audio_encoder_get_drainable(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -157,19 +157,19 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_frame_max(&self) -> i32 {
|
fn frame_max(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_encoder_get_frame_max(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_encoder_get_frame_max(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_frame_samples_max(&self) -> i32 {
|
fn frame_samples_max(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_encoder_get_frame_samples_max(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_encoder_get_frame_samples_max(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_frame_samples_min(&self) -> i32 {
|
fn frame_samples_min(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_encoder_get_frame_samples_min(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_encoder_get_frame_samples_min(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_hard_min(&self) -> bool {
|
fn is_hard_min(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_encoder_get_hard_min(
|
from_glib(ffi::gst_audio_encoder_get_hard_min(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -177,7 +177,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_hard_resync(&self) -> bool {
|
fn is_hard_resync(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_encoder_get_hard_resync(
|
from_glib(ffi::gst_audio_encoder_get_hard_resync(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -185,11 +185,11 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_lookahead(&self) -> i32 {
|
fn lookahead(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_encoder_get_lookahead(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_audio_encoder_get_lookahead(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_mark_granule(&self) -> bool {
|
fn is_mark_granule(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_encoder_get_mark_granule(
|
from_glib(ffi::gst_audio_encoder_get_mark_granule(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -197,7 +197,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_perfect_timestamp(&self) -> bool {
|
fn is_perfect_timestamp(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_encoder_get_perfect_timestamp(
|
from_glib(ffi::gst_audio_encoder_get_perfect_timestamp(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -205,7 +205,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_tolerance(&self) -> gst::ClockTime {
|
fn tolerance(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_encoder_get_tolerance(
|
from_glib(ffi::gst_audio_encoder_get_tolerance(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -34,7 +34,7 @@ impl AudioStreamAlign {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_stream_align_get_alignment_threshold")]
|
#[doc(alias = "gst_audio_stream_align_get_alignment_threshold")]
|
||||||
pub fn get_alignment_threshold(&self) -> gst::ClockTime {
|
pub fn alignment_threshold(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_stream_align_get_alignment_threshold(
|
from_glib(ffi::gst_audio_stream_align_get_alignment_threshold(
|
||||||
mut_override(self.to_glib_none().0),
|
mut_override(self.to_glib_none().0),
|
||||||
|
@ -43,7 +43,7 @@ impl AudioStreamAlign {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_stream_align_get_discont_wait")]
|
#[doc(alias = "gst_audio_stream_align_get_discont_wait")]
|
||||||
pub fn get_discont_wait(&self) -> gst::ClockTime {
|
pub fn discont_wait(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override(
|
from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
|
@ -52,12 +52,12 @@ impl AudioStreamAlign {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_stream_align_get_rate")]
|
#[doc(alias = "gst_audio_stream_align_get_rate")]
|
||||||
pub fn get_rate(&self) -> i32 {
|
pub fn rate(&self) -> i32 {
|
||||||
unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) }
|
unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_stream_align_get_samples_since_discont")]
|
#[doc(alias = "gst_audio_stream_align_get_samples_since_discont")]
|
||||||
pub fn get_samples_since_discont(&self) -> u64 {
|
pub fn samples_since_discont(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_audio_stream_align_get_samples_since_discont(mut_override(
|
ffi::gst_audio_stream_align_get_samples_since_discont(mut_override(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
|
@ -66,7 +66,7 @@ impl AudioStreamAlign {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_audio_stream_align_get_timestamp_at_discont")]
|
#[doc(alias = "gst_audio_stream_align_get_timestamp_at_discont")]
|
||||||
pub fn get_timestamp_at_discont(&self) -> gst::ClockTime {
|
pub fn timestamp_at_discont(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont(
|
from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont(
|
||||||
mut_override(self.to_glib_none().0),
|
mut_override(self.to_glib_none().0),
|
||||||
|
|
|
@ -35,7 +35,7 @@ pub const NONE_STREAM_VOLUME: Option<&StreamVolume> = None;
|
||||||
|
|
||||||
pub trait StreamVolumeExt: 'static {
|
pub trait StreamVolumeExt: 'static {
|
||||||
#[doc(alias = "gst_stream_volume_get_mute")]
|
#[doc(alias = "gst_stream_volume_get_mute")]
|
||||||
fn get_mute(&self) -> bool;
|
fn is_muted(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_stream_volume_get_volume")]
|
#[doc(alias = "gst_stream_volume_get_volume")]
|
||||||
fn get_volume(&self, format: StreamVolumeFormat) -> f64;
|
fn get_volume(&self, format: StreamVolumeFormat) -> f64;
|
||||||
|
@ -58,7 +58,7 @@ pub trait StreamVolumeExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
|
impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
|
||||||
fn get_mute(&self) -> bool {
|
fn is_muted(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_stream_volume_get_mute(
|
from_glib(ffi::gst_stream_volume_get_mute(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -33,13 +33,13 @@ pub const NONE_AGGREGATOR: Option<&Aggregator> = None;
|
||||||
|
|
||||||
pub trait AggregatorExt: 'static {
|
pub trait AggregatorExt: 'static {
|
||||||
//#[doc(alias = "gst_aggregator_get_allocator")]
|
//#[doc(alias = "gst_aggregator_get_allocator")]
|
||||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
||||||
|
|
||||||
#[doc(alias = "gst_aggregator_get_buffer_pool")]
|
#[doc(alias = "gst_aggregator_get_buffer_pool")]
|
||||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
|
fn buffer_pool(&self) -> Option<gst::BufferPool>;
|
||||||
|
|
||||||
#[doc(alias = "gst_aggregator_get_latency")]
|
#[doc(alias = "gst_aggregator_get_latency")]
|
||||||
fn get_latency(&self) -> gst::ClockTime;
|
fn latency(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -69,23 +69,29 @@ pub trait AggregatorExt: 'static {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_emit_signals(&self) -> bool;
|
#[doc(alias = "get_property_emit_signals")]
|
||||||
|
fn emits_signals(&self) -> bool;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn set_property_emit_signals(&self, emit_signals: bool);
|
#[doc(alias = "set_property_emit_signals")]
|
||||||
|
fn set_emit_signals(&self, emit_signals: bool);
|
||||||
|
|
||||||
fn get_property_start_time(&self) -> u64;
|
#[doc(alias = "get_property_start_time")]
|
||||||
|
fn start_time(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_start_time(&self, start_time: u64);
|
#[doc(alias = "set_property_start_time")]
|
||||||
|
fn set_start_time(&self, start_time: u64);
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection;
|
#[doc(alias = "get_property_start_time_selection")]
|
||||||
|
fn start_time_selection(&self) -> AggregatorStartTimeSelection;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
|
#[doc(alias = "set_property_start_time_selection")]
|
||||||
|
fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
|
||||||
|
|
||||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -119,11 +125,11 @@ pub trait AggregatorExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<Aggregator>> AggregatorExt for O {
|
impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
||||||
// unsafe { TODO: call ffi:gst_aggregator_get_allocator() }
|
// unsafe { TODO: call ffi:gst_aggregator_get_allocator() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
|
fn buffer_pool(&self) -> Option<gst::BufferPool> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_aggregator_get_buffer_pool(
|
from_glib_full(ffi::gst_aggregator_get_buffer_pool(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -131,7 +137,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_latency(&self) -> gst::ClockTime {
|
fn latency(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_aggregator_get_latency(
|
from_glib(ffi::gst_aggregator_get_latency(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -194,7 +200,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_emit_signals(&self) -> bool {
|
fn emits_signals(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -211,7 +217,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn set_property_emit_signals(&self, emit_signals: bool) {
|
fn set_emit_signals(&self, emit_signals: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -221,7 +227,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_start_time(&self) -> u64 {
|
fn start_time(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -236,7 +242,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_start_time(&self, start_time: u64) {
|
fn set_start_time(&self, start_time: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -248,7 +254,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection {
|
fn start_time_selection(&self) -> AggregatorStartTimeSelection {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<AggregatorStartTimeSelection as StaticType>::static_type());
|
glib::Value::from_type(<AggregatorStartTimeSelection as StaticType>::static_type());
|
||||||
|
@ -266,10 +272,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn set_property_start_time_selection(
|
fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) {
|
||||||
&self,
|
|
||||||
start_time_selection: AggregatorStartTimeSelection,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -47,11 +47,13 @@ pub trait AggregatorPadExt: 'static {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
fn get_property_emit_signals(&self) -> bool;
|
#[doc(alias = "get_property_emit_signals")]
|
||||||
|
fn emits_signals(&self) -> bool;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
fn set_property_emit_signals(&self, emit_signals: bool);
|
#[doc(alias = "set_property_emit_signals")]
|
||||||
|
fn set_emit_signals(&self, emit_signals: bool);
|
||||||
|
|
||||||
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
|
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -111,7 +113,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
fn get_property_emit_signals(&self) -> bool {
|
fn emits_signals(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -128,7 +130,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
fn set_property_emit_signals(&self, emit_signals: bool) {
|
fn set_emit_signals(&self, emit_signals: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -64,9 +64,11 @@ pub trait BaseParseExt: 'static {
|
||||||
#[doc(alias = "gst_base_parse_set_ts_at_offset")]
|
#[doc(alias = "gst_base_parse_set_ts_at_offset")]
|
||||||
fn set_ts_at_offset(&self, offset: usize);
|
fn set_ts_at_offset(&self, offset: usize);
|
||||||
|
|
||||||
fn get_property_disable_passthrough(&self) -> bool;
|
#[doc(alias = "get_property_disable_passthrough")]
|
||||||
|
fn is_disable_passthrough(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_disable_passthrough(&self, disable_passthrough: bool);
|
#[doc(alias = "set_property_disable_passthrough")]
|
||||||
|
fn set_disable_passthrough(&self, disable_passthrough: bool);
|
||||||
|
|
||||||
fn connect_property_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -172,7 +174,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_disable_passthrough(&self) -> bool {
|
fn is_disable_passthrough(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -187,7 +189,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_disable_passthrough(&self, disable_passthrough: bool) {
|
fn set_disable_passthrough(&self, disable_passthrough: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -30,46 +30,46 @@ pub trait BaseSinkExt: 'static {
|
||||||
//fn do_preroll(&self, obj: /*Ignored*/&gst::MiniObject) -> gst::FlowReturn;
|
//fn do_preroll(&self, obj: /*Ignored*/&gst::MiniObject) -> gst::FlowReturn;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_blocksize")]
|
#[doc(alias = "gst_base_sink_get_blocksize")]
|
||||||
fn get_blocksize(&self) -> u32;
|
fn blocksize(&self) -> u32;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||||
#[doc(alias = "gst_base_sink_get_drop_out_of_segment")]
|
#[doc(alias = "gst_base_sink_get_drop_out_of_segment")]
|
||||||
fn get_drop_out_of_segment(&self) -> bool;
|
fn is_drop_out_of_segment(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_last_sample")]
|
#[doc(alias = "gst_base_sink_get_last_sample")]
|
||||||
fn get_last_sample(&self) -> Option<gst::Sample>;
|
fn last_sample(&self) -> Option<gst::Sample>;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_latency")]
|
#[doc(alias = "gst_base_sink_get_latency")]
|
||||||
fn get_latency(&self) -> gst::ClockTime;
|
fn latency(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_max_bitrate")]
|
#[doc(alias = "gst_base_sink_get_max_bitrate")]
|
||||||
fn get_max_bitrate(&self) -> u64;
|
fn max_bitrate(&self) -> u64;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_max_lateness")]
|
#[doc(alias = "gst_base_sink_get_max_lateness")]
|
||||||
fn get_max_lateness(&self) -> i64;
|
fn max_lateness(&self) -> i64;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
#[doc(alias = "gst_base_sink_get_processing_deadline")]
|
#[doc(alias = "gst_base_sink_get_processing_deadline")]
|
||||||
fn get_processing_deadline(&self) -> gst::ClockTime;
|
fn processing_deadline(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_render_delay")]
|
#[doc(alias = "gst_base_sink_get_render_delay")]
|
||||||
fn get_render_delay(&self) -> gst::ClockTime;
|
fn render_delay(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "gst_base_sink_get_stats")]
|
#[doc(alias = "gst_base_sink_get_stats")]
|
||||||
fn get_stats(&self) -> gst::Structure;
|
fn stats(&self) -> gst::Structure;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_sync")]
|
#[doc(alias = "gst_base_sink_get_sync")]
|
||||||
fn get_sync(&self) -> bool;
|
fn is_sync(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_throttle_time")]
|
#[doc(alias = "gst_base_sink_get_throttle_time")]
|
||||||
fn get_throttle_time(&self) -> u64;
|
fn throttle_time(&self) -> u64;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_get_ts_offset")]
|
#[doc(alias = "gst_base_sink_get_ts_offset")]
|
||||||
fn get_ts_offset(&self) -> gst::ClockTimeDiff;
|
fn ts_offset(&self) -> gst::ClockTimeDiff;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_sink_is_async_enabled")]
|
#[doc(alias = "gst_base_sink_is_async_enabled")]
|
||||||
fn is_async_enabled(&self) -> bool;
|
fn is_async_enabled(&self) -> bool;
|
||||||
|
@ -120,17 +120,23 @@ pub trait BaseSinkExt: 'static {
|
||||||
#[doc(alias = "gst_base_sink_set_ts_offset")]
|
#[doc(alias = "gst_base_sink_set_ts_offset")]
|
||||||
fn set_ts_offset(&self, offset: gst::ClockTimeDiff);
|
fn set_ts_offset(&self, offset: gst::ClockTimeDiff);
|
||||||
|
|
||||||
fn get_property_async(&self) -> bool;
|
#[doc(alias = "get_property_async")]
|
||||||
|
fn is_async(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_async(&self, async_: bool);
|
#[doc(alias = "set_property_async")]
|
||||||
|
fn set_async(&self, async_: bool);
|
||||||
|
|
||||||
fn get_property_enable_last_sample(&self) -> bool;
|
#[doc(alias = "get_property_enable_last_sample")]
|
||||||
|
fn enables_last_sample(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_enable_last_sample(&self, enable_last_sample: bool);
|
#[doc(alias = "set_property_enable_last_sample")]
|
||||||
|
fn set_enable_last_sample(&self, enable_last_sample: bool);
|
||||||
|
|
||||||
fn get_property_qos(&self) -> bool;
|
#[doc(alias = "get_property_qos")]
|
||||||
|
fn is_qos(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_qos(&self, qos: bool);
|
#[doc(alias = "set_property_qos")]
|
||||||
|
fn set_qos(&self, qos: bool);
|
||||||
|
|
||||||
fn connect_property_async_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_async_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -207,13 +213,13 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_base_sink_do_preroll() }
|
// unsafe { TODO: call ffi:gst_base_sink_do_preroll() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_blocksize(&self) -> u32 {
|
fn blocksize(&self) -> u32 {
|
||||||
unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||||
fn get_drop_out_of_segment(&self) -> bool {
|
fn is_drop_out_of_segment(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_base_sink_get_drop_out_of_segment(
|
from_glib(ffi::gst_base_sink_get_drop_out_of_segment(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -221,7 +227,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_last_sample(&self) -> Option<gst::Sample> {
|
fn last_sample(&self) -> Option<gst::Sample> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_base_sink_get_last_sample(
|
from_glib_full(ffi::gst_base_sink_get_last_sample(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -229,7 +235,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_latency(&self) -> gst::ClockTime {
|
fn latency(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_base_sink_get_latency(
|
from_glib(ffi::gst_base_sink_get_latency(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -237,17 +243,17 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_max_bitrate(&self) -> u64 {
|
fn max_bitrate(&self) -> u64 {
|
||||||
unsafe { ffi::gst_base_sink_get_max_bitrate(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_base_sink_get_max_bitrate(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_max_lateness(&self) -> i64 {
|
fn max_lateness(&self) -> i64 {
|
||||||
unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
fn get_processing_deadline(&self) -> gst::ClockTime {
|
fn processing_deadline(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_base_sink_get_processing_deadline(
|
from_glib(ffi::gst_base_sink_get_processing_deadline(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -255,7 +261,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_render_delay(&self) -> gst::ClockTime {
|
fn render_delay(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_base_sink_get_render_delay(
|
from_glib(ffi::gst_base_sink_get_render_delay(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -265,19 +271,19 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_stats(&self) -> gst::Structure {
|
fn stats(&self) -> gst::Structure {
|
||||||
unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_sync(&self) -> bool {
|
fn is_sync(&self) -> bool {
|
||||||
unsafe { from_glib(ffi::gst_base_sink_get_sync(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_base_sink_get_sync(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_throttle_time(&self) -> u64 {
|
fn throttle_time(&self) -> u64 {
|
||||||
unsafe { ffi::gst_base_sink_get_throttle_time(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_base_sink_get_throttle_time(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_ts_offset(&self) -> gst::ClockTimeDiff {
|
fn ts_offset(&self) -> gst::ClockTimeDiff {
|
||||||
unsafe { ffi::gst_base_sink_get_ts_offset(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_base_sink_get_ts_offset(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -390,7 +396,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_async(&self) -> bool {
|
fn is_async(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -405,7 +411,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_async(&self, async_: bool) {
|
fn set_async(&self, async_: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -415,7 +421,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_enable_last_sample(&self) -> bool {
|
fn enables_last_sample(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -430,7 +436,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_enable_last_sample(&self, enable_last_sample: bool) {
|
fn set_enable_last_sample(&self, enable_last_sample: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -440,7 +446,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_qos(&self) -> bool {
|
fn is_qos(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -455,7 +461,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_qos(&self, qos: bool) {
|
fn set_qos(&self, qos: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -27,16 +27,16 @@ pub const NONE_BASE_SRC: Option<&BaseSrc> = None;
|
||||||
|
|
||||||
pub trait BaseSrcExt: 'static {
|
pub trait BaseSrcExt: 'static {
|
||||||
//#[doc(alias = "gst_base_src_get_allocator")]
|
//#[doc(alias = "gst_base_src_get_allocator")]
|
||||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
||||||
|
|
||||||
#[doc(alias = "gst_base_src_get_blocksize")]
|
#[doc(alias = "gst_base_src_get_blocksize")]
|
||||||
fn get_blocksize(&self) -> u32;
|
fn blocksize(&self) -> u32;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_src_get_buffer_pool")]
|
#[doc(alias = "gst_base_src_get_buffer_pool")]
|
||||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
|
fn buffer_pool(&self) -> Option<gst::BufferPool>;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_src_get_do_timestamp")]
|
#[doc(alias = "gst_base_src_get_do_timestamp")]
|
||||||
fn get_do_timestamp(&self) -> bool;
|
fn does_timestamp(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_src_is_async")]
|
#[doc(alias = "gst_base_src_is_async")]
|
||||||
fn is_async(&self) -> bool;
|
fn is_async(&self) -> bool;
|
||||||
|
@ -77,13 +77,17 @@ pub trait BaseSrcExt: 'static {
|
||||||
#[doc(alias = "gst_base_src_set_live")]
|
#[doc(alias = "gst_base_src_set_live")]
|
||||||
fn set_live(&self, live: bool);
|
fn set_live(&self, live: bool);
|
||||||
|
|
||||||
fn get_property_num_buffers(&self) -> i32;
|
#[doc(alias = "get_property_num_buffers")]
|
||||||
|
fn num_buffers(&self) -> i32;
|
||||||
|
|
||||||
fn set_property_num_buffers(&self, num_buffers: i32);
|
#[doc(alias = "set_property_num_buffers")]
|
||||||
|
fn set_num_buffers(&self, num_buffers: i32);
|
||||||
|
|
||||||
fn get_property_typefind(&self) -> bool;
|
#[doc(alias = "get_property_typefind")]
|
||||||
|
fn is_typefind(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_typefind(&self, typefind: bool);
|
#[doc(alias = "set_property_typefind")]
|
||||||
|
fn set_typefind(&self, typefind: bool);
|
||||||
|
|
||||||
fn connect_property_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -107,15 +111,15 @@ pub trait BaseSrcExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
||||||
// unsafe { TODO: call ffi:gst_base_src_get_allocator() }
|
// unsafe { TODO: call ffi:gst_base_src_get_allocator() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_blocksize(&self) -> u32 {
|
fn blocksize(&self) -> u32 {
|
||||||
unsafe { ffi::gst_base_src_get_blocksize(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_base_src_get_blocksize(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
|
fn buffer_pool(&self) -> Option<gst::BufferPool> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_base_src_get_buffer_pool(
|
from_glib_full(ffi::gst_base_src_get_buffer_pool(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -123,7 +127,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_do_timestamp(&self) -> bool {
|
fn does_timestamp(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_base_src_get_do_timestamp(
|
from_glib(ffi::gst_base_src_get_do_timestamp(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -210,7 +214,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_num_buffers(&self) -> i32 {
|
fn num_buffers(&self) -> i32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i32 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i32 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -225,7 +229,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_num_buffers(&self, num_buffers: i32) {
|
fn set_num_buffers(&self, num_buffers: i32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -235,7 +239,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_typefind(&self) -> bool {
|
fn is_typefind(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -250,7 +254,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_typefind(&self, typefind: bool) {
|
fn set_typefind(&self, typefind: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -27,10 +27,10 @@ pub const NONE_BASE_TRANSFORM: Option<&BaseTransform> = None;
|
||||||
|
|
||||||
pub trait BaseTransformExt: 'static {
|
pub trait BaseTransformExt: 'static {
|
||||||
//#[doc(alias = "gst_base_transform_get_allocator")]
|
//#[doc(alias = "gst_base_transform_get_allocator")]
|
||||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
||||||
|
|
||||||
#[doc(alias = "gst_base_transform_get_buffer_pool")]
|
#[doc(alias = "gst_base_transform_get_buffer_pool")]
|
||||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
|
fn buffer_pool(&self) -> Option<gst::BufferPool>;
|
||||||
|
|
||||||
#[doc(alias = "gst_base_transform_is_in_place")]
|
#[doc(alias = "gst_base_transform_is_in_place")]
|
||||||
fn is_in_place(&self) -> bool;
|
fn is_in_place(&self) -> bool;
|
||||||
|
@ -73,9 +73,11 @@ pub trait BaseTransformExt: 'static {
|
||||||
#[doc(alias = "gst_base_transform_update_src_caps")]
|
#[doc(alias = "gst_base_transform_update_src_caps")]
|
||||||
fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError>;
|
fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError>;
|
||||||
|
|
||||||
fn get_property_qos(&self) -> bool;
|
#[doc(alias = "get_property_qos")]
|
||||||
|
fn is_qos(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_qos(&self, qos: bool);
|
#[doc(alias = "set_property_qos")]
|
||||||
|
fn set_qos(&self, qos: bool);
|
||||||
|
|
||||||
fn connect_property_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -84,11 +86,11 @@ pub trait BaseTransformExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
||||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
||||||
// unsafe { TODO: call ffi:gst_base_transform_get_allocator() }
|
// unsafe { TODO: call ffi:gst_base_transform_get_allocator() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
|
fn buffer_pool(&self) -> Option<gst::BufferPool> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_base_transform_get_buffer_pool(
|
from_glib_full(ffi::gst_base_transform_get_buffer_pool(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -210,7 +212,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_qos(&self) -> bool {
|
fn is_qos(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -225,7 +227,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_qos(&self, qos: bool) {
|
fn set_qos(&self, qos: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -51,7 +51,7 @@ impl TestClock {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_test_clock_get_next_entry_time")]
|
#[doc(alias = "gst_test_clock_get_next_entry_time")]
|
||||||
pub fn get_next_entry_time(&self) -> gst::ClockTime {
|
pub fn next_entry_time(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_test_clock_get_next_entry_time(
|
from_glib(ffi::gst_test_clock_get_next_entry_time(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
|
@ -122,7 +122,8 @@ impl TestClock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_clock_type(&self) -> gst::ClockType {
|
#[doc(alias = "get_property_clock_type")]
|
||||||
|
pub fn clock_type(&self) -> gst::ClockType {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<gst::ClockType as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<gst::ClockType as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -137,7 +138,8 @@ impl TestClock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_clock_type(&self, clock_type: gst::ClockType) {
|
#[doc(alias = "set_property_clock_type")]
|
||||||
|
pub fn set_clock_type(&self, clock_type: gst::ClockType) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -147,7 +149,8 @@ impl TestClock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_start_time(&self) -> u64 {
|
#[doc(alias = "get_property_start_time")]
|
||||||
|
pub fn start_time(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -57,33 +57,29 @@ unsafe impl Sync for ARGBControlBinding {}
|
||||||
pub const NONE_ARGB_CONTROL_BINDING: Option<&ARGBControlBinding> = None;
|
pub const NONE_ARGB_CONTROL_BINDING: Option<&ARGBControlBinding> = None;
|
||||||
|
|
||||||
pub trait ARGBControlBindingExt: 'static {
|
pub trait ARGBControlBindingExt: 'static {
|
||||||
fn get_property_control_source_a(&self) -> Option<gst::ControlSource>;
|
#[doc(alias = "get_property_control_source_a")]
|
||||||
|
fn control_source_a(&self) -> Option<gst::ControlSource>;
|
||||||
|
|
||||||
fn set_property_control_source_a<P: IsA<gst::ControlSource>>(
|
#[doc(alias = "set_property_control_source_a")]
|
||||||
&self,
|
fn set_control_source_a<P: IsA<gst::ControlSource>>(&self, control_source_a: Option<&P>);
|
||||||
control_source_a: Option<&P>,
|
|
||||||
);
|
|
||||||
|
|
||||||
fn get_property_control_source_b(&self) -> Option<gst::ControlSource>;
|
#[doc(alias = "get_property_control_source_b")]
|
||||||
|
fn control_source_b(&self) -> Option<gst::ControlSource>;
|
||||||
|
|
||||||
fn set_property_control_source_b<P: IsA<gst::ControlSource>>(
|
#[doc(alias = "set_property_control_source_b")]
|
||||||
&self,
|
fn set_control_source_b<P: IsA<gst::ControlSource>>(&self, control_source_b: Option<&P>);
|
||||||
control_source_b: Option<&P>,
|
|
||||||
);
|
|
||||||
|
|
||||||
fn get_property_control_source_g(&self) -> Option<gst::ControlSource>;
|
#[doc(alias = "get_property_control_source_g")]
|
||||||
|
fn control_source_g(&self) -> Option<gst::ControlSource>;
|
||||||
|
|
||||||
fn set_property_control_source_g<P: IsA<gst::ControlSource>>(
|
#[doc(alias = "set_property_control_source_g")]
|
||||||
&self,
|
fn set_control_source_g<P: IsA<gst::ControlSource>>(&self, control_source_g: Option<&P>);
|
||||||
control_source_g: Option<&P>,
|
|
||||||
);
|
|
||||||
|
|
||||||
fn get_property_control_source_r(&self) -> Option<gst::ControlSource>;
|
#[doc(alias = "get_property_control_source_r")]
|
||||||
|
fn control_source_r(&self) -> Option<gst::ControlSource>;
|
||||||
|
|
||||||
fn set_property_control_source_r<P: IsA<gst::ControlSource>>(
|
#[doc(alias = "set_property_control_source_r")]
|
||||||
&self,
|
fn set_control_source_r<P: IsA<gst::ControlSource>>(&self, control_source_r: Option<&P>);
|
||||||
control_source_r: Option<&P>,
|
|
||||||
);
|
|
||||||
|
|
||||||
fn connect_property_control_source_a_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_control_source_a_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -107,7 +103,7 @@ pub trait ARGBControlBindingExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
fn get_property_control_source_a(&self) -> Option<gst::ControlSource> {
|
fn control_source_a(&self) -> Option<gst::ControlSource> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||||
|
@ -122,10 +118,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_control_source_a<P: IsA<gst::ControlSource>>(
|
fn set_control_source_a<P: IsA<gst::ControlSource>>(&self, control_source_a: Option<&P>) {
|
||||||
&self,
|
|
||||||
control_source_a: Option<&P>,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -135,7 +128,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_control_source_b(&self) -> Option<gst::ControlSource> {
|
fn control_source_b(&self) -> Option<gst::ControlSource> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||||
|
@ -150,10 +143,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_control_source_b<P: IsA<gst::ControlSource>>(
|
fn set_control_source_b<P: IsA<gst::ControlSource>>(&self, control_source_b: Option<&P>) {
|
||||||
&self,
|
|
||||||
control_source_b: Option<&P>,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -163,7 +153,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_control_source_g(&self) -> Option<gst::ControlSource> {
|
fn control_source_g(&self) -> Option<gst::ControlSource> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||||
|
@ -178,10 +168,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_control_source_g<P: IsA<gst::ControlSource>>(
|
fn set_control_source_g<P: IsA<gst::ControlSource>>(&self, control_source_g: Option<&P>) {
|
||||||
&self,
|
|
||||||
control_source_g: Option<&P>,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -191,7 +178,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_control_source_r(&self) -> Option<gst::ControlSource> {
|
fn control_source_r(&self) -> Option<gst::ControlSource> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||||
|
@ -206,10 +193,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_control_source_r<P: IsA<gst::ControlSource>>(
|
fn set_control_source_r<P: IsA<gst::ControlSource>>(&self, control_source_r: Option<&P>) {
|
||||||
&self,
|
|
||||||
control_source_r: Option<&P>,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -62,11 +62,14 @@ unsafe impl Sync for DirectControlBinding {}
|
||||||
pub const NONE_DIRECT_CONTROL_BINDING: Option<&DirectControlBinding> = None;
|
pub const NONE_DIRECT_CONTROL_BINDING: Option<&DirectControlBinding> = None;
|
||||||
|
|
||||||
pub trait DirectControlBindingExt: 'static {
|
pub trait DirectControlBindingExt: 'static {
|
||||||
fn get_property_absolute(&self) -> bool;
|
#[doc(alias = "get_property_absolute")]
|
||||||
|
fn is_absolute(&self) -> bool;
|
||||||
|
|
||||||
fn get_property_control_source(&self) -> Option<gst::ControlSource>;
|
#[doc(alias = "get_property_control_source")]
|
||||||
|
fn control_source(&self) -> Option<gst::ControlSource>;
|
||||||
|
|
||||||
fn set_property_control_source<P: IsA<gst::ControlSource>>(&self, control_source: Option<&P>);
|
#[doc(alias = "set_property_control_source")]
|
||||||
|
fn set_control_source<P: IsA<gst::ControlSource>>(&self, control_source: Option<&P>);
|
||||||
|
|
||||||
fn connect_property_control_source_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_control_source_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -75,7 +78,7 @@ pub trait DirectControlBindingExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
||||||
fn get_property_absolute(&self) -> bool {
|
fn is_absolute(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -90,7 +93,7 @@ impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_control_source(&self) -> Option<gst::ControlSource> {
|
fn control_source(&self) -> Option<gst::ControlSource> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||||
|
@ -105,7 +108,7 @@ impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_control_source<P: IsA<gst::ControlSource>>(&self, control_source: Option<&P>) {
|
fn set_control_source<P: IsA<gst::ControlSource>>(&self, control_source: Option<&P>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -45,9 +45,11 @@ unsafe impl Sync for InterpolationControlSource {}
|
||||||
pub const NONE_INTERPOLATION_CONTROL_SOURCE: Option<&InterpolationControlSource> = None;
|
pub const NONE_INTERPOLATION_CONTROL_SOURCE: Option<&InterpolationControlSource> = None;
|
||||||
|
|
||||||
pub trait InterpolationControlSourceExt: 'static {
|
pub trait InterpolationControlSourceExt: 'static {
|
||||||
fn get_property_mode(&self) -> InterpolationMode;
|
#[doc(alias = "get_property_mode")]
|
||||||
|
fn mode(&self) -> InterpolationMode;
|
||||||
|
|
||||||
fn set_property_mode(&self, mode: InterpolationMode);
|
#[doc(alias = "set_property_mode")]
|
||||||
|
fn set_mode(&self, mode: InterpolationMode);
|
||||||
|
|
||||||
fn connect_property_mode_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_mode_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -56,7 +58,7 @@ pub trait InterpolationControlSourceExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
|
impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
|
||||||
fn get_property_mode(&self) -> InterpolationMode {
|
fn mode(&self) -> InterpolationMode {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<InterpolationMode as StaticType>::static_type());
|
glib::Value::from_type(<InterpolationMode as StaticType>::static_type());
|
||||||
|
@ -72,7 +74,7 @@ impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_mode(&self, mode: InterpolationMode) {
|
fn set_mode(&self, mode: InterpolationMode) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -43,25 +43,35 @@ unsafe impl Sync for LFOControlSource {}
|
||||||
pub const NONE_LFO_CONTROL_SOURCE: Option<&LFOControlSource> = None;
|
pub const NONE_LFO_CONTROL_SOURCE: Option<&LFOControlSource> = None;
|
||||||
|
|
||||||
pub trait LFOControlSourceExt: 'static {
|
pub trait LFOControlSourceExt: 'static {
|
||||||
fn get_property_amplitude(&self) -> f64;
|
#[doc(alias = "get_property_amplitude")]
|
||||||
|
fn amplitude(&self) -> f64;
|
||||||
|
|
||||||
fn set_property_amplitude(&self, amplitude: f64);
|
#[doc(alias = "set_property_amplitude")]
|
||||||
|
fn set_amplitude(&self, amplitude: f64);
|
||||||
|
|
||||||
fn get_property_frequency(&self) -> f64;
|
#[doc(alias = "get_property_frequency")]
|
||||||
|
fn frequency(&self) -> f64;
|
||||||
|
|
||||||
fn set_property_frequency(&self, frequency: f64);
|
#[doc(alias = "set_property_frequency")]
|
||||||
|
fn set_frequency(&self, frequency: f64);
|
||||||
|
|
||||||
fn get_property_offset(&self) -> f64;
|
#[doc(alias = "get_property_offset")]
|
||||||
|
fn offset(&self) -> f64;
|
||||||
|
|
||||||
fn set_property_offset(&self, offset: f64);
|
#[doc(alias = "set_property_offset")]
|
||||||
|
fn set_offset(&self, offset: f64);
|
||||||
|
|
||||||
fn get_property_timeshift(&self) -> u64;
|
#[doc(alias = "get_property_timeshift")]
|
||||||
|
fn timeshift(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_timeshift(&self, timeshift: u64);
|
#[doc(alias = "set_property_timeshift")]
|
||||||
|
fn set_timeshift(&self, timeshift: u64);
|
||||||
|
|
||||||
fn get_property_waveform(&self) -> LFOWaveform;
|
#[doc(alias = "get_property_waveform")]
|
||||||
|
fn waveform(&self) -> LFOWaveform;
|
||||||
|
|
||||||
fn set_property_waveform(&self, waveform: LFOWaveform);
|
#[doc(alias = "set_property_waveform")]
|
||||||
|
fn set_waveform(&self, waveform: LFOWaveform);
|
||||||
|
|
||||||
fn connect_property_amplitude_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_amplitude_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -90,7 +100,7 @@ pub trait LFOControlSourceExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
fn get_property_amplitude(&self) -> f64 {
|
fn amplitude(&self) -> f64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -105,7 +115,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_amplitude(&self, amplitude: f64) {
|
fn set_amplitude(&self, amplitude: f64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -115,7 +125,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_frequency(&self) -> f64 {
|
fn frequency(&self) -> f64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -130,7 +140,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_frequency(&self, frequency: f64) {
|
fn set_frequency(&self, frequency: f64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -140,7 +150,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_offset(&self) -> f64 {
|
fn offset(&self) -> f64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -155,7 +165,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_offset(&self, offset: f64) {
|
fn set_offset(&self, offset: f64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -165,7 +175,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_timeshift(&self) -> u64 {
|
fn timeshift(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -180,7 +190,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_timeshift(&self, timeshift: u64) {
|
fn set_timeshift(&self, timeshift: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -190,7 +200,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_waveform(&self) -> LFOWaveform {
|
fn waveform(&self) -> LFOWaveform {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<LFOWaveform as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<LFOWaveform as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -205,7 +215,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_waveform(&self, waveform: LFOWaveform) {
|
fn set_waveform(&self, waveform: LFOWaveform) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -30,10 +30,10 @@ pub trait TimedValueControlSourceExt: 'static {
|
||||||
//fn find_control_point_iter(&self, timestamp: gst::ClockTime) -> /*Ignored*/Option<glib::SequenceIter>;
|
//fn find_control_point_iter(&self, timestamp: gst::ClockTime) -> /*Ignored*/Option<glib::SequenceIter>;
|
||||||
|
|
||||||
//#[doc(alias = "gst_timed_value_control_source_get_all")]
|
//#[doc(alias = "gst_timed_value_control_source_get_all")]
|
||||||
//fn get_all(&self) -> /*Ignored*/Vec<gst::TimedValue>;
|
//fn all(&self) -> /*Ignored*/Vec<gst::TimedValue>;
|
||||||
|
|
||||||
#[doc(alias = "gst_timed_value_control_source_get_count")]
|
#[doc(alias = "gst_timed_value_control_source_get_count")]
|
||||||
fn get_count(&self) -> i32;
|
fn count(&self) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "gst_timed_value_control_source_set")]
|
#[doc(alias = "gst_timed_value_control_source_set")]
|
||||||
fn set(&self, timestamp: gst::ClockTime, value: f64) -> bool;
|
fn set(&self, timestamp: gst::ClockTime, value: f64) -> bool;
|
||||||
|
@ -68,11 +68,11 @@ impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_timed_value_control_source_find_control_point_iter() }
|
// unsafe { TODO: call ffi:gst_timed_value_control_source_find_control_point_iter() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//fn get_all(&self) -> /*Ignored*/Vec<gst::TimedValue> {
|
//fn all(&self) -> /*Ignored*/Vec<gst::TimedValue> {
|
||||||
// unsafe { TODO: call ffi:gst_timed_value_control_source_get_all() }
|
// unsafe { TODO: call ffi:gst_timed_value_control_source_get_all() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_count(&self) -> i32 {
|
fn count(&self) -> i32 {
|
||||||
unsafe { ffi::gst_timed_value_control_source_get_count(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_timed_value_control_source_get_count(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,9 +43,11 @@ unsafe impl Sync for TriggerControlSource {}
|
||||||
pub const NONE_TRIGGER_CONTROL_SOURCE: Option<&TriggerControlSource> = None;
|
pub const NONE_TRIGGER_CONTROL_SOURCE: Option<&TriggerControlSource> = None;
|
||||||
|
|
||||||
pub trait TriggerControlSourceExt: 'static {
|
pub trait TriggerControlSourceExt: 'static {
|
||||||
fn get_property_tolerance(&self) -> i64;
|
#[doc(alias = "get_property_tolerance")]
|
||||||
|
fn tolerance(&self) -> i64;
|
||||||
|
|
||||||
fn set_property_tolerance(&self, tolerance: i64);
|
#[doc(alias = "set_property_tolerance")]
|
||||||
|
fn set_tolerance(&self, tolerance: i64);
|
||||||
|
|
||||||
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -54,7 +56,7 @@ pub trait TriggerControlSourceExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<TriggerControlSource>> TriggerControlSourceExt for O {
|
impl<O: IsA<TriggerControlSource>> TriggerControlSourceExt for O {
|
||||||
fn get_property_tolerance(&self) -> i64 {
|
fn tolerance(&self) -> i64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -69,7 +71,7 @@ impl<O: IsA<TriggerControlSource>> TriggerControlSourceExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_tolerance(&self, tolerance: i64) {
|
fn set_tolerance(&self, tolerance: i64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -122,19 +122,19 @@ pub trait AssetExt: 'static {
|
||||||
fn extract(&self) -> Result<Extractable, glib::Error>;
|
fn extract(&self) -> Result<Extractable, glib::Error>;
|
||||||
|
|
||||||
#[doc(alias = "ges_asset_get_error")]
|
#[doc(alias = "ges_asset_get_error")]
|
||||||
fn get_error(&self) -> Option<glib::Error>;
|
fn error(&self) -> Option<glib::Error>;
|
||||||
|
|
||||||
#[doc(alias = "ges_asset_get_extractable_type")]
|
#[doc(alias = "ges_asset_get_extractable_type")]
|
||||||
fn get_extractable_type(&self) -> glib::types::Type;
|
fn extractable_type(&self) -> glib::types::Type;
|
||||||
|
|
||||||
#[doc(alias = "ges_asset_get_id")]
|
#[doc(alias = "ges_asset_get_id")]
|
||||||
fn get_id(&self) -> Option<glib::GString>;
|
fn id(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[doc(alias = "ges_asset_get_proxy")]
|
#[doc(alias = "ges_asset_get_proxy")]
|
||||||
fn get_proxy(&self) -> Option<Asset>;
|
fn proxy(&self) -> Option<Asset>;
|
||||||
|
|
||||||
#[doc(alias = "ges_asset_get_proxy_target")]
|
#[doc(alias = "ges_asset_get_proxy_target")]
|
||||||
fn get_proxy_target(&self) -> Option<Asset>;
|
fn proxy_target(&self) -> Option<Asset>;
|
||||||
|
|
||||||
#[doc(alias = "ges_asset_list_proxies")]
|
#[doc(alias = "ges_asset_list_proxies")]
|
||||||
fn list_proxies(&self) -> Vec<Asset>;
|
fn list_proxies(&self) -> Vec<Asset>;
|
||||||
|
@ -164,11 +164,11 @@ impl<O: IsA<Asset>> AssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_error(&self) -> Option<glib::Error> {
|
fn error(&self) -> Option<glib::Error> {
|
||||||
unsafe { from_glib_none(ffi::ges_asset_get_error(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_asset_get_error(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_extractable_type(&self) -> glib::types::Type {
|
fn extractable_type(&self) -> glib::types::Type {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_asset_get_extractable_type(
|
from_glib(ffi::ges_asset_get_extractable_type(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -176,15 +176,15 @@ impl<O: IsA<Asset>> AssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_id(&self) -> Option<glib::GString> {
|
fn id(&self) -> Option<glib::GString> {
|
||||||
unsafe { from_glib_none(ffi::ges_asset_get_id(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_asset_get_id(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_proxy(&self) -> Option<Asset> {
|
fn proxy(&self) -> Option<Asset> {
|
||||||
unsafe { from_glib_none(ffi::ges_asset_get_proxy(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_asset_get_proxy(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_proxy_target(&self) -> Option<Asset> {
|
fn proxy_target(&self) -> Option<Asset> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_asset_get_proxy_target(
|
from_glib_none(ffi::ges_asset_get_proxy_target(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -73,7 +73,7 @@ pub trait ClipExt: 'static {
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "ges_clip_get_duration_limit")]
|
#[doc(alias = "ges_clip_get_duration_limit")]
|
||||||
fn get_duration_limit(&self) -> gst::ClockTime;
|
fn duration_limit(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -85,10 +85,10 @@ pub trait ClipExt: 'static {
|
||||||
) -> Result<gst::ClockTime, glib::Error>;
|
) -> Result<gst::ClockTime, glib::Error>;
|
||||||
|
|
||||||
#[doc(alias = "ges_clip_get_layer")]
|
#[doc(alias = "ges_clip_get_layer")]
|
||||||
fn get_layer(&self) -> Option<Layer>;
|
fn layer(&self) -> Option<Layer>;
|
||||||
|
|
||||||
#[doc(alias = "ges_clip_get_supported_formats")]
|
#[doc(alias = "ges_clip_get_supported_formats")]
|
||||||
fn get_supported_formats(&self) -> TrackType;
|
fn supported_formats(&self) -> TrackType;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -114,7 +114,7 @@ pub trait ClipExt: 'static {
|
||||||
fn get_top_effect_position<P: IsA<BaseEffect>>(&self, effect: &P) -> i32;
|
fn get_top_effect_position<P: IsA<BaseEffect>>(&self, effect: &P) -> i32;
|
||||||
|
|
||||||
#[doc(alias = "ges_clip_get_top_effects")]
|
#[doc(alias = "ges_clip_get_top_effects")]
|
||||||
fn get_top_effects(&self) -> Vec<TrackElement>;
|
fn top_effects(&self) -> Vec<TrackElement>;
|
||||||
|
|
||||||
#[doc(alias = "ges_clip_move_to_layer")]
|
#[doc(alias = "ges_clip_move_to_layer")]
|
||||||
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
|
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
|
||||||
|
@ -267,7 +267,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_duration_limit(&self) -> gst::ClockTime {
|
fn duration_limit(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_clip_get_duration_limit(
|
from_glib(ffi::ges_clip_get_duration_limit(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -298,11 +298,11 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_layer(&self) -> Option<Layer> {
|
fn layer(&self) -> Option<Layer> {
|
||||||
unsafe { from_glib_full(ffi::ges_clip_get_layer(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_full(ffi::ges_clip_get_layer(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_supported_formats(&self) -> TrackType {
|
fn supported_formats(&self) -> TrackType {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_clip_get_supported_formats(
|
from_glib(ffi::ges_clip_get_supported_formats(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -372,7 +372,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_top_effects(&self) -> Vec<TrackElement> {
|
fn top_effects(&self) -> Vec<TrackElement> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_full(ffi::ges_clip_get_top_effects(
|
FromGlibPtrContainer::from_glib_full(ffi::ges_clip_get_top_effects(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -59,7 +59,8 @@ pub trait GESContainerExt: 'static {
|
||||||
#[doc(alias = "ges_container_ungroup")]
|
#[doc(alias = "ges_container_ungroup")]
|
||||||
fn ungroup(&self, recursive: bool) -> Vec<Container>;
|
fn ungroup(&self, recursive: bool) -> Vec<Container>;
|
||||||
|
|
||||||
fn get_property_height(&self) -> u32;
|
#[doc(alias = "get_property_height")]
|
||||||
|
fn height(&self) -> u32;
|
||||||
|
|
||||||
fn connect_child_added<F: Fn(&Self, &TimelineElement) + 'static>(
|
fn connect_child_added<F: Fn(&Self, &TimelineElement) + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -140,7 +141,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_height(&self) -> u32 {
|
fn height(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
|
|
@ -33,11 +33,12 @@ impl Effect {
|
||||||
pub const NONE_EFFECT: Option<&Effect> = None;
|
pub const NONE_EFFECT: Option<&Effect> = None;
|
||||||
|
|
||||||
pub trait EffectExt: 'static {
|
pub trait EffectExt: 'static {
|
||||||
fn get_property_bin_description(&self) -> Option<glib::GString>;
|
#[doc(alias = "get_property_bin_description")]
|
||||||
|
fn bin_description(&self) -> Option<glib::GString>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<Effect>> EffectExt for O {
|
impl<O: IsA<Effect>> EffectExt for O {
|
||||||
fn get_property_bin_description(&self) -> Option<glib::GString> {
|
fn bin_description(&self) -> Option<glib::GString> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
|
|
@ -19,17 +19,17 @@ pub const NONE_EXTRACTABLE: Option<&Extractable> = None;
|
||||||
|
|
||||||
pub trait ExtractableExt: 'static {
|
pub trait ExtractableExt: 'static {
|
||||||
#[doc(alias = "ges_extractable_get_asset")]
|
#[doc(alias = "ges_extractable_get_asset")]
|
||||||
fn get_asset(&self) -> Option<Asset>;
|
fn asset(&self) -> Option<Asset>;
|
||||||
|
|
||||||
#[doc(alias = "ges_extractable_get_id")]
|
#[doc(alias = "ges_extractable_get_id")]
|
||||||
fn get_id(&self) -> Option<glib::GString>;
|
fn id(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[doc(alias = "ges_extractable_set_asset")]
|
#[doc(alias = "ges_extractable_set_asset")]
|
||||||
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError>;
|
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<Extractable>> ExtractableExt for O {
|
impl<O: IsA<Extractable>> ExtractableExt for O {
|
||||||
fn get_asset(&self) -> Option<Asset> {
|
fn asset(&self) -> Option<Asset> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_extractable_get_asset(
|
from_glib_none(ffi::ges_extractable_get_asset(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -37,7 +37,7 @@ impl<O: IsA<Extractable>> ExtractableExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_id(&self) -> Option<glib::GString> {
|
fn id(&self) -> Option<glib::GString> {
|
||||||
unsafe { from_glib_full(ffi::ges_extractable_get_id(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_full(ffi::ges_extractable_get_id(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,25 +40,35 @@ impl Default for Group {
|
||||||
pub const NONE_GROUP: Option<&Group> = None;
|
pub const NONE_GROUP: Option<&Group> = None;
|
||||||
|
|
||||||
pub trait GroupExt: 'static {
|
pub trait GroupExt: 'static {
|
||||||
fn get_property_duration(&self) -> u64;
|
#[doc(alias = "get_property_duration")]
|
||||||
|
fn duration(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_duration(&self, duration: u64);
|
#[doc(alias = "set_property_duration")]
|
||||||
|
fn set_duration(&self, duration: u64);
|
||||||
|
|
||||||
fn get_property_in_point(&self) -> u64;
|
#[doc(alias = "get_property_in_point")]
|
||||||
|
fn in_point(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_in_point(&self, in_point: u64);
|
#[doc(alias = "set_property_in_point")]
|
||||||
|
fn set_in_point(&self, in_point: u64);
|
||||||
|
|
||||||
fn get_property_max_duration(&self) -> u64;
|
#[doc(alias = "get_property_max_duration")]
|
||||||
|
fn max_duration(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_max_duration(&self, max_duration: u64);
|
#[doc(alias = "set_property_max_duration")]
|
||||||
|
fn set_max_duration(&self, max_duration: u64);
|
||||||
|
|
||||||
fn get_property_priority(&self) -> u32;
|
#[doc(alias = "get_property_priority")]
|
||||||
|
fn priority(&self) -> u32;
|
||||||
|
|
||||||
fn set_property_priority(&self, priority: u32);
|
#[doc(alias = "set_property_priority")]
|
||||||
|
fn set_priority(&self, priority: u32);
|
||||||
|
|
||||||
fn get_property_start(&self) -> u64;
|
#[doc(alias = "get_property_start")]
|
||||||
|
fn start(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_start(&self, start: u64);
|
#[doc(alias = "set_property_start")]
|
||||||
|
fn set_start(&self, start: u64);
|
||||||
|
|
||||||
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
|
@ -73,7 +83,7 @@ pub trait GroupExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<Group>> GroupExt for O {
|
impl<O: IsA<Group>> GroupExt for O {
|
||||||
fn get_property_duration(&self) -> u64 {
|
fn duration(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -88,7 +98,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_duration(&self, duration: u64) {
|
fn set_duration(&self, duration: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -98,7 +108,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_in_point(&self) -> u64 {
|
fn in_point(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -113,7 +123,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_in_point(&self, in_point: u64) {
|
fn set_in_point(&self, in_point: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -123,7 +133,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_max_duration(&self) -> u64 {
|
fn max_duration(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -138,7 +148,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_max_duration(&self, max_duration: u64) {
|
fn set_max_duration(&self, max_duration: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -148,7 +158,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_priority(&self) -> u32 {
|
fn priority(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -163,7 +173,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_priority(&self, priority: u32) {
|
fn set_priority(&self, priority: u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -173,7 +183,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_start(&self) -> u64 {
|
fn start(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -188,7 +198,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_start(&self, start: u64) {
|
fn set_start(&self, start: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -83,22 +83,22 @@ pub trait LayerExt: 'static {
|
||||||
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
|
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_get_auto_transition")]
|
#[doc(alias = "ges_layer_get_auto_transition")]
|
||||||
fn get_auto_transition(&self) -> bool;
|
fn is_auto_transition(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_get_clips")]
|
#[doc(alias = "ges_layer_get_clips")]
|
||||||
fn get_clips(&self) -> Vec<Clip>;
|
fn clips(&self) -> Vec<Clip>;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_get_clips_in_interval")]
|
#[doc(alias = "ges_layer_get_clips_in_interval")]
|
||||||
fn get_clips_in_interval(&self, start: gst::ClockTime, end: gst::ClockTime) -> Vec<Clip>;
|
fn get_clips_in_interval(&self, start: gst::ClockTime, end: gst::ClockTime) -> Vec<Clip>;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_get_duration")]
|
#[doc(alias = "ges_layer_get_duration")]
|
||||||
fn get_duration(&self) -> gst::ClockTime;
|
fn duration(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_get_priority")]
|
#[doc(alias = "ges_layer_get_priority")]
|
||||||
fn get_priority(&self) -> u32;
|
fn priority(&self) -> u32;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_get_timeline")]
|
#[doc(alias = "ges_layer_get_timeline")]
|
||||||
fn get_timeline(&self) -> Option<Timeline>;
|
fn timeline(&self) -> Option<Timeline>;
|
||||||
|
|
||||||
#[doc(alias = "ges_layer_is_empty")]
|
#[doc(alias = "ges_layer_is_empty")]
|
||||||
fn is_empty(&self) -> bool;
|
fn is_empty(&self) -> bool;
|
||||||
|
@ -230,7 +230,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_auto_transition(&self) -> bool {
|
fn is_auto_transition(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_layer_get_auto_transition(
|
from_glib(ffi::ges_layer_get_auto_transition(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -238,7 +238,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_clips(&self) -> Vec<Clip> {
|
fn clips(&self) -> Vec<Clip> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_full(ffi::ges_layer_get_clips(
|
FromGlibPtrContainer::from_glib_full(ffi::ges_layer_get_clips(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -256,15 +256,15 @@ impl<O: IsA<Layer>> LayerExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_duration(&self) -> gst::ClockTime {
|
fn duration(&self) -> gst::ClockTime {
|
||||||
unsafe { from_glib(ffi::ges_layer_get_duration(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib(ffi::ges_layer_get_duration(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_priority(&self) -> u32 {
|
fn priority(&self) -> u32 {
|
||||||
unsafe { ffi::ges_layer_get_priority(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::ges_layer_get_priority(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_timeline(&self) -> Option<Timeline> {
|
fn timeline(&self) -> Option<Timeline> {
|
||||||
unsafe { from_glib_none(ffi::ges_layer_get_timeline(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_layer_get_timeline(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ pub const NONE_PIPELINE: Option<&Pipeline> = None;
|
||||||
|
|
||||||
pub trait GESPipelineExt: 'static {
|
pub trait GESPipelineExt: 'static {
|
||||||
#[doc(alias = "ges_pipeline_get_mode")]
|
#[doc(alias = "ges_pipeline_get_mode")]
|
||||||
fn get_mode(&self) -> PipelineFlags;
|
fn mode(&self) -> PipelineFlags;
|
||||||
|
|
||||||
#[doc(alias = "ges_pipeline_get_thumbnail")]
|
#[doc(alias = "ges_pipeline_get_thumbnail")]
|
||||||
fn get_thumbnail(&self, caps: &gst::Caps) -> Option<gst::Sample>;
|
fn get_thumbnail(&self, caps: &gst::Caps) -> Option<gst::Sample>;
|
||||||
|
@ -83,23 +83,32 @@ pub trait GESPipelineExt: 'static {
|
||||||
#[doc(alias = "ges_pipeline_set_timeline")]
|
#[doc(alias = "ges_pipeline_set_timeline")]
|
||||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError>;
|
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError>;
|
||||||
|
|
||||||
fn get_property_audio_filter(&self) -> Option<gst::Element>;
|
#[doc(alias = "get_property_audio_filter")]
|
||||||
|
fn audio_filter(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
fn set_property_audio_filter<P: IsA<gst::Element>>(&self, audio_filter: Option<&P>);
|
#[doc(alias = "set_property_audio_filter")]
|
||||||
|
fn set_audio_filter<P: IsA<gst::Element>>(&self, audio_filter: Option<&P>);
|
||||||
|
|
||||||
fn get_property_audio_sink(&self) -> Option<gst::Element>;
|
#[doc(alias = "get_property_audio_sink")]
|
||||||
|
fn audio_sink(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
fn set_property_audio_sink<P: IsA<gst::Element>>(&self, audio_sink: Option<&P>);
|
#[doc(alias = "set_property_audio_sink")]
|
||||||
|
fn set_audio_sink<P: IsA<gst::Element>>(&self, audio_sink: Option<&P>);
|
||||||
|
|
||||||
fn get_property_timeline(&self) -> Option<Timeline>;
|
#[doc(alias = "get_property_timeline")]
|
||||||
|
fn timeline(&self) -> Option<Timeline>;
|
||||||
|
|
||||||
fn get_property_video_filter(&self) -> Option<gst::Element>;
|
#[doc(alias = "get_property_video_filter")]
|
||||||
|
fn video_filter(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
fn set_property_video_filter<P: IsA<gst::Element>>(&self, video_filter: Option<&P>);
|
#[doc(alias = "set_property_video_filter")]
|
||||||
|
fn set_video_filter<P: IsA<gst::Element>>(&self, video_filter: Option<&P>);
|
||||||
|
|
||||||
fn get_property_video_sink(&self) -> Option<gst::Element>;
|
#[doc(alias = "get_property_video_sink")]
|
||||||
|
fn video_sink(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
fn set_property_video_sink<P: IsA<gst::Element>>(&self, video_sink: Option<&P>);
|
#[doc(alias = "set_property_video_sink")]
|
||||||
|
fn set_video_sink<P: IsA<gst::Element>>(&self, video_sink: Option<&P>);
|
||||||
|
|
||||||
fn connect_property_audio_filter_notify<F: Fn(&Self) + 'static>(&self, f: F)
|
fn connect_property_audio_filter_notify<F: Fn(&Self) + 'static>(&self, f: F)
|
||||||
-> SignalHandlerId;
|
-> SignalHandlerId;
|
||||||
|
@ -117,7 +126,7 @@ pub trait GESPipelineExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
fn get_mode(&self) -> PipelineFlags {
|
fn mode(&self) -> PipelineFlags {
|
||||||
unsafe { from_glib(ffi::ges_pipeline_get_mode(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib(ffi::ges_pipeline_get_mode(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,7 +246,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_audio_filter(&self) -> Option<gst::Element> {
|
fn audio_filter(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -251,7 +260,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_audio_filter<P: IsA<gst::Element>>(&self, audio_filter: Option<&P>) {
|
fn set_audio_filter<P: IsA<gst::Element>>(&self, audio_filter: Option<&P>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -261,7 +270,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_audio_sink(&self) -> Option<gst::Element> {
|
fn audio_sink(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -275,7 +284,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_audio_sink<P: IsA<gst::Element>>(&self, audio_sink: Option<&P>) {
|
fn set_audio_sink<P: IsA<gst::Element>>(&self, audio_sink: Option<&P>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -285,7 +294,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_timeline(&self) -> Option<Timeline> {
|
fn timeline(&self) -> Option<Timeline> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<Timeline as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<Timeline as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -299,7 +308,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_video_filter(&self) -> Option<gst::Element> {
|
fn video_filter(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -313,7 +322,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_video_filter<P: IsA<gst::Element>>(&self, video_filter: Option<&P>) {
|
fn set_video_filter<P: IsA<gst::Element>>(&self, video_filter: Option<&P>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -323,7 +332,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_video_sink(&self) -> Option<gst::Element> {
|
fn video_sink(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -337,7 +346,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_video_sink<P: IsA<gst::Element>>(&self, video_sink: Option<&P>) {
|
fn set_video_sink<P: IsA<gst::Element>>(&self, video_sink: Option<&P>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -61,10 +61,10 @@ pub trait ProjectExt: 'static {
|
||||||
fn get_asset(&self, id: &str, extractable_type: glib::types::Type) -> Option<Asset>;
|
fn get_asset(&self, id: &str, extractable_type: glib::types::Type) -> Option<Asset>;
|
||||||
|
|
||||||
#[doc(alias = "ges_project_get_loading_assets")]
|
#[doc(alias = "ges_project_get_loading_assets")]
|
||||||
fn get_loading_assets(&self) -> Vec<Asset>;
|
fn loading_assets(&self) -> Vec<Asset>;
|
||||||
|
|
||||||
#[doc(alias = "ges_project_get_uri")]
|
#[doc(alias = "ges_project_get_uri")]
|
||||||
fn get_uri(&self) -> Option<glib::GString>;
|
fn uri(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[doc(alias = "ges_project_list_assets")]
|
#[doc(alias = "ges_project_list_assets")]
|
||||||
fn list_assets(&self, filter: glib::types::Type) -> Vec<Asset>;
|
fn list_assets(&self, filter: glib::types::Type) -> Vec<Asset>;
|
||||||
|
@ -189,7 +189,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_loading_assets(&self) -> Vec<Asset> {
|
fn loading_assets(&self) -> Vec<Asset> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_full(ffi::ges_project_get_loading_assets(
|
FromGlibPtrContainer::from_glib_full(ffi::ges_project_get_loading_assets(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -197,7 +197,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_uri(&self) -> Option<glib::GString> {
|
fn uri(&self) -> Option<glib::GString> {
|
||||||
unsafe { from_glib_full(ffi::ges_project_get_uri(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_full(ffi::ges_project_get_uri(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,10 +87,10 @@ pub trait TimelineExt: 'static {
|
||||||
fn commit_sync(&self) -> bool;
|
fn commit_sync(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_auto_transition")]
|
#[doc(alias = "ges_timeline_get_auto_transition")]
|
||||||
fn get_auto_transition(&self) -> bool;
|
fn is_auto_transition(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_duration")]
|
#[doc(alias = "ges_timeline_get_duration")]
|
||||||
fn get_duration(&self) -> gst::ClockTime;
|
fn duration(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_element")]
|
#[doc(alias = "ges_timeline_get_element")]
|
||||||
fn get_element(&self, name: &str) -> Option<TimelineElement>;
|
fn get_element(&self, name: &str) -> Option<TimelineElement>;
|
||||||
|
@ -106,25 +106,25 @@ pub trait TimelineExt: 'static {
|
||||||
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime;
|
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_groups")]
|
#[doc(alias = "ges_timeline_get_groups")]
|
||||||
fn get_groups(&self) -> Vec<Group>;
|
fn groups(&self) -> Vec<Group>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_layer")]
|
#[doc(alias = "ges_timeline_get_layer")]
|
||||||
fn get_layer(&self, priority: u32) -> Option<Layer>;
|
fn get_layer(&self, priority: u32) -> Option<Layer>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_layers")]
|
#[doc(alias = "ges_timeline_get_layers")]
|
||||||
fn get_layers(&self) -> Vec<Layer>;
|
fn layers(&self) -> Vec<Layer>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_pad_for_track")]
|
#[doc(alias = "ges_timeline_get_pad_for_track")]
|
||||||
fn get_pad_for_track<P: IsA<Track>>(&self, track: &P) -> Option<gst::Pad>;
|
fn get_pad_for_track<P: IsA<Track>>(&self, track: &P) -> Option<gst::Pad>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_snapping_distance")]
|
#[doc(alias = "ges_timeline_get_snapping_distance")]
|
||||||
fn get_snapping_distance(&self) -> gst::ClockTime;
|
fn snapping_distance(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_track_for_pad")]
|
#[doc(alias = "ges_timeline_get_track_for_pad")]
|
||||||
fn get_track_for_pad<P: IsA<gst::Pad>>(&self, pad: &P) -> Option<Track>;
|
fn get_track_for_pad<P: IsA<gst::Pad>>(&self, pad: &P) -> Option<Track>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_get_tracks")]
|
#[doc(alias = "ges_timeline_get_tracks")]
|
||||||
fn get_tracks(&self) -> Vec<Track>;
|
fn tracks(&self) -> Vec<Track>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_is_empty")]
|
#[doc(alias = "ges_timeline_is_empty")]
|
||||||
fn is_empty(&self) -> bool;
|
fn is_empty(&self) -> bool;
|
||||||
|
@ -260,7 +260,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_auto_transition(&self) -> bool {
|
fn is_auto_transition(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_get_auto_transition(
|
from_glib(ffi::ges_timeline_get_auto_transition(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -268,7 +268,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_duration(&self) -> gst::ClockTime {
|
fn duration(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_get_duration(
|
from_glib(ffi::ges_timeline_get_duration(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -304,7 +304,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_groups(&self) -> Vec<Group> {
|
fn groups(&self) -> Vec<Group> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_none(ffi::ges_timeline_get_groups(
|
FromGlibPtrContainer::from_glib_none(ffi::ges_timeline_get_groups(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -321,7 +321,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_layers(&self) -> Vec<Layer> {
|
fn layers(&self) -> Vec<Layer> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_full(ffi::ges_timeline_get_layers(
|
FromGlibPtrContainer::from_glib_full(ffi::ges_timeline_get_layers(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -338,7 +338,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_snapping_distance(&self) -> gst::ClockTime {
|
fn snapping_distance(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_get_snapping_distance(
|
from_glib(ffi::ges_timeline_get_snapping_distance(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -355,7 +355,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_tracks(&self) -> Vec<Track> {
|
fn tracks(&self) -> Vec<Track> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_full(ffi::ges_timeline_get_tracks(
|
FromGlibPtrContainer::from_glib_full(ffi::ges_timeline_get_tracks(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -83,44 +83,44 @@ pub trait TimelineElementExt: 'static {
|
||||||
//fn get_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
|
//fn get_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_duration")]
|
#[doc(alias = "ges_timeline_element_get_duration")]
|
||||||
fn get_duration(&self) -> gst::ClockTime;
|
fn duration(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_inpoint")]
|
#[doc(alias = "ges_timeline_element_get_inpoint")]
|
||||||
fn get_inpoint(&self) -> gst::ClockTime;
|
fn inpoint(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
#[doc(alias = "ges_timeline_element_get_layer_priority")]
|
#[doc(alias = "ges_timeline_element_get_layer_priority")]
|
||||||
fn get_layer_priority(&self) -> u32;
|
fn layer_priority(&self) -> u32;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_max_duration")]
|
#[doc(alias = "ges_timeline_element_get_max_duration")]
|
||||||
fn get_max_duration(&self) -> gst::ClockTime;
|
fn max_duration(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_name")]
|
#[doc(alias = "ges_timeline_element_get_name")]
|
||||||
fn get_name(&self) -> Option<glib::GString>;
|
fn name(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "ges_timeline_element_get_natural_framerate")]
|
#[doc(alias = "ges_timeline_element_get_natural_framerate")]
|
||||||
fn get_natural_framerate(&self) -> Option<(i32, i32)>;
|
fn natural_framerate(&self) -> Option<(i32, i32)>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_parent")]
|
#[doc(alias = "ges_timeline_element_get_parent")]
|
||||||
fn get_parent(&self) -> Option<TimelineElement>;
|
fn parent(&self) -> Option<TimelineElement>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_priority")]
|
#[doc(alias = "ges_timeline_element_get_priority")]
|
||||||
fn get_priority(&self) -> u32;
|
fn priority(&self) -> u32;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_start")]
|
#[doc(alias = "ges_timeline_element_get_start")]
|
||||||
fn get_start(&self) -> gst::ClockTime;
|
fn start(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_timeline")]
|
#[doc(alias = "ges_timeline_element_get_timeline")]
|
||||||
fn get_timeline(&self) -> Option<Timeline>;
|
fn timeline(&self) -> Option<Timeline>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_toplevel_parent")]
|
#[doc(alias = "ges_timeline_element_get_toplevel_parent")]
|
||||||
fn get_toplevel_parent(&self) -> Option<TimelineElement>;
|
fn toplevel_parent(&self) -> Option<TimelineElement>;
|
||||||
|
|
||||||
#[doc(alias = "ges_timeline_element_get_track_types")]
|
#[doc(alias = "ges_timeline_element_get_track_types")]
|
||||||
fn get_track_types(&self) -> TrackType;
|
fn track_types(&self) -> TrackType;
|
||||||
|
|
||||||
//#[doc(alias = "ges_timeline_element_list_children_properties")]
|
//#[doc(alias = "ges_timeline_element_list_children_properties")]
|
||||||
//fn list_children_properties(&self) -> /*Ignored*/Vec<glib::ParamSpec>;
|
//fn list_children_properties(&self) -> /*Ignored*/Vec<glib::ParamSpec>;
|
||||||
|
@ -192,13 +192,17 @@ pub trait TimelineElementExt: 'static {
|
||||||
#[doc(alias = "ges_timeline_element_trim")]
|
#[doc(alias = "ges_timeline_element_trim")]
|
||||||
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>;
|
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>;
|
||||||
|
|
||||||
fn get_property_in_point(&self) -> u64;
|
#[doc(alias = "get_property_in_point")]
|
||||||
|
fn in_point(&self) -> u64;
|
||||||
|
|
||||||
fn set_property_in_point(&self, in_point: u64);
|
#[doc(alias = "set_property_in_point")]
|
||||||
|
fn set_in_point(&self, in_point: u64);
|
||||||
|
|
||||||
fn get_property_serialize(&self) -> bool;
|
#[doc(alias = "get_property_serialize")]
|
||||||
|
fn is_serialize(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_serialize(&self, serialize: bool);
|
#[doc(alias = "set_property_serialize")]
|
||||||
|
fn set_serialize(&self, serialize: bool);
|
||||||
|
|
||||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -311,7 +315,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
// unsafe { TODO: call ffi:ges_timeline_element_get_child_property_valist() }
|
// unsafe { TODO: call ffi:ges_timeline_element_get_child_property_valist() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_duration(&self) -> gst::ClockTime {
|
fn duration(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_element_get_duration(
|
from_glib(ffi::ges_timeline_element_get_duration(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -319,7 +323,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_inpoint(&self) -> gst::ClockTime {
|
fn inpoint(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_element_get_inpoint(
|
from_glib(ffi::ges_timeline_element_get_inpoint(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -329,11 +333,11 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
fn get_layer_priority(&self) -> u32 {
|
fn layer_priority(&self) -> u32 {
|
||||||
unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_max_duration(&self) -> gst::ClockTime {
|
fn max_duration(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_element_get_max_duration(
|
from_glib(ffi::ges_timeline_element_get_max_duration(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -341,7 +345,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_name(&self) -> Option<glib::GString> {
|
fn name(&self) -> Option<glib::GString> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::ges_timeline_element_get_name(
|
from_glib_full(ffi::ges_timeline_element_get_name(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -351,7 +355,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_natural_framerate(&self) -> Option<(i32, i32)> {
|
fn natural_framerate(&self) -> Option<(i32, i32)> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut framerate_n = mem::MaybeUninit::uninit();
|
let mut framerate_n = mem::MaybeUninit::uninit();
|
||||||
let mut framerate_d = mem::MaybeUninit::uninit();
|
let mut framerate_d = mem::MaybeUninit::uninit();
|
||||||
|
@ -370,7 +374,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_parent(&self) -> Option<TimelineElement> {
|
fn parent(&self) -> Option<TimelineElement> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::ges_timeline_element_get_parent(
|
from_glib_full(ffi::ges_timeline_element_get_parent(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -378,11 +382,11 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_priority(&self) -> u32 {
|
fn priority(&self) -> u32 {
|
||||||
unsafe { ffi::ges_timeline_element_get_priority(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::ges_timeline_element_get_priority(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_start(&self) -> gst::ClockTime {
|
fn start(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_element_get_start(
|
from_glib(ffi::ges_timeline_element_get_start(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -390,7 +394,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_timeline(&self) -> Option<Timeline> {
|
fn timeline(&self) -> Option<Timeline> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::ges_timeline_element_get_timeline(
|
from_glib_full(ffi::ges_timeline_element_get_timeline(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -398,7 +402,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_toplevel_parent(&self) -> Option<TimelineElement> {
|
fn toplevel_parent(&self) -> Option<TimelineElement> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::ges_timeline_element_get_toplevel_parent(
|
from_glib_full(ffi::ges_timeline_element_get_toplevel_parent(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -406,7 +410,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_track_types(&self) -> TrackType {
|
fn track_types(&self) -> TrackType {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_timeline_element_get_track_types(
|
from_glib(ffi::ges_timeline_element_get_track_types(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -590,7 +594,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_in_point(&self) -> u64 {
|
fn in_point(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -605,7 +609,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_in_point(&self, in_point: u64) {
|
fn set_in_point(&self, in_point: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -615,7 +619,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_serialize(&self) -> bool {
|
fn is_serialize(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -630,7 +634,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_serialize(&self, serialize: bool) {
|
fn set_serialize(&self, serialize: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -49,21 +49,21 @@ pub trait GESTrackExt: 'static {
|
||||||
fn commit(&self) -> bool;
|
fn commit(&self) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_get_caps")]
|
#[doc(alias = "ges_track_get_caps")]
|
||||||
fn get_caps(&self) -> Option<gst::Caps>;
|
fn caps(&self) -> Option<gst::Caps>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_get_elements")]
|
#[doc(alias = "ges_track_get_elements")]
|
||||||
fn get_elements(&self) -> Vec<TrackElement>;
|
fn elements(&self) -> Vec<TrackElement>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_get_mixing")]
|
#[doc(alias = "ges_track_get_mixing")]
|
||||||
fn get_mixing(&self) -> bool;
|
fn is_mixing(&self) -> bool;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "ges_track_get_restriction_caps")]
|
#[doc(alias = "ges_track_get_restriction_caps")]
|
||||||
fn get_restriction_caps(&self) -> Option<gst::Caps>;
|
fn restriction_caps(&self) -> Option<gst::Caps>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_get_timeline")]
|
#[doc(alias = "ges_track_get_timeline")]
|
||||||
fn get_timeline(&self) -> Option<Timeline>;
|
fn timeline(&self) -> Option<Timeline>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_remove_element")]
|
#[doc(alias = "ges_track_remove_element")]
|
||||||
fn remove_element<P: IsA<TrackElement>>(
|
fn remove_element<P: IsA<TrackElement>>(
|
||||||
|
@ -91,19 +91,23 @@ pub trait GESTrackExt: 'static {
|
||||||
#[doc(alias = "ges_track_update_restriction_caps")]
|
#[doc(alias = "ges_track_update_restriction_caps")]
|
||||||
fn update_restriction_caps(&self, caps: &gst::Caps);
|
fn update_restriction_caps(&self, caps: &gst::Caps);
|
||||||
|
|
||||||
fn get_property_duration(&self) -> u64;
|
#[doc(alias = "get_property_duration")]
|
||||||
|
fn duration(&self) -> u64;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_id(&self) -> Option<glib::GString>;
|
#[doc(alias = "get_property_id")]
|
||||||
|
fn id(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn set_property_id(&self, id: Option<&str>);
|
#[doc(alias = "set_property_id")]
|
||||||
|
fn set_id(&self, id: Option<&str>);
|
||||||
|
|
||||||
fn get_property_restriction_caps(&self) -> Option<gst::Caps>;
|
fn get_property_restriction_caps(&self) -> Option<gst::Caps>;
|
||||||
|
|
||||||
fn get_property_track_type(&self) -> TrackType;
|
#[doc(alias = "get_property_track_type")]
|
||||||
|
fn track_type(&self) -> TrackType;
|
||||||
|
|
||||||
fn connect_commited<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_commited<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
|
@ -166,11 +170,11 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
unsafe { from_glib(ffi::ges_track_commit(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib(ffi::ges_track_commit(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_caps(&self) -> Option<gst::Caps> {
|
fn caps(&self) -> Option<gst::Caps> {
|
||||||
unsafe { from_glib_none(ffi::ges_track_get_caps(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_track_get_caps(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_elements(&self) -> Vec<TrackElement> {
|
fn elements(&self) -> Vec<TrackElement> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_full(ffi::ges_track_get_elements(
|
FromGlibPtrContainer::from_glib_full(ffi::ges_track_get_elements(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -178,13 +182,13 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_mixing(&self) -> bool {
|
fn is_mixing(&self) -> bool {
|
||||||
unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_restriction_caps(&self) -> Option<gst::Caps> {
|
fn restriction_caps(&self) -> Option<gst::Caps> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::ges_track_get_restriction_caps(
|
from_glib_full(ffi::ges_track_get_restriction_caps(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -192,7 +196,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_timeline(&self) -> Option<Timeline> {
|
fn timeline(&self) -> Option<Timeline> {
|
||||||
unsafe { from_glib_none(ffi::ges_track_get_timeline(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_track_get_timeline(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,7 +270,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_duration(&self) -> u64 {
|
fn duration(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -283,7 +287,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_id(&self) -> Option<glib::GString> {
|
fn id(&self) -> Option<glib::GString> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -297,7 +301,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn set_property_id(&self, id: Option<&str>) {
|
fn set_id(&self, id: Option<&str>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -321,7 +325,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_track_type(&self) -> TrackType {
|
fn track_type(&self) -> TrackType {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<TrackType as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<TrackType as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
|
|
@ -15,7 +15,6 @@ use glib::object::IsA;
|
||||||
use glib::signal::connect_raw;
|
use glib::signal::connect_raw;
|
||||||
use glib::signal::SignalHandlerId;
|
use glib::signal::SignalHandlerId;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::StaticType;
|
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
|
@ -55,30 +54,30 @@ pub trait TrackElementExt: 'static {
|
||||||
) -> Result<(), glib::error::BoolError>;
|
) -> Result<(), glib::error::BoolError>;
|
||||||
|
|
||||||
//#[doc(alias = "ges_track_element_get_all_control_bindings")]
|
//#[doc(alias = "ges_track_element_get_all_control_bindings")]
|
||||||
//fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 };
|
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 };
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "ges_track_element_get_auto_clamp_control_sources")]
|
#[doc(alias = "ges_track_element_get_auto_clamp_control_sources")]
|
||||||
fn get_auto_clamp_control_sources(&self) -> bool;
|
fn is_auto_clamp_control_sources(&self) -> bool;
|
||||||
|
|
||||||
//#[doc(alias = "ges_track_element_get_control_binding")]
|
//#[doc(alias = "ges_track_element_get_control_binding")]
|
||||||
//fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>;
|
//fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_element_get_element")]
|
#[doc(alias = "ges_track_element_get_element")]
|
||||||
fn get_element(&self) -> Option<gst::Element>;
|
fn element(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_element_get_gnlobject")]
|
#[doc(alias = "ges_track_element_get_gnlobject")]
|
||||||
fn get_gnlobject(&self) -> Option<gst::Element>;
|
fn gnlobject(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_element_get_nleobject")]
|
#[doc(alias = "ges_track_element_get_nleobject")]
|
||||||
fn get_nleobject(&self) -> Option<gst::Element>;
|
fn nleobject(&self) -> Option<gst::Element>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_element_get_track")]
|
#[doc(alias = "ges_track_element_get_track")]
|
||||||
fn get_track(&self) -> Option<Track>;
|
fn track(&self) -> Option<Track>;
|
||||||
|
|
||||||
#[doc(alias = "ges_track_element_get_track_type")]
|
#[doc(alias = "ges_track_element_get_track_type")]
|
||||||
fn get_track_type(&self) -> TrackType;
|
fn track_type(&self) -> TrackType;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -118,12 +117,6 @@ pub trait TrackElementExt: 'static {
|
||||||
#[doc(alias = "ges_track_element_set_track_type")]
|
#[doc(alias = "ges_track_element_set_track_type")]
|
||||||
fn set_track_type(&self, type_: TrackType);
|
fn set_track_type(&self, type_: TrackType);
|
||||||
|
|
||||||
fn get_property_active(&self) -> bool;
|
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
|
||||||
fn get_property_has_internal_source(&self) -> bool;
|
|
||||||
|
|
||||||
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
//fn connect_control_binding_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
//fn connect_control_binding_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||||
|
@ -200,13 +193,13 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 } {
|
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 } {
|
||||||
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
|
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_auto_clamp_control_sources(&self) -> bool {
|
fn is_auto_clamp_control_sources(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_track_element_get_auto_clamp_control_sources(
|
from_glib(ffi::ges_track_element_get_auto_clamp_control_sources(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -218,7 +211,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
// unsafe { TODO: call ffi:ges_track_element_get_control_binding() }
|
// unsafe { TODO: call ffi:ges_track_element_get_control_binding() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_element(&self) -> Option<gst::Element> {
|
fn element(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_track_element_get_element(
|
from_glib_none(ffi::ges_track_element_get_element(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -226,7 +219,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gnlobject(&self) -> Option<gst::Element> {
|
fn gnlobject(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_track_element_get_gnlobject(
|
from_glib_none(ffi::ges_track_element_get_gnlobject(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -234,7 +227,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_nleobject(&self) -> Option<gst::Element> {
|
fn nleobject(&self) -> Option<gst::Element> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_track_element_get_nleobject(
|
from_glib_none(ffi::ges_track_element_get_nleobject(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -242,7 +235,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_track(&self) -> Option<Track> {
|
fn track(&self) -> Option<Track> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_track_element_get_track(
|
from_glib_none(ffi::ges_track_element_get_track(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -250,7 +243,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_track_type(&self) -> TrackType {
|
fn track_type(&self) -> TrackType {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_track_element_get_track_type(
|
from_glib(ffi::ges_track_element_get_track_type(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -343,38 +336,6 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_active(&self) -> bool {
|
|
||||||
unsafe {
|
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
|
||||||
glib::gobject_ffi::g_object_get_property(
|
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
|
||||||
b"active\0".as_ptr() as *const _,
|
|
||||||
value.to_glib_none_mut().0,
|
|
||||||
);
|
|
||||||
value
|
|
||||||
.get()
|
|
||||||
.expect("Return Value for property `active` getter")
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
|
||||||
fn get_property_has_internal_source(&self) -> bool {
|
|
||||||
unsafe {
|
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
|
||||||
glib::gobject_ffi::g_object_get_property(
|
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
|
||||||
b"has-internal-source\0".as_ptr() as *const _,
|
|
||||||
value.to_glib_none_mut().0,
|
|
||||||
);
|
|
||||||
value
|
|
||||||
.get()
|
|
||||||
.expect("Return Value for property `has-internal-source` getter")
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
||||||
// Ignored control_binding: Gst.ControlBinding
|
// Ignored control_binding: Gst.ControlBinding
|
||||||
//}
|
//}
|
||||||
|
|
|
@ -35,7 +35,7 @@ impl TransitionClip {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "ges_transition_clip_new_for_nick")]
|
#[doc(alias = "ges_transition_clip_new_for_nick")]
|
||||||
pub fn new_for_nick(nick: &str) -> Option<TransitionClip> {
|
pub fn for_nick(nick: &str) -> Option<TransitionClip> {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
unsafe { from_glib_none(ffi::ges_transition_clip_new_for_nick(nick.to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_transition_clip_new_for_nick(nick.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
@ -44,15 +44,17 @@ impl TransitionClip {
|
||||||
pub const NONE_TRANSITION_CLIP: Option<&TransitionClip> = None;
|
pub const NONE_TRANSITION_CLIP: Option<&TransitionClip> = None;
|
||||||
|
|
||||||
pub trait TransitionClipExt: 'static {
|
pub trait TransitionClipExt: 'static {
|
||||||
fn get_property_vtype(&self) -> VideoStandardTransitionType;
|
#[doc(alias = "get_property_vtype")]
|
||||||
|
fn vtype(&self) -> VideoStandardTransitionType;
|
||||||
|
|
||||||
fn set_property_vtype(&self, vtype: VideoStandardTransitionType);
|
#[doc(alias = "set_property_vtype")]
|
||||||
|
fn set_vtype(&self, vtype: VideoStandardTransitionType);
|
||||||
|
|
||||||
fn connect_property_vtype_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_vtype_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<TransitionClip>> TransitionClipExt for O {
|
impl<O: IsA<TransitionClip>> TransitionClipExt for O {
|
||||||
fn get_property_vtype(&self) -> VideoStandardTransitionType {
|
fn vtype(&self) -> VideoStandardTransitionType {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value =
|
let mut value =
|
||||||
glib::Value::from_type(<VideoStandardTransitionType as StaticType>::static_type());
|
glib::Value::from_type(<VideoStandardTransitionType as StaticType>::static_type());
|
||||||
|
@ -68,7 +70,7 @@ impl<O: IsA<TransitionClip>> TransitionClipExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_vtype(&self, vtype: VideoStandardTransitionType) {
|
fn set_vtype(&self, vtype: VideoStandardTransitionType) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -12,7 +12,6 @@ use glib::object::IsA;
|
||||||
use glib::signal::connect_raw;
|
use glib::signal::connect_raw;
|
||||||
use glib::signal::SignalHandlerId;
|
use glib::signal::SignalHandlerId;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::StaticType;
|
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
|
@ -39,7 +38,7 @@ pub const NONE_URI_CLIP: Option<&UriClip> = None;
|
||||||
|
|
||||||
pub trait UriClipExt: 'static {
|
pub trait UriClipExt: 'static {
|
||||||
#[doc(alias = "ges_uri_clip_get_uri")]
|
#[doc(alias = "ges_uri_clip_get_uri")]
|
||||||
fn get_uri(&self) -> Option<glib::GString>;
|
fn uri(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[doc(alias = "ges_uri_clip_is_image")]
|
#[doc(alias = "ges_uri_clip_is_image")]
|
||||||
fn is_image(&self) -> bool;
|
fn is_image(&self) -> bool;
|
||||||
|
@ -53,10 +52,6 @@ pub trait UriClipExt: 'static {
|
||||||
#[doc(alias = "ges_uri_clip_set_mute")]
|
#[doc(alias = "ges_uri_clip_set_mute")]
|
||||||
fn set_mute(&self, mute: bool);
|
fn set_mute(&self, mute: bool);
|
||||||
|
|
||||||
fn get_property_is_image(&self) -> bool;
|
|
||||||
|
|
||||||
fn get_property_mute(&self) -> bool;
|
|
||||||
|
|
||||||
fn connect_property_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
@ -68,7 +63,7 @@ pub trait UriClipExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<UriClip>> UriClipExt for O {
|
impl<O: IsA<UriClip>> UriClipExt for O {
|
||||||
fn get_uri(&self) -> Option<glib::GString> {
|
fn uri(&self) -> Option<glib::GString> {
|
||||||
unsafe { from_glib_none(ffi::ges_uri_clip_get_uri(self.as_ref().to_glib_none().0)) }
|
unsafe { from_glib_none(ffi::ges_uri_clip_get_uri(self.as_ref().to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,36 +87,6 @@ impl<O: IsA<UriClip>> UriClipExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_is_image(&self) -> bool {
|
|
||||||
unsafe {
|
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
|
||||||
glib::gobject_ffi::g_object_get_property(
|
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
|
||||||
b"is-image\0".as_ptr() as *const _,
|
|
||||||
value.to_glib_none_mut().0,
|
|
||||||
);
|
|
||||||
value
|
|
||||||
.get()
|
|
||||||
.expect("Return Value for property `is-image` getter")
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn get_property_mute(&self) -> bool {
|
|
||||||
unsafe {
|
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
|
||||||
glib::gobject_ffi::g_object_get_property(
|
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
|
||||||
b"mute\0".as_ptr() as *const _,
|
|
||||||
value.to_glib_none_mut().0,
|
|
||||||
);
|
|
||||||
value
|
|
||||||
.get()
|
|
||||||
.expect("Return Value for property `mute` getter")
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
fn connect_property_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe extern "C" fn notify_is_image_trampoline<P, F: Fn(&P) + 'static>(
|
unsafe extern "C" fn notify_is_image_trampoline<P, F: Fn(&P) + 'static>(
|
||||||
this: *mut ffi::GESUriClip,
|
this: *mut ffi::GESUriClip,
|
||||||
|
|
|
@ -57,29 +57,31 @@ pub const NONE_URI_CLIP_ASSET: Option<&UriClipAsset> = None;
|
||||||
|
|
||||||
pub trait UriClipAssetExt: 'static {
|
pub trait UriClipAssetExt: 'static {
|
||||||
#[doc(alias = "ges_uri_clip_asset_get_duration")]
|
#[doc(alias = "ges_uri_clip_asset_get_duration")]
|
||||||
fn get_duration(&self) -> gst::ClockTime;
|
fn duration(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_uri_clip_asset_get_info")]
|
#[doc(alias = "ges_uri_clip_asset_get_info")]
|
||||||
fn get_info(&self) -> Option<gst_pbutils::DiscovererInfo>;
|
fn info(&self) -> Option<gst_pbutils::DiscovererInfo>;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "ges_uri_clip_asset_get_max_duration")]
|
#[doc(alias = "ges_uri_clip_asset_get_max_duration")]
|
||||||
fn get_max_duration(&self) -> gst::ClockTime;
|
fn max_duration(&self) -> gst::ClockTime;
|
||||||
|
|
||||||
#[doc(alias = "ges_uri_clip_asset_get_stream_assets")]
|
#[doc(alias = "ges_uri_clip_asset_get_stream_assets")]
|
||||||
fn get_stream_assets(&self) -> Vec<UriSourceAsset>;
|
fn stream_assets(&self) -> Vec<UriSourceAsset>;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "ges_uri_clip_asset_is_image")]
|
#[doc(alias = "ges_uri_clip_asset_is_image")]
|
||||||
fn is_image(&self) -> bool;
|
fn is_image(&self) -> bool;
|
||||||
|
|
||||||
fn set_property_duration(&self, duration: u64);
|
#[doc(alias = "set_property_duration")]
|
||||||
|
fn set_duration(&self, duration: u64);
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_is_nested_timeline(&self) -> bool;
|
#[doc(alias = "get_property_is_nested_timeline")]
|
||||||
|
fn is_nested_timeline(&self) -> bool;
|
||||||
|
|
||||||
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
|
@ -92,7 +94,7 @@ pub trait UriClipAssetExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
||||||
fn get_duration(&self) -> gst::ClockTime {
|
fn duration(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_uri_clip_asset_get_duration(
|
from_glib(ffi::ges_uri_clip_asset_get_duration(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -100,7 +102,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_info(&self) -> Option<gst_pbutils::DiscovererInfo> {
|
fn info(&self) -> Option<gst_pbutils::DiscovererInfo> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_uri_clip_asset_get_info(const_override(
|
from_glib_none(ffi::ges_uri_clip_asset_get_info(const_override(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -110,7 +112,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_max_duration(&self) -> gst::ClockTime {
|
fn max_duration(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::ges_uri_clip_asset_get_max_duration(
|
from_glib(ffi::ges_uri_clip_asset_get_max_duration(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -118,7 +120,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_stream_assets(&self) -> Vec<UriSourceAsset> {
|
fn stream_assets(&self) -> Vec<UriSourceAsset> {
|
||||||
unsafe {
|
unsafe {
|
||||||
FromGlibPtrContainer::from_glib_none(ffi::ges_uri_clip_asset_get_stream_assets(
|
FromGlibPtrContainer::from_glib_none(ffi::ges_uri_clip_asset_get_stream_assets(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -136,7 +138,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_property_duration(&self, duration: u64) {
|
fn set_duration(&self, duration: u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -148,7 +150,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_property_is_nested_timeline(&self) -> bool {
|
fn is_nested_timeline(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
|
|
@ -20,13 +20,13 @@ pub const NONE_URI_SOURCE_ASSET: Option<&UriSourceAsset> = None;
|
||||||
|
|
||||||
pub trait UriSourceAssetExt: 'static {
|
pub trait UriSourceAssetExt: 'static {
|
||||||
#[doc(alias = "ges_uri_source_asset_get_filesource_asset")]
|
#[doc(alias = "ges_uri_source_asset_get_filesource_asset")]
|
||||||
fn get_filesource_asset(&self) -> Option<UriClipAsset>;
|
fn filesource_asset(&self) -> Option<UriClipAsset>;
|
||||||
|
|
||||||
#[doc(alias = "ges_uri_source_asset_get_stream_info")]
|
#[doc(alias = "ges_uri_source_asset_get_stream_info")]
|
||||||
fn get_stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo>;
|
fn stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo>;
|
||||||
|
|
||||||
#[doc(alias = "ges_uri_source_asset_get_stream_uri")]
|
#[doc(alias = "ges_uri_source_asset_get_stream_uri")]
|
||||||
fn get_stream_uri(&self) -> Option<glib::GString>;
|
fn stream_uri(&self) -> Option<glib::GString>;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -35,7 +35,7 @@ pub trait UriSourceAssetExt: 'static {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
||||||
fn get_filesource_asset(&self) -> Option<UriClipAsset> {
|
fn filesource_asset(&self) -> Option<UriClipAsset> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_uri_source_asset_get_filesource_asset(
|
from_glib_none(ffi::ges_uri_source_asset_get_filesource_asset(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -43,7 +43,7 @@ impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo> {
|
fn stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_uri_source_asset_get_stream_info(
|
from_glib_none(ffi::ges_uri_source_asset_get_stream_info(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -51,7 +51,7 @@ impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_stream_uri(&self) -> Option<glib::GString> {
|
fn stream_uri(&self) -> Option<glib::GString> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::ges_uri_source_asset_get_stream_uri(
|
from_glib_none(ffi::ges_uri_source_asset_get_stream_uri(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd)
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
|
||||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
|
@ -33,9 +33,10 @@ pub trait GLBaseFilterExt: 'static {
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
#[doc(alias = "gst_gl_base_filter_get_gl_context")]
|
#[doc(alias = "gst_gl_base_filter_get_gl_context")]
|
||||||
fn get_gl_context(&self) -> Option<GLContext>;
|
fn gl_context(&self) -> Option<GLContext>;
|
||||||
|
|
||||||
fn get_property_context(&self) -> Option<GLContext>;
|
#[doc(alias = "get_property_context")]
|
||||||
|
fn context(&self) -> Option<GLContext>;
|
||||||
|
|
||||||
fn connect_property_context_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
fn connect_property_context_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -54,7 +55,7 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
fn get_gl_context(&self) -> Option<GLContext> {
|
fn gl_context(&self) -> Option<GLContext> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_gl_base_filter_get_gl_context(
|
from_glib_full(ffi::gst_gl_base_filter_get_gl_context(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -62,7 +63,7 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_property_context(&self) -> Option<GLContext> {
|
fn context(&self) -> Option<GLContext> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<GLContext as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<GLContext as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
|
|
@ -90,22 +90,22 @@ pub trait GLContextExt: 'static {
|
||||||
fn fill_info(&self) -> Result<(), glib::Error>;
|
fn fill_info(&self) -> Result<(), glib::Error>;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_get_display")]
|
#[doc(alias = "gst_gl_context_get_display")]
|
||||||
fn get_display(&self) -> GLDisplay;
|
fn display(&self) -> GLDisplay;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_get_gl_api")]
|
#[doc(alias = "gst_gl_context_get_gl_api")]
|
||||||
fn get_gl_api(&self) -> GLAPI;
|
fn gl_api(&self) -> GLAPI;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_get_gl_platform")]
|
#[doc(alias = "gst_gl_context_get_gl_platform")]
|
||||||
fn get_gl_platform(&self) -> GLPlatform;
|
fn gl_platform(&self) -> GLPlatform;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_get_gl_platform_version")]
|
#[doc(alias = "gst_gl_context_get_gl_platform_version")]
|
||||||
fn get_gl_platform_version(&self) -> (i32, i32);
|
fn gl_platform_version(&self) -> (i32, i32);
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_get_gl_version")]
|
#[doc(alias = "gst_gl_context_get_gl_version")]
|
||||||
fn get_gl_version(&self) -> (i32, i32);
|
fn gl_version(&self) -> (i32, i32);
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_get_window")]
|
#[doc(alias = "gst_gl_context_get_window")]
|
||||||
fn get_window(&self) -> Option<GLWindow>;
|
fn window(&self) -> Option<GLWindow>;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_context_is_shared")]
|
#[doc(alias = "gst_gl_context_is_shared")]
|
||||||
fn is_shared(&self) -> bool;
|
fn is_shared(&self) -> bool;
|
||||||
|
@ -227,7 +227,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_display(&self) -> GLDisplay {
|
fn display(&self) -> GLDisplay {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_gl_context_get_display(
|
from_glib_full(ffi::gst_gl_context_get_display(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -235,7 +235,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gl_api(&self) -> GLAPI {
|
fn gl_api(&self) -> GLAPI {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_gl_context_get_gl_api(
|
from_glib(ffi::gst_gl_context_get_gl_api(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -243,7 +243,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gl_platform(&self) -> GLPlatform {
|
fn gl_platform(&self) -> GLPlatform {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_gl_context_get_gl_platform(
|
from_glib(ffi::gst_gl_context_get_gl_platform(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -251,7 +251,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gl_platform_version(&self) -> (i32, i32) {
|
fn gl_platform_version(&self) -> (i32, i32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut major = mem::MaybeUninit::uninit();
|
let mut major = mem::MaybeUninit::uninit();
|
||||||
let mut minor = mem::MaybeUninit::uninit();
|
let mut minor = mem::MaybeUninit::uninit();
|
||||||
|
@ -266,7 +266,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gl_version(&self) -> (i32, i32) {
|
fn gl_version(&self) -> (i32, i32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut maj = mem::MaybeUninit::uninit();
|
let mut maj = mem::MaybeUninit::uninit();
|
||||||
let mut min = mem::MaybeUninit::uninit();
|
let mut min = mem::MaybeUninit::uninit();
|
||||||
|
@ -281,7 +281,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window(&self) -> Option<GLWindow> {
|
fn window(&self) -> Option<GLWindow> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_gl_context_get_window(
|
from_glib_full(ffi::gst_gl_context_get_window(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -60,13 +60,13 @@ pub trait GLDisplayExt: 'static {
|
||||||
fn filter_gl_api(&self, gl_api: GLAPI);
|
fn filter_gl_api(&self, gl_api: GLAPI);
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_display_get_gl_api")]
|
#[doc(alias = "gst_gl_display_get_gl_api")]
|
||||||
fn get_gl_api(&self) -> GLAPI;
|
fn gl_api(&self) -> GLAPI;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_display_get_gl_api_unlocked")]
|
#[doc(alias = "gst_gl_display_get_gl_api_unlocked")]
|
||||||
fn get_gl_api_unlocked(&self) -> GLAPI;
|
fn gl_api_unlocked(&self) -> GLAPI;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_display_get_handle_type")]
|
#[doc(alias = "gst_gl_display_get_handle_type")]
|
||||||
fn get_handle_type(&self) -> GLDisplayType;
|
fn handle_type(&self) -> GLDisplayType;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
|
@ -136,7 +136,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gl_api(&self) -> GLAPI {
|
fn gl_api(&self) -> GLAPI {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_gl_display_get_gl_api(
|
from_glib(ffi::gst_gl_display_get_gl_api(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -144,7 +144,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_gl_api_unlocked(&self) -> GLAPI {
|
fn gl_api_unlocked(&self) -> GLAPI {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_gl_display_get_gl_api_unlocked(
|
from_glib(ffi::gst_gl_display_get_gl_api_unlocked(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -152,7 +152,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_handle_type(&self) -> GLDisplayType {
|
fn handle_type(&self) -> GLDisplayType {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_gl_display_get_handle_type(
|
from_glib(ffi::gst_gl_display_get_handle_type(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
|
@ -60,10 +60,10 @@ pub trait GLFramebufferExt: 'static {
|
||||||
//fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>) -> bool, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool;
|
//fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>) -> bool, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_framebuffer_get_effective_dimensions")]
|
#[doc(alias = "gst_gl_framebuffer_get_effective_dimensions")]
|
||||||
fn get_effective_dimensions(&self) -> (u32, u32);
|
fn effective_dimensions(&self) -> (u32, u32);
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_framebuffer_get_id")]
|
#[doc(alias = "gst_gl_framebuffer_get_id")]
|
||||||
fn get_id(&self) -> u32;
|
fn id(&self) -> u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<GLFramebuffer>> GLFramebufferExt for O {
|
impl<O: IsA<GLFramebuffer>> GLFramebufferExt for O {
|
||||||
|
@ -81,7 +81,7 @@ impl<O: IsA<GLFramebuffer>> GLFramebufferExt for O {
|
||||||
// unsafe { TODO: call ffi:gst_gl_framebuffer_draw_to_texture() }
|
// unsafe { TODO: call ffi:gst_gl_framebuffer_draw_to_texture() }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fn get_effective_dimensions(&self) -> (u32, u32) {
|
fn effective_dimensions(&self) -> (u32, u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut width = mem::MaybeUninit::uninit();
|
let mut width = mem::MaybeUninit::uninit();
|
||||||
let mut height = mem::MaybeUninit::uninit();
|
let mut height = mem::MaybeUninit::uninit();
|
||||||
|
@ -96,7 +96,7 @@ impl<O: IsA<GLFramebuffer>> GLFramebufferExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_id(&self) -> u32 {
|
fn id(&self) -> u32 {
|
||||||
unsafe { ffi::gst_gl_framebuffer_get_id(self.as_ref().to_glib_none().0) }
|
unsafe { ffi::gst_gl_framebuffer_get_id(self.as_ref().to_glib_none().0) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,8 @@ impl GLOverlayCompositor {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
pub fn get_property_yinvert(&self) -> bool {
|
#[doc(alias = "get_property_yinvert")]
|
||||||
|
pub fn is_yinvert(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -77,7 +78,8 @@ impl GLOverlayCompositor {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
pub fn set_property_yinvert(&self, yinvert: bool) {
|
#[doc(alias = "set_property_yinvert")]
|
||||||
|
pub fn set_yinvert(&self, yinvert: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -16,7 +16,6 @@ use glib::object::ObjectType as ObjectType_;
|
||||||
use glib::signal::connect_raw;
|
use glib::signal::connect_raw;
|
||||||
use glib::signal::SignalHandlerId;
|
use glib::signal::SignalHandlerId;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::StaticType;
|
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
@ -141,7 +140,7 @@ impl GLShader {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_shader_get_program_handle")]
|
#[doc(alias = "gst_gl_shader_get_program_handle")]
|
||||||
pub fn get_program_handle(&self) -> i32 {
|
pub fn program_handle(&self) -> i32 {
|
||||||
unsafe { ffi::gst_gl_shader_get_program_handle(self.to_glib_none().0) }
|
unsafe { ffi::gst_gl_shader_get_program_handle(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,21 +369,6 @@ impl GLShader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_linked(&self) -> bool {
|
|
||||||
unsafe {
|
|
||||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
|
||||||
glib::gobject_ffi::g_object_get_property(
|
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
|
||||||
b"linked\0".as_ptr() as *const _,
|
|
||||||
value.to_glib_none_mut().0,
|
|
||||||
);
|
|
||||||
value
|
|
||||||
.get()
|
|
||||||
.expect("Return Value for property `linked` getter")
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
#[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")]
|
#[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")]
|
||||||
|
|
|
@ -24,7 +24,7 @@ impl GLUpload {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_upload_get_caps")]
|
#[doc(alias = "gst_gl_upload_get_caps")]
|
||||||
pub fn get_caps(&self) -> (gst::Caps, gst::Caps) {
|
pub fn caps(&self) -> (gst::Caps, gst::Caps) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut in_caps = ptr::null_mut();
|
let mut in_caps = ptr::null_mut();
|
||||||
let mut out_caps = ptr::null_mut();
|
let mut out_caps = ptr::null_mut();
|
||||||
|
|
|
@ -91,7 +91,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_downmix_mode(&self) -> GLStereoDownmix {
|
#[doc(alias = "get_property_downmix_mode")]
|
||||||
|
pub fn downmix_mode(&self) -> GLStereoDownmix {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(<GLStereoDownmix as StaticType>::static_type());
|
let mut value = glib::Value::from_type(<GLStereoDownmix as StaticType>::static_type());
|
||||||
glib::gobject_ffi::g_object_get_property(
|
glib::gobject_ffi::g_object_get_property(
|
||||||
|
@ -106,7 +107,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_downmix_mode(&self, downmix_mode: GLStereoDownmix) {
|
#[doc(alias = "set_property_downmix_mode")]
|
||||||
|
pub fn set_downmix_mode(&self, downmix_mode: GLStereoDownmix) {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -116,7 +118,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_input_flags_override(&self) -> gst_video::VideoMultiviewFlags {
|
#[doc(alias = "get_property_input_flags_override")]
|
||||||
|
pub fn input_flags_override(&self) -> gst_video::VideoMultiviewFlags {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(
|
let mut value = glib::Value::from_type(
|
||||||
<gst_video::VideoMultiviewFlags as StaticType>::static_type(),
|
<gst_video::VideoMultiviewFlags as StaticType>::static_type(),
|
||||||
|
@ -133,10 +136,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_input_flags_override(
|
#[doc(alias = "set_property_input_flags_override")]
|
||||||
&self,
|
pub fn set_input_flags_override(&self, input_flags_override: gst_video::VideoMultiviewFlags) {
|
||||||
input_flags_override: gst_video::VideoMultiviewFlags,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -146,7 +147,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_input_mode_override(&self) -> gst_video::VideoMultiviewMode {
|
#[doc(alias = "get_property_input_mode_override")]
|
||||||
|
pub fn input_mode_override(&self) -> gst_video::VideoMultiviewMode {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(
|
let mut value = glib::Value::from_type(
|
||||||
<gst_video::VideoMultiviewMode as StaticType>::static_type(),
|
<gst_video::VideoMultiviewMode as StaticType>::static_type(),
|
||||||
|
@ -163,10 +165,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_input_mode_override(
|
#[doc(alias = "set_property_input_mode_override")]
|
||||||
&self,
|
pub fn set_input_mode_override(&self, input_mode_override: gst_video::VideoMultiviewMode) {
|
||||||
input_mode_override: gst_video::VideoMultiviewMode,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -176,7 +176,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_output_flags_override(&self) -> gst_video::VideoMultiviewFlags {
|
#[doc(alias = "get_property_output_flags_override")]
|
||||||
|
pub fn output_flags_override(&self) -> gst_video::VideoMultiviewFlags {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(
|
let mut value = glib::Value::from_type(
|
||||||
<gst_video::VideoMultiviewFlags as StaticType>::static_type(),
|
<gst_video::VideoMultiviewFlags as StaticType>::static_type(),
|
||||||
|
@ -193,10 +194,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_output_flags_override(
|
#[doc(alias = "set_property_output_flags_override")]
|
||||||
&self,
|
pub fn set_output_flags_override(&self, output_flags_override: gst_video::VideoMultiviewFlags) {
|
||||||
output_flags_override: gst_video::VideoMultiviewFlags,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
@ -206,7 +205,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_property_output_mode_override(&self) -> gst_video::VideoMultiviewMode {
|
#[doc(alias = "get_property_output_mode_override")]
|
||||||
|
pub fn output_mode_override(&self) -> gst_video::VideoMultiviewMode {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = glib::Value::from_type(
|
let mut value = glib::Value::from_type(
|
||||||
<gst_video::VideoMultiviewMode as StaticType>::static_type(),
|
<gst_video::VideoMultiviewMode as StaticType>::static_type(),
|
||||||
|
@ -223,10 +223,8 @@ impl GLViewConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_property_output_mode_override(
|
#[doc(alias = "set_property_output_mode_override")]
|
||||||
&self,
|
pub fn set_output_mode_override(&self, output_mode_override: gst_video::VideoMultiviewMode) {
|
||||||
output_mode_override: gst_video::VideoMultiviewMode,
|
|
||||||
) {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::gobject_ffi::g_object_set_property(
|
glib::gobject_ffi::g_object_set_property(
|
||||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||||
|
|
|
@ -45,10 +45,10 @@ pub trait GLWindowExt: 'static {
|
||||||
fn draw(&self);
|
fn draw(&self);
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_window_get_context")]
|
#[doc(alias = "gst_gl_window_get_context")]
|
||||||
fn get_context(&self) -> Option<GLContext>;
|
fn context(&self) -> Option<GLContext>;
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_window_get_surface_dimensions")]
|
#[doc(alias = "gst_gl_window_get_surface_dimensions")]
|
||||||
fn get_surface_dimensions(&self) -> (u32, u32);
|
fn surface_dimensions(&self) -> (u32, u32);
|
||||||
|
|
||||||
#[doc(alias = "gst_gl_window_handle_events")]
|
#[doc(alias = "gst_gl_window_handle_events")]
|
||||||
fn handle_events(&self, handle_events: bool);
|
fn handle_events(&self, handle_events: bool);
|
||||||
|
@ -131,7 +131,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_context(&self) -> Option<GLContext> {
|
fn context(&self) -> Option<GLContext> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_gl_window_get_context(
|
from_glib_full(ffi::gst_gl_window_get_context(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -139,7 +139,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_surface_dimensions(&self) -> (u32, u32) {
|
fn surface_dimensions(&self) -> (u32, u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut width = mem::MaybeUninit::uninit();
|
let mut width = mem::MaybeUninit::uninit();
|
||||||
let mut height = mem::MaybeUninit::uninit();
|
let mut height = mem::MaybeUninit::uninit();
|
||||||
|
|
|
@ -106,22 +106,22 @@ impl GLSLStage {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_glsl_stage_get_handle")]
|
#[doc(alias = "gst_glsl_stage_get_handle")]
|
||||||
pub fn get_handle(&self) -> u32 {
|
pub fn handle(&self) -> u32 {
|
||||||
unsafe { ffi::gst_glsl_stage_get_handle(self.to_glib_none().0) }
|
unsafe { ffi::gst_glsl_stage_get_handle(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_glsl_stage_get_profile")]
|
#[doc(alias = "gst_glsl_stage_get_profile")]
|
||||||
pub fn get_profile(&self) -> GLSLProfile {
|
pub fn profile(&self) -> GLSLProfile {
|
||||||
unsafe { from_glib(ffi::gst_glsl_stage_get_profile(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_glsl_stage_get_profile(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_glsl_stage_get_shader_type")]
|
#[doc(alias = "gst_glsl_stage_get_shader_type")]
|
||||||
pub fn get_shader_type(&self) -> u32 {
|
pub fn shader_type(&self) -> u32 {
|
||||||
unsafe { ffi::gst_glsl_stage_get_shader_type(self.to_glib_none().0) }
|
unsafe { ffi::gst_glsl_stage_get_shader_type(self.to_glib_none().0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_glsl_stage_get_version")]
|
#[doc(alias = "gst_glsl_stage_get_version")]
|
||||||
pub fn get_version(&self) -> GLSLVersion {
|
pub fn version(&self) -> GLSLVersion {
|
||||||
unsafe { from_glib(ffi::gst_glsl_stage_get_version(self.to_glib_none().0)) }
|
unsafe { from_glib(ffi::gst_glsl_stage_get_version(self.to_glib_none().0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue