43
43
@param pi packet iterator to modify
44
44
@return returns false if pi pointed to the last packet or else returns true
46
static bool pi_next_lrcp(opj_pi_iterator_t * pi);
46
static opj_bool pi_next_lrcp(opj_pi_iterator_t * pi);
48
48
Get next packet in resolution-layer-component-precinct order.
49
49
@param pi packet iterator to modify
50
50
@return returns false if pi pointed to the last packet or else returns true
52
static bool pi_next_rlcp(opj_pi_iterator_t * pi);
52
static opj_bool pi_next_rlcp(opj_pi_iterator_t * pi);
54
54
Get next packet in resolution-precinct-component-layer order.
55
55
@param pi packet iterator to modify
56
56
@return returns false if pi pointed to the last packet or else returns true
58
static bool pi_next_rpcl(opj_pi_iterator_t * pi);
58
static opj_bool pi_next_rpcl(opj_pi_iterator_t * pi);
60
60
Get next packet in precinct-component-resolution-layer order.
61
61
@param pi packet iterator to modify
62
62
@return returns false if pi pointed to the last packet or else returns true
64
static bool pi_next_pcrl(opj_pi_iterator_t * pi);
64
static opj_bool pi_next_pcrl(opj_pi_iterator_t * pi);
66
66
Get next packet in component-precinct-resolution-layer order.
67
67
@param pi packet iterator to modify
68
68
@return returns false if pi pointed to the last packet or else returns true
70
static bool pi_next_cprl(opj_pi_iterator_t * pi);
70
static opj_bool pi_next_cprl(opj_pi_iterator_t * pi);
79
79
==========================================================
82
static bool pi_next_lrcp(opj_pi_iterator_t * pi) {
82
static opj_bool pi_next_lrcp(opj_pi_iterator_t * pi) {
83
83
opj_pi_comp_t *comp = NULL;
84
84
opj_pi_resolution_t *res = NULL;
209
209
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
210
210
rpx = res->pdx + levelno;
211
211
rpy = res->pdy + levelno;
212
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpx))))){
212
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
215
215
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
219
if ((res->pw==0)||(res->pw==0)) continue;
219
if ((res->pw==0)||(res->ph==0)) continue;
221
221
if ((trx0==trx1)||(try0==try1)) continue;
290
290
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
291
291
rpx = res->pdx + levelno;
292
292
rpy = res->pdy + levelno;
293
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpx))))){
293
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
296
296
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
300
if ((res->pw==0)||(res->pw==0)) continue;
300
if ((res->pw==0)||(res->ph==0)) continue;
302
302
if ((trx0==trx1)||(try0==try1)) continue;
369
369
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
370
370
rpx = res->pdx + levelno;
371
371
rpy = res->pdy + levelno;
372
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpx))))){
372
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
375
375
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
379
if ((res->pw==0)||(res->pw==0)) continue;
379
if ((res->pw==0)||(res->ph==0)) continue;
381
381
if ((trx0==trx1)||(try0==try1)) continue;
721
721
return pi_next_cprl(pi);
722
722
case PROG_UNKNOWN:
729
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){
729
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){
732
732
int incr_top=1,resetX=0;