Struct openjpeg_sys::opj_dparameters
source · #[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§
source§impl Clone for opj_dparameters
impl Clone for opj_dparameters
source§fn clone(&self) -> opj_dparameters
fn clone(&self) -> opj_dparameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl Copy for opj_dparameters
Auto Trait Implementations§
impl Freeze for opj_dparameters
impl RefUnwindSafe for opj_dparameters
impl Send for opj_dparameters
impl Sync for opj_dparameters
impl Unpin for opj_dparameters
impl UnwindSafe for opj_dparameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)