pub struct CodingUnitData {
pub pred_mode: HevcPredMode,
pub intra_mode_luma: u8,
pub intra_mode_chroma: u8,
pub cbf_luma: bool,
pub cbf_cb: bool,
pub cbf_cr: bool,
pub residual_luma: Vec<i16>,
}Expand description
Decoded data produced by parse_coding_unit.
Fields§
§pred_mode: HevcPredModePrediction mode (Intra, Inter, Skip).
intra_mode_luma: u8Luma intra prediction mode index (0..=34).
intra_mode_chroma: u8Chroma intra prediction mode index.
cbf_luma: boolWhether the luma CBF is set (nonzero residual).
cbf_cb: boolWhether the Cb CBF is set.
cbf_cr: boolWhether the Cr CBF is set.
residual_luma: Vec<i16>Transform coefficients (luma) in scan order, length = block_size^2.
Trait Implementations§
Source§impl Clone for CodingUnitData
impl Clone for CodingUnitData
Source§fn clone(&self) -> CodingUnitData
fn clone(&self) -> CodingUnitData
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 CodingUnitData
impl RefUnwindSafe for CodingUnitData
impl Send for CodingUnitData
impl Sync for CodingUnitData
impl Unpin for CodingUnitData
impl UnsafeUnpin for CodingUnitData
impl UnwindSafe for CodingUnitData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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