pub struct QuantizerParameters {
pub log_base_q: i64,
pub log_target_q: i64,
pub dc_qi: [u8; 3],
pub ac_qi: [u8; 3],
pub lambda: f64,
pub dist_scale: [f64; 3],
}
Fields§
§log_base_q: i64
§log_target_q: i64
§dc_qi: [u8; 3]
§ac_qi: [u8; 3]
§lambda: f64
§dist_scale: [f64; 3]
Implementations§
Source§impl QuantizerParameters
impl QuantizerParameters
fn new_from_log_q( log_base_q: i64, log_target_q: i64, bit_depth: usize, chroma_sampling: ChromaSampling, is_intra: bool, log_isqrt_mean_scale: i64, ) -> QuantizerParameters
Auto Trait Implementations§
impl Freeze for QuantizerParameters
impl RefUnwindSafe for QuantizerParameters
impl Send for QuantizerParameters
impl Sync for QuantizerParameters
impl Unpin for QuantizerParameters
impl UnwindSafe for QuantizerParameters
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