aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacenc.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.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.h')
-rw-r--r--libavcodec/aacenc.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h
index 752f1c26b2..c18e828905 100644
--- a/libavcodec/aacenc.h
+++ b/libavcodec/aacenc.h
@@ -33,6 +33,7 @@
#include "put_bits.h"
#include "aac.h"
+#include "aacencdsp.h"
#include "audio_frame_queue.h"
#include "psymodel.h"
@@ -233,19 +234,13 @@ typedef struct AACEncContext {
uint16_t quantize_band_cost_cache_generation;
AACQuantizeBandCostCacheEntry quantize_band_cost_cache[256][128]; ///< memoization area for quantize_band_cost
- void (*abs_pow34)(float *out, const float *in, const int size);
- void (*quant_bands)(int *out, const float *in, const float *scaled,
- int size, int is_signed, int maxval, const float Q34,
- const float rounding);
+ AACEncDSPContext aacdsp;
struct {
float *samples;
} buffer;
} AACEncContext;
-void ff_aac_dsp_init(AACEncContext *s);
-void ff_aac_dsp_init_riscv(AACEncContext *s);
-void ff_aac_dsp_init_x86(AACEncContext *s);
void ff_aac_coder_init_mips(AACEncContext *c);
void ff_quantize_band_cost_cache_init(struct AACEncContext *s);