[−][src]Trait gstreamer_pbutils::prelude::EncodingProfileExt
Trait containing all EncodingProfile
methods.
Implementors
EncodingAudioProfile
, EncodingContainerProfile
, EncodingProfile
, EncodingVideoProfile
Required methods
fn copy(&self) -> EncodingProfile
fn get_allow_dynamic_output(&self) -> bool
Get whether the format that has been negotiated in at some point can be renegotiated later during the encoding.
fn get_description(&self) -> Option<GString>
Returns
the description of the profile, can be None
.
fn get_file_extension(&self) -> Option<GString>
Returns
a suitable file extension for self
, or NULL.
fn get_format(&self) -> Caps
Returns
the gst::Caps
corresponding to the media format used
in the profile. Unref after usage.
fn get_input_caps(&self) -> Caps
Computes the full output caps that this self
will be able to consume.
Returns
The full caps the given self
can consume. Call
gst_caps_unref
when you are done with the caps.
fn get_name(&self) -> Option<GString>
Returns
the name of the profile, can be None
.
fn get_presence(&self) -> u32
Returns
The number of times the profile is used in its parent container profile. If 0, it is not a mandatory stream.
fn get_preset(&self) -> Option<GString>
Returns
the name of the gst::Preset
to be used in the profile.
This is the name that has been set when saving the preset.
fn get_preset_name(&self) -> Option<GString>
Returns
the name of the gst::Preset
factory to be used in the profile.
fn get_restriction(&self) -> Option<Caps>
Returns
The restriction gst::Caps
to apply before the encoder
that will be used in the profile. The fields present in restriction caps are
properties of the raw stream (that is before encoding), such as height and
width for video and depth and sampling rate for audio. Does not apply to
EncodingContainerProfile
(since there is no corresponding raw stream).
Can be None
. Unref after usage.
fn get_type_nick(&self) -> Option<GString>
Returns
the human-readable name of the type of self
.