[][src]Struct openjpeg2_sys::opj_dparameters

#[repr(C)]
pub struct opj_dparameters {
    pub cp_reduce: OPJ_UINT32,
    pub cp_layer: OPJ_UINT32,
    pub infile: [c_char; 4096],
    pub outfile: [c_char; 4096],
    pub decod_format: c_int,
    pub cod_format: c_int,
    pub DA_x0: OPJ_UINT32,
    pub DA_x1: OPJ_UINT32,
    pub DA_y0: OPJ_UINT32,
    pub DA_y1: OPJ_UINT32,
    pub m_verbose: OPJ_BOOL,
    pub tile_index: OPJ_UINT32,
    pub nb_tile_to_decode: OPJ_UINT32,
    pub jpwl_correct: OPJ_BOOL,
    pub jpwl_exp_comps: c_int,
    pub jpwl_max_tiles: c_int,
    pub flags: c_uint,
}

Decompression parameters

Fields

cp_reduce: OPJ_UINT32

Set the number of highest resolution levels to be discarded. The image resolution is effectively divided by 2 to the power of the number of discarded levels. The reduce factor is limited by the smallest total number of decomposition levels among tiles. if != 0, then original dimension divided by 2^(reduce); if == 0 or not used, image is decoded to the full resolution

cp_layer: OPJ_UINT32

Set the maximum number of quality layers to decode. If there are less quality layers than the specified number, all the quality layers are decoded. if != 0, then only the first "layer" layers are decoded; if == 0 or not used, all the quality layers are decoded

infile: [c_char; 4096]

input file name

outfile: [c_char; 4096]

output file name

decod_format: c_int

input file format 0: J2K, 1: JP2, 2: JPT

cod_format: c_int

output file format 0: PGX, 1: PxM, 2: BMP

DA_x0: OPJ_UINT32

Decoding area left boundary

DA_x1: OPJ_UINT32

Decoding area right boundary

DA_y0: OPJ_UINT32

Decoding area up boundary

DA_y1: OPJ_UINT32

Decoding area bottom boundary

m_verbose: OPJ_BOOL

Verbose mode

tile_index: OPJ_UINT32

tile number of the decoded tile

nb_tile_to_decode: OPJ_UINT32

Nb of tile to decode

jpwl_correct: OPJ_BOOL

activates the JPWL correction capabilities

jpwl_exp_comps: c_int

expected number of components

jpwl_max_tiles: c_int

maximum number of tiles

flags: c_uint

Trait Implementations

impl Clone for opj_dparameters[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for opj_dparameters[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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