[−][src]Struct jp2k::DecodeParams
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]
fn clone(&self) -> DecodeParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DecodeParams
[src]
fn default() -> DecodeParams
[src]
impl Debug for DecodeParams
[src]
Auto Trait Implementations
impl Send for DecodeParams
impl Sync for DecodeParams
impl Unpin for DecodeParams
impl UnwindSafe for DecodeParams
impl RefUnwindSafe for DecodeParams
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,