diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-18 12:57:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-28 09:38:45 +0200 |
commit | 6856cabd1386dbd8d5e99ae39042a826b6b141ad (patch) | |
tree | 9b06911b3567168ccb1b0062897aebf4459e35cf /libavcodec/twinvq.h | |
parent | f8efd890bf2ea424b263a02772e4107f80608b59 (diff) | |
download | ffmpeg-6856cabd1386dbd8d5e99ae39042a826b6b141ad.tar.gz |
avcodec/metasound_data: Move data shared with twinvq into a new file
Namely into a header metasound_twinvq_data.h included
in twinvq.c (the common file of MetaSound and TwinVQ).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/twinvq.h')
-rw-r--r-- | libavcodec/twinvq.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/twinvq.h b/libavcodec/twinvq.h index b3c881cfac..f71d4d1232 100644 --- a/libavcodec/twinvq.h +++ b/libavcodec/twinvq.h @@ -25,6 +25,7 @@ #include <math.h> #include <stdint.h> +#include "libavutil/attributes_internal.h" #include "libavutil/common.h" #include "libavutil/float_dsp.h" #include "avcodec.h" @@ -179,8 +180,15 @@ typedef struct TwinVQContext { const float *shape, float *speech); } TwinVQContext; +FF_VISIBILITY_PUSH_HIDDEN extern const enum TwinVQFrameType ff_twinvq_wtype_to_ftype_table[]; +extern const float ff_metasound_lsp8[]; +extern const float ff_metasound_lsp11[]; +extern const float ff_metasound_lsp16[]; +extern const float ff_metasound_lsp22[]; +extern const float ff_metasound_lsp44[]; + /** @note not speed critical, hence not optimized */ static inline void twinvq_memset_float(float *buf, float val, int size) { @@ -199,5 +207,6 @@ int ff_twinvq_decode_frame(AVCodecContext *avctx, AVFrame *frame, int ff_twinvq_decode_close(AVCodecContext *avctx); /** Requires the caller to call ff_twinvq_decode_close() upon failure. */ int ff_twinvq_decode_init(AVCodecContext *avctx); +FF_VISIBILITY_POP_HIDDEN #endif /* AVCODEC_TWINVQ_H */ |