int compE
Definition: openjpeg.h:220
FIXME: documentation.
Definition: pi.h:49
opj_packet_info_t * packet
information concerning packets inside tile
Definition: openjpeg.h:652
int first
0 if the first packet
Definition: pi.h:89
int numcomps
component numbers
Definition: openjpeg.h:698
Packet iterator.
Definition: pi.h:67
struct opj_pi_comp opj_pi_comp_t
FIXME: documentation.
int tw
number of tiles in X
Definition: openjpeg.h:694
OPJ_PROG_ORDER prg
progression order
Definition: j2k.h:172
int ty1
Definition: pi.h:96
int prcS
Definition: openjpeg.h:218
#define opj_free(m)
Deallocates or frees a memory block.
Definition: opj_malloc.h:152
int x1
Xsiz: width of the reference grid.
Definition: openjpeg.h:539
int ty0_t
Definition: openjpeg.h:224
#define opj_malloc(size)
Allocate an uninitialized memory block.
Definition: opj_malloc.h:51
static INLINE int int_max(int a, int b)
Get the maximum of two integers.
Definition: int.h:57
int layE
End value, initialised in pi_initialise_encode.
Definition: openjpeg.h:220
int ph[33]
precinct number for each resolution level (height)
Definition: openjpeg.h:646
@ PROG_UNKNOWN
place-holder
Definition: openjpeg.h:119
opj_bool pi_next(opj_pi_iterator_t *pi)
Modify the packet iterator to point to the next packet.
Definition: pi.c:710
int dy
Definition: pi.h:97
opj_pi_iterator_t * pi_initialise_encode(opj_image_t *image, opj_cp_t *cp, int tileno, J2K_T2_MODE t2_mode)
Create a packet iterator for Encoder.
Definition: pi.c:543
int type
Definition: jp2.h:152
int tdy
YTsiz.
Definition: j2k.h:238
int lay_t
Temporary values for Tile parts, initialised in pi_create_encode.
Definition: openjpeg.h:224
static opj_bool pi_next_rpcl(opj_pi_iterator_t *pi)
Get next packet in resolution-precinct-component-layer order.
Definition: pi.c:161
int tyS
Definition: openjpeg.h:222
opj_pi_comp_t * comps
Components.
Definition: pi.h:95
FIXME: documentation.
Definition: pi.h:57
int ty0
Definition: pi.h:96
int prch[J2K_MAXRLVLS]
precinct height
Definition: j2k.h:158
int dy
Definition: openjpeg.h:222
int compno1
Definition: openjpeg.h:206
static opj_bool pi_next_lrcp(opj_pi_iterator_t *pi)
Get next packet in layer-resolution-component-precinct order.
Definition: pi.c:82
int numlayers
number of layer
Definition: openjpeg.h:700
#define JPIP_PHIX
Definition: indexbox_manager.h:51
int csty
coding style
Definition: j2k.h:136
int layS
Start value, initialised in pi_initialise_encode.
Definition: openjpeg.h:218
@ PCRL
precinct-component-resolution-layer order
Definition: openjpeg.h:123
static opj_bool pi_next_cprl(opj_pi_iterator_t *pi)
Get next packet in component-precinct-resolution-layer order.
Definition: pi.c:325
int tx0_t
Definition: openjpeg.h:224
static INLINE int int_ceildiv(int a, int b)
Divide an integer and round upwards.
Definition: int.h:86
opj_bool pi_create_encode(opj_pi_iterator_t *pi, opj_cp_t *cp, int tileno, int pino, int tpnum, int tppos, J2K_T2_MODE t2_mode, int cur_totnum_tp)
Modify the packet iterator for enabling tile part generation.
Definition: pi.c:729
int compno0
Definition: openjpeg.h:204
int numresolutions
number of resolution levels
Definition: pi.h:60
struct opj_pi_resolution opj_pi_resolution_t
FIXME: documentation.
int layno0
Layer num start,Precinct num start, Precinct num end.
Definition: openjpeg.h:208
int txS
Start and end values of Tile width and height, initialised in pi_initialise_encode.
Definition: openjpeg.h:222
int start_pos
packet start position (including SOP marker if it exists)
Definition: openjpeg.h:589
int precno
precinct that identify the packet
Definition: pi.h:85
int dx
XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:505
#define opj_calloc(num, size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.h:63
int resE
Definition: openjpeg.h:220
int dx
Definition: pi.h:58
opj_pi_iterator_t * pi_create_decode(opj_image_t *image, opj_cp_t *cp, int tileno)
Create a packet iterator for Decoder.
Definition: pi.c:410
int step_c
component step used to localize the packet in the include vector
Definition: pi.h:77
int end_ph_pos
end of packet header position (including EPH marker if it exists)
Definition: openjpeg.h:591
Coding parameters.
Definition: j2k.h:204
opj_bool pi_next(opj_pi_iterator_t *pi)
Modify the packet iterator to point to the next packet.
Definition: pi.c:710
int resno0
Resolution num start, Component num start, given by POC.
Definition: openjpeg.h:204
int numlayers
number of layers
Definition: j2k.h:174
int layno
layer that identify the packet
Definition: pi.h:87
int x0
XOsiz: horizontal offset from the origin of the reference grid to the left side of the image area.
Definition: openjpeg.h:535
int prc_t
Definition: openjpeg.h:224
@ LRCP
layer-resolution-component-precinct order
Definition: openjpeg.h:120
int comp_t
Definition: openjpeg.h:224
opj_tcp_t * tcps
tile coding parameters
Definition: j2k.h:262
OPJ_PROG_ORDER prg
Definition: openjpeg.h:210
unsigned int cio_write(opj_cio_t *cio, unsigned int64 v, int n)
Write some bytes.
Definition: cio.c:167
void pi_destroy(opj_pi_iterator_t *pi, opj_cp_t *cp, int tileno)
Destroy a packet iterator.
Definition: pi.c:688
int tx1
Definition: pi.h:96
int ph
Definition: pi.h:51
Byte input-output stream (CIO)
Definition: openjpeg.h:475
int precno0
Definition: openjpeg.h:208
static opj_bool pi_next_pcrl(opj_pi_iterator_t *pi)
Get next packet in precinct-component-resolution-layer order.
Definition: pi.c:244
JP2 Box.
Definition: jp2.h:150
short int * include
precise if the packet has been already used (usefull for progression order change)
Definition: pi.h:71
int resno1
Definition: openjpeg.h:206
enum T2_MODE J2K_T2_MODE
T2 encoding mode.
opj_bool pi_create_encode(opj_pi_iterator_t *pi, opj_cp_t *cp, int tileno, int pino, int tpnum, int tppos, J2K_T2_MODE t2_mode, int cur_totnum_tp)
Modify the packet iterator for enabling tile part generation.
Definition: pi.c:729
int tw
number of tiles in width
Definition: j2k.h:242
int y0
YOsiz: vertical offset from the origin of the reference grid to the top side of the image area.
Definition: openjpeg.h:537
int tx0
XTOsiz.
Definition: j2k.h:232
int write_phix(int coff, opj_codestream_info_t cstr_info, opj_bool EPHused, int j2klen, opj_cio_t *cio)
Definition: phix_manager.c:53
static INLINE int int_min(int a, int b)
Get the minimum of two integers.
Definition: int.h:50
int numresolutions
number of resolutions
Definition: j2k.h:138
int txE
Definition: openjpeg.h:222
#define J2K_CCP_CSTY_PRT
Definition: j2k.h:47
int OPJ_CALLCONV cio_tell(opj_cio_t *cio)
Get position in byte stream.
Definition: cio.c:100
opj_pi_resolution_t * resolutions
Definition: pi.h:61
int dy
YRsiz: vertical separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:507
int resS
Definition: openjpeg.h:218
#define OPJ_TRUE
Definition: openjpeg.h:64
int ty1
Definition: openjpeg.h:216
int pdy
Definition: pi.h:50
static INLINE int int_ceildivpow2(int a, int b)
Divide an integer by a power of 2 and round upwards.
Definition: int.h:93
int pdx
Definition: pi.h:50
int step_r
resolution step used to localize the packet in the include vector
Definition: pi.h:75
int numpocs
number of progression order changes
Definition: j2k.h:180
int layno1
Layer num end,Resolution num end, Component num end, given by POC.
Definition: openjpeg.h:206
int prcE
Definition: openjpeg.h:220
void cio_skip(opj_cio_t *cio, int n)
Skip some bytes.
Definition: cio.c:198
int tx0
Definition: pi.h:96
void pi_destroy(opj_pi_iterator_t *pi, opj_cp_t *cp, int tileno)
Destroy a packet iterator.
Definition: pi.c:688
Index structure : Information concerning a packet inside tile.
Definition: openjpeg.h:587
int res_t
Definition: openjpeg.h:224
int ty0
YTOsiz.
Definition: j2k.h:234
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: j2k.h:166
opj_tccp_t * tccps
tile-component coding parameters
Definition: j2k.h:198
char tp_on
Enabling Tile part generation.
Definition: j2k.h:214
int tx1
Definition: openjpeg.h:216
@ CPRL
component-precinct-resolution-layer order
Definition: openjpeg.h:124
static opj_bool pi_next_rlcp(opj_pi_iterator_t *pi)
Get next packet in resolution-layer-component-precinct order.
Definition: pi.c:122
void write_manf(int second, int v, opj_jp2_box_t *box, opj_cio_t *cio)
Definition: cidx_manager.c:143
int ty0
Definition: openjpeg.h:216
int opj_bool
Definition: openjpeg.h:63
Tile-component coding parameters.
Definition: j2k.h:134
int write_phixfaix(int coff, int compno, opj_codestream_info_t cstr_info, opj_bool EPHused, int j2klen, opj_cio_t *cio)
Definition: phix_manager.c:85
struct opj_pi_iterator opj_pi_iterator_t
Packet iterator.
int resno
resolution that identify the packet
Definition: pi.h:83
void OPJ_CALLCONV cio_seek(opj_cio_t *cio, int pos)
Set position in byte stream.
Definition: cio.c:109
opj_image_comp_t * comps
image components
Definition: openjpeg.h:547
OPJ_PROG_ORDER prog
progression order
Definition: openjpeg.h:684
opj_poc_t pocs[32]
progression order changes
Definition: j2k.h:184
opj_tile_info_t * tile
information regarding tiles inside image
Definition: openjpeg.h:718
int compS
Definition: openjpeg.h:218
@ FINAL_PASS
Function called in Rate allocation process.
Definition: j2k.h:118
OPJ_CINEMA_MODE cinema
Digital cinema profile.
Definition: j2k.h:206
int dx
Definition: pi.h:97
Index structure of the codestream.
Definition: openjpeg.h:672
int dx
Definition: openjpeg.h:222
int prcw[J2K_MAXRLVLS]
precinct width
Definition: j2k.h:156
@ RPCL
resolution-precinct-component-layer order
Definition: openjpeg.h:122
int precno1
Definition: openjpeg.h:208
Index structure : information regarding tiles.
Definition: openjpeg.h:632
int step_p
precinct step used to localize the packet in the include vector
Definition: pi.h:79
int length
Definition: jp2.h:151
int tyE
Definition: openjpeg.h:222
static INLINE int int_floordivpow2(int a, int b)
Divide an integer by a power of 2 and round downwards.
Definition: int.h:100
#define OPJ_FALSE
Definition: openjpeg.h:65
OPJ_PROG_ORDER prg1
Progression order enum.
Definition: openjpeg.h:210
int tx0
Start and end values for Tile width and height.
Definition: openjpeg.h:216
opj_pi_iterator_t * pi_initialise_encode(opj_image_t *image, opj_cp_t *cp, int tileno, J2K_T2_MODE t2_mode)
Create a packet iterator for Encoder.
Definition: pi.c:543
char tp_on
Enabling Tile part generation.
Definition: pi.h:69
int POC
indicates if a POC marker has been used O:NO, 1:YES
Definition: j2k.h:182
int y1
Ysiz: height of the reference grid.
Definition: openjpeg.h:541
#define JPIP_FAIX
Definition: indexbox_manager.h:46
int * numdecompos
number of decomposition for each component
Definition: openjpeg.h:702
int compno
component that identify the packet
Definition: pi.h:81
int dy
Definition: pi.h:58
opj_pi_iterator_t * pi_create_decode(opj_image_t *image, opj_cp_t *cp, int tileno)
Create a packet iterator for Decoder.
Definition: pi.c:410
int tdx
XTsiz.
Definition: j2k.h:236
int th
number of tiles in Y
Definition: openjpeg.h:696
Defines image data and characteristics.
Definition: openjpeg.h:533
int step_l
layer step used to localize the packet in the include vector
Definition: pi.h:73
int numcomps
number of components in the image
Definition: pi.h:93
Progression order changes.
Definition: openjpeg.h:202
@ RLCP
resolution-layer-component-precinct order
Definition: openjpeg.h:121
int numcomps
number of components in the image
Definition: openjpeg.h:543
opj_poc_t poc
progression order change information
Definition: pi.h:91
int pw
Definition: pi.h:51
int pw[33]
precinct number for each resolution level (width)
Definition: openjpeg.h:644