Lines Matching refs:l_current_precinct
735 opj_tcd_precinct_t *l_current_precinct = 00; in opj_tcd_init_tile() local
1035 l_current_precinct = l_band->precincts; in opj_tcd_init_tile()
1050 l_current_precinct->x0 = opj_int_max(cbgxstart, l_band->x0); in opj_tcd_init_tile()
1051 l_current_precinct->y0 = opj_int_max(cbgystart, l_band->y0); in opj_tcd_init_tile()
1052 l_current_precinct->x1 = opj_int_min(cbgxend, l_band->x1); in opj_tcd_init_tile()
1053 l_current_precinct->y1 = opj_int_min(cbgyend, l_band->y1); in opj_tcd_init_tile()
1056 tlcblkxstart = opj_int_floordivpow2(l_current_precinct->x0, in opj_tcd_init_tile()
1059 tlcblkystart = opj_int_floordivpow2(l_current_precinct->y0, in opj_tcd_init_tile()
1062 brcblkxend = opj_int_ceildivpow2(l_current_precinct->x1, in opj_tcd_init_tile()
1065 brcblkyend = opj_int_ceildivpow2(l_current_precinct->y1, in opj_tcd_init_tile()
1068 l_current_precinct->cw = (OPJ_UINT32)((brcblkxend - tlcblkxstart) >> in opj_tcd_init_tile()
1070 l_current_precinct->ch = (OPJ_UINT32)((brcblkyend - tlcblkystart) >> in opj_tcd_init_tile()
1072 …if (l_current_precinct->cw && ((OPJ_UINT32)-1) / l_current_precinct->cw < l_current_precinct->ch) { in opj_tcd_init_tile()
1075 l_nb_code_blocks = l_current_precinct->cw * l_current_precinct->ch; in opj_tcd_init_tile()
1083 if (!l_current_precinct->cblks.blocks && (l_nb_code_blocks > 0U)) { in opj_tcd_init_tile()
1084 l_current_precinct->cblks.blocks = opj_malloc(l_nb_code_blocks_size); in opj_tcd_init_tile()
1085 if (! l_current_precinct->cblks.blocks) { in opj_tcd_init_tile()
1090 memset(l_current_precinct->cblks.blocks, 0, l_nb_code_blocks_size); in opj_tcd_init_tile()
1092 l_current_precinct->block_size = l_nb_code_blocks_size; in opj_tcd_init_tile()
1093 } else if (l_nb_code_blocks_size > l_current_precinct->block_size) { in opj_tcd_init_tile()
1094 void *new_blocks = opj_realloc(l_current_precinct->cblks.blocks, in opj_tcd_init_tile()
1097 opj_free(l_current_precinct->cblks.blocks); in opj_tcd_init_tile()
1098 l_current_precinct->cblks.blocks = NULL; in opj_tcd_init_tile()
1099 l_current_precinct->block_size = 0; in opj_tcd_init_tile()
1104 l_current_precinct->cblks.blocks = new_blocks; in opj_tcd_init_tile()
1107 memset(((OPJ_BYTE *) l_current_precinct->cblks.blocks) + in opj_tcd_init_tile()
1108 l_current_precinct->block_size in opj_tcd_init_tile()
1110 , l_nb_code_blocks_size - l_current_precinct->block_size); in opj_tcd_init_tile()
1112 l_current_precinct->block_size = l_nb_code_blocks_size; in opj_tcd_init_tile()
1115 if (! l_current_precinct->incltree) { in opj_tcd_init_tile()
1116 l_current_precinct->incltree = opj_tgt_create(l_current_precinct->cw, in opj_tcd_init_tile()
1117 l_current_precinct->ch, manager); in opj_tcd_init_tile()
1119 l_current_precinct->incltree = opj_tgt_init(l_current_precinct->incltree, in opj_tcd_init_tile()
1120 … l_current_precinct->cw, l_current_precinct->ch, manager); in opj_tcd_init_tile()
1123 if (! l_current_precinct->imsbtree) { in opj_tcd_init_tile()
1124 l_current_precinct->imsbtree = opj_tgt_create(l_current_precinct->cw, in opj_tcd_init_tile()
1125 l_current_precinct->ch, manager); in opj_tcd_init_tile()
1127 l_current_precinct->imsbtree = opj_tgt_init(l_current_precinct->imsbtree, in opj_tcd_init_tile()
1128 … l_current_precinct->cw, l_current_precinct->ch, manager); in opj_tcd_init_tile()
1133 l_current_precinct->cw) * (1 << cblkwidthexpn); in opj_tcd_init_tile()
1135 l_current_precinct->cw) * (1 << cblkheightexpn); in opj_tcd_init_tile()
1140 … opj_tcd_cblk_enc_t* l_code_block = l_current_precinct->cblks.enc + cblkno; 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()
1155 … opj_tcd_cblk_dec_t* l_code_block = l_current_precinct->cblks.dec + cblkno; 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()
1167 ++l_current_precinct; in opj_tcd_init_tile()