pub enum TxSize {
Show 19 variants
TX_4X4,
TX_8X8,
TX_16X16,
TX_32X32,
TX_64X64,
TX_4X8,
TX_8X4,
TX_8X16,
TX_16X8,
TX_16X32,
TX_32X16,
TX_32X64,
TX_64X32,
TX_4X16,
TX_16X4,
TX_8X32,
TX_32X8,
TX_16X64,
TX_64X16,
}
Expand description
Transform Size
Variants§
TX_4X4
TX_8X8
TX_16X16
TX_32X32
TX_64X64
TX_4X8
TX_8X4
TX_8X16
TX_16X8
TX_16X32
TX_32X16
TX_32X64
TX_64X32
TX_4X16
TX_16X4
TX_8X32
TX_32X8
TX_16X64
TX_64X16
Implementations§
Source§impl TxSize
impl TxSize
Sourcepub const TX_SIZES_ALL: usize = 19usize
pub const TX_SIZES_ALL: usize = 19usize
Number of transform sizes (including non-square sizes)
pub const fn width(self) -> usize
pub const fn width_log2(self) -> usize
pub const fn width_index(self) -> usize
pub const fn height(self) -> usize
pub const fn height_log2(self) -> usize
pub const fn height_index(self) -> usize
pub const fn width_mi(self) -> usize
pub const fn area(self) -> usize
pub const fn area_log2(self) -> usize
pub const fn height_mi(self) -> usize
pub const fn block_size(self) -> BlockSize
pub const fn sqr(self) -> TxSize
pub const fn sqr_up(self) -> TxSize
pub fn by_dims(w: usize, h: usize) -> TxSize
pub const fn is_rect(self) -> bool
Trait Implementations§
Source§impl Ord for TxSize
impl Ord for TxSize
Source§impl PartialOrd for TxSize
impl PartialOrd for TxSize
impl Copy for TxSize
impl Eq for TxSize
impl StructuralPartialEq for TxSize
Auto Trait Implementations§
impl Freeze for TxSize
impl RefUnwindSafe for TxSize
impl Send for TxSize
impl Sync for TxSize
impl Unpin for TxSize
impl UnwindSafe for TxSize
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