DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
Digital cinema operation mode
DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
Digital cinema operation mode
DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
Rsiz Capabilities
DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
Rsiz Capabilities
Allocates worker threads for the compressor/decompressor.
By default, only the main thread is used. If this function is not used,
but the OPJ_NUM_THREADS environment variable is set, its value will be
used to initialize the number of threads. The value can be either an integer
number, or “ALL_CPUS”. If OPJ_NUM_THREADS is set and this function is called,
this function will override the behaviour of the environment variable.
This function must be called after opj_setup_decoder() and
before opj_read_header() for the decoding side, or after opj_setup_encoder()
and before opj_start_compress() for the encoding side.
Reads a tile data. This function is compulsory and allows one to decode tile data. opj_read_tile_header should be called before.
The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.
Note: opj_decode_tile_data() should not be used together with opj_set_decoded_components().
Set strict decoding parameter for this decoder.
If strict decoding is enabled, partial bit streams will fail to decode, and
the check for invalid TPSOT values added in https://github.com/uclouvain/openjpeg/pull/514
will be disabled.
If strict decoding is disabled, the decoder will decode partial
bitstreams as much as possible without erroring, and the TPSOT fixing logic
will be enabled.
Specify extra options for the encoder.
This may be called after opj_setup_encoder() and before opj_start_compress()
This is the way to add new options in a fully ABI compatible way, without
extending the opj_cparameters_t structure.
Currently supported options are:
Reads a tile header. This function is compulsory and allows one to know the size of the tile that will be decoded.
The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.
Sets the given area to be decoded. This function should be called right after opj_read_header and before any tile header reading.
The coordinates passed to this function should be expressed in the reference grid,
that is to say at the highest resolution level, even if requesting the image at lower
resolution levels.
Generally opj_set_decode_area() should be followed by opj_decode(), and the
codec cannot be re-used.
In the particular case of an image made of a single tile, several sequences of
calls to opoj_set_decode_area() and opj_decode() are allowed, and will bring
performance improvements when reading an image by chunks.
Restrict the number of components to decode.
This function should be called after opj_read_header().
This function enables to restrict the set of decoded components to the
specified indices.
Note that the current implementation (apply_color_transforms == OPJ_FALSE)
is such that neither the multi-component transform at codestream level,
nor JP2 channel transformations will be applied.
Consequently the indices are relative to the codestream.
Note: opj_decode_tile_data() should not be used together with opj_set_decoded_components().
Destroys a stream created by opj_create_stream. This function does NOT close the abstract stream. If needed the user must
close its own implementation of the stream.