[][src]Struct jp2k::DecodeParams

pub struct DecodeParams { /* fields omitted */ }

Parameters used to decode JPEG2000 image

Methods

impl DecodeParams[src]

pub fn with_default_colorspace(self, color_space: COLOR_SPACE) -> Self[src]

Used when the library cannot determine color space

pub fn with_reduce_factor(self, reduce_factor: u32) -> Self[src]

Image will be "scaled" to dim / (2 ^ reduce_factor)

pub fn with_num_threads(self, num: i32) -> Self[src]

pub fn with_decoding_area(self, x0: i32, y0: i32, x1: i32, y1: i32) -> Self[src]

Image will be "cropped" to the specified decoding area, with width = x1 - x0 and height y1 - y0

pub fn with_quality_layers(self, quality_layers: u32) -> Self[src]

Will only use the specified number of quality layers

Trait Implementations

impl Clone for DecodeParams[src]

impl Default for DecodeParams[src]

impl Debug for DecodeParams[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]