Struct openjpeg_sys::opj_cparameters

source ·
#[repr(C)]
pub struct opj_cparameters {
Show 60 fields pub tile_size_on: OPJ_BOOL, pub cp_tx0: c_int, pub cp_ty0: c_int, pub cp_tdx: c_int, pub cp_tdy: c_int, pub cp_disto_alloc: c_int, pub cp_fixed_alloc: c_int, pub cp_fixed_quality: c_int, pub cp_matrice: *mut c_int, pub cp_comment: *mut c_char, pub csty: c_int, pub prog_order: OPJ_PROG_ORDER, pub POC: [opj_poc_t; 32], pub numpocs: OPJ_UINT32, pub tcp_numlayers: c_int, pub tcp_rates: [f32; 100], pub tcp_distoratio: [f32; 100], pub numresolution: c_int, pub cblockw_init: c_int, pub cblockh_init: c_int, pub mode: c_int, pub irreversible: c_int, pub roi_compno: c_int, pub roi_shift: c_int, pub res_spec: c_int, pub prcw_init: [c_int; 33], pub prch_init: [c_int; 33], pub infile: [c_char; 4096], pub outfile: [c_char; 4096], pub index_on: c_int, pub index: [c_char; 4096], pub image_offset_x0: c_int, pub image_offset_y0: c_int, pub subsampling_dx: c_int, pub subsampling_dy: c_int, pub decod_format: c_int, pub cod_format: c_int, pub jpwl_epc_on: OPJ_BOOL, pub jpwl_hprot_MH: c_int, pub jpwl_hprot_TPH_tileno: [c_int; 16], pub jpwl_hprot_TPH: [c_int; 16], pub jpwl_pprot_tileno: [c_int; 16], pub jpwl_pprot_packno: [c_int; 16], pub jpwl_pprot: [c_int; 16], pub jpwl_sens_size: c_int, pub jpwl_sens_addr: c_int, pub jpwl_sens_range: c_int, pub jpwl_sens_MH: c_int, pub jpwl_sens_TPH_tileno: [c_int; 16], pub jpwl_sens_TPH: [c_int; 16], pub cp_cinema: OPJ_CINEMA_MODE, pub max_comp_size: c_int, pub cp_rsiz: OPJ_RSIZ_CAPABILITIES, pub tp_on: c_char, pub tp_flag: c_char, pub tcp_mct: c_char, pub jpip_on: OPJ_BOOL, pub mct_data: *mut c_void, pub max_cs_size: c_int, pub rsiz: OPJ_UINT16,
}
Expand description

Compression parameters

Fields§

§tile_size_on: OPJ_BOOL

size of tile: tile_size_on = false (not in argument) or = true (in argument)

§cp_tx0: c_int

XTOsiz

§cp_ty0: c_int

YTOsiz

§cp_tdx: c_int

XTsiz

§cp_tdy: c_int

YTsiz

§cp_disto_alloc: c_int

allocation by rate/distortion

§cp_fixed_alloc: c_int

allocation by fixed layer

§cp_fixed_quality: c_int

allocation by fixed quality (PSNR)

§cp_matrice: *mut c_int

fixed layer

§cp_comment: *mut c_char

comment for coding

§csty: c_int

csty : coding style

§prog_order: OPJ_PROG_ORDER

progression order (default OPJ_LRCP)

§POC: [opj_poc_t; 32]

progression order changes

§numpocs: OPJ_UINT32

number of progression order changes (POC), default to 0

§tcp_numlayers: c_int

number of layers

§tcp_rates: [f32; 100]

rates of layers - might be subsequently limited by the max_cs_size field. Should be decreasing. 1 can be used as last value to indicate the last layer is lossless.

§tcp_distoratio: [f32; 100]

different psnr for successive layers. Should be increasing. 0 can be used as last value to indicate the last layer is lossless.

§numresolution: c_int

number of resolutions

§cblockw_init: c_int

