summaryrefslogtreecommitdiff
path: root/libavcodec/codec2utils.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 20:07:50 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:04 -0300
commitb7473ffbf5c240ded6a9a6c53c006cc0dd4af93c (patch)
tree84ac2cd6fb05b3bf8a5fa0e075ba4059e2515cd2 /libavcodec/codec2utils.h
parentc57d07c3d52ac303ee6201dd337694634997958f (diff)
avcodec/codec2utils: Remove legacy avpriv functions
Unused since 37d742b607d47122d23d548ffd7ad9b09cbc5298. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/codec2utils.h')
-rw-r--r--libavcodec/codec2utils.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/libavcodec/codec2utils.h b/libavcodec/codec2utils.h
index 37f0693dc7..6812ae895c 100644
--- a/libavcodec/codec2utils.h
+++ b/libavcodec/codec2utils.h
@@ -24,8 +24,6 @@
#include <stdint.h>
-#include "version.h"
-
//Highest mode we're willing to use.
//Don't want to let users accidentally produce files that can't be decoded in the future.
//CODEC2_MODE_WB (9) is experimental/unstable as of 2017-11-23.
@@ -47,22 +45,6 @@
{ "700B", "700B", 0, AV_OPT_TYPE_CONST, {.i64 = 7}, .flags=option_flags, .unit="codec2_mode"},\
{ "700C", "700C", 0, AV_OPT_TYPE_CONST, {.i64 = 8}, .flags=option_flags, .unit="codec2_mode"}
-#if LIBAVCODEC_VERSION_MAJOR < 59
-//The three following functions are here to avoid needing libavformat/codec2.c to depend on libcodec2
-
-//Computes bitrate from mode, with frames rounded up to the nearest octet.
-//So 700 bit/s (28 bits/frame) becomes 800 bits/s (32 bits/frame).
-//logctx is used for av_log()
-//Returns <0 if mode is invalid
-int avpriv_codec2_mode_bit_rate(void *logctx, int mode);
-
-//Mimics codec2_samples_per_frame()
-int avpriv_codec2_mode_frame_size(void *logctx, int mode);
-
-//Mimics (codec2_bits_per_frame()+7)/8
-int avpriv_codec2_mode_block_align(void *logctx, int mode);
-#endif
-
#define CODEC2_EXTRADATA_SIZE 4
//Used in codec2raw demuxer and libcodec2 encoder