pub type opj_dparameters_t = opj_dparameters;Expand description
Decompression parameters
Aliased Type§
#[repr(C)]pub struct opj_dparameters_t {Show 17 fields
pub cp_reduce: u32,
pub cp_layer: u32,
pub infile: [i8; 4096],
pub outfile: [i8; 4096],
pub decod_format: i32,
pub cod_format: i32,
pub DA_x0: u32,
pub DA_x1: u32,
pub DA_y0: u32,
pub DA_y1: u32,
pub m_verbose: i32,
pub tile_index: u32,
pub nb_tile_to_decode: u32,
pub jpwl_correct: i32,
pub jpwl_exp_comps: i32,
pub jpwl_max_tiles: i32,
pub flags: u32,
}Fields§
§cp_reduce: u32Set 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: u32Set 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: [i8; 4096]input file name
outfile: [i8; 4096]output file name
decod_format: i32input file format 0: J2K, 1: JP2, 2: JPT
cod_format: i32output file format 0: PGX, 1: PxM, 2: BMP
DA_x0: u32Decoding area left boundary
DA_x1: u32Decoding area right boundary
DA_y0: u32Decoding area up boundary
DA_y1: u32Decoding area bottom boundary
m_verbose: i32Verbose mode
tile_index: u32tile number of the decoded tile
nb_tile_to_decode: u32Nb of tile to decode
jpwl_correct: i32activates the JPWL correction capabilities
jpwl_exp_comps: i32expected number of components
jpwl_max_tiles: i32maximum number of tiles
flags: u32