OpenJPEG 1.5.2
opj_dparameters Struct Reference

Decompression parameters. More...

#include <openjpeg.h>

Data Fields

int cp_reduce
 Set the number of highest resolution levels to be discarded.
 
int cp_layer
 Set the maximum number of quality layers to decode.
 
command line encoder parameters (not used inside the library)
char infile [OPJ_PATH_LEN]
 input file name
 
char outfile [OPJ_PATH_LEN]
 output file name
 
int decod_format
 input file format 0: J2K, 1: JP2, 2: JPT
 
int cod_format
 output file format 0: PGX, 1: PxM, 2: BMP
 
JPWL decoding parameters
opj_bool jpwl_correct
 activates the JPWL correction capabilities
 
int jpwl_exp_comps
 expected number of components
 
int jpwl_max_tiles
 maximum number of tiles
 
OPJ_LIMIT_DECODING cp_limit_decoding
 Specify whether the decoding should be done on the entire codestream, or be limited to the main header Limiting the decoding to the main header makes it possible to extract the characteristics of the codestream if == NO_LIMITATION, the entire codestream is decoded; if == LIMIT_TO_MAIN_HEADER, only the main header is decoded;.
 
unsigned int flags
 

Detailed Description

Decompression parameters.

Field Documentation

◆ cod_format

int opj_dparameters::cod_format

output file format 0: PGX, 1: PxM, 2: BMP

Referenced by opj_set_default_decoder_parameters().

◆ cp_layer

int opj_dparameters::cp_layer

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

Referenced by j2k_setup_decoder(), and opj_set_default_decoder_parameters().

◆ cp_limit_decoding

OPJ_LIMIT_DECODING opj_dparameters::cp_limit_decoding

Specify whether the decoding should be done on the entire codestream, or be limited to the main header Limiting the decoding to the main header makes it possible to extract the characteristics of the codestream if == NO_LIMITATION, the entire codestream is decoded; if == LIMIT_TO_MAIN_HEADER, only the main header is decoded;.

Referenced by j2k_setup_decoder(), and opj_set_default_decoder_parameters().

◆ cp_reduce

int opj_dparameters::cp_reduce

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

Referenced by j2k_setup_decoder(), and opj_set_default_decoder_parameters().

◆ decod_format

int opj_dparameters::decod_format

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

Referenced by opj_set_default_decoder_parameters().

◆ flags

unsigned int opj_dparameters::flags

◆ infile

char opj_dparameters::infile[OPJ_PATH_LEN]

input file name

◆ jpwl_correct

opj_bool opj_dparameters::jpwl_correct

activates the JPWL correction capabilities

Referenced by j2k_setup_decoder(), and opj_set_default_decoder_parameters().

◆ jpwl_exp_comps

int opj_dparameters::jpwl_exp_comps

expected number of components

Referenced by j2k_setup_decoder(), and opj_set_default_decoder_parameters().

◆ jpwl_max_tiles

int opj_dparameters::jpwl_max_tiles

maximum number of tiles

Referenced by j2k_setup_decoder(), and opj_set_default_decoder_parameters().

◆ outfile

char opj_dparameters::outfile[OPJ_PATH_LEN]

output file name


The documentation for this struct was generated from the following file: