• Home
  • Raw
  • Download

Lines Matching refs:layno

228     OPJ_UINT32 layno;  in opj_tcd_rateallocate_fixed()  local
230 for (layno = 0; layno < tcd->tcp->numlayers; layno++) { in opj_tcd_rateallocate_fixed()
231 opj_tcd_makelayer_fixed(tcd, layno, 1); in opj_tcd_rateallocate_fixed()
237 OPJ_UINT32 layno, in opj_tcd_makelayer() argument
246 tcd_tile->distolayer[layno] = 0; /* fixed_quality */ in opj_tcd_makelayer()
267 opj_tcd_layer_t *layer = &cblk->layers[layno]; in opj_tcd_makelayer()
270 if (layno == 0) { in opj_tcd_makelayer()
325 tcd_tile->distolayer[layno] += layer->disto; /* fixed_quality */ in opj_tcd_makelayer()
337 void opj_tcd_makelayer_fixed(opj_tcd_t *tcd, OPJ_UINT32 layno, in opj_tcd_makelayer_fixed() argument
379 opj_tcd_layer_t *layer = &cblk->layers[layno]; in opj_tcd_makelayer_fixed()
385 if (layno == 0) { in opj_tcd_makelayer_fixed()
386 value = matrice[layno][resno][bandno]; in opj_tcd_makelayer_fixed()
393 … value = matrice[layno][resno][bandno] - matrice[layno - 1][resno][bandno]; in opj_tcd_makelayer_fixed()
394 if (imsb >= matrice[layno - 1][resno][bandno]) { in opj_tcd_makelayer_fixed()
395 value -= (imsb - matrice[layno - 1][resno][bandno]); in opj_tcd_makelayer_fixed()
402 if (layno == 0) { in opj_tcd_makelayer_fixed()
449 OPJ_UINT32 compno, resno, bandno, precno, cblkno, layno; in opj_tcd_rateallocate() local
539 for (layno = 0; layno < tcd_tcp->numlayers; layno++) { in opj_tcd_rateallocate()
542 OPJ_UINT32 maxlen = tcd_tcp->rates[layno] > 0.0f ? opj_uint_min((( in opj_tcd_rateallocate()
543 OPJ_UINT32) ceil(tcd_tcp->rates[layno])), len) : len; in opj_tcd_rateallocate()
551 tcd_tcp->distoratio[layno] / 10)); in opj_tcd_rateallocate()
558 (tcd_tcp->rates[layno] > 0.0f)) || in opj_tcd_rateallocate()
560 (tcd_tcp->distoratio[layno] > 0.0))) { in opj_tcd_rateallocate()
573 opj_tcd_makelayer(tcd, layno, thresh, 0); in opj_tcd_rateallocate()
577 if (! opj_t2_encode_packets(t2, tcd->tcd_tileno, tcd_tile, layno + 1, dest, in opj_tcd_rateallocate()
584 distoachieved = layno == 0 ? in opj_tcd_rateallocate()
585 … tcd_tile->distolayer[0] : cumdisto[layno - 1] + tcd_tile->distolayer[layno]; in opj_tcd_rateallocate()
596 distoachieved = (layno == 0) ? in opj_tcd_rateallocate()
597 … tcd_tile->distolayer[0] : (cumdisto[layno - 1] + tcd_tile->distolayer[layno]); in opj_tcd_rateallocate()
607 if (! opj_t2_encode_packets(t2, tcd->tcd_tileno, tcd_tile, layno + 1, dest, in opj_tcd_rateallocate()
630 cstr_info->tile[tcd->tcd_tileno].thresh[layno] = goodthresh; in opj_tcd_rateallocate()
633 opj_tcd_makelayer(tcd, layno, goodthresh, 1); in opj_tcd_rateallocate()
636 cumdisto[layno] = (layno == 0) ? tcd_tile->distolayer[0] : in opj_tcd_rateallocate()
637 (cumdisto[layno - 1] + tcd_tile->distolayer[layno]); in opj_tcd_rateallocate()