Lines Matching refs:l_code_block
1140 … opj_tcd_cblk_enc_t* l_code_block = l_current_precinct->cblks.enc + cblkno; in opj_tcd_init_tile() local
1142 if (! opj_tcd_code_block_enc_allocate(l_code_block)) { in opj_tcd_init_tile()
1146 l_code_block->x0 = opj_int_max(cblkxstart, l_current_precinct->x0); in opj_tcd_init_tile()
1147 l_code_block->y0 = opj_int_max(cblkystart, l_current_precinct->y0); in opj_tcd_init_tile()
1148 l_code_block->x1 = opj_int_min(cblkxend, l_current_precinct->x1); in opj_tcd_init_tile()
1149 l_code_block->y1 = opj_int_min(cblkyend, l_current_precinct->y1); in opj_tcd_init_tile()
1151 if (! opj_tcd_code_block_enc_allocate_data(l_code_block)) { in opj_tcd_init_tile()
1155 … opj_tcd_cblk_dec_t* l_code_block = l_current_precinct->cblks.dec + cblkno; in opj_tcd_init_tile() local
1157 if (! opj_tcd_code_block_dec_allocate(l_code_block)) { in opj_tcd_init_tile()
1161 l_code_block->x0 = opj_int_max(cblkxstart, l_current_precinct->x0); in opj_tcd_init_tile()
1162 l_code_block->y0 = opj_int_max(cblkystart, l_current_precinct->y0); in opj_tcd_init_tile()
1163 l_code_block->x1 = opj_int_min(cblkxend, l_current_precinct->x1); in opj_tcd_init_tile()
1164 l_code_block->y1 = opj_int_min(cblkyend, l_current_precinct->y1); in opj_tcd_init_tile()
2267 opj_tcd_cblk_dec_t * l_code_block = p_precinct->cblks.dec; in opj_tcd_code_block_dec_deallocate() local
2268 if (l_code_block) { in opj_tcd_code_block_dec_deallocate()
2281 if (l_code_block->segs) { in opj_tcd_code_block_dec_deallocate()
2282 opj_free(l_code_block->segs); in opj_tcd_code_block_dec_deallocate()
2283 l_code_block->segs = 00; in opj_tcd_code_block_dec_deallocate()
2286 if (l_code_block->chunks) { in opj_tcd_code_block_dec_deallocate()
2287 opj_free(l_code_block->chunks); in opj_tcd_code_block_dec_deallocate()
2288 l_code_block->chunks = 00; in opj_tcd_code_block_dec_deallocate()
2291 opj_aligned_free(l_code_block->decoded_data); in opj_tcd_code_block_dec_deallocate()
2292 l_code_block->decoded_data = NULL; in opj_tcd_code_block_dec_deallocate()
2294 ++l_code_block; in opj_tcd_code_block_dec_deallocate()
2309 opj_tcd_cblk_enc_t * l_code_block = p_precinct->cblks.enc; in opj_tcd_code_block_enc_deallocate() local
2310 if (l_code_block) { in opj_tcd_code_block_enc_deallocate()
2315 if (l_code_block->data) { in opj_tcd_code_block_enc_deallocate()
2318 opj_free(l_code_block->data - 1); in opj_tcd_code_block_enc_deallocate()
2319 l_code_block->data = 00; in opj_tcd_code_block_enc_deallocate()
2322 if (l_code_block->layers) { in opj_tcd_code_block_enc_deallocate()
2323 opj_free(l_code_block->layers); in opj_tcd_code_block_enc_deallocate()
2324 l_code_block->layers = 00; in opj_tcd_code_block_enc_deallocate()
2327 if (l_code_block->passes) { in opj_tcd_code_block_enc_deallocate()
2328 opj_free(l_code_block->passes); in opj_tcd_code_block_enc_deallocate()
2329 l_code_block->passes = 00; in opj_tcd_code_block_enc_deallocate()
2331 ++l_code_block; in opj_tcd_code_block_enc_deallocate()