pub trait AudioEncoderExtManual:
Sealed
+ IsA<AudioEncoder>
+ 'static {
// Provided methods
fn negotiate(&self) -> Result<(), FlowError> { ... }
fn set_output_format(&self, caps: &Caps) -> Result<(), FlowError> { ... }
fn allocator(&self) -> (Option<Allocator>, AllocationParams) { ... }
fn set_headers(&self, headers: impl IntoIterator<Item = Buffer>) { ... }
fn sink_pad(&self) -> &Pad { ... }
fn src_pad(&self) -> &Pad { ... }
fn input_segment(&self) -> Segment { ... }
fn output_segment(&self) -> Segment { ... }
}
Provided Methods§
sourcefn allocator(&self) -> (Option<Allocator>, AllocationParams)
fn allocator(&self) -> (Option<Allocator>, AllocationParams)
Lets AudioEncoder
sub-classes to know the memory allocator
used by the base class and its params
.
Unref the allocator
after use it.
§Returns
§allocator
the gst::Allocator
used
§params
the
gst::AllocationParams
of allocator
sourcefn set_headers(&self, headers: impl IntoIterator<Item = Buffer>)
fn set_headers(&self, headers: impl IntoIterator<Item = Buffer>)
Set the codec headers to be sent downstream whenever requested.
§headers
a list of
gst::Buffer
containing the codec header
fn sink_pad(&self) -> &Pad
fn src_pad(&self) -> &Pad
fn input_segment(&self) -> Segment
fn output_segment(&self) -> Segment
Object Safety§
This trait is not object safe.