Home
last modified time | relevance | path

Searched refs:bandLogE (Results 1 – 5 of 5) sorted by relevance

/external/libopus/src/
Dopus_multistream_encoder.c255 void surround_analysis(const CELTMode *celt_mode, const void *pcm, opus_val16 *bandLogE, opus_val32… in surround_analysis() argument
334 amp2Log2(celt_mode, 21, 21, bandE, bandLogE+21*c, 1); in surround_analysis()
337 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis()
339 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis()
343 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]); in surround_analysis()
347 maskLogE[2][i] = logSum(maskLogE[2][i], bandLogE[21*c+i]); in surround_analysis()
352 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
353 maskLogE[2][i] = logSum(maskLogE[2][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
358 printf("%f ", bandLogE[21*c+i]); in surround_analysis()
361 sum += bandLogE[21*c+i]; in surround_analysis()
[all …]
/external/libopus/celt/
Dcelt_encoder.c781 const opus_val16 *bandLogE, int end, int LM, int C, int N0, in alloc_trim_analysis() argument
841 diff += bandLogE[i+c*m->nbEBands]*(opus_int32)(2+2*i-end); in alloc_trim_analysis()
964 static opus_val16 dynalloc_analysis(const opus_val16 *bandLogE, const opus_val16 *bandLogE2, in dynalloc_analysis() argument
991 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]); in dynalloc_analysis()
1039 …follower[i] = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nb… in dynalloc_analysis()
1044 follower[i] = MAX16(0, bandLogE[i]-follower[i]); in dynalloc_analysis()
1358 VARDECL(opus_val16, bandLogE); in celt_encode_with_ec()
1651 ALLOC(bandLogE,nbEBands*CC, opus_val16); in celt_encode_with_ec()
1677 amp2Log2(mode, effEnd, end, bandE, bandLogE, C); in celt_encode_with_ec()
1763 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
[all …]
Dquant_bands.c545 celt_ener *bandE, opus_val16 *bandLogE, int C) in amp2Log2() argument
552 bandLogE[i+c*m->nbEBands] = in amp2Log2()
557 bandLogE[i+c*m->nbEBands] += QCONST16(2.f, DB_SHIFT); in amp2Log2()
561 bandLogE[c*m->nbEBands+i] = -QCONST16(14.f,DB_SHIFT); in amp2Log2()
Dquant_bands.h45 celt_ener *bandE, opus_val16 *bandLogE, int C);
Dbands.c197 celt_sig * OPUS_RESTRICT freq, const opus_val16 *bandLogE, int start, in denormalise_bands() argument
228 lg = SATURATE16(ADD32(bandLogE[i], SHL32((opus_val32)eMeans[i],6))); in denormalise_bands()