[−][src]Enum opencv::imgcodecs::ImwritePNGFlags
Imwrite PNG specific flags used to tune the compression algorithm. These flags will be modify the way of PNG image compression and will be passed to the underlying zlib processing stage.
- The effect of IMWRITE_PNG_STRATEGY_FILTERED is to force more Huffman coding and less string matching; it is somewhat intermediate between IMWRITE_PNG_STRATEGY_DEFAULT and IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY.
- IMWRITE_PNG_STRATEGY_RLE is designed to be almost as fast as IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY, but give better compression for PNG image data.
- The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately.
- IMWRITE_PNG_STRATEGY_FIXED prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.
Variants
Use this value for normal data.
Use this value for data produced by a filter (or predictor).Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better.
Use this value to force Huffman encoding only (no string match).
Use this value to limit match distances to one (run-length encoding).
Using this value prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.
Trait Implementations
impl Clone for ImwritePNGFlags
[src]
pub fn clone(&self) -> ImwritePNGFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImwritePNGFlags
[src]
impl Debug for ImwritePNGFlags
[src]
impl PartialEq<ImwritePNGFlags> for ImwritePNGFlags
[src]
pub fn eq(&self, other: &ImwritePNGFlags) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ImwritePNGFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImwritePNGFlags
[src]
impl Send for ImwritePNGFlags
[src]
impl Sync for ImwritePNGFlags
[src]
impl Unpin for ImwritePNGFlags
[src]
impl UnwindSafe for ImwritePNGFlags
[src]
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>,