Struct grokj2k_sys::_grk_dparameters[][src]

#[repr(C)]
pub struct _grk_dparameters {
Show fields pub cp_reduce: u8, pub cp_layer: u16, pub infile: [c_char; 4096], pub outfile: [c_char; 4096], pub decod_format: GRK_SUPPORTED_FILE_FMT, pub cod_format: GRK_SUPPORTED_FILE_FMT, pub DA_x0: u32, pub DA_x1: u32, pub DA_y0: u32, pub DA_y1: u32, pub m_verbose: bool, pub tileIndex: u16, pub nb_tile_to_decompress: u32, pub flags: u32, pub tileCacheStrategy: GRK_TILE_CACHE_STRATEGY,
}
Expand description

Core decompress parameters

Fields

cp_reduce: u8

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 greater than zero, then image is decoded to original dimension divided by 2^(cp_reduce); if equal to zero or not used, image is decompressed to full resolution

cp_layer: u16

Set the maximum number of quality layers to decompress. If there are fewer quality layers than the specified number, all quality layers will be decompressed. if != 0, then only the first “layer” layers are decompressed; if == 0 or not used, all the quality layers are decompressed

infile: [c_char; 4096]

input file name

outfile: [c_char; 4096]

output file name

decod_format: GRK_SUPPORTED_FILE_FMT

input file format

cod_format: GRK_SUPPORTED_FILE_FMT

output file format

DA_x0: u32

Decompress window left boundary

DA_x1: u32

Decompress window right boundary

DA_y0: u32

Decompress window up boundary

DA_y1: u32

Decompress window bottom boundary

m_verbose: bool

Verbose mode

tileIndex: u16

tile number of the decompressed tile

nb_tile_to_decompress: u32

Number of tiles to decompress

flags: u32tileCacheStrategy: GRK_TILE_CACHE_STRATEGY

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)

recently added

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.