Lines Matching defs:nbEBands
124 /* opus_val16 oldBandE[], Size = channels*mode->nbEBands */
125 /* opus_val16 oldLogE[], Size = channels*mode->nbEBands */
126 /* opus_val16 oldLogE2[], Size = channels*mode->nbEBands */
127 /* opus_val16 energyError[], Size = channels*mode->nbEBands */
141 + 4*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; */
142 /* opus_val16 oldLogE[channels*mode->nbEBands]; */
143 /* opus_val16 oldLogE2[channels*mode->nbEBands]; */
144 /* opus_val16 energyError[channels*mode->nbEBands]; */
412 static int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands,
426 spread_old[start] = MAX16(oldE[start],oldE[start+nbEBands]);
429 MAX16(oldE[i],oldE[i+nbEBands]));
438 x1 = MAX16(0, newE[i + c*nbEBands]);
847 diff += bandLogE[i+c*m->nbEBands]*(opus_int32)(2+2*i-end);
971 int nbEBands, int start, int end, int C, int *offsets, int lsb_depth, const opus_int16 *logN,
982 ALLOC(follower, C*nbEBands, opus_val16);
983 ALLOC(noise_floor, C*nbEBands, opus_val16);
984 OPUS_CLEAR(offsets, nbEBands);
998 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]);
1005 ALLOC(mask, nbEBands, opus_val16);
1006 ALLOC(sig, nbEBands, opus_val16);
1012 mask[i] = MAX16(mask[i], bandLogE[nbEBands+i]-noise_floor[i]);
1045 f = &follower[c*nbEBands];
1046 f[0] = bandLogE2[c*nbEBands];
1052 nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT))
1054 f[i] = MIN16(f[i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBands+i]);
1057 f[i] = MIN16(f[i], MIN16(f[i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbEBands+i]));
1064 f[i] = MAX16(f[i], median_of_5(&bandLogE2[c*nbEBands+i-2])-offset);
1065 tmp = median_of_3(&bandLogE2[c*nbEBands])-offset;
1068 tmp = median_of_3(&bandLogE2[c*nbEBands+end-3])-offset;
1080 follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT));
1081 follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT));
1082 follower[i] = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nbEBands+i]));
1309 int nbEBands;
1312 nbEBands = mode->nbEBands;
1315 coded_bands = lastCodedBands ? lastCodedBands : nbEBands;
1378 bins = eBands[nbEBands-2]<<LM;
1466 int nbEBands;
1483 nbEBands = mode->nbEBands;
1510 oldLogE = oldBandE + CC*nbEBands;
1511 oldLogE2 = oldLogE + CC*nbEBands;
1512 energyError = oldLogE2 + CC*nbEBands;
1712 ALLOC(bandE,nbEBands*CC, celt_ener);
1713 ALLOC(bandLogE,nbEBands*CC, opus_val16);
1716 ALLOC(bandLogE2, C*nbEBands, opus_val16);
1722 for (i=0;i<C*nbEBands;i++)
1744 ALLOC(surround_dynalloc, C*nbEBands, opus_val16);
1761 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i],
1786 unmask = MAX16(st->energy_mask[i], st->energy_mask[nbEBands+i]);
1830 follow = MAX16(follow, bandLogE[i+nbEBands]-offset);
1844 OPUS_COPY(bandLogE2, bandLogE, C*nbEBands);
1851 if (patch_transient_decision(bandLogE, oldBandE, nbEBands, start, end, C))
1859 for (i=0;i<C*nbEBands;i++)
1875 ALLOC(offsets, nbEBands, int);
1876 ALLOC(importance, nbEBands, int);
1877 ALLOC(spread_weight, nbEBands, int);
1879 maxDepth = dynalloc_analysis(bandLogE, bandLogE2, nbEBands, start, end, C, offsets,
1883 ALLOC(tf_res, nbEBands, int);
1912 ALLOC(error, C*nbEBands, opus_val16);
1920 if (ABS32(SUB32(bandLogE[i+c*nbEBands], oldBandE[i+c*nbEBands])) < QCONST16(2.f, DB_SHIFT))
1922 bandLogE[i+c*nbEBands] -= MULT16_16_Q15(energyError[i+c*nbEBands], QCONST16(0.25f, 15));
1982 ALLOC(cap, nbEBands, int);
2166 ALLOC(fine_quant, nbEBands, int);
2167 ALLOC(pulses, nbEBands, int);
2168 ALLOC(fine_priority, nbEBands, int);
2205 ALLOC(collapse_masks, C*nbEBands, unsigned char);
2220 OPUS_CLEAR(energyError, nbEBands*CC);
2225 energyError[i+c*nbEBands] = MAX16(-QCONST16(0.5f, 15), MIN16(QCONST16(0.5f, 15), error[i+c*nbEBands]));
2231 for (i=0;i<C*nbEBands;i++)
2290 OPUS_COPY(&oldBandE[nbEBands], oldBandE, nbEBands);
2295 OPUS_COPY(oldLogE2, oldLogE, CC*nbEBands);
2296 OPUS_COPY(oldLogE, oldBandE, CC*nbEBands);
2298 for (i=0;i<CC*nbEBands;i++)
2306 oldBandE[c*nbEBands+i]=0;
2307 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
2309 for (i=end;i<nbEBands;i++)
2311 oldBandE[c*nbEBands+i]=0;
2312 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
2427 if (value<0 || value>=st->mode->nbEBands)
2435 if (value<1 || value>st->mode->nbEBands)
2525 oldLogE = oldBandE + st->channels*st->mode->nbEBands;
2526 oldLogE2 = oldLogE + st->channels*st->mode->nbEBands;
2530 for (i=0;i<st->channels*st->mode->nbEBands;i++)