aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacenc_utils.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-28 13:29:19 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-02 02:54:11 +0100
commit88b3b09afa5ef00dfc89a5904614bd51de65c21b (patch)
treeb81c1c704ac810f4a68b7661ddb0c39eb0283311 /libavcodec/aacenc_utils.h
parent6c693da690d2618b36c801f0b10607a4f68eaad6 (diff)
downloadffmpeg-88b3b09afa5ef00dfc89a5904614bd51de65c21b.tar.gz
avcodec/aacenc: Move initializing DSP out of aacenc.c
Otherwise aacenc.o gets pulled in by the aacencdsp checkasm test and it in turn pulls the rest of lavc in. Besides being bad size-wise this also has the downside that it pulls in avpriv_(cga|vga16)_font from libavutil which are marked as being imported from another library when building libavcodec as a DLL and this breaks checkasm because it links both lavc and lavu statically. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/aacenc_utils.h')
-rw-r--r--libavcodec/aacenc_utils.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/libavcodec/aacenc_utils.h b/libavcodec/aacenc_utils.h
index ef2218e036..cc747c3ea6 100644
--- a/libavcodec/aacenc_utils.h
+++ b/libavcodec/aacenc_utils.h
@@ -37,15 +37,6 @@
#define ROUND_TO_ZERO 0.1054f
#define C_QUANT 0.4054f
-static inline void abs_pow34_v(float *out, const float *in, const int size)
-{
- int i;
- for (i = 0; i < size; i++) {
- float a = fabsf(in[i]);
- out[i] = sqrtf(a * sqrtf(a));
- }
-}
-
static inline float pos_pow34(float a)
{
return sqrtf(a * sqrtf(a));
@@ -62,21 +53,6 @@ static inline int quant(float coef, const float Q, const float rounding)
return sqrtf(a * sqrtf(a)) + rounding;
}
-static inline void quantize_bands(int *out, const float *in, const float *scaled,
- int size, int is_signed, int maxval, const float Q34,
- const float rounding)
-{
- int i;
- for (i = 0; i < size; i++) {
- float qc = scaled[i] * Q34;
- int tmp = (int)FFMIN(qc + rounding, (float)maxval);
- if (is_signed && in[i] < 0.0f) {
- tmp = -tmp;
- }
- out[i] = tmp;
- }
-}
-
static inline float find_max_val(int group_len, int swb_size, const float *scaled)
{
float maxval = 0.0f;