#[repr(u8)]pub enum TransformType {
Show 27 variants
Dct8 = 0,
Hornuss = 1,
Dct2 = 2,
Dct4 = 3,
Dct16 = 4,
Dct32 = 5,
Dct16x8 = 6,
Dct8x16 = 7,
Dct32x8 = 8,
Dct8x32 = 9,
Dct32x16 = 10,
Dct16x32 = 11,
Dct4x8 = 12,
Dct8x4 = 13,
Afv0 = 14,
Afv1 = 15,
Afv2 = 16,
Afv3 = 17,
Dct64 = 18,
Dct64x32 = 19,
Dct32x64 = 20,
Dct128 = 21,
Dct128x64 = 22,
Dct64x128 = 23,
Dct256 = 24,
Dct256x128 = 25,
Dct128x256 = 26,
}
Expand description
Varblock transform types.
Variants§
Dct8 = 0
Hornuss = 1
Dct2 = 2
Dct4 = 3
Dct16 = 4
Dct32 = 5
Dct16x8 = 6
Dct8x16 = 7
Dct32x8 = 8
Dct8x32 = 9
Dct32x16 = 10
Dct16x32 = 11
Dct4x8 = 12
Dct8x4 = 13
Afv0 = 14
Afv1 = 15
Afv2 = 16
Afv3 = 17
Dct64 = 18
Dct64x32 = 19
Dct32x64 = 20
Dct128 = 21
Dct128x64 = 22
Dct64x128 = 23
Dct256 = 24
Dct256x128 = 25
Dct128x256 = 26
Implementations§
Source§impl TransformType
impl TransformType
Sourcepub fn dct_select_size(self) -> (u32, u32)
pub fn dct_select_size(self) -> (u32, u32)
Returns the size of the transform type, in 8x8 blocks.
Sourcepub fn need_transpose(&self) -> bool
pub fn need_transpose(&self) -> bool
Returns whether DCT coefficients should be transposed.
Trait Implementations§
Source§impl Clone for TransformType
impl Clone for TransformType
Source§fn clone(&self) -> TransformType
fn clone(&self) -> TransformType
Returns a copy 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 moreSource§impl Debug for TransformType
impl Debug for TransformType
Source§impl Hash for TransformType
impl Hash for TransformType
Source§impl PartialEq for TransformType
impl PartialEq for TransformType
Source§impl TryFrom<u8> for TransformType
impl TryFrom<u8> for TransformType
impl Copy for TransformType
impl Eq for TransformType
impl StructuralPartialEq for TransformType
Auto Trait Implementations§
impl Freeze for TransformType
impl RefUnwindSafe for TransformType
impl Send for TransformType
impl Sync for TransformType
impl Unpin for TransformType
impl UnwindSafe for TransformType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)