pub struct AccelSlice<'a> {
pub nal: &'a [u8],
pub sps: &'a Sps,
pub pps: &'a Pps,
pub hdr: &'a SliceHeader,
pub first: bool,
pub store_id: u32,
pub structure: u8,
pub field_poc: [i32; 2],
pub dpb: &'a [RefPic],
pub refs: &'a [Vec<RefEntry>; 2],
}Available on crate feature
decode only.Expand description
Everything an H264Accel is told about one slice.
Fields§
§nal: &'a [u8]The NAL unit as coded: header byte included, emulation prevention in.
sps: &'a SpsThe active sequence parameter set.
pps: &'a PpsThe active picture parameter set.
hdr: &'a SliceHeaderThe parsed slice header (data_bit_offset is where slice data starts, in RBSP bits after the header byte).
first: boolThe first slice of a new picture.
store_id: u32The frame store the picture is decoded into (shared by both fields).
structure: u81 top field, 2 bottom field, 3 frame.
field_poc: [i32; 2]TopFieldOrderCnt, BottomFieldOrderCnt of the picture.
dpb: &'a [RefPic]The frame stores, with their reference marking.
refs: &'a [Vec<RefEntry>; 2]RefPicList0 and RefPicList1, entries indexing dpb.
Auto Trait Implementations§
impl<'a> Forget for AccelSlice<'a>
impl<'a> Freeze for AccelSlice<'a>
impl<'a> Move for AccelSlice<'a>
impl<'a> RefUnwindSafe for AccelSlice<'a>
impl<'a> Send for AccelSlice<'a>
impl<'a> Sync for AccelSlice<'a>
impl<'a> Unpin for AccelSlice<'a>
impl<'a> UnsafeUnpin for AccelSlice<'a>
impl<'a> UnwindSafe for AccelSlice<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more