Enum cv::imgcodecs::ImageWriteMode[][src]

#[repr(C)]pub enum ImageWriteMode {
    JpegQuality,
    JpegProgressive,
    JpegOptimize,
    JpegRstInterval,
    JpegLumaQuality,
    JpegChromaQuality,
    PngCompression,
    PngStrategy,
    PngBilevel,
    PxmBinary,
    WebpQuality,
    PamTupletype,
}

Imwrite flags. See documentation for detauls

Variants

JpegQuality

For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95.

JpegProgressive

Enable JPEG features, 0 or 1, default is False.

JpegOptimize

Enable JPEG features, 0 or 1, default is False.

JpegRstInterval

JPEG restart interval, 0 - 65535, default is 0 - no restart.

JpegLumaQuality

Separate luma quality level, 0 - 100, default is 0 - don’t use.

JpegChromaQuality

Separate chroma quality level, 0 - 100, default is 0 - don’t use.

PngCompression

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).

PngStrategy

One of cv::ImwritePNGFlags, default is IMWRITE_PNG_STRATEGY_DEFAULT.

PngBilevel

Binary level PNG, 0 or 1, default is 0.

PxmBinary

For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1.

WebpQuality

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.

PamTupletype

For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format

Trait Implementations

impl Clone for ImageWriteMode[src]

impl Copy for ImageWriteMode[src]

impl Debug for ImageWriteMode[src]

impl Eq for ImageWriteMode[src]

impl Hash for ImageWriteMode[src]

impl PartialEq<ImageWriteMode> for ImageWriteMode[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.