initial code block width, default to 64

§cblockh_init: c_int

initial code block height, default to 64

§mode: c_int

mode switch (cblk_style)

§irreversible: c_int

1 : use the irreversible DWT 9-7, 0 : use lossless compression (default)

§roi_compno: c_int

region of interest: affected component in [0..3], -1 means no ROI

§roi_shift: c_int

region of interest: upshift value

§res_spec: c_int§prcw_init: [c_int; 33]

initial precinct width

§prch_init: [c_int; 33]

initial precinct height

§infile: [c_char; 4096]

input file name

§outfile: [c_char; 4096]

output file name

§index_on: c_int

DEPRECATED. Index generation is now handled with the opj_encode_with_info() function. Set to NULL

§index: [c_char; 4096]

DEPRECATED. Index generation is now handled with the opj_encode_with_info() function. Set to NULL

§image_offset_x0: c_int

subimage encoding: origin image offset in x direction

§image_offset_y0: c_int

subimage encoding: origin image offset in y direction

§subsampling_dx: c_int

subsampling value for dx

§subsampling_dy: c_int

subsampling value for dy

§decod_format: c_int

input file format 0: PGX, 1: PxM, 2: BMP 3:TIF

§cod_format: c_int

output file format 0: J2K, 1: JP2, 2: JPT

§jpwl_epc_on: OPJ_BOOL

enables writing of EPC in MH, thus activating JPWL

§jpwl_hprot_MH: c_int

error protection method for MH (0,1,16,32,37-128)

§jpwl_hprot_TPH_tileno: [c_int; 16]

tile number of header protection specification (>=0)

§jpwl_hprot_TPH: [c_int; 16]

error protection methods for TPHs (0,1,16,32,37-128)

§jpwl_pprot_tileno: [c_int; 16]

tile number of packet protection specification (>=0)

§jpwl_pprot_packno: [c_int; 16]

packet number of packet protection specification (>=0)

§jpwl_pprot: [c_int; 16]

error protection methods for packets (0,1,16,32,37-128)

§jpwl_sens_size: c_int

enables writing of ESD, (0=no/1/2 bytes)

§jpwl_sens_addr: c_int

sensitivity addressing size (0=auto/2/4 bytes)

§jpwl_sens_range: c_int

sensitivity range (0-3)

§jpwl_sens_MH: c_int

sensitivity method for MH (-1=no,0-7)

§jpwl_sens_TPH_tileno: [c_int; 16]

tile number of sensitivity specification (>=0)

§jpwl_sens_TPH: [c_int; 16]

sensitivity methods for TPHs (-1=no,0-7)

§cp_cinema: OPJ_CINEMA_MODE

DEPRECATED: use RSIZ, OPJ_PROFILE_* and MAX_COMP_SIZE instead Digital Cinema compliance 0-not compliant, 1-compliant

§max_comp_size: c_int

Maximum size (in bytes) for each component. If == 0, component size limitation is not considered

§cp_rsiz: OPJ_RSIZ_CAPABILITIES

DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead Profile name

§tp_on: c_char

Tile part generation

§tp_flag: c_char

Flag for Tile part generation

§tcp_mct: c_char

MCT (multiple component transform)

§jpip_on: OPJ_BOOL

Enable JPIP indexing

§mct_data: *mut c_void

Naive implementation of MCT restricted to a single reversible array based encoding without offset concerning all the components.

§max_cs_size: c_int

Maximum size (in bytes) for the whole codestream. If == 0, codestream size limitation is not considered If it does not comply with tcp_rates, max_cs_size prevails and a warning is issued.

§rsiz: OPJ_UINT16

RSIZ value To be used to combine OPJ_PROFILE_*, OPJ_EXTENSION_* and (sub)levels values.

Trait Implementations§

source§

impl Clone for opj_cparameters

source§

fn clone(&self) -> opj_cparameters

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 Debug for opj_cparameters

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for opj_cparameters

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.