Lines Matching full:l_band
670 opj_tcd_band_t *l_band = 00;
848 l_band = l_res->bands;
855 l_band->bandno = 0 ;
856 l_band->x0 = opj_int_ceildivpow2(l_tilec->x0, (OPJ_INT32)l_level_no);
857 l_band->y0 = opj_int_ceildivpow2(l_tilec->y0, (OPJ_INT32)l_level_no);
858 l_band->x1 = opj_int_ceildivpow2(l_tilec->x1, (OPJ_INT32)l_level_no);
859 l_band->y1 = opj_int_ceildivpow2(l_tilec->y1, (OPJ_INT32)l_level_no);
862 l_band->bandno = bandno + 1;
864 l_x0b = l_band->bandno&1;
866 l_y0b = (OPJ_INT32)((l_band->bandno)>>1);
867 /* l_band border (global) */
868 l_band->x0 = opj_int64_ceildivpow2(l_tilec->x0 - ((OPJ_INT64)l_x0b << l_level_no), (OPJ_INT32)(l_level_no + 1));
869 l_band->y0 = opj_int64_ceildivpow2(l_tilec->y0 - ((OPJ_INT64)l_y0b << l_level_no), (OPJ_INT32)(l_level_no + 1));
870 l_band->x1 = opj_int64_ceildivpow2(l_tilec->x1 - ((OPJ_INT64)l_x0b << l_level_no), (OPJ_INT32)(l_level_no + 1));
871 l_band->y1 = opj_int64_ceildivpow2(l_tilec->y1 - ((OPJ_INT64)l_y0b << l_level_no), (OPJ_INT32)(l_level_no + 1));
875 l_gain = (*l_gain_ptr) (l_band->bandno);
877 l_band->stepsize = (OPJ_FLOAT32)(((1.0 + l_step_size->mant / 2048.0) * pow(2.0, (OPJ_INT32) (numbps - l_step_size->expn)))) * fraction;
878 l_band->numbps = l_step_size->expn + (OPJ_INT32)l_tccp->numgbits - 1; /* WHY -1 ? */
880 if (! l_band->precincts) {
881 l_band->precincts = (opj_tcd_precinct_t *) opj_malloc( /*3 * */ l_nb_precinct_size);
882 if (! l_band->precincts) {
886 memset(l_band->precincts,0,l_nb_precinct_size);
887 l_band->precincts_data_size = l_nb_precinct_size;
889 else if (l_band->precincts_data_size < l_nb_precinct_size) {
891 opj_tcd_precinct_t * new_precincts = (opj_tcd_precinct_t *) opj_realloc(l_band->precincts,/*3 * */ l_nb_precinct_size);
894 opj_free(l_band->precincts);
895 l_band->precincts = NULL;
896 l_band->precincts_data_size = 0;
899 l_band->precincts = new_precincts;
900 /*fprintf(stderr, "\t\t\t\tReallocate precincts of a band (opj_tcd_precinct_t): from %d to %d\n",l_band->precincts_data_size, l_nb_precinct_size);*/
901 memset(((OPJ_BYTE *) l_band->precincts) + l_band->precincts_data_size,0,l_nb_precinct_size - l_band->precincts_data_size);
902 l_band->precincts_data_size = l_nb_precinct_size;
905 l_current_precinct = l_band->precincts;
916 /*fprintf(stderr, "\t cbgxstart=%d, l_band->x0 = %d \n",cbgxstart, l_band->x0);*/
918 l_current_precinct->x0 = opj_int_max(cbgxstart, l_band->x0);
919 l_current_precinct->y0 = opj_int_max(cbgystart, l_band->y0);
920 l_current_precinct->x1 = opj_int_min(cbgxend, l_band->x1);
921 l_current_precinct->y1 = opj_int_min(cbgyend, l_band->y1);
1029 ++l_band;
1466 opj_tcd_band_t *l_band = 00;
1499 l_band = l_res->bands;
1501 l_precinct = l_band->precincts;
1504 l_nb_precincts = l_band->precincts_data_size / sizeof(opj_tcd_precinct_t);
1514 opj_free(l_band->precincts);
1515 l_band->precincts = 00;
1517 ++l_band;