Struct openjpeg_sys::opj_dparameters[][src]

#[repr(C)]
pub struct opj_dparameters {
Show 17 fields 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,
}
Expand description

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.