Trait gstreamer_rtp::subclass::prelude::RTPBaseDepayloadImpl
source · pub trait RTPBaseDepayloadImpl: RTPBaseDepayloadImplExt + ElementImpl {
// Provided methods
fn set_caps(&self, caps: &Caps) -> Result<(), LoggableError> { ... }
fn handle_event(&self, event: Event) -> bool { ... }
fn packet_lost(&self, event: &EventRef) -> bool { ... }
fn process_rtp_packet(
&self,
rtp_buffer: &RTPBuffer<'_, Readable>,
) -> Option<Buffer> { ... }
}
Provided Methods§
sourcefn handle_event(&self, event: Event) -> bool
fn handle_event(&self, event: Event) -> bool
custom event handling
sourcefn packet_lost(&self, event: &EventRef) -> bool
fn packet_lost(&self, event: &EventRef) -> bool
signal the depayloader about packet loss
sourcefn process_rtp_packet(
&self,
rtp_buffer: &RTPBuffer<'_, Readable>,
) -> Option<Buffer>
fn process_rtp_packet( &self, rtp_buffer: &RTPBuffer<'_, Readable>, ) -> Option<Buffer>
Same as the process virtual function, but slightly more
efficient, since it is passed the rtp buffer structure that has already
been mapped (with GST_MAP_READ) by the base class and thus does not have
to be mapped again by the subclass. Can be used by the subclass to process
incoming rtp packets. If the subclass returns a buffer without a valid
timestamp, the timestamp of the input buffer will be applied to the result
buffer and the output buffer will be pushed out. If this function returns
None
, nothing is pushed out. Since: 1.6.
Object Safety§
This trait is not object safe.