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
impl Clone for opj_cparameters
source§fn clone(&self) -> opj_cparameters
fn clone(&self) -> opj_cparameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for opj_cparameters
impl Debug for opj_cparameters
impl Copy for opj_cparameters
Auto Trait Implementations§
impl Freeze for opj_cparameters
impl RefUnwindSafe for opj_cparameters
impl !Send for opj_cparameters
impl !Sync for opj_cparameters
impl Unpin for opj_cparameters
impl UnwindSafe for opj_cparameters
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
)