@@ -22,7 +22,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/intreadwrite.h"
static av_cold int zero12v_decode_init(AVCodecContext *avctx)
@@ -37,8 +37,8 @@
#include "bswapdsp.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#define BLOCK_TYPE_VLC_BITS 5
@@ -30,16 +30,13 @@
* : RGB32 (RGB 32bpp, 4th plane is alpha)
*/
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
+#include "libavutil/bswap.h"
#include "libavutil/internal.h"
-#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
-#include "internal.h"
static const enum AVPixelFormat pixfmt_rgb24[] = {
@@ -42,7 +42,7 @@
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/common.h"
/** decoder context */
@@ -91,6 +91,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/thread.h"
+#include "decode.h"
#include "internal.h"
static VLC vlc_scalefactors;
@@ -44,6 +44,7 @@
#include "ac3dec.h"
#include "ac3dec_data.h"
#include "ac3defs.h"
+#include "decode.h"
#include "kbdwin.h"
/**
@@ -43,7 +43,7 @@
#include "adpcm.h"
#include "adpcm_data.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
/**
* @file
@@ -23,8 +23,8 @@
#include "avcodec.h"
#include "adx.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
/**
* @file
@@ -32,6 +32,7 @@
#include "bytestream.h"
#include "codec_internal.h"
#include "copy_block.h"
+#include "decode.h"
#include "get_bits.h"
#include "idctdsp.h"
#include "internal.h"
@@ -24,6 +24,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define ALIAS_HEADER_SIZE 10
@@ -34,6 +34,7 @@
#include "bgmc.h"
#include "bswapdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "mlz.h"
#include "libavutil/samplefmt.h"
@@ -44,7 +44,6 @@
#include <math.h>
#include "libavutil/channel_layout.h"
-#include "libavutil/float_dsp.h"
#include "avcodec.h"
#include "libavutil/common.h"
#include "libavutil/avassert.h"
@@ -56,7 +55,7 @@
#include "lsp.h"
#include "amr.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "amrnbdata.h"
@@ -26,7 +26,6 @@
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
-#include "libavutil/float_dsp.h"
#include "libavutil/lfg.h"
#include "avcodec.h"
@@ -37,7 +36,7 @@
#include "acelp_vectors.h"
#include "acelp_pitch_delay.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#define AMR_USE_16BIT_TABLES
#include "amr.h"
@@ -31,7 +31,7 @@
#include "bswapdsp.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "unary.h"
@@ -25,7 +25,7 @@
#include "libavutil/channel_layout.h"
#include "aptx.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
/*
* Half-band QMF synthesis filter realized with a polyphase FIR filter.
@@ -19,18 +19,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct ARBCContext {
GetByteContext gb;
@@ -32,8 +32,8 @@
#include "blockdsp.h"
#include "codec_internal.h"
#include "config_components.h"
+#include "decode.h"
#include "idctdsp.h"
-#include "internal.h"
#include "mpeg12data.h"
#define CCP_VLC_BITS 5
@@ -29,17 +29,15 @@
/* Many thanks to Tim Craig for all the help! */
#include <math.h>
-#include <stddef.h>
-#include <stdio.h>
#include "libavutil/float_dsp.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "fft.h"
-#include "internal.h"
#include "sinewin.h"
#include "atrac.h"
@@ -34,7 +34,6 @@
#include <math.h>
#include <stddef.h>
-#include <stdio.h>
#include "libavutil/attributes.h"
#include "libavutil/float_dsp.h"
@@ -45,9 +44,9 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "fft.h"
#include "get_bits.h"
-#include "internal.h"
#include "atrac.h"
#include "atrac3data.h"
@@ -43,8 +43,8 @@
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "atrac.h"
#include "atrac3plus.h"
@@ -23,7 +23,7 @@
#include "libavutil/thread.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "fft.h"
#include "atrac9tab.h"
@@ -28,7 +28,7 @@
#include "ac3_parser_internal.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "mpegaudiodecheader.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
@@ -25,7 +25,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/internal.h"
static av_cold int aura_decode_init(AVCodecContext *avctx)
@@ -21,7 +21,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/imgutils.h"
typedef struct {
@@ -22,7 +22,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/intreadwrite.h"
static av_cold int avui_decode_init(AVCodecContext *avctx)
@@ -30,7 +30,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct BFIContext {
AVCodecContext *avctx;
@@ -35,8 +35,6 @@
#include "decode.h"
#include "get_bits.h"
#include "hpeldsp.h"
-#include "internal.h"
-#include "mathops.h"
#define BINK_FLAG_ALPHA 0x00100000
#define BINK_FLAG_GRAY 0x00020000
@@ -36,7 +36,7 @@
#include "cga_data.h"
#include "bintext.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#define FONT_WIDTH 8
@@ -25,6 +25,7 @@
#include "bytestream.h"
#include "bmp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "msrledec.h"
@@ -24,7 +24,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static const int bmv_aud_mults[16] = {
16512, 8256, 4128, 2064, 1032, 516, 258, 192, 129, 88, 64, 56, 48, 40, 36, 32
@@ -25,7 +25,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
enum BMVFlags{
BMV_NOP = 0,
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define HEADER1_CHUNK 0x03
@@ -31,6 +31,7 @@
#include "golomb.h"
#include "cavs.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "mathops.h"
#include "mpeg12data.h"
@@ -32,6 +32,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
@@ -26,8 +26,8 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
static int decode_frame(AVCodecContext *avctx, AVFrame *p,
int *got_frame, AVPacket *avpkt)
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "celp_filters.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "libavutil/lfg.h"
@@ -52,8 +52,8 @@
#include "get_bits.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "fft.h"
-#include "internal.h"
#include "sinewin.h"
#include "unary.h"
@@ -30,13 +30,11 @@
#include "config_components.h"
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/internal.h"
@@ -25,6 +25,7 @@
#include "dcahuff.h"
#include "dcamath.h"
#include "dca_syncwords.h"
+#include "decode.h"
#include "internal.h"
#if ARCH_ARM
@@ -28,6 +28,7 @@
#include "dcahuff.h"
#include "dca_syncwords.h"
#include "bytestream.h"
+#include "decode.h"
#include "internal.h"
#define AMP_MAX 56
@@ -23,6 +23,7 @@
#include "dcadata.h"
#include "dcamath.h"
#include "dca_syncwords.h"
+#include "decode.h"
#include "internal.h"
#include "unary.h"
@@ -34,6 +34,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "texturedsp.h"
#include "thread.h"
@@ -112,6 +112,13 @@ int ff_decode_preinit(AVCodecContext *avctx);
*/
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);
+/**
+ * Get a buffer for a frame. This is a wrapper around
+ * AVCodecContext.get_buffer() and should be used instead calling get_buffer()
+ * directly.
+ */
+int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags);
+
#define FF_REGET_BUFFER_FLAG_READONLY 1 ///< the returned buffer does not need to be writable
/**
* Identical in function to ff_get_buffer(), except it reuses the existing buffer
@@ -25,7 +25,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
@@ -29,7 +29,7 @@
#include "avcodec.h"
#include "codec_id.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct {
int fq, q, s, lt;
@@ -33,6 +33,7 @@
#include "get_bits.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "golomb.h"
#include "dirac_arith.h"
@@ -26,7 +26,7 @@
#include "libavutil/opt.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "dolby_e.h"
#include "kbdwin.h"
@@ -37,11 +37,10 @@
* the fourcc 'Axan' in the 'auds' chunk of the AVI header.
*/
-#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "mathops.h"
typedef struct DPCMContext {
@@ -27,6 +27,7 @@
#include "bytestream.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
enum DPX_TRC {
@@ -29,6 +29,7 @@
#include "libavcodec/internal.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "dsd.h"
#define DSD_SILENCE 0x69
@@ -25,11 +25,11 @@
*/
#include "libavutil/channel_layout.h"
+#include "libavutil/intreadwrite.h"
#include "avcodec.h"
-#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "mathops.h"
typedef struct CinAudioContext {
@@ -22,12 +22,11 @@
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/mem_internal.h"
-#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#define SUBFRAMES 4
#define PULSE_MAX 8
@@ -29,11 +29,10 @@
#include "libavutil/mem_internal.h"
#include "libavutil/reverse.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "avcodec.h"
#include "golomb.h"
-#include "mathops.h"
#include "dsd.h"
#define DST_MAX_CHANNELS 6
@@ -22,7 +22,7 @@
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "dvaudio.h"
typedef struct DVAudioContext {
@@ -24,15 +24,12 @@
* DXA Video decoder
*/
-#include <stdio.h>
-#include <stdlib.h>
-
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "bytestream.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include <zlib.h>
@@ -33,6 +33,7 @@
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
typedef struct CmvContext {
@@ -35,6 +35,7 @@
#include "bytestream.h"
#include "bswapdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "aandcttab.h"
#include "eaidct.h"
@@ -36,6 +36,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "eaidct.h"
#include "get_bits.h"
#include "idctdsp.h"
@@ -35,6 +35,7 @@
#include "avcodec.h"
#include "get_bits.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define EA_PREAMBLE_SIZE 8
@@ -32,6 +32,7 @@
#include "blockdsp.h"
#include "bswapdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "aandcttab.h"
#include "eaidct.h"
@@ -22,8 +22,8 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
typedef union MacroBlock {
uint16_t pixels[4];
@@ -25,8 +25,8 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
typedef struct Escape130Context {
uint8_t *old_y_avg;
@@ -30,7 +30,7 @@
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "evrcdata.h"
#include "acelp_vectors.h"
@@ -21,13 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/intreadwrite.h"
-
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
-#include "mathops.h"
+#include "decode.h"
typedef struct ChannelItems {
float f[8];
@@ -23,7 +23,7 @@
#include "libavutil/log.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#define SIN_BITS 14
@@ -32,6 +32,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include <float.h>
#include "libavutil/intreadwrite.h"
@@ -21,13 +21,12 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#define BLOCK_HEIGHT 112u
#define BLOCK_WIDTH 84u
@@ -23,7 +23,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/opt.h"
typedef struct {
@@ -36,6 +36,7 @@
#include "blockdsp.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "elsdec.h"
#include "get_bits.h"
#include "idctdsp.h"
@@ -38,9 +38,9 @@
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "g722.h"
-#include "internal.h"
#define OFFSET(x) offsetof(G722Context, x)
#define AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM
@@ -33,10 +33,9 @@
#include "acelp_vectors.h"
#include "avcodec.h"
#include "celp_filters.h"
-#include "celp_math.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "g723_1.h"
#define CNG_RANDOM_SEED 12345
@@ -30,8 +30,8 @@
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "encode.h"
-#include "internal.h"
#include "get_bits.h"
#include "put_bits.h"
@@ -27,12 +27,11 @@
#include "get_bits.h"
#include "audiodsp.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "g729.h"
#include "lsp.h"
-#include "celp_math.h"
#include "celp_filters.h"
#include "acelp_filters.h"
#include "acelp_pitch_delay.h"
@@ -25,7 +25,6 @@
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
-#include "internal.h"
typedef struct GDVContext {
AVCodecContext *avctx;
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
static const uint32_t gem_color_palette[16]={
@@ -29,8 +29,8 @@
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "msgsmdec.h"
#include "gsmdec_template.c"
@@ -18,15 +18,14 @@
#include "libavutil/crc.h"
#include "libavutil/float_dsp.h"
-#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavutil/tx.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "hca_data.h"
typedef struct ChannelContext {
@@ -22,8 +22,8 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
typedef struct HEntry {
int16_t l, r;
@@ -29,7 +29,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#define HNM4_CHUNK_ID_PL 19536
#define HNM4_CHUNK_ID_IZ 23113
@@ -27,6 +27,7 @@
#include "bytestream.h"
#include "canopus.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
@@ -44,14 +44,12 @@
* decoding algorithm and it worked fine on much lower spec machines.
*/
-#include <stdio.h>
-#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
-#include "internal.h"
#include "libavutil/internal.h"
#define HUFFMAN_TABLE_SIZE 64 * 1024
@@ -33,8 +33,7 @@
#include "bytestream.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
-#include "mathops.h"
+#include "decode.h"
// TODO: masking bits
typedef enum {
@@ -33,7 +33,7 @@
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "ilbcdata.h"
@@ -33,7 +33,6 @@
#include <math.h>
#include <stddef.h>
-#include <stdio.h>
#include "libavutil/channel_layout.h"
#include "libavutil/ffmath.h"
@@ -45,9 +44,9 @@
#include "avcodec.h"
#include "bswapdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "fft.h"
-#include "internal.h"
#include "sinewin.h"
#include "imcdata.h"
@@ -30,6 +30,7 @@
#include "avcodec.h"
#include "bswapdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "copy_block.h"
#include "get_bits.h"
#include "idctdsp.h"
@@ -34,6 +34,7 @@
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "copy_block.h"
#include "bytestream.h"
#include "get_bits.h"
@@ -213,13 +213,6 @@ static av_always_inline float ff_exp2fi(int x) {
return 0;
}
-/**
- * Get a buffer for a frame. This is a wrapper around
- * AVCodecContext.get_buffer() and should be used instead calling get_buffer()
- * directly.
- */
-int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags);
-
int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx);
int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec);
@@ -24,8 +24,8 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
static const int8_t map_1bit[] = { -1, +1 };
static const int8_t map_2bit_near[] = { -2, -1, +1, +2 };
@@ -35,7 +35,6 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
@@ -47,7 +46,6 @@
#include "decode.h"
#include "get_bits.h"
#include "hpeldsp.h"
-#include "internal.h"
#define PALETTE_COUNT 256
@@ -34,6 +34,7 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
#include "ivi.h"
@@ -32,7 +32,6 @@
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
typedef struct JvContext {
BlockDSPContext bdsp;
@@ -29,6 +29,7 @@
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
typedef struct KgvContext {
@@ -25,13 +25,11 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
-#include "internal.h"
#include "libavutil/common.h"
#define KMVC_KEYFRAME 0x80
@@ -32,6 +32,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "libaom.h"
#include "profiles.h"
@@ -23,7 +23,7 @@
#include <celt/celt_header.h>
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/intreadwrite.h"
struct libcelt_context {
@@ -24,8 +24,8 @@
#include "avcodec.h"
#include "libavutil/opt.h"
#include "codec_internal.h"
+#include "decode.h"
#include "encode.h"
-#include "internal.h"
#include "codec2utils.h"
typedef struct {
@@ -24,7 +24,7 @@
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#ifdef AACDECODER_LIB_VL0
#define FDKDEC_VER_AT_LEAST(vl0, vl1) \
@@ -40,7 +40,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "gsm.h"
typedef struct LibGSMDecodeContext {
@@ -26,8 +26,8 @@
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "encode.h"
-#include "internal.h"
#ifndef LIBILBC_VERSION_MAJOR
#define LIBILBC_VERSION_MAJOR 2
@@ -36,6 +36,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include <jxl/decode.h>
@@ -30,8 +30,8 @@
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "codec_internal.h"
+#include "decode.h"
#include "encode.h"
-#include "internal.h"
#if CONFIG_LIBOPENCORE_AMRNB_DECODER || CONFIG_LIBOPENCORE_AMRWB_DECODER
static int amr_decode_fix_avctx(AVCodecContext *avctx)
@@ -31,6 +31,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "libopenh264.h"
@@ -29,6 +29,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "vorbis.h"
#include "mathops.h"
@@ -21,6 +21,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "libavutil/opt.h"
#include "librsvg-2.0/librsvg/rsvg.h"
@@ -27,7 +27,7 @@
#include "libavutil/common.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct LibSpeexContext {
SpeexBits bits;
@@ -30,6 +30,7 @@
#include "avcodec.h"
#include "avs3.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "uavs3d.h"
@@ -23,7 +23,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct OggVorbisDecContext {
vorbis_info vi; /**< vorbis_info used during init */
@@ -26,9 +26,9 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "golomb.h"
-#include "internal.h"
#include "mathops.h"
enum LOCO_MODE {
@@ -22,7 +22,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int m101_decode_init(AVCodecContext *avctx)
@@ -26,7 +26,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/common.h"
/*
@@ -36,6 +36,7 @@
#include "libavutil/thread.h"
#include "libavutil/opt.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
#include "libavutil/crc.h"
@@ -33,8 +33,8 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "mpegaudiodsp.h"
#include "mpc.h"
@@ -30,8 +30,8 @@
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "mpegaudiodsp.h"
#include "mpc.h"
@@ -40,6 +40,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "error_resilience.h"
#include "hwconfig.h"
#include "idctdsp.h"
@@ -36,8 +36,8 @@
#include "libavutil/thread.h"
#include "avcodec.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "mathops.h"
#include "mpegaudiodsp.h"
@@ -21,13 +21,12 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "zlib_wrapper.h"
#include <zlib.h>
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static int msp2_decode_frame(AVCodecContext *avctx, AVFrame *p,
int *got_frame, AVPacket *avpkt)
@@ -27,7 +27,6 @@
#include "codec_internal.h"
#include "decode.h"
#include "error_resilience.h"
-#include "internal.h"
#include "mpeg_er.h"
#include "mpegvideodec.h"
#include "msmpeg4dec.h"
@@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdio.h>
-#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
#include "libavutil/thread.h"
@@ -30,10 +29,10 @@
#include "bytestream.h"
#include "codec_internal.h"
#include "copy_block.h"
+#include "decode.h"
#include "mathops.h"
#include "blockdsp.h"
#include "get_bits.h"
-#include "internal.h"
#include "aandcttab.h"
#define CBP_VLC_BITS 9
@@ -31,6 +31,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
typedef struct MvcContext {
@@ -20,18 +20,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#define CACHED_BITSTREAM_READER !ARCH_X86_32
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
-#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "lossless_videodsp.h"
#include "zlib_wrapper.h"
@@ -21,13 +21,11 @@
*/
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "zlib_wrapper.h"
#include <zlib.h>
@@ -26,7 +26,7 @@
*/
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "mjpeg.h"
#include "mjpegdec.h"
@@ -35,14 +35,13 @@
#include "libavutil/float_dsp.h"
#include "libavutil/lfg.h"
#include "libavutil/mem_internal.h"
-#include "libavutil/random_seed.h"
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "fft.h"
#include "get_bits.h"
-#include "internal.h"
#include "nellymoser.h"
#include "sinewin.h"
@@ -28,9 +28,9 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "fft.h"
#include "get_bits.h"
-#include "internal.h"
#include "on2avcdata.h"
@@ -44,9 +44,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "get_bits.h"
-#include "internal.h"
-#include "mathops.h"
+#include "decode.h"
#include "opus.h"
#include "opustab.h"
#include "opus_celt.h"
@@ -24,7 +24,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "mathops.h"
#include "paf.h"
@@ -28,7 +28,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
/*
* Channel Mapping according to
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct PCMDVDContext {
uint32_t last_header; // Cached header to see if parsing is needed
@@ -33,9 +33,8 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "encode.h"
-#include "internal.h"
-#include "mathops.h"
#include "pcm_tablegen.h"
static av_cold int pcm_encode_init(AVCodecContext *avctx)
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
@@ -23,7 +23,7 @@
#include "internal.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "libavutil/imgutils.h"
+#include "decode.h"
static int pgx_get_number(AVCodecContext *avctx, GetByteContext *g, int *number) {
int ret = AVERROR_INVALIDDATA;
@@ -29,6 +29,7 @@
#include "bytestream.h"
#include "cga_data.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
typedef struct PicContext {
@@ -25,7 +25,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "put_bits.h"
#include "pnm.h"
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
-#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
@@ -31,7 +30,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
typedef struct ProSumerContext {
GetByteContext gb;
@@ -21,6 +21,7 @@
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
enum PsdCompr {
@@ -21,9 +21,9 @@
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
-#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
static int ptx_decode_frame(AVCodecContext *avctx, AVFrame *p,
@@ -27,14 +27,12 @@
* @remark Development mentored by Benjamin Larson
*/
-#include <stddef.h>
-
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "qcelpdata.h"
#include "celp_filters.h"
@@ -33,7 +33,6 @@
#include <math.h>
#include <stddef.h>
-#include <stdio.h>
#include "libavutil/channel_layout.h"
#include "libavutil/mem_internal.h"
@@ -44,7 +43,7 @@
#include "get_bits.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "mpegaudio.h"
#include "mpegaudiodsp.h"
#include "rdft.h"
@@ -21,7 +21,6 @@
#include <math.h>
#include <stddef.h>
-#include <stdio.h>
#define BITSTREAM_READER_LE
@@ -32,8 +31,8 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
typedef struct QDMCTone {
uint8_t mode;
@@ -31,6 +31,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
enum QuickdrawOpcodes {
@@ -28,7 +28,6 @@
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
-#include "internal.h"
typedef struct QpegContext{
AVCodecContext *avctx;
@@ -23,7 +23,7 @@
#include "avcodec.h"
#include "codec_internal.h"
#include "config_components.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/bswap.h"
#include "libavutil/common.h"
@@ -25,8 +25,8 @@
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "ra144.h"
@@ -28,8 +28,8 @@
#include "avcodec.h"
#include "celp_filters.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "lpc.h"
#include "ra288.h"
@@ -30,9 +30,9 @@
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "golomb.h"
-#include "internal.h"
#include "unary.h"
#include "ralfdata.h"
@@ -21,15 +21,14 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "zlib_wrapper.h"
@@ -35,6 +35,7 @@
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
@@ -27,8 +27,7 @@
#include "libavutil/reverse.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
-#include "mathops.h"
+#include "decode.h"
#define AES3_HEADER_LEN 4
@@ -28,6 +28,7 @@
#include "bytestream.h"
#include "copy_block.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define NGLYPHS 256
@@ -32,7 +32,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
@@ -20,15 +20,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
-#include "internal.h"
#include "scpr.h"
#include "scpr3.h"
@@ -28,7 +28,6 @@
#include "avcodec.h"
#include "bytestream.h"
-#include "internal.h"
#include "scpr.h"
static void renew_table3(uint32_t nsym, uint32_t *cntsum,
@@ -23,6 +23,7 @@
#include "get_bits.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define PALDATA_FOLLOWS_TILEDATA 4
@@ -23,6 +23,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "sgi.h"
@@ -30,7 +30,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int sgirle_decode_init(AVCodecContext *avctx)
{
@@ -30,9 +30,9 @@
#include "bswapdsp.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "golomb.h"
-#include "internal.h"
#define MAX_CHANNELS 8
#define MAX_BLOCKSIZE 65535
@@ -32,8 +32,8 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "lsp.h"
#include "acelp_vectors.h"
#include "acelp_pitch_delay.h"
@@ -28,9 +28,8 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
-#include "mathops.h"
static const uint8_t index_table[8] = {4, 4, 3, 3, 2, 2, 1, 0};
static const uint8_t vector_dimension[8] = { 2, 2, 2, 4, 4, 5, 5, 1 };
@@ -28,8 +28,7 @@
* Based on http://wiki.multimedia.cx/index.php?title=Smacker
*/
-#include <stdio.h>
-#include <stdlib.h>
+#include <stddef.h>
#include "libavutil/channel_layout.h"
@@ -53,8 +52,6 @@
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
-#include "mathops.h"
typedef struct SmackVContext {
AVCodecContext *avctx;
@@ -18,21 +18,16 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/intmath.h"
#include "libavutil/log.h"
-#include "libavutil/opt.h"
#include "libavutil/thread.h"
#include "avcodec.h"
+#include "decode.h"
#include "encode.h"
#include "me_cmp.h"
#include "snow_dwt.h"
-#include "internal.h"
#include "snow.h"
#include "snowdata.h"
-#include "rangecoder.h"
-#include "mathops.h"
-
void ff_snow_inner_add_yblock(const uint8_t *obmc, const int obmc_stride, uint8_t * * block, int b_w, int b_h,
int src_x, int src_y, int src_stride, slice_buffer * sb, int add, uint8_t * dst8){
@@ -23,10 +23,10 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "encode.h"
#include "get_bits.h"
#include "golomb.h"
-#include "internal.h"
#include "put_golomb.h"
#include "rangecoder.h"
@@ -26,7 +26,6 @@
#define BITSTREAM_READER_LE
-#include "config.h"
#include "config_components.h"
#include "libavutil/attributes.h"
#include "libavutil/mem_internal.h"
@@ -34,9 +33,9 @@
#include "avcodec.h"
#include "blockdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "idctdsp.h"
-#include "internal.h"
#include "libavutil/thread.h"
#include "mathops.h"
#include "mpeg12dec.h"
@@ -56,8 +56,8 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "speexdata.h"
#define SPEEX_NB_MODES 3
@@ -24,6 +24,7 @@
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "sunrast.h"
@@ -37,6 +37,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "h263data.h"
#include "hpeldsp.h"
@@ -47,6 +47,7 @@
#include "libavutil/mem_internal.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "avcodec.h"
#include "mpegutils.h"
@@ -24,6 +24,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "targa.h"
@@ -21,7 +21,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int y216_decode_init(AVCodecContext *avctx)
{
@@ -41,6 +41,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define BITMAPINFOHEADER_SIZE 0x28
@@ -30,7 +30,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/internal.h"
#include "libavutil/xga_font_data.h"
@@ -29,6 +29,7 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
@@ -20,14 +20,13 @@
*/
#include "libavutil/channel_layout.h"
-#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "truespeech_data.h"
/**
@@ -25,8 +25,8 @@
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "avcodec.h"
+#include "decode.h"
#include "fft.h"
-#include "internal.h"
#include "lsp.h"
#include "sinewin.h"
#include "twinvq.h"
@@ -26,6 +26,7 @@
#include "bytestream.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "texturedsp.h"
@@ -20,7 +20,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/bswap.h"
#include "libavutil/internal.h"
@@ -21,7 +21,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int v308_decode_init(AVCodecContext *avctx)
{
@@ -23,7 +23,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int v408_decode_init(AVCodecContext *avctx)
{
@@ -24,13 +24,10 @@
* VB Video decoder
*/
-#include <stdio.h>
-#include <stdlib.h>
-
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
enum VBFlags {
VB_HAS_GMC = 0x01,
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "texturedsp.h"
#include "vbn.h"
@@ -34,7 +34,6 @@
#include "decode.h"
#include "get_bits.h"
#include "hwconfig.h"
-#include "internal.h"
#include "mpeg_er.h"
#include "mpegvideo.h"
#include "mpegvideodec.h"
@@ -26,7 +26,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "libavutil/avassert.h"
#include "libavutil/internal.h"
@@ -31,8 +31,8 @@
#include "adpcm_data.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
static uint16_t predict_table[5786 * 2];
@@ -42,7 +42,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#define BLOCK_TYPE_AUDIO 1
#define BLOCK_TYPE_INITIAL 2
@@ -40,7 +40,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "bytestream.h"
#define VMD_HEADER_SIZE 0x330
@@ -35,9 +35,9 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "fft.h"
#include "get_bits.h"
-#include "internal.h"
#include "vorbis.h"
#include "vorbisdsp.h"
#include "xiph.h"
@@ -25,6 +25,7 @@
#include "avcodec.h"
#include "bytestream.h"
+#include "decode.h"
#include "internal.h"
#include "h264chroma.h"
#include "vp56.h"
@@ -40,6 +40,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "wma.h"
@@ -30,11 +30,10 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "put_bits.h"
#include "lossless_audiodsp.h"
-#include "wma.h"
#include "wma_common.h"
/** current decoder limitations */
@@ -98,8 +98,9 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
+#include "internal.h"
#include "put_bits.h"
#include "wmaprodata.h"
#include "sinewin.h"
@@ -33,7 +33,7 @@
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "put_bits.h"
#include "wmavoice_data.h"
@@ -29,8 +29,8 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
static const uint8_t code_tab[16][2] = {
{ 7, 1 }, { 8, 3 }, { 6, 3 }, { 9, 4 }, { 5, 4 }, { 10, 5 }, { 4, 5 },
@@ -26,7 +26,7 @@
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
/**
* @file
@@ -28,8 +28,6 @@
* The xan_wc3 decoder outputs PAL8 data.
*/
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
@@ -39,8 +37,8 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#define RUNTIME_GAMMA 0
@@ -25,6 +25,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "mathops.h"
@@ -24,11 +24,9 @@
* X-Face decoder, based on libcompface, by James Ashton.
*/
-#include "libavutil/pixdesc.h"
#include "avcodec.h"
-#include "bytestream.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "xface.h"
static int pop_integer(BigInt *b, const ProbRange *pranges)
@@ -28,7 +28,7 @@
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static const int xl_table[32] = {
0, 1, 2, 3, 4, 5, 6, 7,
@@ -21,10 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/parseutils.h"
#include "libavutil/avstring.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#define MIN_ELEMENT ' '
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
#include "xwd.h"
@@ -22,7 +22,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int y41p_decode_init(AVCodecContext *avctx)
{
@@ -22,7 +22,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int yuv4_decode_init(AVCodecContext *avctx)
{
@@ -20,7 +20,7 @@
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "zlib_wrapper.h"
#include "libavutil/common.h"
@@ -24,15 +24,14 @@
* Zip Motion Blocks Video decoder
*/
-#include <stdio.h>
-#include <stdlib.h>
+#include <stddef.h>
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
#include "zlib_wrapper.h"
#include <zlib.h>
Only used by decoders (encoders have ff_encode_alloc_frame()). Also clean up the other headers a bit while removing now redundant internal.h inclusions. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/012v.c | 2 +- libavcodec/4xm.c | 2 +- libavcodec/8bps.c | 5 +---- libavcodec/8svx.c | 2 +- libavcodec/aacdec_template.c | 1 + libavcodec/ac3dec.c | 1 + libavcodec/adpcm.c | 2 +- libavcodec/adxdec.c | 2 +- libavcodec/agm.c | 1 + libavcodec/aliaspixdec.c | 1 + libavcodec/alsdec.c | 1 + libavcodec/amrnbdec.c | 3 +-- libavcodec/amrwbdec.c | 3 +-- libavcodec/apedec.c | 2 +- libavcodec/aptxdec.c | 2 +- libavcodec/arbc.c | 7 +------ libavcodec/asvdec.c | 2 +- libavcodec/atrac1.c | 4 +--- libavcodec/atrac3.c | 3 +-- libavcodec/atrac3plusdec.c | 2 +- libavcodec/atrac9dec.c | 2 +- libavcodec/audiotoolboxdec.c | 2 +- libavcodec/aura.c | 2 +- libavcodec/avrndec.c | 2 +- libavcodec/avuidec.c | 2 +- libavcodec/bfi.c | 2 +- libavcodec/bink.c | 2 -- libavcodec/bintext.c | 2 +- libavcodec/bmp.c | 1 + libavcodec/bmvaudio.c | 2 +- libavcodec/bmvvideo.c | 2 +- libavcodec/brenderpix.c | 1 + libavcodec/cavsdec.c | 1 + libavcodec/cdxl.c | 1 + libavcodec/cljrdec.c | 2 +- libavcodec/cngdec.c | 1 + libavcodec/cook.c | 2 +- libavcodec/cyuv.c | 4 +--- libavcodec/dca_core.c | 1 + libavcodec/dca_lbr.c | 1 + libavcodec/dca_xll.c | 1 + libavcodec/dds.c | 1 + libavcodec/decode.h | 7 +++++++ libavcodec/dfa.c | 2 +- libavcodec/dfpwmdec.c | 2 +- libavcodec/diracdec.c | 1 + libavcodec/dolby_e.c | 2 +- libavcodec/dpcm.c | 3 +-- libavcodec/dpx.c | 1 + libavcodec/dsddec.c | 1 + libavcodec/dsicinaudio.c | 4 ++-- libavcodec/dss_sp.c | 3 +-- libavcodec/dstdec.c | 3 +-- libavcodec/dvaudiodec.c | 2 +- libavcodec/dxa.c | 5 +---- libavcodec/eacmv.c | 1 + libavcodec/eamad.c | 1 + libavcodec/eatgq.c | 1 + libavcodec/eatgv.c | 1 + libavcodec/eatqi.c | 1 + libavcodec/escape124.c | 2 +- libavcodec/escape130.c | 2 +- libavcodec/evrcdec.c | 2 +- libavcodec/fastaudio.c | 5 +---- libavcodec/ffwavesynth.c | 2 +- libavcodec/fitsdec.c | 1 + libavcodec/fmvc.c | 3 +-- libavcodec/frwu.c | 2 +- libavcodec/g2meet.c | 1 + libavcodec/g722dec.c | 2 +- libavcodec/g723_1dec.c | 3 +-- libavcodec/g726.c | 2 +- libavcodec/g729dec.c | 3 +-- libavcodec/gdv.c | 1 - libavcodec/gemdec.c | 1 + libavcodec/gsmdec.c | 2 +- libavcodec/hcadec.c | 3 +-- libavcodec/hcom.c | 2 +- libavcodec/hnm4video.c | 2 +- libavcodec/hq_hqa.c | 1 + libavcodec/idcinvideo.c | 4 +--- libavcodec/iff.c | 3 +-- libavcodec/ilbcdec.c | 2 +- libavcodec/imc.c | 3 +-- libavcodec/imm4.c | 1 + libavcodec/indeo3.c | 1 + libavcodec/internal.h | 7 ------- libavcodec/interplayacm.c | 2 +- libavcodec/interplayvideo.c | 2 -- libavcodec/ivi.c | 1 + libavcodec/jvdec.c | 1 - libavcodec/kgv1dec.c | 1 + libavcodec/kmvc.c | 2 -- libavcodec/libaomdec.c | 1 + libavcodec/libcelt_dec.c | 2 +- libavcodec/libcodec2.c | 2 +- libavcodec/libfdk-aacdec.c | 2 +- libavcodec/libgsmdec.c | 2 +- libavcodec/libilbc.c | 2 +- libavcodec/libjxldec.c | 1 + libavcodec/libopencore-amr.c | 2 +- libavcodec/libopenh264dec.c | 1 + libavcodec/libopusdec.c | 1 + libavcodec/librsvgdec.c | 1 + libavcodec/libspeexdec.c | 2 +- libavcodec/libuavs3d.c | 1 + libavcodec/libvorbisdec.c | 2 +- libavcodec/loco.c | 2 +- libavcodec/m101.c | 2 +- libavcodec/mace.c | 2 +- libavcodec/mlpdec.c | 1 + libavcodec/mpc7.c | 2 +- libavcodec/mpc8.c | 2 +- libavcodec/mpeg12dec.c | 1 + libavcodec/mpegaudiodec_template.c | 2 +- libavcodec/mscc.c | 3 +-- libavcodec/msp2dec.c | 2 +- libavcodec/mss2.c | 1 - libavcodec/mv30.c | 5 ++--- libavcodec/mvcdec.c | 1 + libavcodec/mvha.c | 7 +------ libavcodec/mwsc.c | 4 +--- libavcodec/mxpegdec.c | 2 +- libavcodec/nellymoserdec.c | 3 +-- libavcodec/on2avc.c | 2 +- libavcodec/opusdec.c | 4 +--- libavcodec/pafaudio.c | 2 +- libavcodec/pcm-bluray.c | 2 +- libavcodec/pcm-dvd.c | 2 +- libavcodec/pcm.c | 3 +-- libavcodec/pcx.c | 1 + libavcodec/pgxdec.c | 2 +- libavcodec/pictordec.c | 1 + libavcodec/pnmdec.c | 2 +- libavcodec/prosumer.c | 3 +-- libavcodec/psd.c | 1 + libavcodec/ptx.c | 2 +- libavcodec/qcelpdec.c | 4 +--- libavcodec/qdm2.c | 3 +-- libavcodec/qdmc.c | 3 +-- libavcodec/qdrw.c | 1 + libavcodec/qpeg.c | 1 - libavcodec/r210dec.c | 2 +- libavcodec/ra144dec.c | 2 +- libavcodec/ra288.c | 2 +- libavcodec/ralf.c | 2 +- libavcodec/rasc.c | 3 +-- libavcodec/rl2.c | 1 + libavcodec/s302m.c | 3 +-- libavcodec/sanm.c | 1 + libavcodec/sbcdec.c | 2 +- libavcodec/scpr.c | 3 --- libavcodec/scpr3.c | 1 - libavcodec/sga.c | 1 + libavcodec/sgidec.c | 1 + libavcodec/sgirledec.c | 2 +- libavcodec/shorten.c | 2 +- libavcodec/sipr.c | 2 +- libavcodec/siren.c | 3 +-- libavcodec/smacker.c | 5 +---- libavcodec/snow.c | 7 +------ libavcodec/sonic.c | 2 +- libavcodec/speedhq.c | 3 +-- libavcodec/speexdec.c | 2 +- libavcodec/sunrast.c | 1 + libavcodec/svq1dec.c | 1 + libavcodec/svq3.c | 1 + libavcodec/targa.c | 1 + libavcodec/targa_y216dec.c | 2 +- libavcodec/tdsc.c | 1 + libavcodec/tmv.c | 2 +- libavcodec/truemotion2rt.c | 1 + libavcodec/truespeech.c | 3 +-- libavcodec/twinvq.c | 2 +- libavcodec/txd.c | 1 + libavcodec/v210x.c | 2 +- libavcodec/v308dec.c | 2 +- libavcodec/v408dec.c | 2 +- libavcodec/vb.c | 5 +---- libavcodec/vbndec.c | 1 + libavcodec/vc1dec.c | 1 - libavcodec/vcr1.c | 2 +- libavcodec/vima.c | 2 +- libavcodec/vmdaudio.c | 2 +- libavcodec/vmdvideo.c | 2 +- libavcodec/vorbisdec.c | 2 +- libavcodec/vp56.c | 1 + libavcodec/wmadec.c | 1 + libavcodec/wmalosslessdec.c | 3 +-- libavcodec/wmaprodec.c | 3 ++- libavcodec/wmavoice.c | 2 +- libavcodec/wnv1.c | 2 +- libavcodec/ws-snd1.c | 2 +- libavcodec/xan.c | 4 +--- libavcodec/xbmdec.c | 1 + libavcodec/xfacedec.c | 4 +--- libavcodec/xl.c | 2 +- libavcodec/xpmdec.c | 2 +- libavcodec/xwddec.c | 1 + libavcodec/y41pdec.c | 2 +- libavcodec/yuv4dec.c | 2 +- libavcodec/zerocodec.c | 2 +- libavcodec/zmbv.c | 5 ++--- 203 files changed, 202 insertions(+), 229 deletions(-)