Lines Matching refs:l_code_block
1021 opj_tcd_cblk_enc_t* l_code_block = l_current_precinct->cblks.enc + cblkno; in opj_tcd_init_tile() local
1023 if (! opj_tcd_code_block_enc_allocate(l_code_block)) { in opj_tcd_init_tile()
1027 l_code_block->x0 = opj_int_max(cblkxstart, l_current_precinct->x0); in opj_tcd_init_tile()
1028 l_code_block->y0 = opj_int_max(cblkystart, l_current_precinct->y0); in opj_tcd_init_tile()
1029 l_code_block->x1 = opj_int_min(cblkxend, l_current_precinct->x1); in opj_tcd_init_tile()
1030 l_code_block->y1 = opj_int_min(cblkyend, l_current_precinct->y1); in opj_tcd_init_tile()
1032 if (! opj_tcd_code_block_enc_allocate_data(l_code_block)) { in opj_tcd_init_tile()
1036 opj_tcd_cblk_dec_t* l_code_block = l_current_precinct->cblks.dec + cblkno; in opj_tcd_init_tile() local
1038 if (! opj_tcd_code_block_dec_allocate(l_code_block)) { in opj_tcd_init_tile()
1042 l_code_block->x0 = opj_int_max(cblkxstart, l_current_precinct->x0); in opj_tcd_init_tile()
1043 l_code_block->y0 = opj_int_max(cblkystart, l_current_precinct->y0); in opj_tcd_init_tile()
1044 l_code_block->x1 = opj_int_min(cblkxend, l_current_precinct->x1); in opj_tcd_init_tile()
1045 l_code_block->y1 = opj_int_min(cblkyend, l_current_precinct->y1); in opj_tcd_init_tile()
1831 opj_tcd_cblk_dec_t * l_code_block = p_precinct->cblks.dec; in opj_tcd_code_block_dec_deallocate() local
1832 if (l_code_block) { in opj_tcd_code_block_dec_deallocate()
1844 if (l_code_block->data) { in opj_tcd_code_block_dec_deallocate()
1845 opj_free(l_code_block->data); in opj_tcd_code_block_dec_deallocate()
1846 l_code_block->data = 00; in opj_tcd_code_block_dec_deallocate()
1849 if (l_code_block->segs) { in opj_tcd_code_block_dec_deallocate()
1850 opj_free(l_code_block->segs ); in opj_tcd_code_block_dec_deallocate()
1851 l_code_block->segs = 00; in opj_tcd_code_block_dec_deallocate()
1854 ++l_code_block; in opj_tcd_code_block_dec_deallocate()
1869 opj_tcd_cblk_enc_t * l_code_block = p_precinct->cblks.enc; in opj_tcd_code_block_enc_deallocate() local
1870 if (l_code_block) { in opj_tcd_code_block_enc_deallocate()
1874 if (l_code_block->data) { in opj_tcd_code_block_enc_deallocate()
1875 opj_free(l_code_block->data - 1); in opj_tcd_code_block_enc_deallocate()
1876 l_code_block->data = 00; in opj_tcd_code_block_enc_deallocate()
1879 if (l_code_block->layers) { in opj_tcd_code_block_enc_deallocate()
1880 opj_free(l_code_block->layers ); in opj_tcd_code_block_enc_deallocate()
1881 l_code_block->layers = 00; in opj_tcd_code_block_enc_deallocate()
1884 if (l_code_block->passes) { in opj_tcd_code_block_enc_deallocate()
1885 opj_free(l_code_block->passes ); in opj_tcd_code_block_enc_deallocate()
1886 l_code_block->passes = 00; in opj_tcd_code_block_enc_deallocate()
1888 ++l_code_block; in opj_tcd_code_block_enc_deallocate()