48 struct opj_decompression {
88 void (*opj_destroy)(
void * p_codec);
127 struct opj_compression {
148 void (* opj_destroy)(
void * p_codec);
156 const char*
const* p_options,
168 FILE* output_stream);
OPJ_BOOL OPJ_CALLCONV opj_set_decoded_resolution_factor(opj_codec_t *p_codec, OPJ_UINT32 res_factor)
Set the resolution factor of the decoded image.
Definition openjpeg.c:639
OPJ_BOOL OPJ_CALLCONV opj_get_decoded_tile(opj_codec_t *p_codec, opj_stream_t *p_stream, opj_image_t *p_image, OPJ_UINT32 tile_index)
Get the decoded tile from the codec.
Definition openjpeg.c:615
OPJ_BOOL OPJ_CALLCONV opj_start_compress(opj_codec_t *p_codec, opj_image_t *p_image, opj_stream_t *p_stream)
Start to compress the current image.
Definition openjpeg.c:871
OPJ_BOOL OPJ_CALLCONV opj_end_decompress(opj_codec_t *p_codec, opj_stream_t *p_stream)
Read after the codestream if necessary.
Definition openjpeg.c:924
OPJ_BOOL OPJ_CALLCONV opj_set_decoded_components(opj_codec_t *p_codec, OPJ_UINT32 numcomps, const OPJ_UINT32 *comps_indices, OPJ_BOOL apply_color_transforms)
Restrict the number of components to decode.
Definition openjpeg.c:485
OPJ_BOOL OPJ_CALLCONV opj_decoder_set_strict_mode(opj_codec_t *p_codec, OPJ_BOOL strict)
Set strict decoding parameter for this decoder.
Definition openjpeg.c:441
OPJ_BOOL OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec, opj_cparameters_t *parameters, opj_image_t *p_image)
Setup the encoder parameters using the current image and using user parameters.
Definition openjpeg.c:832
OPJ_BOOL OPJ_CALLCONV opj_encode(opj_codec_t *p_info, opj_stream_t *p_stream)
Encode an image into a JPEG-2000 codestream.
Definition openjpeg.c:890
OPJ_BOOL OPJ_CALLCONV opj_decode_tile_data(opj_codec_t *p_codec, OPJ_UINT32 p_tile_index, OPJ_BYTE *p_data, OPJ_UINT32 p_data_size, opj_stream_t *p_stream)
Reads a tile data.
Definition openjpeg.c:589
OPJ_BOOL OPJ_CALLCONV opj_read_tile_header(opj_codec_t *p_codec, opj_stream_t *p_stream, OPJ_UINT32 *p_tile_index, OPJ_UINT32 *p_data_size, OPJ_INT32 *p_tile_x0, OPJ_INT32 *p_tile_y0, OPJ_INT32 *p_tile_x1, OPJ_INT32 *p_tile_y1, OPJ_UINT32 *p_nb_comps, OPJ_BOOL *p_should_go_on)
Reads a tile header.
Definition openjpeg.c:558
OPJ_BOOL OPJ_CALLCONV opj_end_compress(opj_codec_t *p_codec, opj_stream_t *p_stream)
End to compress the current image.
Definition openjpeg.c:907
OPJ_BOOL OPJ_CALLCONV opj_write_tile(opj_codec_t *p_codec, OPJ_UINT32 p_tile_index, OPJ_BYTE *p_data, OPJ_UINT32 p_data_size, opj_stream_t *p_stream)
Writes a tile with the given data.
Definition openjpeg.c:974
OPJ_BOOL OPJ_CALLCONV opj_encoder_set_extra_options(opj_codec_t *p_codec, const char *const *options)
Specify extra options for the encoder.
Definition openjpeg.c:852
OPJ_BOOL OPJ_CALLCONV opj_read_header(opj_stream_t *p_stream, opj_codec_t *p_codec, opj_image_t **p_image)
Decodes an image header.
Definition openjpeg.c:461
OPJ_BOOL OPJ_CALLCONV opj_setup_decoder(opj_codec_t *p_codec, opj_dparameters_t *parameters)
Setup the decoder with decompression parameters provided by the user and with the message handler pro...
Definition openjpeg.c:421
OPJ_BOOL OPJ_CALLCONV opj_set_decode_area(opj_codec_t *p_codec, opj_image_t *p_image, OPJ_INT32 p_start_x, OPJ_INT32 p_start_y, OPJ_INT32 p_end_x, OPJ_INT32 p_end_y)
Sets the given area to be decoded.
Definition openjpeg.c:535
OPJ_BOOL OPJ_CALLCONV opj_decode(opj_codec_t *p_codec, opj_stream_t *p_stream, opj_image_t *p_image)
Decode an image from a JPEG-2000 codestream.
Definition openjpeg.c:514
unsigned char OPJ_BYTE
Definition openjpeg.h:123
int32_t OPJ_INT32
Definition openjpeg.h:131
uint32_t OPJ_UINT32
Definition openjpeg.h:132
int OPJ_BOOL
Definition openjpeg.h:116
struct opj_codec_private opj_codec_private_t
Main codec handler used for compression or decompression.
Main codec handler used for compression or decompression.
Definition opj_codec.h:42
OPJ_BOOL(* opj_set_threads)(void *p_codec, OPJ_UINT32 num_threads)
Set number of threads.
Definition opj_codec.h:173
OPJ_BOOL is_decompressor
Flag to indicate if the codec is used to decode or encode.
Definition opj_codec.h:166
void * m_codec
FIXME DOC.
Definition opj_codec.h:162
opj_event_mgr_t m_event_mgr
Event handler.
Definition opj_codec.h:164
union opj_codec_private::@2 m_codec_data
FIXME DOC.
void(* opj_dump_codec)(void *p_codec, OPJ_INT32 info_flag, FILE *output_stream)
Definition opj_codec.h:167
struct opj_codec_private::@2::opj_decompression m_decompression
struct opj_codec_private::@2::opj_compression m_compression
Index structure of the codestream (FIXME should be expand and enhance)
Definition openjpeg.h:1039
Information structure about the codestream (FIXME should be expand and enhance)
Definition openjpeg.h:964
Compression parameters.
Definition openjpeg.h:395
Decompression parameters.
Definition openjpeg.h:554
Message handler object used for.
Definition event.h:50
Defines image data and characteristics.
Definition openjpeg.h:711
Byte input-output stream.
Definition cio.h:81