OpenJPEG: t2.h Source File

OpenJPEG 2.3.1

t2.h
Go to the documentation of this file.
1 /*
2 * The copyright in this software is being made available under the 2-clauses
3 * BSD License, included below. This software may be subject to other third
4 * party and contributor rights, including patent rights, and no such rights
5 * are granted under this license.
6 *
7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
8 * Copyright (c) 2002-2014, Professor Benoit Macq
9 * Copyright (c) 2001-2003, David Janssens
10 * Copyright (c) 2002-2003, Yannick Verschueren
11 * Copyright (c) 2003-2007, Francois-Olivier Devaux
12 * Copyright (c) 2003-2014, Antonin Descampe
13 * Copyright (c) 2005, Herve Drolon, FreeImage Team
14 * Copyright (c) 2008, 2011-2012, Centre National d'Etudes Spatiales (CNES), FR
15 * Copyright (c) 2012, CS Systemes d'Information, France
16 * Copyright (c) 2017, IntoPIX SA <support@intopix.com>
17 * All rights reserved.
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions
21 * are met:
22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
29 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
32 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 * POSSIBILITY OF SUCH DAMAGE.
39 */
40 #ifndef OPJ_T2_H
41 #define OPJ_T2_H
42
50
54 typedef struct opj_t2 {
55
57 opj_image_t *image;
59 opj_cp_t *cp;
60 } opj_t2_t;
61
64 /* ----------------------------------------------------------------------- */
65
83 OPJ_BOOL opj_t2_encode_packets(opj_t2_t* t2,
84 OPJ_UINT32 tileno,
85 opj_tcd_tile_t *tile,
86 OPJ_UINT32 maxlayers,
87 OPJ_BYTE *dest,
88 OPJ_UINT32 * p_data_written,
89 OPJ_UINT32 len,
90 opj_codestream_info_t *cstr_info,
91 opj_tcd_marker_info_t* p_marker_info,
92 OPJ_UINT32 tpnum,
93 OPJ_INT32 tppos,
94 OPJ_UINT32 pino,
95 J2K_T2_MODE t2_mode,
96 opj_event_mgr_t *p_manager);
97
112 OPJ_BOOL opj_t2_decode_packets(opj_tcd_t* tcd,
113 opj_t2_t *t2,
114 OPJ_UINT32 tileno,
115 opj_tcd_tile_t *tile,
116 OPJ_BYTE *src,
117 OPJ_UINT32 * p_data_read,
118 OPJ_UINT32 len,
119 opj_codestream_index_t *cstr_info,
120 opj_event_mgr_t *p_manager);
121
129 opj_t2_t* opj_t2_create(opj_image_t *p_image, opj_cp_t *p_cp);
130
135 void opj_t2_destroy(opj_t2_t *t2);
136
137 /* ----------------------------------------------------------------------- */
141
142 #endif /* OPJ_T2_H */
opj_tcp::num_layers_to_decode
OPJ_UINT32 num_layers_to_decode
Definition: j2k.h:248
opj_tcd_precinct::cw
OPJ_UINT32 cw
Definition: tcd.h:145
opj_get_encoding_packet_count
OPJ_UINT32 opj_get_encoding_packet_count(const opj_image_t *p_image, const opj_cp_t *p_cp, OPJ_UINT32 p_tile_no)
Return the number of packets in the tile.
Definition: pi.c:1592
OPJ_BYTE
unsigned char OPJ_BYTE
Definition: openjpeg.h:117
opj_tile_info::packet
opj_packet_info_t * packet
information concerning packets inside tile
Definition: openjpeg.h:825
opj_bio_numbytes
ptrdiff_t opj_bio_numbytes(opj_bio_t *bio)
Number of bytes written.
Definition: bio.c:142
opj_pi_iterator
Packet iterator.
Definition: pi.h:73
opj_calloc
void * opj_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
opj_bio_init_enc
void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init encoder.
Definition: bio.c:147
opj_tcd_cblk_enc
FIXME DOC.
Definition: tcd.h:77
opj_int_floorlog2
static INLINE OPJ_INT32 opj_int_floorlog2(OPJ_INT32 a)
Get logarithm of an integer and round downwards.
Definition: opj_intmath.h:225
opj_t2_destroy
void opj_t2_destroy(opj_t2_t *t2)
Destroy a T2 handle.
Definition: t2.c:614
opj_t2_skip_packet_data
static OPJ_BOOL opj_t2_skip_packet_data(opj_t2_t *p_t2, opj_tcd_tile_t *p_tile, opj_pi_iterator_t *p_pi, OPJ_UINT32 *p_data_read, OPJ_UINT32 p_max_length, opj_packet_info_t *pack_info, opj_event_mgr_t *p_manager)
Definition: t2.c:1465
opj_tcd_band::x0
OPJ_INT32 x0
Definition: tcd.h:159
opj_pi_iterator::compno
OPJ_UINT32 compno
component that identify the packet
Definition: pi.h:89
opj_tcd_seg
Segment of a code-block.
Definition: tcd.h:105
opj_pi_destroy
void opj_pi_destroy(opj_pi_iterator_t *p_pi, OPJ_UINT32 p_nb_elements)
Destroys a packet iterator array.
Definition: pi.c:2071
opj_int_min
static INLINE OPJ_INT32 opj_int_min(OPJ_INT32 a, OPJ_INT32 b)
Get the minimum of two integers.
Definition: opj_intmath.h:56
opj_tcd_seg::maxpasses
OPJ_UINT32 maxpasses
Definition: tcd.h:112
opj_codestream_info::index_write
int index_write
writing the packet in the index with t2_encode_packets
Definition: openjpeg.h:851
opj_bio_flush
OPJ_BOOL opj_bio_flush(opj_bio_t *bio)
Flush bits.
Definition: bio.c:195
opj_cp::m_enc
opj_encoding_param_t m_enc
Definition: j2k.h:397
opj_codestream_info::D_max
double D_max
maximum distortion reduction on the whole image (add for Marcela)
Definition: openjpeg.h:847
opj_tcd_cblk_dec::numchunks
OPJ_UINT32 numchunks
Definition: tcd.h:135
opj_t2_getcommacode
static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio)
Definition: t2.c:175
opj_tcd_seg::real_num_passes
OPJ_UINT32 real_num_passes
Definition: tcd.h:110
opj_tcd_precinct::y1
OPJ_INT32 y1
Definition: tcd.h:144
opj_t2::image
opj_image_t * image
Encoding: pointer to the src image.
Definition: t2.h:57
OPJ_J2K_DEFAULT_NB_SEGS
#define OPJ_J2K_DEFAULT_NB_SEGS
Definition: openjpeg.h:149
opj_tcd_cblk_enc::passes
opj_tcd_pass_t * passes
Definition: tcd.h:80
opj_common.h
opj_image::numcomps
OPJ_UINT32 numcomps
number of components in the image
Definition: openjpeg.h:713
opj_tcd_band::precincts_data_size
OPJ_UINT32 precincts_data_size
Definition: tcd.h:165
opj_tcd_cblk_enc::layers
opj_tcd_layer_t * layers
Definition: tcd.h:79
opj_bio_read
OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n)
Read bits.
Definition: bio.c:175
opj_t2
Tier-2 coding.
Definition: t2.h:54
opj_tcd_resolution::bands
opj_tcd_band_t bands[3]
Definition: tcd.h:179
THRESH_CALC
@ THRESH_CALC
Definition: j2k.h:158
opj_event_msg
OPJ_BOOL opj_event_msg(opj_event_mgr_t *p_event_mgr, OPJ_INT32 event_type, const char *fmt,...)
Write formatted data to a string and send the string to a user callback.
Definition: event.c:91
opj_cp::ppm_len
OPJ_UINT32 ppm_len
size of the ppm_data
Definition: j2k.h:375
opj_bio_create
opj_bio_t * opj_bio_create(void)
Create a new BIO handle.
Definition: bio.c:129
J2K_CCP_CBLKSTY_LAZY
#define J2K_CCP_CBLKSTY_LAZY
Selective arithmetic coding bypass.
Definition: j2k.h:58
opj_t2_getnumpasses
static OPJ_UINT32 opj_t2_getnumpasses(opj_bio_t *bio)
Definition: t2.c:199
OPJ_ARG_NOT_USED
#define OPJ_ARG_NOT_USED(x)
Definition: openjpeg.h:136
opj_tcp::ppt
OPJ_BITFIELD ppt
If ppt == 1 --> there was a PPT marker for the present tile.
Definition: j2k.h:307
opj_t2_skip_packet
static OPJ_BOOL opj_t2_skip_packet(opj_t2_t *p_t2, opj_tcd_tile_t *p_tile, opj_tcp_t *p_tcp, opj_pi_iterator_t *p_pi, OPJ_BYTE *p_src, OPJ_UINT32 *p_data_read, OPJ_UINT32 p_max_length, opj_packet_info_t *p_pack_info, opj_event_mgr_t *p_manager)
Definition: t2.c:1007
OPJ_PROFILE_CINEMA_4K
#define OPJ_PROFILE_CINEMA_4K
Definition: openjpeg.h:199
opj_packet_info::disto
double disto
packet distorsion
Definition: openjpeg.h:768
opj_tcd_band::y1
OPJ_INT32 y1
Definition: tcd.h:159
tcp
@ tcp
Definition: query_parser.h:41
opj_bio_destroy
void opj_bio_destroy(opj_bio_t *bio)
Destroy a previously created BIO handle.
Definition: bio.c:135
opj_tcp::ppt_data
OPJ_BYTE * ppt_data
packet header store there for future use in t2_decode_packet
Definition: j2k.h:264
opj_tcd_band::x1
OPJ_INT32 x1
Definition: tcd.h:159
opj_cp::ppm
OPJ_BITFIELD ppm
if ppm == 1 --> there was a PPM marker
Definition: j2k.h:448
opj_event_mgr
Message handler object used for.
Definition: event.h:50
opj_tcd_resolution::ph
OPJ_UINT32 ph
Definition: tcd.h:175
opj_bio_init_dec
void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init decoder.
Definition: bio.c:156
opj_tcd_pass::len
OPJ_UINT32 len
Definition: tcd.h:60
opj_encoding_param::m_max_comp_size
OPJ_UINT32 m_max_comp_size
Maximum rate for each component.
Definition: j2k.h:317
opj_bio_write
void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n)
Write bits.
Definition: bio.c:165
opj_image_comp
Defines a single image component.
Definition: openjpeg.h:671
opj_tcd_tilecomp::resolutions
opj_tcd_resolution_t * resolutions
Definition: tcd.h:199
opj_t2_encode_packets
OPJ_BOOL opj_t2_encode_packets(opj_t2_t *p_t2, OPJ_UINT32 p_tile_no, opj_tcd_tile_t *p_tile, OPJ_UINT32 p_maxlayers, OPJ_BYTE *p_dest, OPJ_UINT32 *p_data_written, OPJ_UINT32 p_max_len, opj_codestream_info_t *cstr_info, opj_tcd_marker_info_t *p_marker_info, OPJ_UINT32 p_tp_num, OPJ_INT32 p_tp_pos, OPJ_UINT32 p_pino, J2K_T2_MODE p_t2_mode, opj_event_mgr_t *p_manager)
Encode the packets of a tile to a destination buffer.
Definition: t2.c:219
opj_tcd_reinit_segment
void opj_tcd_reinit_segment(opj_tcd_seg_t *seg)
Reinitialize a segment.
Definition: tcd.c:1280
opj_cp
Coding parameters.
Definition: j2k.h:347
opj_tcd_resolution::pw
OPJ_UINT32 pw
Definition: tcd.h:175
opj_t2_putcommacode
static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n)
Definition: t2.c:167
opj_tcp::csty
OPJ_UINT32 csty
coding style
Definition: j2k.h:243
opj_packet_info::start_pos
OPJ_OFF_T start_pos
packet start position (including SOP marker if it exists)
Definition: openjpeg.h:762
EVT_WARNING
#define EVT_WARNING
Warning event type.
Definition: event.h:67
opj_t2_create
opj_t2_t * opj_t2_create(opj_image_t *p_image, opj_cp_t *p_cp)
Creates a Tier 2 handle.
Definition: t2.c:600
opj_tgt_encode
void opj_tgt_encode(opj_bio_t *bio, opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 threshold)
Encode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:264
opj_t2_read_packet_data
static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t *p_t2, opj_tcd_tile_t *p_tile, opj_pi_iterator_t *p_pi, OPJ_BYTE *p_src_data, OPJ_UINT32 *p_data_read, OPJ_UINT32 p_max_length, opj_packet_info_t *pack_info, opj_event_mgr_t *p_manager)
Definition: t2.c:1335
opj_tcd_layer
FIXME DOC.
Definition: tcd.h:67
opj_tcp::numpocs
OPJ_UINT32 numpocs
number of progression order changes
Definition: j2k.h:254
opj_tcd_tilecomp::minimum_num_resolutions
OPJ_UINT32 minimum_num_resolutions
Definition: tcd.h:197
opj_tcd_precinct::x1
OPJ_INT32 x1
Definition: tcd.h:144
opj_tile_info::end_header
int end_header
end position of the header
Definition: openjpeg.h:813
OPJ_BOOL
int OPJ_BOOL
Definition: openjpeg.h:110
opj_t2_t
struct opj_t2 opj_t2_t
Tier-2 coding.
opj_tcd_precinct::enc
opj_tcd_cblk_enc_t * enc
Definition: tcd.h:147
opj_cp::tcps
opj_tcp_t * tcps
tile coding parameters
Definition: j2k.h:393
OPJ_SIZE_T
size_t OPJ_SIZE_T
Definition: openjpeg.h:133
opj_tcd_precinct::imsbtree
opj_tgt_tree_t * imsbtree
Definition: tcd.h:153
opj_poc::prg
OPJ_PROG_ORDER prg
Definition: openjpeg.h:367
opj_tcd_precinct
Precinct structure.
Definition: tcd.h:142
OPJ_PROG_UNKNOWN
@ OPJ_PROG_UNKNOWN
place-holder
Definition: openjpeg.h:298
opj_pi_iterator::precno
OPJ_UINT32 precno
precinct that identify the packet
Definition: pi.h:93
opj_includes.h
opj_bio
Individual bit input-output stream (BIO)
Definition: bio.h:56
opj_packet_info::end_ph_pos
OPJ_OFF_T end_ph_pos
end of packet header position (including EPH marker if it exists)
Definition: openjpeg.h:764
opj_tgt_reset
void opj_tgt_reset(opj_tgt_tree_t *p_tree)
Reset a tag-tree (set all leaves to 0)
Definition: tgt.c:236
opj_tcd_precinct::x0
OPJ_INT32 x0
Definition: tcd.h:144
opj_pi_create_encode
void opj_pi_create_encode(opj_pi_iterator_t *pi, opj_cp_t *cp, OPJ_UINT32 tileno, OPJ_UINT32 pino, OPJ_UINT32 tpnum, OPJ_INT32 tppos, J2K_T2_MODE t2_mode)
Modify the packet iterator for enabling tile part generation.
Definition: pi.c:1808
opj_tcd_precinct::incltree
opj_tgt_tree_t * incltree
Definition: tcd.h:152
opj_tcd_pass
FIXME DOC.
Definition: tcd.h:57
opj_tcd_resolution
Tile-component resolution structure.
Definition: tcd.h:171
opj_t2_decode_packet
static OPJ_BOOL opj_t2_decode_packet(opj_t2_t *t2, opj_tcd_tile_t *tile, opj_tcp_t *tcp, opj_pi_iterator_t *pi, OPJ_BYTE *src, OPJ_UINT32 *data_read, OPJ_UINT32 max_length, opj_packet_info_t *pack_info, opj_event_mgr_t *p_manager)
Decode a packet of a tile from a source buffer.
Definition: t2.c:621
opj_codestream_index::tile_index
opj_tile_index_t * tile_index
Definition: openjpeg.h:1052
opj_tcd_tilecomp
Tile-component structure.
Definition: tcd.h:189
J2K_T2_MODE
enum T2_MODE J2K_T2_MODE
T2 encoding mode.
opj_tcd_band
Sub-band structure.
Definition: tcd.h:157
opj_encoding_param::m_tp_on
OPJ_BITFIELD m_tp_on
Enabling Tile part generation.
Definition: j2k.h:331
opj_tcd_resolution::numbands
OPJ_UINT32 numbands
Definition: tcd.h:177
opj_pi_initialise_encode
opj_pi_iterator_t * opj_pi_initialise_encode(const opj_image_t *p_image, opj_cp_t *p_cp, OPJ_UINT32 p_tile_no, J2K_T2_MODE p_t2_mode, opj_event_mgr_t *manager)
Creates a packet iterator for encoding.
Definition: pi.c:1615
OPJ_INT32
int32_t OPJ_INT32
Definition: openjpeg.h:125
opj_tcd_cblk_dec::m_current_max_segs
OPJ_UINT32 m_current_max_segs
Definition: tcd.h:134
opj_uint_floorlog2
static INLINE OPJ_UINT32 opj_uint_floorlog2(OPJ_UINT32 a)
Get logarithm of an integer and round downwards.
Definition: opj_intmath.h:237
opj_cp::ppm_data
OPJ_BYTE * ppm_data
packet header store there for future use in t2_decode_packet
Definition: j2k.h:373
opj_tcd_pass::term
OPJ_BITFIELD term
Definition: tcd.h:61
opj_tcd_marker_info::packet_count
OPJ_UINT32 packet_count
OUT: Number of elements in p_packet_size[] array.
Definition: tcd.h:296
opj_tcd_cblk_enc::numlenbits
OPJ_UINT32 numlenbits
Definition: tcd.h:84
opj_realloc
void * opj_realloc(void *ptr, size_t new_size)
Reallocate memory blocks.
Definition: opj_malloc.c:239
opj_tcp::POC
OPJ_BITFIELD POC
indicates if a POC marker has been used O:NO, 1:YES
Definition: j2k.h:309
opj_tcd_cblk_dec::numchunksalloc
OPJ_UINT32 numchunksalloc
Definition: tcd.h:136
opj_codestream_info::packno
int packno
packet number
Definition: openjpeg.h:849
opj_tcd_band::precincts
opj_tcd_precinct_t * precincts
Definition: tcd.h:163
opj_tcd_cblk_dec::numlenbits
OPJ_UINT32 numlenbits
Definition: tcd.h:127
OPJ_TRUE
#define OPJ_TRUE
Definition: openjpeg.h:111
opj_t2_decode_packets
OPJ_BOOL opj_t2_decode_packets(opj_tcd_t *tcd, opj_t2_t *p_t2, OPJ_UINT32 p_tile_no, opj_tcd_tile_t *p_tile, OPJ_BYTE *p_src, OPJ_UINT32 *p_data_read, OPJ_UINT32 p_max_len, opj_codestream_index_t *p_cstr_index, opj_event_mgr_t *p_manager)
Decode the packets of a tile from a source buffer.
Definition: t2.c:393
opj_uint_max
static INLINE OPJ_UINT32 opj_uint_max(OPJ_UINT32 a, OPJ_UINT32 b)
Get the maximum of two integers.
Definition: opj_intmath.h:83
opj_malloc
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
opj_tcd_seg::numnewpasses
OPJ_UINT32 numnewpasses
Definition: tcd.h:114
opj_t2_read_packet_header
static OPJ_BOOL opj_t2_read_packet_header(opj_t2_t *p_t2, opj_tcd_tile_t *p_tile, opj_tcp_t *p_tcp, opj_pi_iterator_t *p_pi, OPJ_BOOL *p_is_data_present, OPJ_BYTE *p_src_data, OPJ_UINT32 *p_data_read, OPJ_UINT32 p_max_length, opj_packet_info_t *p_pack_info, opj_event_mgr_t *p_manager)
Definition: t2.c:1049
opj_tile_v2_info
Tile coding parameters information.
Definition: openjpeg.h:935
J2K_CP_CSTY_SOP
#define J2K_CP_CSTY_SOP
Definition: j2k.h:55
opj_free
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
J2K_CP_CSTY_EPH
#define J2K_CP_CSTY_EPH
Definition: j2k.h:56
opj_t2_encode_packets
OPJ_BOOL opj_t2_encode_packets(opj_t2_t *t2, OPJ_UINT32 tileno, opj_tcd_tile_t *tile, OPJ_UINT32 maxlayers, OPJ_BYTE *dest, OPJ_UINT32 *p_data_written, OPJ_UINT32 len, opj_codestream_info_t *cstr_info, opj_tcd_marker_info_t *p_marker_info, OPJ_UINT32 tpnum, OPJ_INT32 tppos, OPJ_UINT32 pino, J2K_T2_MODE t2_mode, opj_event_mgr_t *p_manager)
Encode the packets of a tile to a destination buffer.
Definition: t2.c:219
opj_tcd_cblk_enc::numbps
OPJ_UINT32 numbps
Definition: tcd.h:83
opj_tcd_seg_data_chunk
Chunk of codestream data that is part of a code block.
Definition: tcd.h:94
opj_image_comp::resno_decoded
OPJ_UINT32 resno_decoded
number of decoded resolution
Definition: openjpeg.h:691
opj_tcd_precinct::cblks
union opj_tcd_precinct::@3 cblks
opj_codestream_index
Index structure of the codestream (FIXME should be expand and enhance)
Definition: openjpeg.h:1031
opj_cp::rsiz
OPJ_UINT16 rsiz
Size of the image in bits.
Definition: j2k.h:351
opj_null_jas_fprintf
static void opj_null_jas_fprintf(FILE *file, const char *format,...)
Definition: t2.c:385
opj_tcd_precinct::y0
OPJ_INT32 y0
Definition: tcd.h:144
opj_tcd_marker_info::need_PLT
OPJ_BOOL need_PLT
In: Whether information to generate PLT markers in needed.
Definition: tcd.h:293
opj_packet_info
Index structure : Information concerning a packet inside tile.
Definition: openjpeg.h:760
opj_tcd_is_band_empty
OPJ_BOOL opj_tcd_is_band_empty(opj_tcd_band_t *band)
Returns whether a sub-band is empty (i.e.
Definition: tcd.c:2707
opj_tcd_cblk_enc::numpasses
OPJ_UINT32 numpasses
Definition: tcd.h:87
opj_tcp
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: j2k.h:241
opj_tcp::tccps
opj_tccp_t * tccps
tile-component coding parameters
Definition: j2k.h:274
opj_tcp::ppt_len
OPJ_UINT32 ppt_len
size of ppt_data
Definition: j2k.h:270
opj_t2_destroy
void opj_t2_destroy(opj_t2_t *t2)
Destroy a T2 handle.
Definition: t2.c:614
opj_tcd_is_subband_area_of_interest
OPJ_BOOL opj_tcd_is_subband_area_of_interest(opj_tcd_t *tcd, OPJ_UINT32 compno, OPJ_UINT32 resno, OPJ_UINT32 bandno, OPJ_UINT32 band_x0, OPJ_UINT32 band_y0, OPJ_UINT32 band_x1, OPJ_UINT32 band_y1)
Returns whether a sub-band region contributes to the area of interest tcd->win_x0,...
Definition: tcd.c:2712
opj_tcd_seg_data_chunk::len
OPJ_UINT32 len
Definition: tcd.h:99
opj_tcd_marker_info::p_packet_size
OPJ_UINT32 * p_packet_size
OUT: Array of size packet_count, such that p_packet_size[i] is the size in bytes of the ith packet.
Definition: tcd.h:300
opj_tcd_layer::numpasses
OPJ_UINT32 numpasses
Definition: tcd.h:68
opj_pi_next
OPJ_BOOL opj_pi_next(opj_pi_iterator_t *pi)
Modify the packet iterator to point to the next packet.
Definition: pi.c:2136
opj_tccp::cblksty
OPJ_UINT32 cblksty
code-block coding style
Definition: j2k.h:185
opj_pi_iterator::resno
OPJ_UINT32 resno
resolution that identify the packet
Definition: pi.h:91
opj_int_max
static INLINE OPJ_INT32 opj_int_max(OPJ_INT32 a, OPJ_INT32 b)
Get the maximum of two integers.
Definition: opj_intmath.h:74
opj_tcd_band::y0
OPJ_INT32 y0
Definition: tcd.h:159
opj_tgt_decode
OPJ_UINT32 opj_tgt_decode(opj_bio_t *bio, opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 threshold)
Decode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:307
opj_tcd_cblk_dec
Code-block for decoding.
Definition: tcd.h:120
opj_tcd_band::numbps
OPJ_INT32 numbps
Definition: tcd.h:166
opj_t2_init_seg
static OPJ_BOOL opj_t2_init_seg(opj_tcd_cblk_dec_t *cblk, OPJ_UINT32 index, OPJ_UINT32 cblksty, OPJ_UINT32 first)
Definition: t2.c:1571
opj_tgt_setvalue
void opj_tgt_setvalue(opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 value)
Set the value of a leaf of a tag-tree.
Definition: tgt.c:254
opj_tcd_tile
FIXME DOC.
Definition: tcd.h:228
opj_bio_inalign
OPJ_BOOL opj_bio_inalign(opj_bio_t *bio)
Passes the ending bits (coming from flushing)
Definition: bio.c:208
opj_image::comps
opj_image_comp_t * comps
image components
Definition: openjpeg.h:717
opj_tcd_tile::packno
OPJ_UINT32 packno
Definition: tcd.h:236
opj_tcd_layer::len
OPJ_UINT32 len
Definition: tcd.h:69
opj_codestream_info::tile
opj_tile_info_t * tile
information regarding tiles inside image
Definition: openjpeg.h:891
opj_t2::cp
opj_cp_t * cp
pointer to the image coding parameters
Definition: t2.h:59
opj_tcd_seg::len
OPJ_UINT32 len
Definition: tcd.h:106
opj_packet_info::end_pos
OPJ_OFF_T end_pos
packet end position
Definition: openjpeg.h:766
opj_tcd_layer::disto
OPJ_FLOAT64 disto
Definition: tcd.h:70
FINAL_PASS
@ FINAL_PASS
Function called in Rate allocation process.
Definition: j2k.h:159
opj_codestream_info
Index structure of the codestream.
Definition: openjpeg.h:845
opj_tcd_layer::data
OPJ_BYTE * data
Definition: tcd.h:71
EVT_ERROR
#define EVT_ERROR
Error event type.
Definition: event.h:66
OPJ_UINT32
uint32_t OPJ_UINT32
Definition: openjpeg.h:126
opj_tcd_band::bandno
OPJ_UINT32 bandno
Definition: tcd.h:161
opj_tcd_cblk_dec::real_num_segs
OPJ_UINT32 real_num_segs
Definition: tcd.h:133
opj_tile_info
Index structure : information regarding tiles.
Definition: openjpeg.h:805
opj_tcd_cblk_dec::chunks
opj_tcd_seg_data_chunk_t * chunks
Definition: tcd.h:122
opj_tcd_seg_data_chunk::data
OPJ_BYTE * data
Definition: tcd.h:98
JAS_FPRINTF
#define JAS_FPRINTF
Definition: t2.c:390
opj_tcd_seg::numpasses
OPJ_UINT32 numpasses
Definition: tcd.h:108
opj_tcd_cblk_dec::segs
opj_tcd_seg_t * segs
Definition: tcd.h:121
OPJ_FALSE
#define OPJ_FALSE
Definition: openjpeg.h:112
opj_poc::prg1
OPJ_PROG_ORDER prg1
Progression order enum.
Definition: openjpeg.h:367
opj_tcd_cblk_dec::numnewpasses
OPJ_UINT32 numnewpasses
Definition: tcd.h:129
opj_t2_decode_packets
OPJ_BOOL opj_t2_decode_packets(opj_tcd_t *tcd, opj_t2_t *t2, OPJ_UINT32 tileno, opj_tcd_tile_t *tile, OPJ_BYTE *src, OPJ_UINT32 *p_data_read, OPJ_UINT32 len, opj_codestream_index_t *cstr_info, opj_event_mgr_t *p_manager)
Decode the packets of a tile from a source buffer.
Definition: t2.c:393
J2K_CCP_CBLKSTY_TERMALL
#define J2K_CCP_CBLKSTY_TERMALL
Termination on each coding pass.
Definition: j2k.h:60
opj_tcd_cblk_dec::numbps
OPJ_UINT32 numbps
Definition: tcd.h:125
opj_tcd_precinct::dec
opj_tcd_cblk_dec_t * dec
Definition: tcd.h:148
opj_t2_putnumpasses
static void opj_t2_putnumpasses(opj_bio_t *bio, OPJ_UINT32 n)
Variable length code for signalling delta Zil (truncation point)
Definition: t2.c:184
opj_tcd_marker_info
Structure to hold information needed to generate some markers.
Definition: tcd.h:291
opj_image
Defines image data and characteristics.
Definition: openjpeg.h:703
opj_tcd_tile::comps
opj_tcd_tilecomp_t * comps
Definition: tcd.h:232
opj_pi_create_decode
opj_pi_iterator_t * opj_pi_create_decode(opj_image_t *p_image, opj_cp_t *p_cp, OPJ_UINT32 p_tile_no, opj_event_mgr_t *manager)
Create a packet iterator for Decoder.
Definition: pi.c:1393
opj_t2_create
opj_t2_t * opj_t2_create(opj_image_t *p_image, opj_cp_t *p_cp)
Creates a Tier 2 handle.
Definition: t2.c:600
opj_pi_iterator::poc
opj_poc_t poc
progression order change information
Definition: pi.h:99
opj_tcd_cblk_dec::numsegs
OPJ_UINT32 numsegs
Definition: tcd.h:131
opj_tcd_precinct::ch
OPJ_UINT32 ch
Definition: tcd.h:145
opj_tcd
Tile coder/decoder.
Definition: tcd.h:251
opj_cp::m_specific_param
union opj_cp::@0 m_specific_param
opj_t2_encode_packet
static OPJ_BOOL opj_t2_encode_packet(OPJ_UINT32 tileno, opj_tcd_tile_t *tile, opj_tcp_t *tcp, opj_pi_iterator_t *pi, OPJ_BYTE *dest, OPJ_UINT32 *p_data_written, OPJ_UINT32 len, opj_codestream_info_t *cstr_info, J2K_T2_MODE p_t2_mode, opj_event_mgr_t *p_manager)
Encode a packet of a tile to a destination buffer.
Definition: t2.c:663
opj_pi_iterator::layno
OPJ_UINT32 layno
layer that identify the packet
Definition: pi.h:95
opj_tcd_seg::newlen
OPJ_UINT32 newlen
Definition: tcd.h:116