Trait RTPHeader Extension ExtManual
Source pub trait RTPHeaderExtensionExtManual: IsA<RTPHeaderExtension> + 'static {
// Provided methods
fn read(
&self,
read_flags: RTPHeaderExtensionFlags,
data: &[u8],
buffer: &mut BufferRef,
) -> bool { ... }
fn write(
&self,
input_meta: &Buffer,
write_flags: RTPHeaderExtensionFlags,
output: &BufferRef,
data: &mut [u8],
) -> Result<usize, BoolError> { ... }
fn set_caps_from_attributes(&self, caps: &mut CapsRef) -> bool { ... }
fn set_caps_from_attributes_helper(
&self,
caps: &mut CapsRef,
attributes: &str,
) -> bool { ... }
fn update_non_rtp_src_caps(&self, caps: &mut CapsRef) -> bool { ... }
}Provided Methods§
Sourcefn read(
&self,
read_flags: RTPHeaderExtensionFlags,
data: &[u8],
buffer: &mut BufferRef,
) -> bool
fn read( &self, read_flags: RTPHeaderExtensionFlags, data: &[u8], buffer: &mut BufferRef, ) -> bool
Read the RTP header extension from data.
§read_flags
RTPHeaderExtensionFlags for how the extension should
be written
§data
location to read the rtp header extension from
§buffer
a gst::Buffer to modify if necessary
§Returns
whether the extension could be read from data
Sourcefn write(
&self,
input_meta: &Buffer,
write_flags: RTPHeaderExtensionFlags,
output: &BufferRef,
data: &mut [u8],
) -> Result<usize, BoolError>
fn write( &self, input_meta: &Buffer, write_flags: RTPHeaderExtensionFlags, output: &BufferRef, data: &mut [u8], ) -> Result<usize, BoolError>
Writes the RTP header extension to data using information available from
the input_meta. data will be sized to be at least the value returned
from RTPHeaderExtensionExt::max_size().
§input_meta
the input gst::Buffer to read information from if necessary
§write_flags
RTPHeaderExtensionFlags for how the extension should
be written
§output
output RTP gst::Buffer
§data
location to write the rtp header extension into
§Returns
the size of the data written, < 0 on failure
Sourcefn set_caps_from_attributes(&self, caps: &mut CapsRef) -> bool
fn set_caps_from_attributes(&self, caps: &mut CapsRef) -> bool
RTPHeaderExtensionExt::set_id() must have been called with a valid
extension id that is contained in these caps.
The only current known caps format is based on the SDP standard as produced
by gst_sdp_media_attributes_to_caps().
§caps
writable gst::Caps to modify
§Returns
whether the configured attributes on self can successfully be set on
caps
Sourcefn set_caps_from_attributes_helper(
&self,
caps: &mut CapsRef,
attributes: &str,
) -> bool
fn set_caps_from_attributes_helper( &self, caps: &mut CapsRef, attributes: &str, ) -> bool
Helper implementation for GstRTPExtensionClass::set_caps_from_attributes
that sets the self uri on caps with the specified extension id as required
for sdp gst::Caps.
Requires that the extension does not have any attributes or direction
advertised in caps.
§caps
gst::Caps to write fields into
§Returns
whether the self attributes could be set on caps.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.