pub struct RtpDepacketizer { /* private fields */ }Expand description
Stateful RTP depacketizer for OpenIPC H.264/H.265 video.
The depacketizer buffers fragmented NAL units and emits Annex-B access units. Its damaged-frame policy controls whether incomplete units are dropped or forwarded for decoder error concealment.
Implementations§
Source§impl RtpDepacketizer
impl RtpDepacketizer
Sourcepub fn status(&self) -> RtpDepacketizerStatus
pub fn status(&self) -> RtpDepacketizerStatus
Return cumulative depacketizer status and codec configuration state.
Sourcepub fn codec_config(&self) -> CodecConfigState
pub fn codec_config(&self) -> CodecConfigState
Return the current decoder parameter-set state.
Sourcepub fn set_codec_hint(&mut self, codec: Option<Codec>)
pub fn set_codec_hint(&mut self, codec: Option<Codec>)
Prefer a codec when a transmitter reuses the same dynamic RTP payload type for H.264 and H.265.
None keeps automatic detection. Automatic mode locks from unambiguous
SPS/PPS/VPS NAL units, so it also accepts Divinus H.265 on payload type
96. A hint is useful when joining a stream after its parameter sets.
Sourcepub fn set_damaged_frame_policy(&mut self, policy: DamagedFramePolicy)
pub fn set_damaged_frame_policy(&mut self, policy: DamagedFramePolicy)
Choose whether packet-damaged access units are dropped or forwarded.
The default is DamagedFramePolicy::Drop. FPV applications normally
prefer DamagedFramePolicy::Forward so a decoder can conceal damage
instead of waiting for an entirely clean picture.
Sourcepub const fn damaged_frame_policy(&self) -> DamagedFramePolicy
pub const fn damaged_frame_policy(&self) -> DamagedFramePolicy
Return the active damaged-frame policy.
Trait Implementations§
Source§impl Clone for RtpDepacketizer
impl Clone for RtpDepacketizer
Source§fn clone(&self) -> RtpDepacketizer
fn clone(&self) -> RtpDepacketizer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more