HomeSort by relevance Sort by last modified time
    Searched refs:nbEBands (Results 1 - 10 of 10) sorted by null

  /external/chromium_org/third_party/opus/src/celt/
modes.c 89 static opus_int16 *compute_ebands(opus_int32 Fs, int frame_size, int res, int *nbEBands)
97 *nbEBands = sizeof(eband5ms)/sizeof(eband5ms[0])-1;
98 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1));
99 for (i=0;i<*nbEBands+1;i++)
115 *nbEBands = low+high;
116 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2));
135 for (i=0;i<*nbEBands;i++)
139 eBands[*nbEBands] = (bark_freq[nBark]+res)/(2*res)*2;
140 if (eBands[*nbEBands] > frame_size)
141 eBands[*nbEBands] = frame_size
    [all...]
quant_bands.c 191 x = eBands[i+c*m->nbEBands];
192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]);
198 SUB32((opus_val32)oldEBands[i+c*m->nbEBands],max_decay)));
203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay;
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT);
254 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7);
279 new_distortion = loss_distortion(eBands, oldEBands, start, effEnd, m->nbEBands, C);
298 ALLOC(oldEBands_intra, C*m->nbEBands, opus_val16);
299 ALLOC(error_intra, C*m->nbEBands, opus_val16);
300 OPUS_COPY(oldEBands_intra, oldEBands, C*m->nbEBands);
    [all...]
modes.h 64 int nbEBands;
celt_decoder.c 93 /* opus_val16 oldEBands[], Size = 2*mode->nbEBands */
94 /* opus_val16 oldLogE[], Size = 2*mode->nbEBands */
95 /* opus_val16 oldLogE2[], Size = 2*mode->nbEBands */
96 /* opus_val16 backgroundLogE[], Size = 2*mode->nbEBands */
110 + 4*2*mode->nbEBands*sizeof(opus_val16);
343 int nbEBands;
354 nbEBands = mode->nbEBands;
364 oldLogE = oldBandE + 2*nbEBands;
365 oldLogE2 = oldLogE + 2*nbEBands;
    [all...]
rate.h 60 cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band];
85 cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band];
celt_encoder.c 124 /* opus_val16 oldBandE[], Size = channels*mode->nbEBands */
125 /* opus_val16 oldLogE[], Size = channels*mode->nbEBands */
126 /* opus_val16 oldLogE2[], Size = channels*mode->nbEBands */
140 + 3*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; */
141 /* opus_val16 oldLogE[channels*mode->nbEBands]; */
142 /* opus_val16 oldLogE2[channels*mode->nbEBands]; */
372 int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands,
386 spread_old[0] = MAX16(oldE[0],oldE[nbEBands]);
389 MAX16(oldE[i],oldE[i+nbEBands]));
    [all...]
rate.c 87 cindex = (opus_int16 *)opus_alloc(sizeof(cache->index[0])*m->nbEBands*(LM+2));
93 for (j=0;j<m->nbEBands;j++)
97 cindex[i*m->nbEBands+j] = -1;
102 for (n=0;n<m->nbEBands && (k!=i || n<j);n++)
106 cindex[i*m->nbEBands+j] = cindex[k*m->nbEBands+n];
111 if (cache->index[i*m->nbEBands+j] == -1 && N!=0)
119 cindex[i*m->nbEBands+j] = curr;
143 cache->caps = cap = (unsigned char *)opus_alloc(sizeof(cache->caps[0])*(LM+1)*2*m->nbEBands);
148 for (j=0;j<m->nbEBands;j++
    [all...]
bands.c 120 bandE[i+c*m->nbEBands] = EPSILON+VSHR32(EXTEND32(celt_sqrt(sum)),-shift);
122 bandE[i+c*m->nbEBands] = EPSILON;
124 /*printf ("%f ", bandE[i+c*m->nbEBands]);*/
141 shift = celt_zlog2(bandE[i+c*m->nbEBands])-13;
142 E = VSHR32(bandE[i+c*m->nbEBands], shift);
165 bandE[i+c*m->nbEBands] = celt_sqrt(sum);
166 /*printf ("%f ", bandE[i+c*m->nbEBands]);*/
182 opus_val16 g = 1.f/(1e-27f+bandE[i+c*m->nbEBands]);
216 lg = ADD16(bandLogE[i+c*m->nbEBands], SHL16((opus_val16)eMeans[i],6));
284 prev1 = prev1logE[c*m->nbEBands+i]
    [all...]
celt.c 185 for (i=0;i<m->nbEBands;i++)
189 cap[i] = (m->cache.caps[m->nbEBands*(2*LM+C-1)+i]+64)*C*N>>2;
  /external/chromium_org/third_party/opus/src/celt/dump_modes/
dump_modes.c 81 fprintf (file, "static const opus_int16 eBands%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands+2);
82 for (j=0;j<mode->nbEBands+2;j++)
102 fprintf (file, "static const unsigned char allocVectors%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands*mode->nbAllocVectors);
105 for (k=0;k<mode->nbEBands;k++)
106 fprintf (file, "%2d, ", mode->allocVectors[j*mode->nbEBands+k]);
116 fprintf (file, "static const opus_int16 logN%d[%d] = {\n", framerate, mode->nbEBands);
117 for (j=0;j<mode->nbEBands;j++)
126 fprintf (file, "static const opus_int16 cache_index%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+2)*mode->nbEBands);
127 for (j=0;j<mode->nbEBands*(mode->maxLM+2);j++)
134 fprintf (file, "static const unsigned char cache_caps%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+1)*2*mode->nbEBands);
    [all...]

Completed in 359 milliseconds