#[repr(i32)]pub enum ImwriteJPEGSamplingFactorParams {
IMWRITE_JPEG_SAMPLING_FACTOR_411 = 4_264_209,
IMWRITE_JPEG_SAMPLING_FACTOR_420 = 2_232_593,
IMWRITE_JPEG_SAMPLING_FACTOR_422 = 2_167_057,
IMWRITE_JPEG_SAMPLING_FACTOR_440 = 1_184_017,
IMWRITE_JPEG_SAMPLING_FACTOR_444 = 1_118_481,
}
Variants§
IMWRITE_JPEG_SAMPLING_FACTOR_411 = 4_264_209
4x1,1x1,1x1
IMWRITE_JPEG_SAMPLING_FACTOR_420 = 2_232_593
2x2,1x1,1x1(Default)
IMWRITE_JPEG_SAMPLING_FACTOR_422 = 2_167_057
2x1,1x1,1x1
IMWRITE_JPEG_SAMPLING_FACTOR_440 = 1_184_017
1x2,1x1,1x1
IMWRITE_JPEG_SAMPLING_FACTOR_444 = 1_118_481
1x1,1x1,1x1(No subsampling)
Trait Implementations§
Source§impl Clone for ImwriteJPEGSamplingFactorParams
impl Clone for ImwriteJPEGSamplingFactorParams
Source§fn clone(&self) -> ImwriteJPEGSamplingFactorParams
fn clone(&self) -> ImwriteJPEGSamplingFactorParams
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 moreSource§impl From<ImwriteJPEGSamplingFactorParams> for i32
impl From<ImwriteJPEGSamplingFactorParams> for i32
Source§fn from(v: ImwriteJPEGSamplingFactorParams) -> Self
fn from(v: ImwriteJPEGSamplingFactorParams) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImwriteJPEGSamplingFactorParams
impl PartialEq for ImwriteJPEGSamplingFactorParams
Source§fn eq(&self, other: &ImwriteJPEGSamplingFactorParams) -> bool
fn eq(&self, other: &ImwriteJPEGSamplingFactorParams) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl TryFrom<i32> for ImwriteJPEGSamplingFactorParams
impl TryFrom<i32> for ImwriteJPEGSamplingFactorParams
impl Copy for ImwriteJPEGSamplingFactorParams
impl Eq for ImwriteJPEGSamplingFactorParams
impl StructuralPartialEq for ImwriteJPEGSamplingFactorParams
Auto Trait Implementations§
impl Freeze for ImwriteJPEGSamplingFactorParams
impl RefUnwindSafe for ImwriteJPEGSamplingFactorParams
impl Send for ImwriteJPEGSamplingFactorParams
impl Sync for ImwriteJPEGSamplingFactorParams
impl Unpin for ImwriteJPEGSamplingFactorParams
impl UnwindSafe for ImwriteJPEGSamplingFactorParams
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