Enum jxl_vardct::TransformType
source · #[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
)