Mercurial > libavcodec.hg
comparison aaccoder.c @ 9960:bd37369189de libavcodec
Dead code removal in the AAC encoder.
author | alexc |
---|---|
date | Fri, 17 Jul 2009 14:06:53 +0000 |
parents | 6fb2be900484 |
children | c0d721961a7f |
comparison
equal
deleted
inserted
replaced
9959:6972b493f41f | 9960:bd37369189de |
---|---|
85 #ifndef USE_REALLY_FULL_SEARCH | 85 #ifndef USE_REALLY_FULL_SEARCH |
86 int i; | 86 int i; |
87 for (i = 0; i < size; i++) | 87 for (i = 0; i < size; i++) |
88 out[i] = pow(fabsf(in[i]), 0.75); | 88 out[i] = pow(fabsf(in[i]), 0.75); |
89 #endif /* USE_REALLY_FULL_SEARCH */ | 89 #endif /* USE_REALLY_FULL_SEARCH */ |
90 } | |
91 | |
92 static av_always_inline int quant2(float coef, const float Q) | |
93 { | |
94 return pow(coef * Q, 0.75); | |
95 } | 90 } |
96 | 91 |
97 static const uint8_t aac_cb_range [12] = {0, 3, 3, 3, 3, 9, 9, 8, 8, 13, 13, 17}; | 92 static const uint8_t aac_cb_range [12] = {0, 3, 3, 3, 3, 9, 9, 8, 8, 13, 13, 17}; |
98 static const uint8_t aac_cb_maxval[12] = {0, 1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 16}; | 93 static const uint8_t aac_cb_maxval[12] = {0, 1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 16}; |
99 | 94 |