pub struct CodecConfigState {
pub h264_sps: bool,
pub h264_pps: bool,
pub h265_vps: bool,
pub h265_sps: bool,
pub h265_pps: bool,
}Expand description
Decoder configuration NAL units observed by the RTP depacketizer.
H.264 needs SPS and PPS before a decoder can be configured. H.265 needs VPS, SPS and PPS. PixelPilot starts its decoder as soon as these parameter sets have been observed, then feeds subsequent NAL units without requiring a fresh IDR for every startup path.
Fields§
§h264_sps: boolH.264 sequence parameter set has been seen.
h264_pps: boolH.264 picture parameter set has been seen.
h265_vps: boolH.265 video parameter set has been seen.
h265_sps: boolH.265 sequence parameter set has been seen.
h265_pps: boolH.265 picture parameter set has been seen.
Implementations§
Source§impl CodecConfigState
impl CodecConfigState
Sourcepub const fn is_complete_for(self, codec: Codec) -> bool
pub const fn is_complete_for(self, codec: Codec) -> bool
Return true when all parameter sets required for codec are cached.
Trait Implementations§
Source§impl Clone for CodecConfigState
impl Clone for CodecConfigState
Source§fn clone(&self) -> CodecConfigState
fn clone(&self) -> CodecConfigState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodecConfigState
Source§impl Debug for CodecConfigState
impl Debug for CodecConfigState
Source§impl Default for CodecConfigState
impl Default for CodecConfigState
Source§fn default() -> CodecConfigState
fn default() -> CodecConfigState
Returns the “default value” for a type. Read more
impl Eq for CodecConfigState
Source§impl PartialEq for CodecConfigState
impl PartialEq for CodecConfigState
Source§fn eq(&self, other: &CodecConfigState) -> bool
fn eq(&self, other: &CodecConfigState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodecConfigState
Auto Trait Implementations§
impl Freeze for CodecConfigState
impl RefUnwindSafe for CodecConfigState
impl Send for CodecConfigState
impl Sync for CodecConfigState
impl Unpin for CodecConfigState
impl UnsafeUnpin for CodecConfigState
impl UnwindSafe for CodecConfigState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more