Type Alias openjpeg_sys::opj_cparameters_t
source · pub type opj_cparameters_t = opj_cparameters;
Expand description
Compression parameters
Aliased Type§
struct opj_cparameters_t {Show 60 fields
pub tile_size_on: i32,
pub cp_tx0: i32,
pub cp_ty0: i32,
pub cp_tdx: i32,
pub cp_tdy: i32,
pub cp_disto_alloc: i32,
pub cp_fixed_alloc: i32,
pub cp_fixed_quality: i32,
pub cp_matrice: *mut i32,
pub cp_comment: *mut i8,
pub csty: i32,
pub prog_order: PROG_ORDER,
pub POC: [opj_poc; 32],
pub numpocs: u32,
pub tcp_numlayers: i32,
pub tcp_rates: [f32; 100],
pub tcp_distoratio: [f32; 100],
pub numresolution: i32,
pub cblockw_init: i32,
pub cblockh_init: i32,
pub mode: i32,
pub irreversible: i32,
pub roi_compno: i32,
pub roi_shift: i32,
pub res_spec: i32,
pub prcw_init: [i32; 33],
pub prch_init: [i32; 33],
pub infile: [i8; 4096],
pub outfile: [i8; 4096],
pub index_on: i32,
pub index: [i8; 4096],
pub image_offset_x0: i32,
pub image_offset_y0: i32,
pub subsampling_dx: i32,
pub subsampling_dy: i32,
pub decod_format: i32,
pub cod_format: i32,
pub jpwl_epc_on: i32,
pub jpwl_hprot_MH: i32,
pub jpwl_hprot_TPH_tileno: [i32; 16],
pub jpwl_hprot_TPH: [i32; 16],
pub jpwl_pprot_tileno: [i32; 16],
pub jpwl_pprot_packno: [i32; 16],
pub jpwl_pprot: [i32; 16],
pub jpwl_sens_size: i32,
pub jpwl_sens_addr: i32,
pub jpwl_sens_range: i32,
pub jpwl_sens_MH: i32,
pub jpwl_sens_TPH_tileno: [i32; 16],
pub jpwl_sens_TPH: [i32; 16],
pub cp_cinema: CINEMA_MODE,
pub max_comp_size: i32,
pub cp_rsiz: RSIZ_CAPABILITIES,
pub tp_on: i8,
pub tp_flag: i8,
pub tcp_mct: i8,
pub jpip_on: i32,
pub mct_data: *mut c_void,
pub max_cs_size: i32,
pub rsiz: u16,
}
Fields§
§tile_size_on: i32
size of tile: tile_size_on
= false (not in argument) or = true (in argument)
cp_tx0: i32
XTOsiz
cp_ty0: i32
YTOsiz
cp_tdx: i32
XTsiz
cp_tdy: i32
YTsiz
cp_disto_alloc: i32
allocation by rate/distortion
cp_fixed_alloc: i32
allocation by fixed layer
cp_fixed_quality: i32
allocation by fixed quality (PSNR)
cp_matrice: *mut i32
fixed layer
cp_comment: *mut i8
comment for coding
csty: i32
csty : coding style
prog_order: PROG_ORDER
progression order (default OPJ_LRCP
)
POC: [opj_poc; 32]
progression order changes
numpocs: u32
number of progression order changes (POC), default to 0
tcp_numlayers: i32
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: i32
number of resolutions
cblockw_init: i32
initial code block width, default to 64
cblockh_init: i32
initial code block height, default to 64
mode: i32
mode switch (cblk_style
)
irreversible: i32
1 : use the irreversible DWT 9-7, 0 : use lossless compression (default)
roi_compno: i32
region of interest: affected component in [0..3], -1 means no ROI
roi_shift: i32
region of interest: upshift value
res_spec: i32
§prcw_init: [i32; 33]
initial precinct width
prch_init: [i32; 33]
initial precinct height
infile: [i8; 4096]
input file name
outfile: [i8; 4096]
output file name
index_on: i32
DEPRECATED. Index generation is now handled with the opj_encode_with_info()
function. Set to NULL
index: [i8; 4096]
DEPRECATED. Index generation is now handled with the opj_encode_with_info()
function. Set to NULL
image_offset_x0: i32
subimage encoding: origin image offset in x direction
image_offset_y0: i32
subimage encoding: origin image offset in y direction
subsampling_dx: i32
subsampling value for dx
subsampling_dy: i32
subsampling value for dy
decod_format: i32
input file format 0: PGX, 1: PxM
, 2: BMP 3:TIF
cod_format: i32
output file format 0: J2K, 1: JP2, 2: JPT
jpwl_epc_on: i32
enables writing of EPC in MH, thus activating JPWL
jpwl_hprot_MH: i32
error protection method for MH (0,1,16,32,37-128)
jpwl_hprot_TPH_tileno: [i32; 16]
tile number of header protection specification (>=0)
jpwl_hprot_TPH: [i32; 16]
error protection methods for TPHs (0,1,16,32,37-128)
jpwl_pprot_tileno: [i32; 16]
tile number of packet protection specification (>=0)
jpwl_pprot_packno: [i32; 16]
packet number of packet protection specification (>=0)
jpwl_pprot: [i32; 16]
error protection methods for packets (0,1,16,32,37-128)
jpwl_sens_size: i32
enables writing of ESD, (0=no/1/2 bytes)
jpwl_sens_addr: i32
sensitivity addressing size (0=auto/2/4 bytes)
jpwl_sens_range: i32
sensitivity range (0-3)
jpwl_sens_MH: i32
sensitivity method for MH (-1=no,0-7)
jpwl_sens_TPH_tileno: [i32; 16]
tile number of sensitivity specification (>=0)
jpwl_sens_TPH: [i32; 16]
sensitivity methods for TPHs (-1=no,0-7)
cp_cinema: CINEMA_MODE
DEPRECATED: use RSIZ, OPJ_PROFILE_*
and MAX_COMP_SIZE
instead
Digital Cinema compliance 0-not compliant, 1-compliant
max_comp_size: i32
Maximum size (in bytes) for each component. If == 0, component size limitation is not considered
cp_rsiz: RSIZ_CAPABILITIES
DEPRECATED: use RSIZ, OPJ_PROFILE_*
and OPJ_EXTENSION_*
instead
Profile name
tp_on: i8
Tile part generation
tp_flag: i8
Flag for Tile part generation
tcp_mct: i8
MCT (multiple component transform)
jpip_on: i32
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: i32
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: u16
RSIZ value
To be used to combine OPJ_PROFILE_*
, OPJ_EXTENSION_*
and (sub)levels values.