Lines Matching refs:l_cblk
1017 opj_tcd_cblk_dec_t* l_cblk = 00; in opj_t2_read_packet_header() local
1042 l_cblk = l_prc->cblks.dec; in opj_t2_read_packet_header()
1046 l_cblk->numsegs = 0; in opj_t2_read_packet_header()
1047 l_cblk->real_num_segs = 0; in opj_t2_read_packet_header()
1048 ++l_cblk; in opj_t2_read_packet_header()
1148 l_cblk = l_prc->cblks.dec; in opj_t2_read_packet_header()
1154 if (!l_cblk->numsegs) { in opj_t2_read_packet_header()
1164 l_cblk->numnewpasses = 0; in opj_t2_read_packet_header()
1165 ++l_cblk; in opj_t2_read_packet_header()
1171 if (!l_cblk->numsegs) { in opj_t2_read_packet_header()
1178 l_cblk->numbps = (OPJ_UINT32)l_band->numbps + 1 - i; in opj_t2_read_packet_header()
1179 l_cblk->numlenbits = 3; in opj_t2_read_packet_header()
1183 l_cblk->numnewpasses = opj_t2_getnumpasses(l_bio); in opj_t2_read_packet_header()
1187 l_cblk->numlenbits += l_increment; in opj_t2_read_packet_header()
1190 if (!l_cblk->numsegs) { in opj_t2_read_packet_header()
1191 if (! opj_t2_init_seg(l_cblk, l_segno, p_tcp->tccps[p_pi->compno].cblksty, 1)) { in opj_t2_read_packet_header()
1196 l_segno = l_cblk->numsegs - 1; in opj_t2_read_packet_header()
1197 if (l_cblk->segs[l_segno].numpasses == l_cblk->segs[l_segno].maxpasses) { in opj_t2_read_packet_header()
1199 if (! opj_t2_init_seg(l_cblk, l_segno, p_tcp->tccps[p_pi->compno].cblksty, 0)) { in opj_t2_read_packet_header()
1205 n = (OPJ_INT32)l_cblk->numnewpasses; in opj_t2_read_packet_header()
1209 l_cblk->segs[l_segno].numnewpasses = (OPJ_UINT32)opj_int_min((OPJ_INT32)( in opj_t2_read_packet_header()
1210 l_cblk->segs[l_segno].maxpasses - l_cblk->segs[l_segno].numpasses), n); in opj_t2_read_packet_header()
1211 bit_number = l_cblk->numlenbits + opj_uint_floorlog2( in opj_t2_read_packet_header()
1212 l_cblk->segs[l_segno].numnewpasses); in opj_t2_read_packet_header()
1220 l_cblk->segs[l_segno].newlen = opj_bio_read(l_bio, bit_number); in opj_t2_read_packet_header()
1222 l_included, l_cblk->segs[l_segno].numnewpasses, l_increment, in opj_t2_read_packet_header()
1223 l_cblk->segs[l_segno].newlen); in opj_t2_read_packet_header()
1225 n -= (OPJ_INT32)l_cblk->segs[l_segno].numnewpasses; in opj_t2_read_packet_header()
1229 if (! opj_t2_init_seg(l_cblk, l_segno, p_tcp->tccps[p_pi->compno].cblksty, 0)) { in opj_t2_read_packet_header()
1236 ++l_cblk; in opj_t2_read_packet_header()
1294 opj_tcd_cblk_dec_t* l_cblk = 00; in opj_t2_read_packet_data() local
1311 l_cblk = l_prc->cblks.dec; in opj_t2_read_packet_data()
1316 if (!l_cblk->numnewpasses) { in opj_t2_read_packet_data()
1318 ++l_cblk; in opj_t2_read_packet_data()
1322 if (!l_cblk->numsegs) { in opj_t2_read_packet_data()
1323 l_seg = l_cblk->segs; in opj_t2_read_packet_data()
1324 ++l_cblk->numsegs; in opj_t2_read_packet_data()
1326 l_seg = &l_cblk->segs[l_cblk->numsegs - 1]; in opj_t2_read_packet_data()
1330 ++l_cblk->numsegs; in opj_t2_read_packet_data()
1351 if ((l_cblk->len + l_seg->newlen) > 8192) { in opj_t2_read_packet_data()
1359 l_seg->newlen = 8192 - l_cblk->len; in opj_t2_read_packet_data()
1367 if (l_cblk->numchunks == l_cblk->numchunksalloc) { in opj_t2_read_packet_data()
1368 OPJ_UINT32 l_numchunksalloc = l_cblk->numchunksalloc * 2 + 1; in opj_t2_read_packet_data()
1370 (opj_tcd_seg_data_chunk_t*)opj_realloc(l_cblk->chunks, in opj_t2_read_packet_data()
1377 l_cblk->chunks = l_chunks; in opj_t2_read_packet_data()
1378 l_cblk->numchunksalloc = l_numchunksalloc; in opj_t2_read_packet_data()
1381 l_cblk->chunks[l_cblk->numchunks].data = l_current_data; in opj_t2_read_packet_data()
1382 l_cblk->chunks[l_cblk->numchunks].len = l_seg->newlen; in opj_t2_read_packet_data()
1383 l_cblk->numchunks ++; in opj_t2_read_packet_data()
1388 l_cblk->numnewpasses -= l_seg->numnewpasses; in opj_t2_read_packet_data()
1392 if (l_cblk->numnewpasses > 0) { in opj_t2_read_packet_data()
1394 ++l_cblk->numsegs; in opj_t2_read_packet_data()
1396 } while (l_cblk->numnewpasses > 0); in opj_t2_read_packet_data()
1398 l_cblk->real_num_segs = l_cblk->numsegs; in opj_t2_read_packet_data()
1399 ++l_cblk; in opj_t2_read_packet_data()
1422 opj_tcd_cblk_dec_t* l_cblk = 00; in opj_t2_skip_packet_data() local
1441 l_cblk = l_prc->cblks.dec; in opj_t2_skip_packet_data()
1446 if (!l_cblk->numnewpasses) { in opj_t2_skip_packet_data()
1448 ++l_cblk; in opj_t2_skip_packet_data()
1452 if (!l_cblk->numsegs) { in opj_t2_skip_packet_data()
1453 l_seg = l_cblk->segs; in opj_t2_skip_packet_data()
1454 ++l_cblk->numsegs; in opj_t2_skip_packet_data()
1456 l_seg = &l_cblk->segs[l_cblk->numsegs - 1]; in opj_t2_skip_packet_data()
1460 ++l_cblk->numsegs; in opj_t2_skip_packet_data()
1480 if ((l_cblk->len + l_seg->newlen) > 8192) { in opj_t2_skip_packet_data()
1488 l_seg->newlen = 8192 - l_cblk->len; in opj_t2_skip_packet_data()
1500 l_cblk->numnewpasses -= l_seg->numnewpasses; in opj_t2_skip_packet_data()
1501 if (l_cblk->numnewpasses > 0) { in opj_t2_skip_packet_data()
1503 ++l_cblk->numsegs; in opj_t2_skip_packet_data()
1505 } while (l_cblk->numnewpasses > 0); in opj_t2_skip_packet_data()
1507 ++l_cblk; in opj_t2_skip_packet_data()