diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-17 20:23:29 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-20 00:09:05 +0100 |
commit | 8d17ab607f1b33f68f94a67c546f64a50ee90f9a (patch) | |
tree | 7c177e33f9049df5875e9d7c18c3e44a529bc829 /libavcodec/internal.h | |
parent | 42f6dfc42e81725f466001b64f0536622a6682ed (diff) | |
download | ffmpeg-8d17ab607f1b33f68f94a67c546f64a50ee90f9a.tar.gz |
avcodec/internal: Move ff_exp2fi() to aacsbr.c
Only used there.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index eb9e0d707c..04f7cebdcb 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -26,10 +26,7 @@ #include <stdint.h> -#include "libavutil/buffer.h" #include "libavutil/channel_layout.h" -#include "libavutil/mathematics.h" -#include "libavutil/pixfmt.h" #include "avcodec.h" #include "config.h" @@ -157,25 +154,6 @@ int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); unsigned int ff_toupper4(unsigned int x); -/** - * 2^(x) for integer x - * @return correctly rounded float - */ -static av_always_inline float ff_exp2fi(int x) { - /* Normal range */ - if (-126 <= x && x <= 128) - return av_int2float((x+127) << 23); - /* Too large */ - else if (x > 128) - return INFINITY; - /* Subnormal numbers */ - else if (x > -150) - return av_int2float(1 << (x+149)); - /* Negligibly small */ - else - return 0; -} - int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx); int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec); |