jp2.h
Go to the documentation of this file.
/*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, Professor Benoit Macq
* Copyright (c) 2002-2003, Yannick Verschueren
* Copyright (c) 2005, Herve Drolon, FreeImage Team
* Copyright (c) 2008, 2011-2012, Centre National d'Etudes Spatiales (CNES), FR
* Copyright (c) 2012, CS Systemes d'Information, France
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef OPJ_JP2_H
#define OPJ_JP2_H
/*#define JPIP_JPIP 0x6a706970*/
#define JP2_JP 0x6a502020
#define JP2_FTYP 0x66747970
#define JP2_JP2H 0x6a703268
#define JP2_IHDR 0x69686472
#define JP2_COLR 0x636f6c72
#define JP2_JP2C 0x6a703263
#define JP2_URL 0x75726c20
#define JP2_PCLR 0x70636c72
#define JP2_CMAP 0x636d6170
#define JP2_CDEF 0x63646566
#define JP2_DTBL 0x6474626c
#define JP2_BPCC 0x62706363
#define JP2_JP2 0x6a703220
/* For the future */
/* #define JP2_RES 0x72657320 */
/* #define JP2_JP2I 0x6a703269 */
/* #define JP2_XML 0x786d6c20 */
/* #define JP2_UUID 0x75756994 */
/* #define JP2_UINF 0x75696e66 */
/* #define JP2_ULST 0x756c7374 */
/* ----------------------------------------------------------------------- */
typedef enum {
JP2_STATE_NONE = 0x0,
JP2_STATE_SIGNATURE = 0x1,
JP2_STATE_FILE_TYPE = 0x2,
JP2_STATE_HEADER = 0x4,
JP2_STATE_CODESTREAM = 0x8,
JP2_STATE_END_CODESTREAM = 0x10,
JP2_STATE_UNKNOWN = 0x7fffffff /* ISO C restricts enumerator values to range of 'int' */
}
JP2_STATE;
typedef enum {
JP2_IMG_STATE_NONE = 0x0,
JP2_IMG_STATE_UNKNOWN = 0x7fffffff
}
JP2_IMG_STATE;
typedef struct opj_jp2_cdef_info {
OPJ_UINT16 cn, typ, asoc;
} opj_jp2_cdef_info_t;
typedef struct opj_jp2_cdef {
opj_jp2_cdef_info_t *info;
OPJ_UINT16 n;
} opj_jp2_cdef_t;
typedef struct opj_jp2_cmap_comp {
OPJ_UINT16 cmp;
OPJ_BYTE mtyp, pcol;
} opj_jp2_cmap_comp_t;
typedef struct opj_jp2_pclr {
OPJ_UINT32 *entries;
OPJ_BYTE *channel_sign;
OPJ_BYTE *channel_size;
opj_jp2_cmap_comp_t *cmap;
OPJ_UINT16 nr_entries;
OPJ_BYTE nr_channels;
} opj_jp2_pclr_t;
typedef struct opj_jp2_color {
OPJ_BYTE *icc_profile_buf;
OPJ_UINT32 icc_profile_len;
opj_jp2_cdef_t *jp2_cdef;
opj_jp2_pclr_t *jp2_pclr;
OPJ_BYTE jp2_has_colr;
} opj_jp2_color_t;
typedef struct opj_jp2_comps {
OPJ_UINT32 depth;
OPJ_UINT32 sgnd;
OPJ_UINT32 bpcc;
} opj_jp2_comps_t;
typedef struct opj_jp2 {
opj_j2k_t *j2k;
struct opj_procedure_list * m_validation_list;
struct opj_procedure_list * m_procedure_list;
/* width of image */
OPJ_UINT32 w;
/* height of image */
OPJ_UINT32 h;
/* number of components in the image */
OPJ_UINT32 numcomps;
OPJ_UINT32 bpc;
OPJ_UINT32 C;
OPJ_UINT32 UnkC;
OPJ_UINT32 IPR;
OPJ_UINT32 meth;
OPJ_UINT32 approx;
OPJ_UINT32 enumcs;
OPJ_UINT32 precedence;
OPJ_UINT32 brand;
OPJ_UINT32 minversion;
OPJ_UINT32 numcl;
OPJ_UINT32 *cl;
opj_jp2_comps_t *comps;
/* FIXME: The following two variables are used to save offset
as we write out a JP2 file to disk. This mechanism is not flexible
as codec writers will need to extand those fields as new part
of the standard are implemented.
*/
OPJ_OFF_T j2k_codestream_offset;
OPJ_OFF_T jpip_iptr_offset;
OPJ_BOOL jpip_on;
OPJ_UINT32 jp2_state;
OPJ_UINT32 jp2_img_state;
opj_jp2_color_t color;
OPJ_BOOL ignore_pclr_cmap_cdef;
OPJ_BYTE has_jp2h;
OPJ_BYTE has_ihdr;
}
opj_jp2_t;
typedef struct opj_jp2_box {
OPJ_UINT32 length;
OPJ_UINT32 type;
OPJ_INT32 init_pos;
} opj_jp2_box_t;
typedef struct opj_jp2_header_handler {
/* marker value */
OPJ_UINT32 id;
/* action linked to the marker */
OPJ_BOOL(*handler)(opj_jp2_t *jp2,
OPJ_BYTE *p_header_data,
OPJ_UINT32 p_header_size,
opj_event_mgr_t * p_manager);
}
opj_jp2_header_handler_t;
typedef struct opj_jp2_img_header_writer_handler {
/* action to perform */
OPJ_BYTE* (*handler)(opj_jp2_t *jp2, OPJ_UINT32 * p_data_size);
/* result of the action : data */
OPJ_BYTE* m_data;
/* size of data */
OPJ_UINT32 m_size;
}
opj_jp2_img_header_writer_handler_t;
/* ----------------------------------------------------------------------- */
void opj_jp2_setup_decoder(opj_jp2_t *jp2, opj_dparameters_t *parameters);
void opj_jp2_decoder_set_strict_mode(opj_jp2_t *jp2, OPJ_BOOL strict);
OPJ_BOOL opj_jp2_set_threads(opj_jp2_t *jp2, OPJ_UINT32 num_threads);
OPJ_BOOL opj_jp2_decode(opj_jp2_t *jp2,
opj_stream_private_t *p_stream,
opj_image_t* p_image,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_setup_encoder(opj_jp2_t *jp2,
opj_cparameters_t *parameters,
opj_image_t *image,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_encode(opj_jp2_t *jp2,
opj_stream_private_t *stream,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_start_compress(opj_jp2_t *jp2,
opj_stream_private_t *stream,
opj_image_t * p_image,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_end_compress(opj_jp2_t *jp2,
opj_stream_private_t *cio,
opj_event_mgr_t * p_manager);
/* ----------------------------------------------------------------------- */
OPJ_BOOL opj_jp2_end_decompress(opj_jp2_t *jp2,
opj_stream_private_t *cio,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_read_header(opj_stream_private_t *p_stream,
opj_jp2_t *jp2,
opj_image_t ** p_image,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_set_decoded_components(opj_jp2_t *jp2,
OPJ_UINT32 numcomps,
const OPJ_UINT32* comps_indices,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_read_tile_header(opj_jp2_t * p_jp2,
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_go_on,
opj_stream_private_t *p_stream,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_write_tile(opj_jp2_t *p_jp2,
OPJ_UINT32 p_tile_index,
OPJ_BYTE * p_data,
OPJ_UINT32 p_data_size,
opj_stream_private_t *p_stream,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_decode_tile(opj_jp2_t * p_jp2,
OPJ_UINT32 p_tile_index,
OPJ_BYTE * p_data,
OPJ_UINT32 p_data_size,
opj_stream_private_t *p_stream,
opj_event_mgr_t * p_manager);
opj_jp2_t* opj_jp2_create(OPJ_BOOL p_is_decoder);
void opj_jp2_destroy(opj_jp2_t *jp2);
OPJ_BOOL opj_jp2_set_decode_area(opj_jp2_t *p_jp2,
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,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_get_tile(opj_jp2_t *p_jp2,
opj_stream_private_t *p_stream,
opj_image_t* p_image,
opj_event_mgr_t * p_manager,
OPJ_UINT32 tile_index);
OPJ_BOOL opj_jp2_set_decoded_resolution_factor(opj_jp2_t *p_jp2,
OPJ_UINT32 res_factor,
opj_event_mgr_t * p_manager);
OPJ_BOOL opj_jp2_encoder_set_extra_options(
opj_jp2_t *p_jp2,
const char* const* p_options,
opj_event_mgr_t * p_manager);
/* TODO MSD: clean these 3 functions */
void jp2_dump(opj_jp2_t* p_jp2, OPJ_INT32 flag, FILE* out_stream);
opj_codestream_info_v2_t* jp2_get_cstr_info(opj_jp2_t* p_jp2);
opj_codestream_index_t* jp2_get_cstr_index(opj_jp2_t* p_jp2);
#endif /* OPJ_JP2_H */
opj_stream_private_t
struct opj_stream_private opj_stream_private_t
Byte input-output stream.
opj_event_mgr_t
struct opj_event_mgr opj_event_mgr_t
Message handler object used for.
opj_j2k_t
struct opj_j2k opj_j2k_t
JPEG-2000 codestream reader/writer.
opj_jp2_decoder_set_strict_mode
void opj_jp2_decoder_set_strict_mode(opj_jp2_t *jp2, OPJ_BOOL strict)
Set the strict mode parameter.
Definition jp2.c:1890
opj_jp2_cdef_t
struct opj_jp2_cdef opj_jp2_cdef_t
Channel descriptions and number of descriptions.
opj_jp2_set_decoded_components
OPJ_BOOL opj_jp2_set_decoded_components(opj_jp2_t *jp2, OPJ_UINT32 numcomps, const OPJ_UINT32 *comps_indices, opj_event_mgr_t *p_manager)
Sets the indices of the components to decode.
Definition jp2.c:3107
opj_jp2_destroy
void opj_jp2_destroy(opj_jp2_t *jp2)
Destroy a JP2 decompressor handle.
Definition jp2.c:3039
jp2_dump
void jp2_dump(opj_jp2_t *p_jp2, OPJ_INT32 flag, FILE *out_stream)
Dump some elements from the JP2 decompression structure .
Definition jp2.c:3197
opj_jp2_start_compress
OPJ_BOOL opj_jp2_start_compress(opj_jp2_t *jp2, opj_stream_private_t *stream, opj_image_t *p_image, opj_event_mgr_t *p_manager)
Starts a compression scheme, i.e.
Definition jp2.c:2459
opj_jp2_setup_decoder
void opj_jp2_setup_decoder(opj_jp2_t *jp2, opj_dparameters_t *parameters)
Setup the decoder decoding parameters using user parameters.
Definition jp2.c:1879
opj_jp2_set_decoded_resolution_factor
OPJ_BOOL opj_jp2_set_decoded_resolution_factor(opj_jp2_t *p_jp2, OPJ_UINT32 res_factor, opj_event_mgr_t *p_manager)
Definition jp2.c:3217
opj_jp2_end_decompress
OPJ_BOOL opj_jp2_end_decompress(opj_jp2_t *jp2, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Ends the decompression procedures and possibiliy add data to be read after the codestream.
Definition jp2.c:2108
opj_jp2_cmap_comp_t
struct opj_jp2_cmap_comp opj_jp2_cmap_comp_t
Component mappings: channel index, mapping type, palette index.
JP2_IMG_STATE
JP2_IMG_STATE
Definition jp2.h:84
JP2_IMG_STATE_UNKNOWN
@ JP2_IMG_STATE_UNKNOWN
Definition jp2.h:86
JP2_IMG_STATE_NONE
@ JP2_IMG_STATE_NONE
Definition jp2.h:85
opj_jp2_read_tile_header
OPJ_BOOL opj_jp2_read_tile_header(opj_jp2_t *p_jp2, 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_go_on, opj_stream_private_t *p_stream, opj_event_mgr_t *p_manager)
Reads a tile header.
Definition jp2.c:2990
opj_jp2_set_decode_area
OPJ_BOOL opj_jp2_set_decode_area(opj_jp2_t *p_jp2, 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, opj_event_mgr_t *p_manager)
Sets the given area to be decoded.
Definition jp2.c:3117
opj_jp2_color_t
struct opj_jp2_color opj_jp2_color_t
Collector for ICC profile, palette, component mapping, channel description.
opj_jp2_t
struct opj_jp2 opj_jp2_t
JPEG-2000 file format reader/writer.
opj_jp2_comps_t
struct opj_jp2_comps opj_jp2_comps_t
JP2 component.
opj_jp2_create
opj_jp2_t * opj_jp2_create(OPJ_BOOL p_is_decoder)
Creates a jpeg2000 file decompressor.
Definition jp2.c:3155
opj_jp2_header_handler_t
struct opj_jp2_header_handler opj_jp2_header_handler_t
opj_jp2_get_tile
OPJ_BOOL opj_jp2_get_tile(opj_jp2_t *p_jp2, opj_stream_private_t *p_stream, opj_image_t *p_image, opj_event_mgr_t *p_manager, OPJ_UINT32 tile_index)
Definition jp2.c:3128
opj_jp2_read_header
OPJ_BOOL opj_jp2_read_header(opj_stream_private_t *p_stream, opj_jp2_t *jp2, opj_image_t **p_image, opj_event_mgr_t *p_manager)
Reads a jpeg2000 file header structure.
Definition jp2.c:2836
JP2_STATE
JP2_STATE
< Resolution box (super-box)
Definition jp2.h:73
JP2_STATE_CODESTREAM
@ JP2_STATE_CODESTREAM
Definition jp2.h:78
JP2_STATE_SIGNATURE
@ JP2_STATE_SIGNATURE
Definition jp2.h:75
JP2_STATE_NONE
@ JP2_STATE_NONE
Definition jp2.h:74
JP2_STATE_HEADER
@ JP2_STATE_HEADER
Definition jp2.h:77
JP2_STATE_UNKNOWN
@ JP2_STATE_UNKNOWN
Definition jp2.h:80
JP2_STATE_FILE_TYPE
@ JP2_STATE_FILE_TYPE
Definition jp2.h:76
JP2_STATE_END_CODESTREAM
@ JP2_STATE_END_CODESTREAM
Definition jp2.h:79
opj_jp2_encode
OPJ_BOOL opj_jp2_encode(opj_jp2_t *jp2, opj_stream_private_t *stream, opj_event_mgr_t *p_manager)
Encode an image into a JPEG-2000 file stream.
Definition jp2.c:2101
opj_jp2_setup_encoder
OPJ_BOOL opj_jp2_setup_encoder(opj_jp2_t *jp2, opj_cparameters_t *parameters, opj_image_t *image, opj_event_mgr_t *p_manager)
Setup the encoder parameters using the current image and using user parameters.
Definition jp2.c:1904
opj_jp2_write_tile
OPJ_BOOL opj_jp2_write_tile(opj_jp2_t *p_jp2, OPJ_UINT32 p_tile_index, OPJ_BYTE *p_data, OPJ_UINT32 p_data_size, opj_stream_private_t *p_stream, opj_event_mgr_t *p_manager)
Writes a tile.
Definition jp2.c:3014
opj_jp2_decode
OPJ_BOOL opj_jp2_decode(opj_jp2_t *jp2, opj_stream_private_t *p_stream, opj_image_t *p_image, opj_event_mgr_t *p_manager)
Decode an image from a JPEG-2000 file stream.
Definition jp2.c:1631
jp2_get_cstr_info
opj_codestream_info_v2_t * jp2_get_cstr_info(opj_jp2_t *p_jp2)
Get the codestream info from a JPEG2000 codec.
Definition jp2.c:3212
opj_jp2_pclr_t
struct opj_jp2_pclr opj_jp2_pclr_t
Palette data: table entries, palette columns.
opj_jp2_encoder_set_extra_options
OPJ_BOOL opj_jp2_encoder_set_extra_options(opj_jp2_t *p_jp2, const char *const *p_options, opj_event_mgr_t *p_manager)
Specify extra options for the encoder.
Definition jp2.c:3226
opj_jp2_cdef_info_t
struct opj_jp2_cdef_info opj_jp2_cdef_info_t
Channel description: channel index, type, association.
opj_jp2_set_threads
OPJ_BOOL opj_jp2_set_threads(opj_jp2_t *jp2, OPJ_UINT32 num_threads)
Allocates worker threads for the compressor/decompressor.
Definition jp2.c:1895
jp2_get_cstr_index
opj_codestream_index_t * jp2_get_cstr_index(opj_jp2_t *p_jp2)
Get the codestream index from a JPEG2000 codec.
Definition jp2.c:3207
opj_jp2_end_compress
OPJ_BOOL opj_jp2_end_compress(opj_jp2_t *jp2, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Ends the compression procedures and possibiliy add data to be read after the codestream.
Definition jp2.c:2131
opj_jp2_img_header_writer_handler_t
struct opj_jp2_img_header_writer_handler opj_jp2_img_header_writer_handler_t
opj_jp2_decode_tile
OPJ_BOOL opj_jp2_decode_tile(opj_jp2_t *p_jp2, OPJ_UINT32 p_tile_index, OPJ_BYTE *p_data, OPJ_UINT32 p_data_size, opj_stream_private_t *p_stream, opj_event_mgr_t *p_manager)
Decode tile data.
Definition jp2.c:3027
opj_jp2_box_t
struct opj_jp2_box opj_jp2_box_t
JP2 Box.
opj_dparameters_t
struct opj_dparameters opj_dparameters_t
Decompression parameters.
OPJ_UINT16
uint16_t OPJ_UINT16
Definition openjpeg.h:130
OPJ_BYTE
unsigned char OPJ_BYTE
Definition openjpeg.h:123
OPJ_INT32
int32_t OPJ_INT32
Definition openjpeg.h:131
OPJ_UINT32
uint32_t OPJ_UINT32
Definition openjpeg.h:132
opj_cparameters_t
struct opj_cparameters opj_cparameters_t
Compression parameters.
OPJ_OFF_T
int64_t OPJ_OFF_T
Definition openjpeg.h:136
opj_codestream_info_v2_t
struct opj_codestream_info_v2 opj_codestream_info_v2_t
Information structure about the codestream (FIXME should be expand and enhance).
opj_image_t
struct opj_image opj_image_t
Defines image data and characteristics.
OPJ_BOOL
int OPJ_BOOL
Definition openjpeg.h:116
opj_codestream_index_t
struct opj_codestream_index opj_codestream_index_t
Index structure of the codestream (FIXME should be expand and enhance).
opj_jp2_box
JP2 Box.
Definition jp2.h:198
opj_jp2_box::length
OPJ_UINT32 length
Definition jp2.h:199
opj_jp2_box::init_pos
OPJ_INT32 init_pos
Definition jp2.h:201
opj_jp2_box::type
OPJ_UINT32 type
Definition jp2.h:200
opj_jp2_cdef_info
Channel description: channel index, type, association.
Definition jp2.h:93
opj_jp2_cdef_info::typ
OPJ_UINT16 typ
Definition jp2.h:94
opj_jp2_cdef_info::cn
OPJ_UINT16 cn
Definition jp2.h:94
opj_jp2_cdef_info::asoc
OPJ_UINT16 asoc
Definition jp2.h:94
opj_jp2_cdef
Channel descriptions and number of descriptions.
Definition jp2.h:100
opj_jp2_cdef::info
opj_jp2_cdef_info_t * info
Definition jp2.h:101
opj_jp2_cdef::n
OPJ_UINT16 n
Definition jp2.h:102
opj_jp2_cmap_comp
Component mappings: channel index, mapping type, palette index.
Definition jp2.h:108
opj_jp2_cmap_comp::cmp
OPJ_UINT16 cmp
Definition jp2.h:109
opj_jp2_cmap_comp::pcol
OPJ_BYTE pcol
Definition jp2.h:110
opj_jp2_cmap_comp::mtyp
OPJ_BYTE mtyp
Definition jp2.h:110
opj_jp2_color
Collector for ICC profile, palette, component mapping, channel description.
Definition jp2.h:128
opj_jp2_color::jp2_cdef
opj_jp2_cdef_t * jp2_cdef
Definition jp2.h:132
opj_jp2_color::jp2_has_colr
OPJ_BYTE jp2_has_colr
Definition jp2.h:134
opj_jp2_color::icc_profile_buf
OPJ_BYTE * icc_profile_buf
Definition jp2.h:129
opj_jp2_color::jp2_pclr
opj_jp2_pclr_t * jp2_pclr
Definition jp2.h:133
opj_jp2_color::icc_profile_len
OPJ_UINT32 icc_profile_len
Definition jp2.h:130
opj_jp2_comps
JP2 component.
Definition jp2.h:140
opj_jp2_comps::bpcc
OPJ_UINT32 bpcc
Definition jp2.h:143
opj_jp2_comps::depth
OPJ_UINT32 depth
Definition jp2.h:141
opj_jp2_comps::sgnd
OPJ_UINT32 sgnd
Definition jp2.h:142
opj_jp2_header_handler
Definition jp2.h:204
opj_jp2_header_handler::handler
OPJ_BOOL(* handler)(opj_jp2_t *jp2, OPJ_BYTE *p_header_data, OPJ_UINT32 p_header_size, opj_event_mgr_t *p_manager)
Definition jp2.h:208
opj_jp2_header_handler::id
OPJ_UINT32 id
Definition jp2.h:206
opj_jp2_img_header_writer_handler
Definition jp2.h:216
opj_jp2_img_header_writer_handler::m_data
OPJ_BYTE * m_data
Definition jp2.h:220
opj_jp2_img_header_writer_handler::m_size
OPJ_UINT32 m_size
Definition jp2.h:222
opj_jp2_pclr
Palette data: table entries, palette columns.
Definition jp2.h:116
opj_jp2_pclr::channel_size
OPJ_BYTE * channel_size
Definition jp2.h:119
opj_jp2_pclr::entries
OPJ_UINT32 * entries
Definition jp2.h:117
opj_jp2_pclr::nr_channels
OPJ_BYTE nr_channels
Definition jp2.h:122
opj_jp2_pclr::cmap
opj_jp2_cmap_comp_t * cmap
Definition jp2.h:120
opj_jp2_pclr::nr_entries
OPJ_UINT16 nr_entries
Definition jp2.h:121
opj_jp2_pclr::channel_sign
OPJ_BYTE * channel_sign
Definition jp2.h:118
opj_jp2
JPEG-2000 file format reader/writer.
Definition jp2.h:149
opj_jp2::brand
OPJ_UINT32 brand
Definition jp2.h:171
opj_jp2::C
OPJ_UINT32 C
Definition jp2.h:164
opj_jp2::jp2_img_state
OPJ_UINT32 jp2_img_state
Definition jp2.h:185
opj_jp2::m_procedure_list
struct opj_procedure_list * m_procedure_list
list of execution procedures
Definition jp2.h:155
opj_jp2::precedence
OPJ_UINT32 precedence
Definition jp2.h:170
opj_jp2::approx
OPJ_UINT32 approx
Definition jp2.h:168
opj_jp2::h
OPJ_UINT32 h
Definition jp2.h:160
opj_jp2::j2k_codestream_offset
OPJ_OFF_T j2k_codestream_offset
Definition jp2.h:181
opj_jp2::m_validation_list
struct opj_procedure_list * m_validation_list
list of validation procedures
Definition jp2.h:153
opj_jp2::numcomps
OPJ_UINT32 numcomps
Definition jp2.h:162
opj_jp2::j2k
opj_j2k_t * j2k
handle to the J2K codec
Definition jp2.h:151
opj_jp2::minversion
OPJ_UINT32 minversion
Definition jp2.h:172
opj_jp2::comps
opj_jp2_comps_t * comps
Definition jp2.h:175
opj_jp2::color
opj_jp2_color_t color
Definition jp2.h:187
opj_jp2::has_jp2h
OPJ_BYTE has_jp2h
Definition jp2.h:190
opj_jp2::IPR
OPJ_UINT32 IPR
Definition jp2.h:166
opj_jp2::cl
OPJ_UINT32 * cl
Definition jp2.h:174
opj_jp2::jp2_state
OPJ_UINT32 jp2_state
Definition jp2.h:184
opj_jp2::numcl
OPJ_UINT32 numcl
Definition jp2.h:173
opj_jp2::has_ihdr
OPJ_BYTE has_ihdr
Definition jp2.h:191
opj_jp2::meth
OPJ_UINT32 meth
Definition jp2.h:167
opj_jp2::ignore_pclr_cmap_cdef
OPJ_BOOL ignore_pclr_cmap_cdef
Definition jp2.h:189
opj_jp2::jpip_iptr_offset
OPJ_OFF_T jpip_iptr_offset
Definition jp2.h:182
opj_jp2::UnkC
OPJ_UINT32 UnkC
Definition jp2.h:165
opj_jp2::bpc
OPJ_UINT32 bpc
Definition jp2.h:163
opj_jp2::w
OPJ_UINT32 w
Definition jp2.h:158
opj_jp2::jpip_on
OPJ_BOOL jpip_on
Definition jp2.h:183
opj_jp2::enumcs
OPJ_UINT32 enumcs
Definition jp2.h:169
opj_procedure_list
A list of procedures.
Definition function_list.h:57