pub struct BlockQpMap { /* private fields */ }Expand description
Block-level QP map for adaptive quantization.
Implementations§
Source§impl BlockQpMap
impl BlockQpMap
Sourcepub fn set_block_qp(&mut self, x: usize, y: usize, qp: u8)
pub fn set_block_qp(&mut self, x: usize, y: usize, qp: u8)
Set QP for a block.
Sourcepub fn get_block_qp(&self, x: usize, y: usize) -> u8
pub fn get_block_qp(&self, x: usize, y: usize) -> u8
Get QP for a block.
Sourcepub fn apply_offsets(&mut self, offsets: &[f32])
pub fn apply_offsets(&mut self, offsets: &[f32])
Apply QP offsets to all blocks.
Sourcepub fn average_qp(&self) -> f32
pub fn average_qp(&self) -> f32
Get average QP across all blocks.
Sourcepub fn qp_variance(&self) -> f32
pub fn qp_variance(&self) -> f32
Get QP variance.
Trait Implementations§
Source§impl Clone for BlockQpMap
impl Clone for BlockQpMap
Source§fn clone(&self) -> BlockQpMap
fn clone(&self) -> BlockQpMap
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 BlockQpMap
impl RefUnwindSafe for BlockQpMap
impl Send for BlockQpMap
impl Sync for BlockQpMap
impl Unpin for BlockQpMap
impl UnsafeUnpin for BlockQpMap
impl UnwindSafe for BlockQpMap
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