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

Provided Methods§

source

fn copy(&self) -> EncodingProfile

source

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.

source

fn description(&self) -> Option<GString>

§Returns

the description of the profile, can be None.

source

fn file_extension(&self) -> Option<GString>

§Returns

a suitable file extension for self, or NULL.

source

fn format(&self) -> Caps

§Returns

(nullable): the gst::Caps corresponding to the media format used in the profile. Unref after usage.

source

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.

source

fn name(&self) -> Option<GString>

§Returns

the name of the profile, can be None.

source

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.

source

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.

source

fn preset_name(&self) -> Option<GString>

§Returns

the name of the gst::Preset factory to be used in the profile.

source

fn is_single_segment(&self) -> bool

§Returns

true if the stream represented by self should use a single segment before the encoder, false otherwise. This means that buffers will be retimestamped and segments will be eat so as to appear as one segment.

source

fn type_nick(&self) -> GString

§Returns

the human-readable name of the type of self.

source

fn is_enabled(&self) -> bool

source

fn is_equal(&self, b: &impl IsA<EncodingProfile>) -> bool

source

fn to_str(&self) -> GString

Converts a GstEncodingProfile to a string in the “Encoding Profile serialization format”.

§Returns

A string representation of the GstEncodingProfile.

source

fn connect_element_properties_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§