[FFmpeg-soc] [soc]: r3426 - aacenc/aacpsy.c
kostya
subversion at mplayerhq.hu
Mon Aug 18 07:42:41 CEST 2008
Author: kostya
Date: Mon Aug 18 07:42:40 2008
New Revision: 3426
Log:
Rename function as suggested by Michael
Modified:
aacenc/aacpsy.c
Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c (original)
+++ aacenc/aacpsy.c Mon Aug 18 07:42:40 2008
@@ -68,7 +68,7 @@ static inline int quantize_coeffs(float
return sum;
}
-static inline float calc_distortion(float *c, int size, int scale_idx)
+static inline float get_approximate_quant_error(float *c, int size, int scale_idx)
{
int i;
int q;
@@ -731,7 +731,7 @@ static void psy_3gpp_process(AACPsyConte
cpe->ch[ch].zeroes[w+g] = 0;
cpe->ch[ch].sf_idx[w+g] = determine_scalefactor(band);
while(cpe->ch[ch].sf_idx[w+g] > 3){
- float dist = calc_distortion(cpe->ch[ch].coeffs + start,
+ float dist = get_approximate_quant_error(cpe->ch[ch].coeffs + start,
ics->swb_sizes[g],
SCALE_ONE_POS + cpe->ch[ch].sf_idx[w+g]);
if(dist < band->thr) break;
More information about the FFmpeg-soc
mailing list