pub struct AccessUnit {
pub nals: Vec<Nal>,
pub is_keyframe: bool,
pub kind: AccessUnitKind,
pub sps: Option<Arc<Sps>>,
pub pps: Option<Arc<Pps>>,
pub picture_id: Option<PictureId>,
}
Fields§
§nals: Vec<Nal>
§is_keyframe: bool
§kind: AccessUnitKind
§sps: Option<Arc<Sps>>
§pps: Option<Arc<Pps>>
§picture_id: Option<PictureId>
Implementations§
Source§impl AccessUnit
impl AccessUnit
pub fn new() -> Self
pub fn is_keyframe(&self) -> bool
pub fn nals(&self) -> impl Iterator<Item = &Nal>
pub fn to_annexb_bytes(&self) -> Cow<'_, [u8]>
pub fn add_nal(&mut self, nal: Nal)
pub fn set_sps(&mut self, sps: Arc<Sps>)
pub fn set_pps(&mut self, pps: Arc<Pps>)
pub fn check_recovery_point(&mut self)
pub fn set_picture_id_from_slice( &mut self, slice_header: &SliceHeader, nal_type: NalUnitType, sps: &Sps, )
Trait Implementations§
Source§impl Clone for AccessUnit
impl Clone for AccessUnit
Source§fn clone(&self) -> AccessUnit
fn clone(&self) -> AccessUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AccessUnit
impl RefUnwindSafe for AccessUnit
impl Send for AccessUnit
impl Sync for AccessUnit
impl Unpin for AccessUnit
impl UnwindSafe for AccessUnit
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