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

source§

fn clone(&self) -> opj_dparameters

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for opj_dparameters

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.