Lines Matching refs:l_band

733     opj_tcd_band_t *l_band = 00;  in opj_tcd_init_tile()  local
956 l_band = l_res->bands; in opj_tcd_init_tile()
958 for (bandno = 0; bandno < l_res->numbands; ++bandno, ++l_band, ++l_step_size) { in opj_tcd_init_tile()
963 l_band->bandno = 0 ; in opj_tcd_init_tile()
964 l_band->x0 = opj_int_ceildivpow2(l_tilec->x0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
965 l_band->y0 = opj_int_ceildivpow2(l_tilec->y0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
966 l_band->x1 = opj_int_ceildivpow2(l_tilec->x1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
967 l_band->y1 = opj_int_ceildivpow2(l_tilec->y1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
969 l_band->bandno = bandno + 1; in opj_tcd_init_tile()
971 l_x0b = l_band->bandno & 1; in opj_tcd_init_tile()
973 l_y0b = (OPJ_INT32)((l_band->bandno) >> 1); in opj_tcd_init_tile()
975 l_band->x0 = opj_int64_ceildivpow2(l_tilec->x0 - ((OPJ_INT64)l_x0b << in opj_tcd_init_tile()
977 l_band->y0 = opj_int64_ceildivpow2(l_tilec->y0 - ((OPJ_INT64)l_y0b << in opj_tcd_init_tile()
979 l_band->x1 = opj_int64_ceildivpow2(l_tilec->x1 - ((OPJ_INT64)l_x0b << in opj_tcd_init_tile()
981 l_band->y1 = opj_int64_ceildivpow2(l_tilec->y1 - ((OPJ_INT64)l_y0b << in opj_tcd_init_tile()
987 if (opj_tcd_is_band_empty(l_band)) { in opj_tcd_init_tile()
996 l_gain = (*l_gain_ptr)(l_band->bandno); in opj_tcd_init_tile()
998 l_band->stepsize = (OPJ_FLOAT32)(((1.0 + l_step_size->mant / 2048.0) * pow(2.0, in opj_tcd_init_tile()
1002 l_band->numbps = l_step_size->expn + (OPJ_INT32)l_tccp->numgbits - in opj_tcd_init_tile()
1005 if (!l_band->precincts && (l_nb_precincts > 0U)) { in opj_tcd_init_tile()
1006 l_band->precincts = (opj_tcd_precinct_t *) opj_malloc(/*3 * */ in opj_tcd_init_tile()
1008 if (! l_band->precincts) { in opj_tcd_init_tile()
1014 memset(l_band->precincts, 0, l_nb_precinct_size); in opj_tcd_init_tile()
1015 l_band->precincts_data_size = l_nb_precinct_size; in opj_tcd_init_tile()
1016 } else if (l_band->precincts_data_size < l_nb_precinct_size) { in opj_tcd_init_tile()
1019 l_band->precincts,/*3 * */ l_nb_precinct_size); in opj_tcd_init_tile()
1023 opj_free(l_band->precincts); in opj_tcd_init_tile()
1024 l_band->precincts = NULL; in opj_tcd_init_tile()
1025 l_band->precincts_data_size = 0; in opj_tcd_init_tile()
1028 l_band->precincts = new_precincts; in opj_tcd_init_tile()
1030 memset(((OPJ_BYTE *) l_band->precincts) + l_band->precincts_data_size, 0, in opj_tcd_init_tile()
1031 l_nb_precinct_size - l_band->precincts_data_size); in opj_tcd_init_tile()
1032 l_band->precincts_data_size = l_nb_precinct_size; in opj_tcd_init_tile()
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()
1834 opj_tcd_band_t *l_band = 00; in opj_tcd_free_tile() local
1867 l_band = l_res->bands; in opj_tcd_free_tile()
1869 l_precinct = l_band->precincts; in opj_tcd_free_tile()
1872 l_nb_precincts = l_band->precincts_data_size / (OPJ_UINT32)sizeof( in opj_tcd_free_tile()
1883 opj_free(l_band->precincts); in opj_tcd_free_tile()
1884 l_band->precincts = 00; in opj_tcd_free_tile()
1886 ++l_band; in opj_tcd_free_tile()