Trait gstreamer_pbutils::prelude::EncodingProfileExt
source · pub trait EncodingProfileExt: IsA<EncodingProfile> + Sealed + 'static {
Show 16 methods
// Provided methods
fn copy(&self) -> EncodingProfile { ... }
fn allows_dynamic_output(&self) -> bool { ... }
fn description(&self) -> Option<GString> { ... }
fn file_extension(&self) -> Option<GString> { ... }
fn format(&self) -> Caps { ... }
fn input_caps(&self) -> Caps { ... }
fn name(&self) -> Option<GString> { ... }
fn presence(&self) -> u32 { ... }
fn preset(&self) -> Option<GString> { ... }
fn preset_name(&self) -> Option<GString> { ... }
fn is_single_segment(&self) -> bool { ... }
fn type_nick(&self) -> GString { ... }
fn is_enabled(&self) -> bool { ... }
fn is_equal(&self, b: &impl IsA<EncodingProfile>) -> bool { ... }
fn to_str(&self) -> GString { ... }
fn connect_element_properties_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Trait containing all EncodingProfile
methods.
§Implementors
EncodingAudioProfile
, EncodingContainerProfile
, EncodingProfile
, EncodingVideoProfile
Provided Methods§
fn copy(&self) -> EncodingProfile
sourcefn allows_dynamic_output(&self) -> bool
fn allows_dynamic_output(&self) -> bool
Get whether the format that has been negotiated in at some point can be renegotiated later during the encoding.
sourcefn file_extension(&self) -> Option<GString>
fn file_extension(&self) -> Option<GString>
§Returns
a suitable file extension for self
, or NULL.
sourcefn input_caps(&self) -> Caps
fn 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.
sourcefn presence(&self) -> u32
fn 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.
sourcefn preset(&self) -> Option<GString>
fn 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.
sourcefn preset_name(&self) -> Option<GString>
fn preset_name(&self) -> Option<GString>
§Returns
the name of the gst::Preset
factory to be used in the profile.
sourcefn is_single_segment(&self) -> bool
fn is_single_segment(&self) -> bool
fn is_enabled(&self) -> bool
fn is_equal(&self, b: &impl IsA<EncodingProfile>) -> bool
sourcefn to_str(&self) -> GString
fn to_str(&self) -> GString
Converts a GstEncodingProfile to a string in the “Encoding Profile serialization format”.
§Returns
A string representation of the GstEncodingProfile.