pub struct AccelSlice<'a> {
pub nal: &'a [u8],
pub nal_type: u32,
pub sps: &'a Sps,
pub pps: &'a Pps,
pub sh: &'a SliceHeader,
pub first: bool,
pub poc: i32,
pub dpb: &'a [RefPic],
pub st_before: &'a [usize],
pub st_after: &'a [usize],
pub lt_curr: &'a [usize],
pub refs: &'a [Vec<RefEntry>; 2],
}Available on crate feature
decode only.Expand description
Everything an HevcAccel is told about one slice segment.
Fields§
§nal: &'a [u8]The NAL unit as coded: 2-byte header included, emulation prevention in.
nal_type: u32nal_unit_type.
sps: &'a SpsThe active sequence parameter set.
pps: &'a PpsThe active picture parameter set.
sh: &'a SliceHeaderThe parsed slice segment header.
first: boolThe first segment of a new picture.
poc: i32PicOrderCntVal of the picture.
dpb: &'a [RefPic]The reference pictures; the current one is not among them.
st_before: &'a [usize]RefPicSetStCurrBefore, RefPicSetStCurrAfter, RefPicSetLtCurr
as indices into dpb.
st_after: &'a [usize]See st_before.
lt_curr: &'a [usize]See st_before.
refs: &'a [Vec<RefEntry>; 2]RefPicList0 and RefPicList1.
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