pub struct PicScalingMatrix {
pub scaling_lists4x4: ScalingLists4x4,
pub scaling_lists8x8: Option<ScalingLists8x8>,
}Fields§
§scaling_lists4x4: ScalingLists4x4§scaling_lists8x8: Option<ScalingLists8x8>Some when transform_8x8_mode_flag is true, None otherwise
Implementations§
Source§impl PicScalingMatrix
impl PicScalingMatrix
Sourcepub fn scaling_lists_4x4(&self, sps_chroma: &ChromaInfo) -> [[u8; 16]; 6]
pub fn scaling_lists_4x4(&self, sps_chroma: &ChromaInfo) -> [[u8; 16]; 6]
Resolve 4x4 scaling lists using PPS fall-back rules (Table 7-2).
Uses rule set B when the SPS has a scaling matrix
(seq_scaling_matrix_present_flag = 1), otherwise rule set A.
Sourcepub fn scaling_lists_8x8(
&self,
sps_chroma: &ChromaInfo,
) -> Option<ScalingLists8x8Resolved>
pub fn scaling_lists_8x8( &self, sps_chroma: &ChromaInfo, ) -> Option<ScalingLists8x8Resolved>
Resolve 8x8 scaling lists using PPS fall-back rules (Table 7-2).
Returns None when transform_8x8_mode_flag is false (no 8x8 lists in PPS).
Trait Implementations§
Source§impl Clone for PicScalingMatrix
impl Clone for PicScalingMatrix
Source§fn clone(&self) -> PicScalingMatrix
fn clone(&self) -> PicScalingMatrix
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 moreAuto Trait Implementations§
impl Freeze for PicScalingMatrix
impl RefUnwindSafe for PicScalingMatrix
impl Send for PicScalingMatrix
impl Sync for PicScalingMatrix
impl Unpin for PicScalingMatrix
impl UnsafeUnpin for PicScalingMatrix
impl UnwindSafe for PicScalingMatrix
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