Lines Matching defs:level
93 int level;
604 int cb_width = s->codeblock[b->level + (b->orientation != subband_ll)].width;
605 int cb_height = s->codeblock[b->level + (b->orientation != subband_ll)].height;
663 int level, num_bands = 0;
669 for (level = 0; level < s->wavelet_depth; level++) {
670 for (orientation = !!level; orientation < 4; orientation++) {
671 SubBand *b = &s->plane[comp].band[level][orientation];
693 /* arithmetic coding has inter-level dependencies, so we can only execute one level at a time */
695 avctx->execute(avctx, decode_subband_arith, &s->plane[comp].band[level][!!level],
696 ret + 3*level + !!level, 4-!!level, sizeof(SubBand));
698 /* golomb coding has no inter-level dependencies, so we can execute all subbands in parallel */
782 int level, quant, chroma_bits, chroma_end;
790 for (level = 0; level < s->wavelet_depth; level++)
791 for (orientation = !!level; orientation < 4; orientation++) {
792 quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0);
794 &s->plane[0].band[level][orientation], NULL);
803 for (level = 0; level < s->wavelet_depth; level++)
804 for (orientation = !!level; orientation < 4; orientation++) {
805 quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0);
807 &s->plane[1].band[level][orientation],
808 &s->plane[2].band[level][orientation]);
825 int level, coef = 0;
826 for (level = 0; level < s->wavelet_depth; level++) {
827 SliceCoeffs *o = &c[level];
828 SubBand *b = &s->plane[p].band[level][3]; /* orientation doens't matter */
834 coef += o->tot * (4 - !!level);
845 int i, level, orientation, quant_idx;
859 for (level = 0; level < s->wavelet_depth; level++) {
860 for (orientation = !!level; orientation < 4; orientation++) {
861 const int quant = FFMAX(quant_idx - s->lowdelay.quant[level][orientation], 0);
862 qfactor[level][orientation] = ff_dirac_qscale_tab[quant];
863 qoffset[level][orientation] = ff_dirac_qoffset_intra_tab[quant] + 2;
894 for (level = 0; level < s->wavelet_depth; level++) {
895 const SliceCoeffs *c = &coeffs_num[level];
896 for (orientation = !!level; orientation < 4; orientation++) {
897 const SubBand *b1 = &s->plane[i].band[level][orientation];
903 qfactor[level][orientation],
904 qoffset[level][orientation],
1052 int i, w, h, level, orientation;
1063 for (level = s->wavelet_depth-1; level >= 0; level--) {
1066 for (orientation = !!level; orientation < 4; orientation++) {
1067 SubBand *b = &p->band[level][orientation];
1071 b->level = level;
1072 b->stride = p->idwt.stride << (s->wavelet_depth - level);
1082 if (level)
1083 b->parent = &p->band[level-1][orientation];
1235 int i, level;
1305 for (level = 0; level < s->wavelet_depth; level++) {
1306 for (i = !!level; i < 4; i++) {
1307 s->lowdelay.quant[level][i] = get_interleaved_ue_golomb(gb);
1316 for (level = 0; level < s->wavelet_depth; level++)
1318 s->lowdelay.quant[level][i] = ff_dirac_default_qmat[s->wavelet_idx][level][i];
1321 s->lowdelay.quant[level][i] += 4*(s->wavelet_depth-1 - level);
2164 avctx->level = dsh->level;