Enum cv::imgcodecs::ImageWriteMode [−][src]
Imwrite flags. See documentation for detauls
Variants
For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95.
Enable JPEG features, 0 or 1, default is False.
Enable JPEG features, 0 or 1, default is False.
JPEG restart interval, 0 - 65535, default is 0 - no restart.
Separate luma quality level, 0 - 100, default is 0 - don’t use.
Separate chroma quality level, 0 - 100, default is 0 - don’t use.
For PNG, it can be the compression level from 0 to 9. A higher value means a smaller size and longer compression time. Default value is 3. Also strategy is changed to IMWRITE_PNG_STRATEGY_DEFAULT (Z_DEFAULT_STRATEGY).
One of cv::ImwritePNGFlags, default is IMWRITE_PNG_STRATEGY_DEFAULT.
Binary level PNG, 0 or 1, default is 0.
For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1.
For WEBP, it can be a quality from 1 to 100 (the higher is the better). By default (without any parameter) and for quality above 100 the lossless compression is used.
For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format
Trait Implementations
impl Clone for ImageWriteMode
[src]
fn clone(&self) -> ImageWriteMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImageWriteMode
[src]
impl Debug for ImageWriteMode
[src]
impl Eq for ImageWriteMode
[src]
impl Hash for ImageWriteMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ImageWriteMode> for ImageWriteMode
[src]
fn eq(&self, other: &ImageWriteMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ImageWriteMode
[src]
impl StructuralPartialEq for ImageWriteMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageWriteMode
impl Send for ImageWriteMode
impl Sync for ImageWriteMode
impl Unpin for ImageWriteMode
impl UnwindSafe for ImageWriteMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,