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.
Unified · Split
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "decode.h" | |
| 26 | 26 | #include "libavutil/intreadwrite.h" |
| 27 | 27 | |
| 28 | 28 | static av_cold int zero12v_decode_init(AVCodecContext *avctx) |
| @@ -37,8 +37,8 @@ · 36 unmodified lines | ||
| 37 | 37 | #include "bswapdsp.h" |
| 38 | 38 | #include "bytestream.h" |
| 39 | 39 | #include "codec_internal.h" |
| 40 | +#include "decode.h" | |
| 40 | 41 | #include "get_bits.h" |
| 41 | −#include "internal.h" | |
| 42 | 42 | |
| 43 | 43 | |
| 44 | 44 | #define BLOCK_TYPE_VLC_BITS 5 |
| @@ -30,16 +30,13 @@ · 29 unmodified lines | ||
| 30 | 30 | * : RGB32 (RGB 32bpp, 4th plane is alpha) |
| 31 | 31 | */ |
| 32 | 32 | |
| 33 | −#include <stdio.h> | |
| 34 | −#include <stdlib.h> | |
| 35 | 33 | #include <string.h> |
| 36 | 34 | |
| 35 | +#include "libavutil/bswap.h" | |
| 37 | 36 | #include "libavutil/internal.h" |
| 38 | −#include "libavutil/intreadwrite.h" | |
| 39 | 37 | #include "avcodec.h" |
| 40 | 38 | #include "codec_internal.h" |
| 41 | 39 | #include "decode.h" |
| 42 | −#include "internal.h" | |
| 43 | 40 | |
| 44 | 41 | |
| 45 | 42 | static const enum AVPixelFormat pixfmt_rgb24[] = { |
| @@ -42,7 +42,7 @@ · 41 unmodified lines | ||
| 42 | 42 | #include "libavutil/avassert.h" |
| 43 | 43 | #include "avcodec.h" |
| 44 | 44 | #include "codec_internal.h" |
| 45 | −#include "internal.h" | |
| 45 | +#include "decode.h" | |
| 46 | 46 | #include "libavutil/common.h" |
| 47 | 47 | |
| 48 | 48 | /** decoder context */ |
| @@ -91,6 +91,7 @@ · 90 unmodified lines | ||
| 91 | 91 | |
| 92 | 92 | #include "libavutil/channel_layout.h" |
| 93 | 93 | #include "libavutil/thread.h" |
| 94 | +#include "decode.h" | |
| 94 | 95 | #include "internal.h" |
| 95 | 96 | |
| 96 | 97 | static VLC vlc_scalefactors; |
| @@ -44,6 +44,7 @@ · 43 unmodified lines | ||
| 44 | 44 | #include "ac3dec.h" |
| 45 | 45 | #include "ac3dec_data.h" |
| 46 | 46 | #include "ac3defs.h" |
| 47 | +#include "decode.h" | |
| 47 | 48 | #include "kbdwin.h" |
| 48 | 49 | |
| 49 | 50 | /** |
| @@ -43,7 +43,7 @@ · 42 unmodified lines | ||
| 43 | 43 | #include "adpcm.h" |
| 44 | 44 | #include "adpcm_data.h" |
| 45 | 45 | #include "codec_internal.h" |
| 46 | −#include "internal.h" | |
| 46 | +#include "decode.h" | |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @file |
| @@ -23,8 +23,8 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "adx.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | +#include "decode.h" | |
| 26 | 27 | #include "get_bits.h" |
| 27 | −#include "internal.h" | |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @file |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | #include "bytestream.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | 34 | #include "copy_block.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "get_bits.h" |
| 36 | 37 | #include "idctdsp.h" |
| 37 | 38 | #include "internal.h" |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "bytestream.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 27 | 28 | #include "internal.h" |
| 28 | 29 | |
| 29 | 30 | #define ALIAS_HEADER_SIZE 10 |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | ||
| 34 | 34 | #include "bgmc.h" |
| 35 | 35 | #include "bswapdsp.h" |
| 36 | 36 | #include "codec_internal.h" |
| 37 | +#include "decode.h" | |
| 37 | 38 | #include "internal.h" |
| 38 | 39 | #include "mlz.h" |
| 39 | 40 | #include "libavutil/samplefmt.h" |
| @@ -44,7 +44,6 @@ · 43 unmodified lines | ||
| 44 | 44 | #include <math.h> |
| 45 | 45 | |
| 46 | 46 | #include "libavutil/channel_layout.h" |
| 47 | −#include "libavutil/float_dsp.h" | |
| 48 | 47 | #include "avcodec.h" |
| 49 | 48 | #include "libavutil/common.h" |
| 50 | 49 | #include "libavutil/avassert.h" |
| @@ -56,7 +55,7 @@ · 5 unmodified lines | ||
| 56 | 55 | #include "lsp.h" |
| 57 | 56 | #include "amr.h" |
| 58 | 57 | #include "codec_internal.h" |
| 59 | −#include "internal.h" | |
| 58 | +#include "decode.h" | |
| 60 | 59 | |
| 61 | 60 | #include "amrnbdata.h" |
| 62 | 61 | |
| @@ -26,7 +26,6 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #include "libavutil/channel_layout.h" |
| 28 | 28 | #include "libavutil/common.h" |
| 29 | −#include "libavutil/float_dsp.h" | |
| 30 | 29 | #include "libavutil/lfg.h" |
| 31 | 30 | |
| 32 | 31 | #include "avcodec.h" |
| @@ -37,7 +36,7 @@ · 4 unmodified lines | ||
| 37 | 36 | #include "acelp_vectors.h" |
| 38 | 37 | #include "acelp_pitch_delay.h" |
| 39 | 38 | #include "codec_internal.h" |
| 40 | −#include "internal.h" | |
| 39 | +#include "decode.h" | |
| 41 | 40 | |
| 42 | 41 | #define AMR_USE_16BIT_TABLES |
| 43 | 42 | #include "amr.h" |
| @@ -31,7 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "bswapdsp.h" |
| 32 | 32 | #include "bytestream.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | −#include "internal.h" | |
| 34 | +#include "decode.h" | |
| 35 | 35 | #include "get_bits.h" |
| 36 | 36 | #include "unary.h" |
| 37 | 37 | |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "libavutil/channel_layout.h" |
| 26 | 26 | #include "aptx.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 29 | 29 | |
| 30 | 30 | /* |
| 31 | 31 | * Half-band QMF synthesis filter realized with a polyphase FIR filter. |
| @@ -19,18 +19,13 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | −#include <stdio.h> | |
| 23 | −#include <stdlib.h> | |
| 24 | −#include <string.h> | |
| 25 | − | |
| 26 | −#include "libavutil/imgutils.h" | |
| 27 | 22 | #include "libavutil/internal.h" |
| 28 | 23 | #include "libavutil/intreadwrite.h" |
| 29 | 24 | |
| 30 | 25 | #include "avcodec.h" |
| 31 | 26 | #include "bytestream.h" |
| 32 | 27 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 34 | 29 | |
| 35 | 30 | typedef struct ARBCContext { |
| 36 | 31 | GetByteContext gb; |
| @@ -32,8 +32,8 @@ · 31 unmodified lines | ||
| 32 | 32 | #include "blockdsp.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | 34 | #include "config_components.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "idctdsp.h" |
| 36 | −#include "internal.h" | |
| 37 | 37 | #include "mpeg12data.h" |
| 38 | 38 | |
| 39 | 39 | #define CCP_VLC_BITS 5 |
| @@ -29,17 +29,15 @@ · 28 unmodified lines | ||
| 29 | 29 | /* Many thanks to Tim Craig for all the help! */ |
| 30 | 30 | |
| 31 | 31 | #include <math.h> |
| 32 | −#include <stddef.h> | |
| 33 | −#include <stdio.h> | |
| 34 | 32 | |
| 35 | 33 | #include "libavutil/float_dsp.h" |
| 36 | 34 | #include "libavutil/mem_internal.h" |
| 37 | 35 | |
| 38 | 36 | #include "avcodec.h" |
| 39 | 37 | #include "codec_internal.h" |
| 38 | +#include "decode.h" | |
| 40 | 39 | #include "get_bits.h" |
| 41 | 40 | #include "fft.h" |
| 42 | −#include "internal.h" | |
| 43 | 41 | #include "sinewin.h" |
| 44 | 42 | |
| 45 | 43 | #include "atrac.h" |
| @@ -34,7 +34,6 @@ · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | #include <math.h> |
| 36 | 36 | #include <stddef.h> |
| 37 | −#include <stdio.h> | |
| 38 | 37 | |
| 39 | 38 | #include "libavutil/attributes.h" |
| 40 | 39 | #include "libavutil/float_dsp.h" |
| @@ -45,9 +44,9 @@ · 4 unmodified lines | ||
| 45 | 44 | #include "avcodec.h" |
| 46 | 45 | #include "bytestream.h" |
| 47 | 46 | #include "codec_internal.h" |
| 47 | +#include "decode.h" | |
| 48 | 48 | #include "fft.h" |
| 49 | 49 | #include "get_bits.h" |
| 50 | −#include "internal.h" | |
| 51 | 50 | |
| 52 | 51 | #include "atrac.h" |
| 53 | 52 | #include "atrac3data.h" |
| @@ -43,8 +43,8 @@ · 42 unmodified lines | ||
| 43 | 43 | #include "libavutil/thread.h" |
| 44 | 44 | #include "avcodec.h" |
| 45 | 45 | #include "codec_internal.h" |
| 46 | +#include "decode.h" | |
| 46 | 47 | #include "get_bits.h" |
| 47 | −#include "internal.h" | |
| 48 | 48 | #include "atrac.h" |
| 49 | 49 | #include "atrac3plus.h" |
| 50 | 50 | |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "libavutil/thread.h" |
| 24 | 24 | |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | #include "get_bits.h" |
| 28 | 28 | #include "fft.h" |
| 29 | 29 | #include "atrac9tab.h" |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "ac3_parser_internal.h" |
| 29 | 29 | #include "bytestream.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | −#include "internal.h" | |
| 31 | +#include "decode.h" | |
| 32 | 32 | #include "mpegaudiodecheader.h" |
| 33 | 33 | #include "libavutil/avassert.h" |
| 34 | 34 | #include "libavutil/channel_layout.h" |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | |
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 29 | 29 | #include "libavutil/internal.h" |
| 30 | 30 | |
| 31 | 31 | static av_cold int aura_decode_init(AVCodecContext *avctx) |
| @@ -21,7 +21,7 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "avcodec.h" |
| 23 | 23 | #include "codec_internal.h" |
| 24 | −#include "internal.h" | |
| 24 | +#include "decode.h" | |
| 25 | 25 | #include "libavutil/imgutils.h" |
| 26 | 26 | |
| 27 | 27 | typedef struct { |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "decode.h" | |
| 26 | 26 | #include "libavutil/intreadwrite.h" |
| 27 | 27 | |
| 28 | 28 | static av_cold int avui_decode_init(AVCodecContext *avctx) |
| @@ -30,7 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "bytestream.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 33 | +#include "decode.h" | |
| 34 | 34 | |
| 35 | 35 | typedef struct BFIContext { |
| 36 | 36 | AVCodecContext *avctx; |
| @@ -35,8 +35,6 @@ · 34 unmodified lines | ||
| 35 | 35 | #include "decode.h" |
| 36 | 36 | #include "get_bits.h" |
| 37 | 37 | #include "hpeldsp.h" |
| 38 | −#include "internal.h" | |
| 39 | −#include "mathops.h" | |
| 40 | 38 | |
| 41 | 39 | #define BINK_FLAG_ALPHA 0x00100000 |
| 42 | 40 | #define BINK_FLAG_GRAY 0x00020000 |
| @@ -36,7 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | #include "cga_data.h" |
| 37 | 37 | #include "bintext.h" |
| 38 | 38 | #include "codec_internal.h" |
| 39 | −#include "internal.h" | |
| 39 | +#include "decode.h" | |
| 40 | 40 | |
| 41 | 41 | #define FONT_WIDTH 8 |
| 42 | 42 | |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "bytestream.h" |
| 26 | 26 | #include "bmp.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "internal.h" |
| 29 | 30 | #include "msrledec.h" |
| 30 | 31 | |
| @@ -24,7 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | |
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | −#include "internal.h" | |
| 27 | +#include "decode.h" | |
| 28 | 28 | |
| 29 | 29 | static const int bmv_aud_mults[16] = { |
| 30 | 30 | 16512, 8256, 4128, 2064, 1032, 516, 258, 192, 129, 88, 64, 56, 48, 40, 36, 32 |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "bytestream.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 29 | 29 | |
| 30 | 30 | enum BMVFlags{ |
| 31 | 31 | BMV_NOP = 0, |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "bytestream.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "internal.h" |
| 30 | 31 | |
| 31 | 32 | #define HEADER1_CHUNK 0x03 |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "golomb.h" |
| 32 | 32 | #include "cavs.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | +#include "decode.h" | |
| 34 | 35 | #include "internal.h" |
| 35 | 36 | #include "mathops.h" |
| 36 | 37 | #include "mpeg12data.h" |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | #include "avcodec.h" |
| 33 | 33 | #include "bytestream.h" |
| 34 | 34 | #include "codec_internal.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "get_bits.h" |
| 36 | 37 | #include "internal.h" |
| 37 | 38 | |
| @@ -26,8 +26,8 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "get_bits.h" |
| 30 | −#include "internal.h" | |
| 31 | 31 | |
| 32 | 32 | static int decode_frame(AVCodecContext *avctx, AVFrame *p, |
| 33 | 33 | int *got_frame, AVPacket *avpkt) |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "celp_filters.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | +#include "decode.h" | |
| 30 | 31 | #include "internal.h" |
| 31 | 32 | #include "libavutil/lfg.h" |
| 32 | 33 | |
| @@ -52,8 +52,8 @@ · 51 unmodified lines | ||
| 52 | 52 | #include "get_bits.h" |
| 53 | 53 | #include "bytestream.h" |
| 54 | 54 | #include "codec_internal.h" |
| 55 | +#include "decode.h" | |
| 55 | 56 | #include "fft.h" |
| 56 | −#include "internal.h" | |
| 57 | 57 | #include "sinewin.h" |
| 58 | 58 | #include "unary.h" |
| 59 | 59 | |
| @@ -30,13 +30,11 @@ · 29 unmodified lines | ||
| 30 | 30 | |
| 31 | 31 | #include "config_components.h" |
| 32 | 32 | |
| 33 | −#include <stdio.h> | |
| 34 | −#include <stdlib.h> | |
| 35 | 33 | #include <string.h> |
| 36 | 34 | |
| 37 | 35 | #include "avcodec.h" |
| 38 | 36 | #include "codec_internal.h" |
| 39 | −#include "internal.h" | |
| 37 | +#include "decode.h" | |
| 40 | 38 | #include "libavutil/internal.h" |
| 41 | 39 | |
| 42 | 40 | |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "dcahuff.h" |
| 26 | 26 | #include "dcamath.h" |
| 27 | 27 | #include "dca_syncwords.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "internal.h" |
| 29 | 30 | |
| 30 | 31 | #if ARCH_ARM |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "dcahuff.h" |
| 29 | 29 | #include "dca_syncwords.h" |
| 30 | 30 | #include "bytestream.h" |
| 31 | +#include "decode.h" | |
| 31 | 32 | #include "internal.h" |
| 32 | 33 | |
| 33 | 34 | #define AMP_MAX 56 |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "dcadata.h" |
| 24 | 24 | #include "dcamath.h" |
| 25 | 25 | #include "dca_syncwords.h" |
| 26 | +#include "decode.h" | |
| 26 | 27 | #include "internal.h" |
| 27 | 28 | #include "unary.h" |
| 28 | 29 | |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | ||
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "bytestream.h" |
| 36 | 36 | #include "codec_internal.h" |
| 37 | +#include "decode.h" | |
| 37 | 38 | #include "internal.h" |
| 38 | 39 | #include "texturedsp.h" |
| 39 | 40 | #include "thread.h" |
| @@ -112,6 +112,13 @@ int ff_decode_preinit(AVCodecContext *avctx); · 111 unmodified lines | ||
| 112 | 112 | */ |
| 113 | 113 | int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt); |
| 114 | 114 | |
| 115 | +/** | |
| 116 | + * Get a buffer for a frame. This is a wrapper around | |
| 117 | + * AVCodecContext.get_buffer() and should be used instead calling get_buffer() | |
| 118 | + * directly. | |
| 119 | + */ | |
| 120 | +int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags); | |
| 121 | + | |
| 115 | 122 | #define FF_REGET_BUFFER_FLAG_READONLY 1 ///< the returned buffer does not need to be writable |
| 116 | 123 | /** |
| 117 | 124 | * Identical in function to ff_get_buffer(), except it reuses the existing buffer |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "bytestream.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 29 | 29 | |
| 30 | 30 | #include "libavutil/avassert.h" |
| 31 | 31 | #include "libavutil/imgutils.h" |
| @@ -29,7 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "avcodec.h" |
| 30 | 30 | #include "codec_id.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | −#include "internal.h" | |
| 32 | +#include "decode.h" | |
| 33 | 33 | |
| 34 | 34 | typedef struct { |
| 35 | 35 | int fq, q, s, lt; |
| @@ -33,6 +33,7 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "get_bits.h" |
| 34 | 34 | #include "bytestream.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | +#include "decode.h" | |
| 36 | 37 | #include "internal.h" |
| 37 | 38 | #include "golomb.h" |
| 38 | 39 | #include "dirac_arith.h" |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "libavutil/opt.h" |
| 27 | 27 | |
| 28 | 28 | #include "codec_internal.h" |
| 29 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 30 | 30 | #include "get_bits.h" |
| 31 | 31 | #include "dolby_e.h" |
| 32 | 32 | #include "kbdwin.h" |
| @@ -37,11 +37,10 @@ · 36 unmodified lines | ||
| 37 | 37 | * the fourcc 'Axan' in the 'auds' chunk of the AVI header. |
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | −#include "libavutil/intreadwrite.h" | |
| 41 | 40 | #include "avcodec.h" |
| 42 | 41 | #include "bytestream.h" |
| 43 | 42 | #include "codec_internal.h" |
| 44 | −#include "internal.h" | |
| 43 | +#include "decode.h" | |
| 45 | 44 | #include "mathops.h" |
| 46 | 45 | |
| 47 | 46 | typedef struct DPCMContext { |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "bytestream.h" |
| 28 | 28 | #include "avcodec.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | +#include "decode.h" | |
| 30 | 31 | #include "internal.h" |
| 31 | 32 | |
| 32 | 33 | enum DPX_TRC { |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "libavcodec/internal.h" |
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "dsd.h" |
| 33 | 34 | |
| 34 | 35 | #define DSD_SILENCE 0x69 |
| @@ -25,11 +25,11 @@ · 24 unmodified lines | ||
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | 27 | #include "libavutil/channel_layout.h" |
| 28 | +#include "libavutil/intreadwrite.h" | |
| 28 | 29 | |
| 29 | 30 | #include "avcodec.h" |
| 30 | −#include "bytestream.h" | |
| 31 | 31 | #include "codec_internal.h" |
| 32 | −#include "internal.h" | |
| 32 | +#include "decode.h" | |
| 33 | 33 | #include "mathops.h" |
| 34 | 34 | |
| 35 | 35 | typedef struct CinAudioContext { |
| @@ -22,12 +22,11 @@ · 21 unmodified lines | ||
| 22 | 22 | #include "libavutil/channel_layout.h" |
| 23 | 23 | #include "libavutil/common.h" |
| 24 | 24 | #include "libavutil/mem_internal.h" |
| 25 | −#include "libavutil/opt.h" | |
| 26 | 25 | |
| 27 | 26 | #include "avcodec.h" |
| 28 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 29 | 29 | #include "get_bits.h" |
| 30 | −#include "internal.h" | |
| 31 | 30 | |
| 32 | 31 | #define SUBFRAMES 4 |
| 33 | 32 | #define PULSE_MAX 8 |
| @@ -29,11 +29,10 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "libavutil/mem_internal.h" |
| 30 | 30 | #include "libavutil/reverse.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | −#include "internal.h" | |
| 32 | +#include "decode.h" | |
| 33 | 33 | #include "get_bits.h" |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "golomb.h" |
| 36 | −#include "mathops.h" | |
| 37 | 36 | #include "dsd.h" |
| 38 | 37 | |
| 39 | 38 | #define DST_MAX_CHANNELS 6 |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | #include "libavutil/intreadwrite.h" |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "decode.h" | |
| 26 | 26 | #include "dvaudio.h" |
| 27 | 27 | |
| 28 | 28 | typedef struct DVAudioContext { |
| @@ -24,15 +24,12 @@ · 23 unmodified lines | ||
| 24 | 24 | * DXA Video decoder |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | −#include <stdio.h> | |
| 28 | −#include <stdlib.h> | |
| 29 | − | |
| 30 | 27 | #include "libavutil/common.h" |
| 31 | 28 | #include "libavutil/intreadwrite.h" |
| 32 | 29 | #include "bytestream.h" |
| 33 | 30 | #include "avcodec.h" |
| 34 | 31 | #include "codec_internal.h" |
| 35 | −#include "internal.h" | |
| 32 | +#include "decode.h" | |
| 36 | 33 | |
| 37 | 34 | #include <zlib.h> |
| 38 | 35 | |
| @@ -33,6 +33,7 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "libavutil/imgutils.h" |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | +#include "decode.h" | |
| 36 | 37 | #include "internal.h" |
| 37 | 38 | |
| 38 | 39 | typedef struct CmvContext { |
| @@ -35,6 +35,7 @@ · 34 unmodified lines | ||
| 35 | 35 | #include "bytestream.h" |
| 36 | 36 | #include "bswapdsp.h" |
| 37 | 37 | #include "codec_internal.h" |
| 38 | +#include "decode.h" | |
| 38 | 39 | #include "get_bits.h" |
| 39 | 40 | #include "aandcttab.h" |
| 40 | 41 | #include "eaidct.h" |
| @@ -36,6 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | #include "avcodec.h" |
| 37 | 37 | #include "bytestream.h" |
| 38 | 38 | #include "codec_internal.h" |
| 39 | +#include "decode.h" | |
| 39 | 40 | #include "eaidct.h" |
| 40 | 41 | #include "get_bits.h" |
| 41 | 42 | #include "idctdsp.h" |
| @@ -35,6 +35,7 @@ · 34 unmodified lines | ||
| 35 | 35 | #include "avcodec.h" |
| 36 | 36 | #include "get_bits.h" |
| 37 | 37 | #include "codec_internal.h" |
| 38 | +#include "decode.h" | |
| 38 | 39 | #include "internal.h" |
| 39 | 40 | |
| 40 | 41 | #define EA_PREAMBLE_SIZE 8 |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | #include "blockdsp.h" |
| 33 | 33 | #include "bswapdsp.h" |
| 34 | 34 | #include "codec_internal.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "get_bits.h" |
| 36 | 37 | #include "aandcttab.h" |
| 37 | 38 | #include "eaidct.h" |
| @@ -22,8 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #define BITSTREAM_READER_LE |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | +#include "decode.h" | |
| 25 | 26 | #include "get_bits.h" |
| 26 | −#include "internal.h" | |
| 27 | 27 | |
| 28 | 28 | typedef union MacroBlock { |
| 29 | 29 | uint16_t pixels[4]; |
| @@ -25,8 +25,8 @@ · 24 unmodified lines | ||
| 25 | 25 | #define BITSTREAM_READER_LE |
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "get_bits.h" |
| 29 | −#include "internal.h" | |
| 30 | 30 | |
| 31 | 31 | typedef struct Escape130Context { |
| 32 | 32 | uint8_t *old_y_avg; |
| @@ -30,7 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "libavutil/opt.h" |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 33 | +#include "decode.h" | |
| 34 | 34 | #include "get_bits.h" |
| 35 | 35 | #include "evrcdata.h" |
| 36 | 36 | #include "acelp_vectors.h" |
| @@ -21,13 +21,10 @@ · 20 unmodified lines | ||
| 21 | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | −#include "libavutil/intreadwrite.h" | |
| 25 | − | |
| 26 | 24 | #include "avcodec.h" |
| 27 | 25 | #include "bytestream.h" |
| 28 | 26 | #include "codec_internal.h" |
| 29 | −#include "internal.h" | |
| 30 | −#include "mathops.h" | |
| 27 | +#include "decode.h" | |
| 31 | 28 | |
| 32 | 29 | typedef struct ChannelItems { |
| 33 | 30 | float f[8]; |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "libavutil/log.h" |
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | #define SIN_BITS 14 |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | #include "avcodec.h" |
| 34 | 34 | #include "codec_internal.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "internal.h" |
| 36 | 37 | #include <float.h> |
| 37 | 38 | #include "libavutil/intreadwrite.h" |
| @@ -21,13 +21,12 @@ · 20 unmodified lines | ||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | #include <stdio.h> |
| 24 | −#include <stdlib.h> | |
| 25 | 24 | #include <string.h> |
| 26 | 25 | |
| 27 | 26 | #include "avcodec.h" |
| 28 | 27 | #include "bytestream.h" |
| 29 | 28 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 31 | 30 | |
| 32 | 31 | #define BLOCK_HEIGHT 112u |
| 33 | 32 | #define BLOCK_WIDTH 84u |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "bytestream.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | #include "libavutil/opt.h" |
| 28 | 28 | |
| 29 | 29 | typedef struct { |
| @@ -36,6 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | #include "blockdsp.h" |
| 37 | 37 | #include "bytestream.h" |
| 38 | 38 | #include "codec_internal.h" |
| 39 | +#include "decode.h" | |
| 39 | 40 | #include "elsdec.h" |
| 40 | 41 | #include "get_bits.h" |
| 41 | 42 | #include "idctdsp.h" |
| @@ -38,9 +38,9 @@ · 37 unmodified lines | ||
| 38 | 38 | #include "libavutil/opt.h" |
| 39 | 39 | #include "avcodec.h" |
| 40 | 40 | #include "codec_internal.h" |
| 41 | +#include "decode.h" | |
| 41 | 42 | #include "get_bits.h" |
| 42 | 43 | #include "g722.h" |
| 43 | −#include "internal.h" | |
| 44 | 44 | |
| 45 | 45 | #define OFFSET(x) offsetof(G722Context, x) |
| 46 | 46 | #define AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
| @@ -33,10 +33,9 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "acelp_vectors.h" |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "celp_filters.h" |
| 36 | −#include "celp_math.h" | |
| 37 | 36 | #include "codec_internal.h" |
| 37 | +#include "decode.h" | |
| 38 | 38 | #include "get_bits.h" |
| 39 | −#include "internal.h" | |
| 40 | 39 | #include "g723_1.h" |
| 41 | 40 | |
| 42 | 41 | #define CNG_RANDOM_SEED 12345 |
| @@ -30,8 +30,8 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "libavutil/opt.h" |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "encode.h" |
| 34 | −#include "internal.h" | |
| 35 | 35 | #include "get_bits.h" |
| 36 | 36 | #include "put_bits.h" |
| 37 | 37 | |
| @@ -27,12 +27,11 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "get_bits.h" |
| 28 | 28 | #include "audiodsp.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 30 | +#include "decode.h" | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | #include "g729.h" |
| 34 | 34 | #include "lsp.h" |
| 35 | −#include "celp_math.h" | |
| 36 | 35 | #include "celp_filters.h" |
| 37 | 36 | #include "acelp_filters.h" |
| 38 | 37 | #include "acelp_pitch_delay.h" |
| @@ -25,7 +25,6 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "bytestream.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | 27 | #include "decode.h" |
| 28 | −#include "internal.h" | |
| 29 | 28 | |
| 30 | 29 | typedef struct GDVContext { |
| 31 | 30 | AVCodecContext *avctx; |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "bytestream.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | +#include "decode.h" | |
| 30 | 31 | #include "internal.h" |
| 31 | 32 | |
| 32 | 33 | static const uint32_t gem_color_palette[16]={ |
| @@ -29,8 +29,8 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "libavutil/channel_layout.h" |
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "get_bits.h" |
| 33 | −#include "internal.h" | |
| 34 | 34 | #include "msgsmdec.h" |
| 35 | 35 | |
| 36 | 36 | #include "gsmdec_template.c" |
| @@ -18,15 +18,14 @@ · 17 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | #include "libavutil/crc.h" |
| 20 | 20 | #include "libavutil/float_dsp.h" |
| 21 | −#include "libavutil/intreadwrite.h" | |
| 22 | 21 | #include "libavutil/mem_internal.h" |
| 23 | 22 | #include "libavutil/tx.h" |
| 24 | 23 | |
| 25 | 24 | #include "avcodec.h" |
| 26 | 25 | #include "bytestream.h" |
| 27 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 28 | 28 | #include "get_bits.h" |
| 29 | −#include "internal.h" | |
| 30 | 29 | #include "hca_data.h" |
| 31 | 30 | |
| 32 | 31 | typedef struct ChannelContext { |
| @@ -22,8 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | +#include "decode.h" | |
| 25 | 26 | #include "get_bits.h" |
| 26 | −#include "internal.h" | |
| 27 | 27 | |
| 28 | 28 | typedef struct HEntry { |
| 29 | 29 | int16_t l, r; |
| @@ -29,7 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "avcodec.h" |
| 30 | 30 | #include "bytestream.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | −#include "internal.h" | |
| 32 | +#include "decode.h" | |
| 33 | 33 | |
| 34 | 34 | #define HNM4_CHUNK_ID_PL 19536 |
| 35 | 35 | #define HNM4_CHUNK_ID_IZ 23113 |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "bytestream.h" |
| 28 | 28 | #include "canopus.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | +#include "decode.h" | |
| 30 | 31 | #include "get_bits.h" |
| 31 | 32 | #include "internal.h" |
| 32 | 33 | |
| @@ -44,14 +44,12 @@ · 43 unmodified lines | ||
| 44 | 44 | * decoding algorithm and it worked fine on much lower spec machines. |
| 45 | 45 | */ |
| 46 | 46 | |
| 47 | −#include <stdio.h> | |
| 48 | −#include <stdlib.h> | |
| 47 | +#include <stddef.h> | |
| 49 | 48 | #include <string.h> |
| 50 | 49 | |
| 51 | 50 | #include "avcodec.h" |
| 52 | 51 | #include "codec_internal.h" |
| 53 | 52 | #include "decode.h" |
| 54 | −#include "internal.h" | |
| 55 | 53 | #include "libavutil/internal.h" |
| 56 | 54 | |
| 57 | 55 | #define HUFFMAN_TABLE_SIZE 64 * 1024 |
| @@ -33,8 +33,7 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "bytestream.h" |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | −#include "internal.h" | |
| 37 | −#include "mathops.h" | |
| 36 | +#include "decode.h" | |
| 38 | 37 | |
| 39 | 38 | // TODO: masking bits |
| 40 | 39 | typedef enum { |
| @@ -33,7 +33,7 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "libavutil/channel_layout.h" |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | −#include "internal.h" | |
| 36 | +#include "decode.h" | |
| 37 | 37 | #include "get_bits.h" |
| 38 | 38 | #include "ilbcdata.h" |
| 39 | 39 | |
| @@ -33,7 +33,6 @@ · 32 unmodified lines | ||
| 33 | 33 | |
| 34 | 34 | #include <math.h> |
| 35 | 35 | #include <stddef.h> |
| 36 | −#include <stdio.h> | |
| 37 | 36 | |
| 38 | 37 | #include "libavutil/channel_layout.h" |
| 39 | 38 | #include "libavutil/ffmath.h" |
| @@ -45,9 +44,9 @@ · 5 unmodified lines | ||
| 45 | 44 | #include "avcodec.h" |
| 46 | 45 | #include "bswapdsp.h" |
| 47 | 46 | #include "codec_internal.h" |
| 47 | +#include "decode.h" | |
| 48 | 48 | #include "get_bits.h" |
| 49 | 49 | #include "fft.h" |
| 50 | −#include "internal.h" | |
| 51 | 50 | #include "sinewin.h" |
| 52 | 51 | |
| 53 | 52 | #include "imcdata.h" |
| @@ -30,6 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "bswapdsp.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "copy_block.h" |
| 34 | 35 | #include "get_bits.h" |
| 35 | 36 | #include "idctdsp.h" |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | ||
| 34 | 34 | #include "libavutil/thread.h" |
| 35 | 35 | #include "avcodec.h" |
| 36 | 36 | #include "codec_internal.h" |
| 37 | +#include "decode.h" | |
| 37 | 38 | #include "copy_block.h" |
| 38 | 39 | #include "bytestream.h" |
| 39 | 40 | #include "get_bits.h" |
| @@ -212,13 +212,6 @@ static av_always_inline float ff_exp2fi(int x) { · 211 unmodified lines | ||
| 212 | 212 | return 0; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | −/** | |
| 216 | − * Get a buffer for a frame. This is a wrapper around | |
| 217 | − * AVCodecContext.get_buffer() and should be used instead calling get_buffer() | |
| 218 | − * directly. | |
| 219 | − */ | |
| 220 | −int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags); | |
| 221 | − | |
| 222 | 215 | int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx); |
| 223 | 216 | |
| 224 | 217 | int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec); |
| @@ -24,8 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | #define BITSTREAM_READER_LE |
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 27 | 28 | #include "get_bits.h" |
| 28 | −#include "internal.h" | |
| 29 | 29 | |
| 30 | 30 | static const int8_t map_1bit[] = { -1, +1 }; |
| 31 | 31 | static const int8_t map_2bit_near[] = { -2, -1, +1, +2 }; |
| @@ -35,7 +35,6 @@ · 34 unmodified lines | ||
| 35 | 35 | */ |
| 36 | 36 | |
| 37 | 37 | #include <stdio.h> |
| 38 | −#include <stdlib.h> | |
| 39 | 38 | #include <string.h> |
| 40 | 39 | |
| 41 | 40 | #include "libavutil/intreadwrite.h" |
| @@ -47,7 +46,6 @@ · 5 unmodified lines | ||
| 47 | 46 | #include "decode.h" |
| 48 | 47 | #include "get_bits.h" |
| 49 | 48 | #include "hpeldsp.h" |
| 50 | −#include "internal.h" | |
| 51 | 49 | |
| 52 | 50 | #define PALETTE_COUNT 256 |
| 53 | 51 | |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | #define BITSTREAM_READER_LE |
| 36 | 36 | #include "avcodec.h" |
| 37 | +#include "decode.h" | |
| 37 | 38 | #include "get_bits.h" |
| 38 | 39 | #include "internal.h" |
| 39 | 40 | #include "ivi.h" |
| @@ -32,7 +32,6 @@ · 31 unmodified lines | ||
| 32 | 32 | #include "codec_internal.h" |
| 33 | 33 | #include "decode.h" |
| 34 | 34 | #include "get_bits.h" |
| 35 | −#include "internal.h" | |
| 36 | 35 | |
| 37 | 36 | typedef struct JvContext { |
| 38 | 37 | BlockDSPContext bdsp; |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "libavutil/imgutils.h" |
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "internal.h" |
| 33 | 34 | |
| 34 | 35 | typedef struct KgvContext { |
| @@ -25,13 +25,11 @@ · 24 unmodified lines | ||
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | 27 | #include <stdio.h> |
| 28 | −#include <stdlib.h> | |
| 29 | 28 | |
| 30 | 29 | #include "avcodec.h" |
| 31 | 30 | #include "bytestream.h" |
| 32 | 31 | #include "codec_internal.h" |
| 33 | 32 | #include "decode.h" |
| 34 | −#include "internal.h" | |
| 35 | 33 | #include "libavutil/common.h" |
| 36 | 34 | |
| 37 | 35 | #define KMVC_KEYFRAME 0x80 |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | #include "avcodec.h" |
| 34 | 34 | #include "codec_internal.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "internal.h" |
| 36 | 37 | #include "libaom.h" |
| 37 | 38 | #include "profiles.h" |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include <celt/celt_header.h> |
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | #include "libavutil/intreadwrite.h" |
| 28 | 28 | |
| 29 | 29 | struct libcelt_context { |
| @@ -24,8 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "libavutil/opt.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 27 | 28 | #include "encode.h" |
| 28 | −#include "internal.h" | |
| 29 | 29 | #include "codec2utils.h" |
| 30 | 30 | |
| 31 | 31 | typedef struct { |
| @@ -24,7 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | #include "libavutil/opt.h" |
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | −#include "internal.h" | |
| 27 | +#include "decode.h" | |
| 28 | 28 | |
| 29 | 29 | #ifdef AACDECODER_LIB_VL0 |
| 30 | 30 | #define FDKDEC_VER_AT_LEAST(vl0, vl1) \ |
| @@ -40,7 +40,7 @@ · 39 unmodified lines | ||
| 40 | 40 | |
| 41 | 41 | #include "avcodec.h" |
| 42 | 42 | #include "codec_internal.h" |
| 43 | −#include "internal.h" | |
| 43 | +#include "decode.h" | |
| 44 | 44 | #include "gsm.h" |
| 45 | 45 | |
| 46 | 46 | typedef struct LibGSMDecodeContext { |
| @@ -26,8 +26,8 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "libavutil/opt.h" |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "encode.h" |
| 30 | −#include "internal.h" | |
| 31 | 31 | |
| 32 | 32 | #ifndef LIBILBC_VERSION_MAJOR |
| 33 | 33 | #define LIBILBC_VERSION_MAJOR 2 |
| @@ -36,6 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | |
| 37 | 37 | #include "avcodec.h" |
| 38 | 38 | #include "codec_internal.h" |
| 39 | +#include "decode.h" | |
| 39 | 40 | #include "internal.h" |
| 40 | 41 | |
| 41 | 42 | #include <jxl/decode.h> |
| @@ -30,8 +30,8 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "audio_frame_queue.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "encode.h" |
| 34 | −#include "internal.h" | |
| 35 | 35 | |
| 36 | 36 | #if CONFIG_LIBOPENCORE_AMRNB_DECODER || CONFIG_LIBOPENCORE_AMRWB_DECODER |
| 37 | 37 | static int amr_decode_fix_avctx(AVCodecContext *avctx) |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | #include "avcodec.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | +#include "decode.h" | |
| 34 | 35 | #include "internal.h" |
| 35 | 36 | #include "libopenh264.h" |
| 36 | 37 | |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | |
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "internal.h" |
| 33 | 34 | #include "vorbis.h" |
| 34 | 35 | #include "mathops.h" |
| @@ -21,6 +21,7 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "avcodec.h" |
| 23 | 23 | #include "codec_internal.h" |
| 24 | +#include "decode.h" | |
| 24 | 25 | #include "internal.h" |
| 25 | 26 | #include "libavutil/opt.h" |
| 26 | 27 | #include "librsvg-2.0/librsvg/rsvg.h" |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "libavutil/common.h" |
| 28 | 28 | #include "avcodec.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 30 | +#include "decode.h" | |
| 31 | 31 | |
| 32 | 32 | typedef struct LibSpeexContext { |
| 33 | 33 | SpeexBits bits; |
| @@ -30,6 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "avs3.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "internal.h" |
| 34 | 35 | #include "uavs3d.h" |
| 35 | 36 | |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "bytestream.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | |
| 28 | 28 | typedef struct OggVorbisDecContext { |
| 29 | 29 | vorbis_info vi; /**< vorbis_info used during init */ |
| @@ -26,9 +26,9 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "get_bits.h" |
| 30 | 31 | #include "golomb.h" |
| 31 | −#include "internal.h" | |
| 32 | 32 | #include "mathops.h" |
| 33 | 33 | |
| 34 | 34 | enum LOCO_MODE { |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "decode.h" | |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | static av_cold int m101_decode_init(AVCodecContext *avctx) |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 30 | 30 | #include "libavutil/common.h" |
| 31 | 31 | |
| 32 | 32 | /* |
| @@ -36,6 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | #include "libavutil/thread.h" |
| 37 | 37 | #include "libavutil/opt.h" |
| 38 | 38 | #include "codec_internal.h" |
| 39 | +#include "decode.h" | |
| 39 | 40 | #include "get_bits.h" |
| 40 | 41 | #include "internal.h" |
| 41 | 42 | #include "libavutil/crc.h" |
| @@ -33,8 +33,8 @@ · 32 unmodified lines | ||
| 33 | 33 | |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | +#include "decode.h" | |
| 36 | 37 | #include "get_bits.h" |
| 37 | −#include "internal.h" | |
| 38 | 38 | #include "mpegaudiodsp.h" |
| 39 | 39 | |
| 40 | 40 | #include "mpc.h" |
| @@ -30,8 +30,8 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "libavutil/thread.h" |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "get_bits.h" |
| 34 | −#include "internal.h" | |
| 35 | 35 | #include "mpegaudiodsp.h" |
| 36 | 36 | |
| 37 | 37 | #include "mpc.h" |
| @@ -40,6 +40,7 @@ · 39 unmodified lines | ||
| 40 | 40 | |
| 41 | 41 | #include "avcodec.h" |
| 42 | 42 | #include "codec_internal.h" |
| 43 | +#include "decode.h" | |
| 43 | 44 | #include "error_resilience.h" |
| 44 | 45 | #include "hwconfig.h" |
| 45 | 46 | #include "idctdsp.h" |
| @@ -36,8 +36,8 @@ · 35 unmodified lines | ||
| 36 | 36 | #include "libavutil/thread.h" |
| 37 | 37 | |
| 38 | 38 | #include "avcodec.h" |
| 39 | +#include "decode.h" | |
| 39 | 40 | #include "get_bits.h" |
| 40 | −#include "internal.h" | |
| 41 | 41 | #include "mathops.h" |
| 42 | 42 | #include "mpegaudiodsp.h" |
| 43 | 43 | |
| @@ -21,13 +21,12 @@ · 20 unmodified lines | ||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | #include <stdio.h> |
| 24 | −#include <stdlib.h> | |
| 25 | 24 | #include <string.h> |
| 26 | 25 | |
| 27 | 26 | #include "avcodec.h" |
| 28 | 27 | #include "bytestream.h" |
| 29 | 28 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 31 | 30 | #include "zlib_wrapper.h" |
| 32 | 31 | |
| 33 | 32 | #include <zlib.h> |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "bytestream.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 30 | +#include "decode.h" | |
| 31 | 31 | |
| 32 | 32 | static int msp2_decode_frame(AVCodecContext *avctx, AVFrame *p, |
| 33 | 33 | int *got_frame, AVPacket *avpkt) |
| @@ -27,7 +27,6 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "codec_internal.h" |
| 28 | 28 | #include "decode.h" |
| 29 | 29 | #include "error_resilience.h" |
| 30 | −#include "internal.h" | |
| 31 | 30 | #include "mpeg_er.h" |
| 32 | 31 | #include "mpegvideodec.h" |
| 33 | 32 | #include "msmpeg4dec.h" |
| @@ -20,8 +20,7 @@ · 19 unmodified lines | ||
| 20 | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | −#include <stdio.h> | |
| 24 | −#include <stdlib.h> | |
| 23 | +#include <stddef.h> | |
| 25 | 24 | #include <string.h> |
| 26 | 25 | |
| 27 | 26 | #include "libavutil/thread.h" |
| @@ -30,10 +29,10 @@ · 2 unmodified lines | ||
| 30 | 29 | #include "bytestream.h" |
| 31 | 30 | #include "codec_internal.h" |
| 32 | 31 | #include "copy_block.h" |
| 32 | +#include "decode.h" | |
| 33 | 33 | #include "mathops.h" |
| 34 | 34 | #include "blockdsp.h" |
| 35 | 35 | #include "get_bits.h" |
| 36 | −#include "internal.h" | |
| 37 | 36 | #include "aandcttab.h" |
| 38 | 37 | |
| 39 | 38 | #define CBP_VLC_BITS 9 |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "bytestream.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | +#include "decode.h" | |
| 34 | 35 | #include "internal.h" |
| 35 | 36 | |
| 36 | 37 | typedef struct MvcContext { |
| @@ -20,18 +20,13 @@ · 19 unmodified lines | ||
| 20 | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | −#include <stdio.h> | |
| 24 | −#include <stdlib.h> | |
| 25 | −#include <string.h> | |
| 26 | − | |
| 27 | 23 | #define CACHED_BITSTREAM_READER !ARCH_X86_32 |
| 28 | 24 | #include "libavutil/intreadwrite.h" |
| 29 | 25 | |
| 30 | 26 | #include "avcodec.h" |
| 31 | −#include "bytestream.h" | |
| 32 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 33 | 29 | #include "get_bits.h" |
| 34 | −#include "internal.h" | |
| 35 | 30 | #include "lossless_videodsp.h" |
| 36 | 31 | #include "zlib_wrapper.h" |
| 37 | 32 | |
| @@ -21,13 +21,11 @@ · 20 unmodified lines | ||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | #include <stdio.h> |
| 24 | −#include <stdlib.h> | |
| 25 | −#include <string.h> | |
| 26 | 24 | |
| 27 | 25 | #include "avcodec.h" |
| 28 | 26 | #include "bytestream.h" |
| 29 | 27 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 31 | 29 | #include "zlib_wrapper.h" |
| 32 | 30 | |
| 33 | 31 | #include <zlib.h> |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | #include "codec_internal.h" |
| 29 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 30 | 30 | #include "mjpeg.h" |
| 31 | 31 | #include "mjpegdec.h" |
| 32 | 32 | |
| @@ -35,14 +35,13 @@ · 34 unmodified lines | ||
| 35 | 35 | #include "libavutil/float_dsp.h" |
| 36 | 36 | #include "libavutil/lfg.h" |
| 37 | 37 | #include "libavutil/mem_internal.h" |
| 38 | −#include "libavutil/random_seed.h" | |
| 39 | 38 | |
| 40 | 39 | #define BITSTREAM_READER_LE |
| 41 | 40 | #include "avcodec.h" |
| 42 | 41 | #include "codec_internal.h" |
| 42 | +#include "decode.h" | |
| 43 | 43 | #include "fft.h" |
| 44 | 44 | #include "get_bits.h" |
| 45 | −#include "internal.h" | |
| 46 | 45 | #include "nellymoser.h" |
| 47 | 46 | #include "sinewin.h" |
| 48 | 47 | |
| @@ -28,9 +28,9 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "avcodec.h" |
| 29 | 29 | #include "bytestream.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | +#include "decode.h" | |
| 31 | 32 | #include "fft.h" |
| 32 | 33 | #include "get_bits.h" |
| 33 | −#include "internal.h" | |
| 34 | 34 | |
| 35 | 35 | #include "on2avcdata.h" |
| 36 | 36 | |
| @@ -44,9 +44,7 @@ · 43 unmodified lines | ||
| 44 | 44 | |
| 45 | 45 | #include "avcodec.h" |
| 46 | 46 | #include "codec_internal.h" |
| 47 | −#include "get_bits.h" | |
| 48 | −#include "internal.h" | |
| 49 | −#include "mathops.h" | |
| 47 | +#include "decode.h" | |
| 50 | 48 | #include "opus.h" |
| 51 | 49 | #include "opustab.h" |
| 52 | 50 | #include "opus_celt.h" |
| @@ -24,7 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | |
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | −#include "internal.h" | |
| 27 | +#include "decode.h" | |
| 28 | 28 | #include "mathops.h" |
| 29 | 29 | #include "paf.h" |
| 30 | 30 | |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "avcodec.h" |
| 29 | 29 | #include "bytestream.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | −#include "internal.h" | |
| 31 | +#include "decode.h" | |
| 32 | 32 | |
| 33 | 33 | /* |
| 34 | 34 | * Channel Mapping according to |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "bytestream.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 30 | +#include "decode.h" | |
| 31 | 31 | |
| 32 | 32 | typedef struct PCMDVDContext { |
| 33 | 33 | uint32_t last_header; // Cached header to see if parsing is needed |
| @@ -33,9 +33,8 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "avcodec.h" |
| 34 | 34 | #include "bytestream.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | +#include "decode.h" | |
| 36 | 37 | #include "encode.h" |
| 37 | −#include "internal.h" | |
| 38 | −#include "mathops.h" | |
| 39 | 38 | #include "pcm_tablegen.h" |
| 40 | 39 | |
| 41 | 40 | static av_cold int pcm_encode_init(AVCodecContext *avctx) |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "bytestream.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "get_bits.h" |
| 30 | 31 | #include "internal.h" |
| 31 | 32 | |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "internal.h" |
| 24 | 24 | #include "bytestream.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "libavutil/imgutils.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | |
| 28 | 28 | static int pgx_get_number(AVCodecContext *avctx, GetByteContext *g, int *number) { |
| 29 | 29 | int ret = AVERROR_INVALIDDATA; |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "bytestream.h" |
| 30 | 30 | #include "cga_data.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "internal.h" |
| 33 | 34 | |
| 34 | 35 | typedef struct PicContext { |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | |
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | −#include "internal.h" | |
| 28 | +#include "decode.h" | |
| 29 | 29 | #include "put_bits.h" |
| 30 | 30 | #include "pnm.h" |
| 31 | 31 | |
| @@ -23,7 +23,6 @@ · 22 unmodified lines | ||
| 23 | 23 | #include <stdlib.h> |
| 24 | 24 | #include <string.h> |
| 25 | 25 | |
| 26 | −#include "libavutil/imgutils.h" | |
| 27 | 26 | #include "libavutil/internal.h" |
| 28 | 27 | #include "libavutil/intreadwrite.h" |
| 29 | 28 | #include "libavutil/mem.h" |
| @@ -31,7 +30,7 @@ · 1 unmodified line | ||
| 31 | 30 | #include "avcodec.h" |
| 32 | 31 | #include "bytestream.h" |
| 33 | 32 | #include "codec_internal.h" |
| 34 | −#include "internal.h" | |
| 33 | +#include "decode.h" | |
| 35 | 34 | |
| 36 | 35 | typedef struct ProSumerContext { |
| 37 | 36 | GetByteContext gb; |
| @@ -21,6 +21,7 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "bytestream.h" |
| 23 | 23 | #include "codec_internal.h" |
| 24 | +#include "decode.h" | |
| 24 | 25 | #include "internal.h" |
| 25 | 26 | |
| 26 | 27 | enum PsdCompr { |
| @@ -21,9 +21,9 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "libavutil/common.h" |
| 23 | 23 | #include "libavutil/intreadwrite.h" |
| 24 | −#include "libavutil/imgutils.h" | |
| 25 | 24 | #include "avcodec.h" |
| 26 | 25 | #include "codec_internal.h" |
| 26 | +#include "decode.h" | |
| 27 | 27 | #include "internal.h" |
| 28 | 28 | |
| 29 | 29 | static int ptx_decode_frame(AVCodecContext *avctx, AVFrame *p, |
| @@ -27,14 +27,12 @@ · 26 unmodified lines | ||
| 27 | 27 | * @remark Development mentored by Benjamin Larson |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | −#include <stddef.h> | |
| 31 | − | |
| 32 | 30 | #include "libavutil/avassert.h" |
| 33 | 31 | #include "libavutil/channel_layout.h" |
| 34 | 32 | #include "libavutil/float_dsp.h" |
| 35 | 33 | #include "avcodec.h" |
| 36 | 34 | #include "codec_internal.h" |
| 37 | −#include "internal.h" | |
| 35 | +#include "decode.h" | |
| 38 | 36 | #include "get_bits.h" |
| 39 | 37 | #include "qcelpdata.h" |
| 40 | 38 | #include "celp_filters.h" |
| @@ -33,7 +33,6 @@ · 32 unmodified lines | ||
| 33 | 33 | |
| 34 | 34 | #include <math.h> |
| 35 | 35 | #include <stddef.h> |
| 36 | −#include <stdio.h> | |
| 37 | 36 | |
| 38 | 37 | #include "libavutil/channel_layout.h" |
| 39 | 38 | #include "libavutil/mem_internal.h" |
| @@ -44,7 +43,7 @@ · 4 unmodified lines | ||
| 44 | 43 | #include "get_bits.h" |
| 45 | 44 | #include "bytestream.h" |
| 46 | 45 | #include "codec_internal.h" |
| 47 | −#include "internal.h" | |
| 46 | +#include "decode.h" | |
| 48 | 47 | #include "mpegaudio.h" |
| 49 | 48 | #include "mpegaudiodsp.h" |
| 50 | 49 | #include "rdft.h" |
| @@ -21,7 +21,6 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include <math.h> |
| 23 | 23 | #include <stddef.h> |
| 24 | −#include <stdio.h> | |
| 25 | 24 | |
| 26 | 25 | #define BITSTREAM_READER_LE |
| 27 | 26 | |
| @@ -32,8 +31,8 @@ · 4 unmodified lines | ||
| 32 | 31 | #include "avcodec.h" |
| 33 | 32 | #include "bytestream.h" |
| 34 | 33 | #include "codec_internal.h" |
| 34 | +#include "decode.h" | |
| 35 | 35 | #include "get_bits.h" |
| 36 | −#include "internal.h" | |
| 37 | 36 | |
| 38 | 37 | typedef struct QDMCTone { |
| 39 | 38 | uint8_t mode; |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "bytestream.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | +#include "decode.h" | |
| 34 | 35 | #include "internal.h" |
| 35 | 36 | |
| 36 | 37 | enum QuickdrawOpcodes { |
| @@ -28,7 +28,6 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "bytestream.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | 30 | #include "decode.h" |
| 31 | −#include "internal.h" | |
| 32 | 31 | |
| 33 | 32 | typedef struct QpegContext{ |
| 34 | 33 | AVCodecContext *avctx; |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | 25 | #include "config_components.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | #include "libavutil/bswap.h" |
| 28 | 28 | #include "libavutil/common.h" |
| 29 | 29 | |
| @@ -25,8 +25,8 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "libavutil/channel_layout.h" |
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "get_bits.h" |
| 29 | −#include "internal.h" | |
| 30 | 30 | #include "ra144.h" |
| 31 | 31 | |
| 32 | 32 | |
| @@ -28,8 +28,8 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "avcodec.h" |
| 29 | 29 | #include "celp_filters.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | +#include "decode.h" | |
| 31 | 32 | #include "get_bits.h" |
| 32 | −#include "internal.h" | |
| 33 | 33 | #include "lpc.h" |
| 34 | 34 | #include "ra288.h" |
| 35 | 35 | |
| @@ -30,9 +30,9 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "libavutil/channel_layout.h" |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "get_bits.h" |
| 34 | 35 | #include "golomb.h" |
| 35 | −#include "internal.h" | |
| 36 | 36 | #include "unary.h" |
| 37 | 37 | #include "ralfdata.h" |
| 38 | 38 | |
| @@ -21,15 +21,14 @@ · 20 unmodified lines | ||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | #include <stdio.h> |
| 24 | −#include <stdlib.h> | |
| 25 | 24 | #include <string.h> |
| 26 | 25 | |
| 27 | −#include "libavutil/imgutils.h" | |
| 28 | 26 | #include "libavutil/opt.h" |
| 29 | 27 | |
| 30 | 28 | #include "avcodec.h" |
| 31 | 29 | #include "bytestream.h" |
| 32 | 30 | #include "codec_internal.h" |
| 31 | +#include "decode.h" | |
| 33 | 32 | #include "internal.h" |
| 34 | 33 | #include "zlib_wrapper.h" |
| 35 | 34 | |
| @@ -35,6 +35,7 @@ · 34 unmodified lines | ||
| 35 | 35 | #include "libavutil/mem.h" |
| 36 | 36 | #include "avcodec.h" |
| 37 | 37 | #include "codec_internal.h" |
| 38 | +#include "decode.h" | |
| 38 | 39 | #include "internal.h" |
| 39 | 40 | |
| 40 | 41 | |
| @@ -27,8 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | #include "libavutil/reverse.h" |
| 28 | 28 | #include "avcodec.h" |
| 29 | 29 | #include "codec_internal.h" |
| 30 | −#include "internal.h" | |
| 31 | −#include "mathops.h" | |
| 30 | +#include "decode.h" | |
| 32 | 31 | |
| 33 | 32 | #define AES3_HEADER_LEN 4 |
| 34 | 33 | |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "bytestream.h" |
| 29 | 29 | #include "copy_block.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | +#include "decode.h" | |
| 31 | 32 | #include "internal.h" |
| 32 | 33 | |
| 33 | 34 | #define NGLYPHS 256 |
| @@ -32,7 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | #include "avcodec.h" |
| 34 | 34 | #include "codec_internal.h" |
| 35 | −#include "internal.h" | |
| 35 | +#include "decode.h" | |
| 36 | 36 | #include "libavutil/channel_layout.h" |
| 37 | 37 | #include "libavutil/intreadwrite.h" |
| 38 | 38 | #include "libavutil/mem_internal.h" |
| @@ -20,15 +20,12 @@ · 19 unmodified lines | ||
| 20 | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | −#include <stdio.h> | |
| 24 | −#include <stdlib.h> | |
| 25 | 23 | #include <string.h> |
| 26 | 24 | |
| 27 | 25 | #include "avcodec.h" |
| 28 | 26 | #include "bytestream.h" |
| 29 | 27 | #include "codec_internal.h" |
| 30 | 28 | #include "decode.h" |
| 31 | −#include "internal.h" | |
| 32 | 29 | #include "scpr.h" |
| 33 | 30 | #include "scpr3.h" |
| 34 | 31 | |
| @@ -28,7 +28,6 @@ · 27 unmodified lines | ||
| 28 | 28 | |
| 29 | 29 | #include "avcodec.h" |
| 30 | 30 | #include "bytestream.h" |
| 31 | −#include "internal.h" | |
| 32 | 31 | #include "scpr.h" |
| 33 | 32 | |
| 34 | 33 | static void renew_table3(uint32_t nsym, uint32_t *cntsum, |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "get_bits.h" |
| 24 | 24 | #include "bytestream.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | +#include "decode.h" | |
| 26 | 27 | #include "internal.h" |
| 27 | 28 | |
| 28 | 29 | #define PALDATA_FOLLOWS_TILEDATA 4 |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "bytestream.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | +#include "decode.h" | |
| 26 | 27 | #include "internal.h" |
| 27 | 28 | #include "sgi.h" |
| 28 | 29 | |
| @@ -30,7 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 33 | +#include "decode.h" | |
| 34 | 34 | |
| 35 | 35 | static av_cold int sgirle_decode_init(AVCodecContext *avctx) |
| 36 | 36 | { |
| @@ -30,9 +30,9 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "bswapdsp.h" |
| 31 | 31 | #include "bytestream.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | +#include "decode.h" | |
| 33 | 34 | #include "get_bits.h" |
| 34 | 35 | #include "golomb.h" |
| 35 | −#include "internal.h" | |
| 36 | 36 | |
| 37 | 37 | #define MAX_CHANNELS 8 |
| 38 | 38 | #define MAX_BLOCKSIZE 65535 |
| @@ -32,8 +32,8 @@ · 31 unmodified lines | ||
| 32 | 32 | #define BITSTREAM_READER_LE |
| 33 | 33 | #include "avcodec.h" |
| 34 | 34 | #include "codec_internal.h" |
| 35 | +#include "decode.h" | |
| 35 | 36 | #include "get_bits.h" |
| 36 | −#include "internal.h" | |
| 37 | 37 | #include "lsp.h" |
| 38 | 38 | #include "acelp_vectors.h" |
| 39 | 39 | #include "acelp_pitch_delay.h" |
| @@ -28,9 +28,8 @@ · 27 unmodified lines | ||
| 28 | 28 | |
| 29 | 29 | #include "avcodec.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | +#include "decode.h" | |
| 31 | 32 | #include "get_bits.h" |
| 32 | −#include "internal.h" | |
| 33 | −#include "mathops.h" | |
| 34 | 33 | |
| 35 | 34 | static const uint8_t index_table[8] = {4, 4, 3, 3, 2, 2, 1, 0}; |
| 36 | 35 | static const uint8_t vector_dimension[8] = { 2, 2, 2, 4, 4, 5, 5, 1 }; |
| @@ -28,8 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | * Based on http://wiki.multimedia.cx/index.php?title=Smacker |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | −#include <stdio.h> | |
| 32 | −#include <stdlib.h> | |
| 31 | +#include <stddef.h> | |
| 33 | 32 | |
| 34 | 33 | #include "libavutil/channel_layout.h" |
| 35 | 34 | |
| @@ -53,8 +52,6 @@ · 17 unmodified lines | ||
| 53 | 52 | #include "codec_internal.h" |
| 54 | 53 | #include "decode.h" |
| 55 | 54 | #include "get_bits.h" |
| 56 | −#include "internal.h" | |
| 57 | −#include "mathops.h" | |
| 58 | 55 | |
| 59 | 56 | typedef struct SmackVContext { |
| 60 | 57 | AVCodecContext *avctx; |
| @@ -18,21 +18,16 @@ · 17 unmodified lines | ||
| 18 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | −#include "libavutil/intmath.h" | |
| 22 | 21 | #include "libavutil/log.h" |
| 23 | −#include "libavutil/opt.h" | |
| 24 | 22 | #include "libavutil/thread.h" |
| 25 | 23 | #include "avcodec.h" |
| 24 | +#include "decode.h" | |
| 26 | 25 | #include "encode.h" |
| 27 | 26 | #include "me_cmp.h" |
| 28 | 27 | #include "snow_dwt.h" |
| 29 | −#include "internal.h" | |
| 30 | 28 | #include "snow.h" |
| 31 | 29 | #include "snowdata.h" |
| 32 | 30 | |
| 33 | −#include "rangecoder.h" | |
| 34 | −#include "mathops.h" | |
| 35 | − | |
| 36 | 31 | |
| 37 | 32 | void ff_snow_inner_add_yblock(const uint8_t *obmc, const int obmc_stride, uint8_t * * block, int b_w, int b_h, |
| 38 | 33 | int src_x, int src_y, int src_stride, slice_buffer * sb, int add, uint8_t * dst8){ |
| @@ -23,10 +23,10 @@ · 22 unmodified lines | ||
| 23 | 23 | |
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | +#include "decode.h" | |
| 26 | 27 | #include "encode.h" |
| 27 | 28 | #include "get_bits.h" |
| 28 | 29 | #include "golomb.h" |
| 29 | −#include "internal.h" | |
| 30 | 30 | #include "put_golomb.h" |
| 31 | 31 | #include "rangecoder.h" |
| 32 | 32 | |
| @@ -26,7 +26,6 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #define BITSTREAM_READER_LE |
| 28 | 28 | |
| 29 | −#include "config.h" | |
| 30 | 29 | #include "config_components.h" |
| 31 | 30 | #include "libavutil/attributes.h" |
| 32 | 31 | #include "libavutil/mem_internal.h" |
| @@ -34,9 +33,9 @@ · 1 unmodified line | ||
| 34 | 33 | #include "avcodec.h" |
| 35 | 34 | #include "blockdsp.h" |
| 36 | 35 | #include "codec_internal.h" |
| 36 | +#include "decode.h" | |
| 37 | 37 | #include "get_bits.h" |
| 38 | 38 | #include "idctdsp.h" |
| 39 | −#include "internal.h" | |
| 40 | 39 | #include "libavutil/thread.h" |
| 41 | 40 | #include "mathops.h" |
| 42 | 41 | #include "mpeg12dec.h" |
| @@ -56,8 +56,8 @@ · 55 unmodified lines | ||
| 56 | 56 | #include "avcodec.h" |
| 57 | 57 | #include "bytestream.h" |
| 58 | 58 | #include "codec_internal.h" |
| 59 | +#include "decode.h" | |
| 59 | 60 | #include "get_bits.h" |
| 60 | −#include "internal.h" | |
| 61 | 61 | #include "speexdata.h" |
| 62 | 62 | |
| 63 | 63 | #define SPEEX_NB_MODES 3 |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | #include "libavutil/imgutils.h" |
| 25 | 25 | #include "avcodec.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 27 | 28 | #include "internal.h" |
| 28 | 29 | #include "sunrast.h" |
| 29 | 30 | |
| @@ -37,6 +37,7 @@ · 36 unmodified lines | ||
| 37 | 37 | |
| 38 | 38 | #include "avcodec.h" |
| 39 | 39 | #include "codec_internal.h" |
| 40 | +#include "decode.h" | |
| 40 | 41 | #include "get_bits.h" |
| 41 | 42 | #include "h263data.h" |
| 42 | 43 | #include "hpeldsp.h" |
| @@ -47,6 +47,7 @@ · 46 unmodified lines | ||
| 47 | 47 | #include "libavutil/mem_internal.h" |
| 48 | 48 | |
| 49 | 49 | #include "codec_internal.h" |
| 50 | +#include "decode.h" | |
| 50 | 51 | #include "internal.h" |
| 51 | 52 | #include "avcodec.h" |
| 52 | 53 | #include "mpegutils.h" |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "bytestream.h" |
| 26 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 27 | 28 | #include "internal.h" |
| 28 | 29 | #include "targa.h" |
| 29 | 30 | |
| @@ -21,7 +21,7 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "avcodec.h" |
| 23 | 23 | #include "codec_internal.h" |
| 24 | −#include "internal.h" | |
| 24 | +#include "decode.h" | |
| 25 | 25 | |
| 26 | 26 | static av_cold int y216_decode_init(AVCodecContext *avctx) |
| 27 | 27 | { |
| @@ -41,6 +41,7 @@ · 40 unmodified lines | ||
| 41 | 41 | #include "avcodec.h" |
| 42 | 42 | #include "bytestream.h" |
| 43 | 43 | #include "codec_internal.h" |
| 44 | +#include "decode.h" | |
| 44 | 45 | #include "internal.h" |
| 45 | 46 | |
| 46 | 47 | #define BITMAPINFOHEADER_SIZE 0x28 |
| @@ -30,7 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 33 | +#include "decode.h" | |
| 34 | 34 | #include "libavutil/internal.h" |
| 35 | 35 | #include "libavutil/xga_font_data.h" |
| 36 | 36 | |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #define BITSTREAM_READER_LE |
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "get_bits.h" |
| 33 | 34 | #include "internal.h" |
| 34 | 35 | |
| @@ -20,14 +20,13 @@ · 19 unmodified lines | ||
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | 22 | #include "libavutil/channel_layout.h" |
| 23 | −#include "libavutil/intreadwrite.h" | |
| 24 | 23 | #include "libavutil/mem_internal.h" |
| 25 | 24 | |
| 26 | 25 | #include "avcodec.h" |
| 27 | 26 | #include "bswapdsp.h" |
| 28 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 29 | 29 | #include "get_bits.h" |
| 30 | −#include "internal.h" | |
| 31 | 30 | |
| 32 | 31 | #include "truespeech_data.h" |
| 33 | 32 | /** |
| @@ -25,8 +25,8 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "libavutil/channel_layout.h" |
| 26 | 26 | #include "libavutil/float_dsp.h" |
| 27 | 27 | #include "avcodec.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "fft.h" |
| 29 | −#include "internal.h" | |
| 30 | 30 | #include "lsp.h" |
| 31 | 31 | #include "sinewin.h" |
| 32 | 32 | #include "twinvq.h" |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "bytestream.h" |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "internal.h" |
| 30 | 31 | #include "texturedsp.h" |
| 31 | 32 | |
| @@ -20,7 +20,7 @@ · 19 unmodified lines | ||
| 20 | 20 | |
| 21 | 21 | #include "avcodec.h" |
| 22 | 22 | #include "codec_internal.h" |
| 23 | −#include "internal.h" | |
| 23 | +#include "decode.h" | |
| 24 | 24 | #include "libavutil/bswap.h" |
| 25 | 25 | #include "libavutil/internal.h" |
| 26 | 26 | |
| @@ -21,7 +21,7 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "avcodec.h" |
| 23 | 23 | #include "codec_internal.h" |
| 24 | −#include "internal.h" | |
| 24 | +#include "decode.h" | |
| 25 | 25 | |
| 26 | 26 | static av_cold int v308_decode_init(AVCodecContext *avctx) |
| 27 | 27 | { |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | |
| 24 | 24 | #include "avcodec.h" |
| 25 | 25 | #include "codec_internal.h" |
| 26 | −#include "internal.h" | |
| 26 | +#include "decode.h" | |
| 27 | 27 | |
| 28 | 28 | static av_cold int v408_decode_init(AVCodecContext *avctx) |
| 29 | 29 | { |
| @@ -24,13 +24,10 @@ · 23 unmodified lines | ||
| 24 | 24 | * VB Video decoder |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | −#include <stdio.h> | |
| 28 | −#include <stdlib.h> | |
| 29 | − | |
| 30 | 27 | #include "avcodec.h" |
| 31 | 28 | #include "bytestream.h" |
| 32 | 29 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 30 | +#include "decode.h" | |
| 34 | 31 | |
| 35 | 32 | enum VBFlags { |
| 36 | 33 | VB_HAS_GMC = 0x01, |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "bytestream.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "internal.h" |
| 30 | 31 | #include "texturedsp.h" |
| 31 | 32 | #include "vbn.h" |
| @@ -34,7 +34,6 @@ · 33 unmodified lines | ||
| 34 | 34 | #include "decode.h" |
| 35 | 35 | #include "get_bits.h" |
| 36 | 36 | #include "hwconfig.h" |
| 37 | −#include "internal.h" | |
| 38 | 37 | #include "mpeg_er.h" |
| 39 | 38 | #include "mpegvideo.h" |
| 40 | 39 | #include "mpegvideodec.h" |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 30 | 30 | #include "libavutil/avassert.h" |
| 31 | 31 | #include "libavutil/internal.h" |
| 32 | 32 | |
| @@ -31,8 +31,8 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "adpcm_data.h" |
| 32 | 32 | #include "avcodec.h" |
| 33 | 33 | #include "codec_internal.h" |
| 34 | +#include "decode.h" | |
| 34 | 35 | #include "get_bits.h" |
| 35 | −#include "internal.h" | |
| 36 | 36 | |
| 37 | 37 | static uint16_t predict_table[5786 * 2]; |
| 38 | 38 | |
| @@ -42,7 +42,7 @@ · 41 unmodified lines | ||
| 42 | 42 | |
| 43 | 43 | #include "avcodec.h" |
| 44 | 44 | #include "codec_internal.h" |
| 45 | −#include "internal.h" | |
| 45 | +#include "decode.h" | |
| 46 | 46 | |
| 47 | 47 | #define BLOCK_TYPE_AUDIO 1 |
| 48 | 48 | #define BLOCK_TYPE_INITIAL 2 |
| @@ -40,7 +40,7 @@ · 39 unmodified lines | ||
| 40 | 40 | |
| 41 | 41 | #include "avcodec.h" |
| 42 | 42 | #include "codec_internal.h" |
| 43 | −#include "internal.h" | |
| 43 | +#include "decode.h" | |
| 44 | 44 | #include "bytestream.h" |
| 45 | 45 | |
| 46 | 46 | #define VMD_HEADER_SIZE 0x330 |
| @@ -35,9 +35,9 @@ · 34 unmodified lines | ||
| 35 | 35 | #define BITSTREAM_READER_LE |
| 36 | 36 | #include "avcodec.h" |
| 37 | 37 | #include "codec_internal.h" |
| 38 | +#include "decode.h" | |
| 38 | 39 | #include "fft.h" |
| 39 | 40 | #include "get_bits.h" |
| 40 | −#include "internal.h" | |
| 41 | 41 | #include "vorbis.h" |
| 42 | 42 | #include "vorbisdsp.h" |
| 43 | 43 | #include "xiph.h" |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | |
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "bytestream.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "internal.h" |
| 29 | 30 | #include "h264chroma.h" |
| 30 | 31 | #include "vp56.h" |
| @@ -40,6 +40,7 @@ · 39 unmodified lines | ||
| 40 | 40 | |
| 41 | 41 | #include "avcodec.h" |
| 42 | 42 | #include "codec_internal.h" |
| 43 | +#include "decode.h" | |
| 43 | 44 | #include "internal.h" |
| 44 | 45 | #include "wma.h" |
| 45 | 46 | |
| @@ -30,11 +30,10 @@ · 29 unmodified lines | ||
| 30 | 30 | |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "codec_internal.h" |
| 33 | −#include "internal.h" | |
| 33 | +#include "decode.h" | |
| 34 | 34 | #include "get_bits.h" |
| 35 | 35 | #include "put_bits.h" |
| 36 | 36 | #include "lossless_audiodsp.h" |
| 37 | −#include "wma.h" | |
| 38 | 37 | #include "wma_common.h" |
| 39 | 38 | |
| 40 | 39 | /** current decoder limitations */ |
| @@ -98,8 +98,9 @@ · 97 unmodified lines | ||
| 98 | 98 | |
| 99 | 99 | #include "avcodec.h" |
| 100 | 100 | #include "codec_internal.h" |
| 101 | −#include "internal.h" | |
| 101 | +#include "decode.h" | |
| 102 | 102 | #include "get_bits.h" |
| 103 | +#include "internal.h" | |
| 103 | 104 | #include "put_bits.h" |
| 104 | 105 | #include "wmaprodata.h" |
| 105 | 106 | #include "sinewin.h" |
| @@ -33,7 +33,7 @@ · 32 unmodified lines | ||
| 33 | 33 | #include "libavutil/thread.h" |
| 34 | 34 | #include "avcodec.h" |
| 35 | 35 | #include "codec_internal.h" |
| 36 | −#include "internal.h" | |
| 36 | +#include "decode.h" | |
| 37 | 37 | #include "get_bits.h" |
| 38 | 38 | #include "put_bits.h" |
| 39 | 39 | #include "wmavoice_data.h" |
| @@ -29,8 +29,8 @@ · 28 unmodified lines | ||
| 29 | 29 | #define BITSTREAM_READER_LE |
| 30 | 30 | #include "avcodec.h" |
| 31 | 31 | #include "codec_internal.h" |
| 32 | +#include "decode.h" | |
| 32 | 33 | #include "get_bits.h" |
| 33 | −#include "internal.h" | |
| 34 | 34 | |
| 35 | 35 | static const uint8_t code_tab[16][2] = { |
| 36 | 36 | { 7, 1 }, { 8, 3 }, { 6, 3 }, { 9, 4 }, { 5, 4 }, { 10, 5 }, { 4, 5 }, |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "libavutil/intreadwrite.h" |
| 27 | 27 | #include "avcodec.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @file |
| @@ -28,8 +28,6 @@ · 27 unmodified lines | ||
| 28 | 28 | * The xan_wc3 decoder outputs PAL8 data. |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | −#include <stdio.h> | |
| 32 | −#include <stdlib.h> | |
| 33 | 31 | #include <string.h> |
| 34 | 32 | |
| 35 | 33 | #include "libavutil/intreadwrite.h" |
| @@ -39,8 +37,8 @@ · 3 unmodified lines | ||
| 39 | 37 | #include "avcodec.h" |
| 40 | 38 | #include "bytestream.h" |
| 41 | 39 | #include "codec_internal.h" |
| 40 | +#include "decode.h" | |
| 42 | 41 | #include "get_bits.h" |
| 43 | −#include "internal.h" | |
| 44 | 42 | |
| 45 | 43 | #define RUNTIME_GAMMA 0 |
| 46 | 44 | |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | |
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "codec_internal.h" |
| 28 | +#include "decode.h" | |
| 28 | 29 | #include "internal.h" |
| 29 | 30 | #include "mathops.h" |
| 30 | 31 | |
| @@ -24,11 +24,9 @@ · 23 unmodified lines | ||
| 24 | 24 | * X-Face decoder, based on libcompface, by James Ashton. |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | −#include "libavutil/pixdesc.h" | |
| 28 | 27 | #include "avcodec.h" |
| 29 | −#include "bytestream.h" | |
| 30 | 28 | #include "codec_internal.h" |
| 31 | −#include "internal.h" | |
| 29 | +#include "decode.h" | |
| 32 | 30 | #include "xface.h" |
| 33 | 31 | |
| 34 | 32 | static int pop_integer(BigInt *b, const ProbRange *pranges) |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | #include "libavutil/intreadwrite.h" |
| 29 | 29 | #include "avcodec.h" |
| 30 | 30 | #include "codec_internal.h" |
| 31 | −#include "internal.h" | |
| 31 | +#include "decode.h" | |
| 32 | 32 | |
| 33 | 33 | static const int xl_table[32] = { |
| 34 | 34 | 0, 1, 2, 3, 4, 5, 6, 7, |
| @@ -21,10 +21,10 @@ · 20 unmodified lines | ||
| 21 | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | −#include "libavutil/parseutils.h" | |
| 25 | 24 | #include "libavutil/avstring.h" |
| 26 | 25 | #include "avcodec.h" |
| 27 | 26 | #include "codec_internal.h" |
| 27 | +#include "decode.h" | |
| 28 | 28 | #include "internal.h" |
| 29 | 29 | |
| 30 | 30 | #define MIN_ELEMENT ' ' |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include "avcodec.h" |
| 27 | 27 | #include "bytestream.h" |
| 28 | 28 | #include "codec_internal.h" |
| 29 | +#include "decode.h" | |
| 29 | 30 | #include "internal.h" |
| 30 | 31 | #include "xwd.h" |
| 31 | 32 | |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "decode.h" | |
| 26 | 26 | |
| 27 | 27 | static av_cold int y41p_decode_init(AVCodecContext *avctx) |
| 28 | 28 | { |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avcodec.h" |
| 24 | 24 | #include "codec_internal.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "decode.h" | |
| 26 | 26 | |
| 27 | 27 | static av_cold int yuv4_decode_init(AVCodecContext *avctx) |
| 28 | 28 | { |
| @@ -20,7 +20,7 @@ · 19 unmodified lines | ||
| 20 | 20 | |
| 21 | 21 | #include "avcodec.h" |
| 22 | 22 | #include "codec_internal.h" |
| 23 | −#include "internal.h" | |
| 23 | +#include "decode.h" | |
| 24 | 24 | #include "zlib_wrapper.h" |
| 25 | 25 | #include "libavutil/common.h" |
| 26 | 26 | |
| @@ -24,15 +24,14 @@ · 23 unmodified lines | ||
| 24 | 24 | * Zip Motion Blocks Video decoder |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | −#include <stdio.h> | |
| 28 | −#include <stdlib.h> | |
| 27 | +#include <stddef.h> | |
| 29 | 28 | |
| 30 | 29 | #include "libavutil/common.h" |
| 31 | 30 | #include "libavutil/imgutils.h" |
| 32 | 31 | #include "libavutil/intreadwrite.h" |
| 33 | 32 | #include "avcodec.h" |
| 34 | 33 | #include "codec_internal.h" |
| 35 | −#include "internal.h" | |
| 34 | +#include "decode.h" | |
| 36 | 35 | #include "zlib_wrapper.h" |
| 37 | 36 | |
| 38 | 37 | #include <zlib.h> |