mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/internal: Move FF_CODEC_CAP_* to a new header codec_internal.h
Also move FF_CODEC_TAGS_END as well as struct AVCodecDefault. This reduces the amount of files that have to include internal.h (which comes with quite a lot of indirect inclusions), as e.g. most encoders don't need it. It is furthemore in preparation for moving the private part of AVCodec out of the public codec.h. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5b3732227e
commit
a688f3c13c
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "blockdsp.h"
|
||||
#include "bswapdsp.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
|
||||
#include "libavutil/avassert.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/common.h"
|
||||
|
||||
|
@ -28,9 +28,9 @@
|
||||
|
||||
#include "a64colors.h"
|
||||
#include "a64tables.h"
|
||||
#include "codec_internal.h"
|
||||
#include "elbg.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/common.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "libavutil/float_dsp.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "fft.h"
|
||||
#include "mdct15.h"
|
||||
|
@ -64,7 +64,7 @@
|
||||
#include "libavutil/fixed_dsp.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "fft.h"
|
||||
#include "lpc.h"
|
||||
|
@ -91,6 +91,7 @@
|
||||
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "libavutil/thread.h"
|
||||
#include "internal.h"
|
||||
|
||||
static VLC vlc_scalefactors;
|
||||
static VLC vlc_spectral[11];
|
||||
|
@ -35,9 +35,9 @@
|
||||
#include "libavutil/float_dsp.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "put_bits.h"
|
||||
#include "internal.h"
|
||||
#include "mpeg4audio.h"
|
||||
#include "sinewin.h"
|
||||
#include "profiles.h"
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "msrledec.h"
|
||||
|
||||
|
@ -50,6 +50,7 @@
|
||||
#define FFT_FLOAT 0
|
||||
#define USE_FIXED 1
|
||||
#include "ac3dec.h"
|
||||
#include "codec_internal.h"
|
||||
|
||||
|
||||
static const int end_freq_inv_tab[8] =
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "config_components.h"
|
||||
|
||||
#include "ac3dec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "eac3dec.c"
|
||||
#include "ac3dec.c"
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/thread.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "config_components.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
|
@ -34,8 +34,8 @@
|
||||
#include "ac3.h"
|
||||
#include "ac3dsp.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "fft.h"
|
||||
#include "internal.h"
|
||||
#include "mathops.h"
|
||||
#include "me_cmp.h"
|
||||
#include "put_bits.h"
|
||||
|
@ -28,9 +28,9 @@
|
||||
|
||||
#define AC3ENC_FLOAT 0
|
||||
#define FFT_FLOAT 0
|
||||
#include "internal.h"
|
||||
#include "audiodsp.h"
|
||||
#include "ac3enc.h"
|
||||
#include "codec_internal.h"
|
||||
#include "eac3enc.h"
|
||||
#include "kbdwin.h"
|
||||
|
||||
|
@ -27,9 +27,9 @@
|
||||
*/
|
||||
|
||||
#define AC3ENC_FLOAT 1
|
||||
#include "internal.h"
|
||||
#include "audiodsp.h"
|
||||
#include "ac3enc.h"
|
||||
#include "codec_internal.h"
|
||||
#include "eac3enc.h"
|
||||
#include "kbdwin.h"
|
||||
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include "libavutil/mem_internal.h"
|
||||
|
||||
#include "audiodsp.h"
|
||||
#include "internal.h"
|
||||
#include "ac3enc.h"
|
||||
#include "eac3enc.h"
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "bytestream.h"
|
||||
#include "adpcm.h"
|
||||
#include "adpcm_data.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
/**
|
||||
|
@ -31,8 +31,8 @@
|
||||
#include "bytestream.h"
|
||||
#include "adpcm.h"
|
||||
#include "adpcm_data.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
|
||||
/**
|
||||
* @file
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "avcodec.h"
|
||||
#include "adx.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -22,8 +22,8 @@
|
||||
#include "avcodec.h"
|
||||
#include "adx.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
#include "put_bits.h"
|
||||
|
||||
/**
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "copy_block.h"
|
||||
#include "get_bits.h"
|
||||
#include "idctdsp.h"
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "golomb.h"
|
||||
#include "idctdsp.h"
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "get_bits.h"
|
||||
#include "bytestream.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "thread.h"
|
||||
#include "unary.h"
|
||||
#include "mathops.h"
|
||||
|
@ -22,9 +22,9 @@
|
||||
#include "libavutil/opt.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "put_bits.h"
|
||||
#include "internal.h"
|
||||
#include "lpc.h"
|
||||
#include "mathops.h"
|
||||
#include "alac_data.h"
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "mpeg4audio.h"
|
||||
#include "bgmc.h"
|
||||
#include "bswapdsp.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "mlz.h"
|
||||
#include "libavutil/samplefmt.h"
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "amfenc.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define OFFSET(x) offsetof(AmfContext, x)
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "amfenc.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define OFFSET(x) offsetof(AmfContext, x)
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include "acelp_pitch_delay.h"
|
||||
#include "lsp.h"
|
||||
#include "amr.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#include "amrnbdata.h"
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "acelp_filters.h"
|
||||
#include "acelp_vectors.h"
|
||||
#include "acelp_pitch_delay.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define AMR_USE_16BIT_TABLES
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct AnmContext {
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "libavutil/xga_font_data.h"
|
||||
#include "avcodec.h"
|
||||
#include "cga_data.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define ATTR_BOLD 0x01 /**< Bold/Bright-foreground (mode 1) */
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "bswapdsp.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "unary.h"
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "aptx.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
||||
static const int32_t quantize_intervals_LF[65] = {
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "mathops.h"
|
||||
#include "audio_frame_queue.h"
|
||||
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "aptx.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
/*
|
||||
* Half-band QMF synthesis filter realized with a polyphase FIR filter.
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "aptx.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
|
||||
/*
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct ARBCContext {
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct ArgoContext {
|
||||
|
@ -23,8 +23,8 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "ass.h"
|
||||
#include "codec_internal.h"
|
||||
#include "config_components.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/mem.h"
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "ass.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "libavutil/avstring.h"
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/mem.h"
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "asv.h"
|
||||
#include "avcodec.h"
|
||||
#include "blockdsp.h"
|
||||
#include "codec_internal.h"
|
||||
#include "config_components.h"
|
||||
#include "idctdsp.h"
|
||||
#include "internal.h"
|
||||
|
@ -31,10 +31,10 @@
|
||||
#include "aandcttab.h"
|
||||
#include "asv.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "dct.h"
|
||||
#include "encode.h"
|
||||
#include "fdctdsp.h"
|
||||
#include "internal.h"
|
||||
#include "mpeg12data.h"
|
||||
|
||||
static inline void asv1_put_level(PutBitContext *pb, int level)
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "libavutil/mem_internal.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "fft.h"
|
||||
#include "internal.h"
|
||||
|
@ -44,6 +44,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "fft.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "libavutil/mem_internal.h"
|
||||
#include "libavutil/thread.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
#include "atrac.h"
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "libavutil/thread.h"
|
||||
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "fft.h"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "ac3_parser_internal.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "mpegaudiodecheader.h"
|
||||
#include "libavutil/avassert.h"
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "audio_frame_queue.h"
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
#include "libavformat/isom.h"
|
||||
|
@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/internal.h"
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "av1dec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "hwconfig.h"
|
||||
#include "internal.h"
|
||||
#include "profiles.h"
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "libavutil/thread.h"
|
||||
#include "avcodec.h"
|
||||
#include "bsf.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
#include "encode.h"
|
||||
#include "frame_thread_encoder.h"
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/imgutils.h"
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
|
||||
static av_cold int avui_encode_init(AVCodecContext *avctx)
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "bethsoftvideo.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct BethsoftvidContext {
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "libavutil/common.h"
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct BFIContext {
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "binkdata.h"
|
||||
#include "binkdsp.h"
|
||||
#include "blockdsp.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "hpeldsp.h"
|
||||
#include "internal.h"
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "dct.h"
|
||||
#include "decode.h"
|
||||
#include "get_bits.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "rdft.h"
|
||||
#include "wma_freqs.h"
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "cga_data.h"
|
||||
#include "bintext.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define FONT_WIDTH 8
|
||||
|
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "libavutil/imgutils.h"
|
||||
#include "thread.h"
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
#include "put_bits.h"
|
||||
|
@ -27,8 +27,8 @@
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "bmp.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
|
||||
static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF };
|
||||
static const uint32_t rgb565_masks[] = { 0xF800, 0x07E0, 0x001F };
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "libavutil/common.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
static const int bmv_aud_mults[16] = {
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
enum BMVFlags{
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct C93DecoderContext {
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "get_bits.h"
|
||||
#include "golomb.h"
|
||||
#include "cavs.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "mpeg12data.h"
|
||||
#include "startcode.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "ass.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
|
||||
#define SCREEN_ROWS 15
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "libavutil/internal.h"
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define CDTOONS_HEADER_SIZE 44
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "libavutil/imgutils.h"
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
#include "thread.h"
|
||||
|
@ -33,9 +33,9 @@
|
||||
#include "bytestream.h"
|
||||
#include "cfhd.h"
|
||||
#include "cfhdencdsp.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "put_bits.h"
|
||||
#include "internal.h"
|
||||
#include "thread.h"
|
||||
|
||||
/* Derived from existing tables from decoder */
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "libavutil/common.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -44,9 +44,9 @@
|
||||
#include "libavutil/opt.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "elbg.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define CVID_HEADER_SIZE 10
|
||||
#define STRIP_HEADER_SIZE 12
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "idctdsp.h"
|
||||
#include "internal.h"
|
||||
|
@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "canopus.h"
|
||||
#include "get_bits.h"
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "thread.h"
|
||||
|
||||
#define VLC_BITS 7
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "avcodec.h"
|
||||
#include "celp_filters.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/lfg.h"
|
||||
|
||||
|
@ -23,8 +23,8 @@
|
||||
|
||||
#include "libavutil/common.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
#include "lpc.h"
|
||||
|
||||
typedef struct CNGContext {
|
||||
|
82
libavcodec/codec_internal.h
Normal file
82
libavcodec/codec_internal.h
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
* This file is part of FFmpeg.
|
||||
*
|
||||
* FFmpeg is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* FFmpeg is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with FFmpeg; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef AVCODEC_CODEC_INTERNAL_H
|
||||
#define AVCODEC_CODEC_INTERNAL_H
|
||||
|
||||
/**
|
||||
* The codec does not modify any global variables in the init function,
|
||||
* allowing to call the init function without locking any global mutexes.
|
||||
*/
|
||||
#define FF_CODEC_CAP_INIT_THREADSAFE (1 << 0)
|
||||
/**
|
||||
* The codec allows calling the close function for deallocation even if
|
||||
* the init function returned a failure. Without this capability flag, a
|
||||
* codec does such cleanup internally when returning failures from the
|
||||
* init function and does not expect the close function to be called at
|
||||
* all.
|
||||
*/
|
||||
#define FF_CODEC_CAP_INIT_CLEANUP (1 << 1)
|
||||
/**
|
||||
* Decoders marked with FF_CODEC_CAP_SETS_PKT_DTS want to set
|
||||
* AVFrame.pkt_dts manually. If the flag is set, decode.c won't overwrite
|
||||
* this field. If it's unset, decode.c tries to guess the pkt_dts field
|
||||
* from the input AVPacket.
|
||||
*/
|
||||
#define FF_CODEC_CAP_SETS_PKT_DTS (1 << 2)
|
||||
/**
|
||||
* The decoder extracts and fills its parameters even if the frame is
|
||||
* skipped due to the skip_frame setting.
|
||||
*/
|
||||
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM (1 << 3)
|
||||
/**
|
||||
* The decoder sets the cropping fields in the output frames manually.
|
||||
* If this cap is set, the generic code will initialize output frame
|
||||
* dimensions to coded rather than display values.
|
||||
*/
|
||||
#define FF_CODEC_CAP_EXPORTS_CROPPING (1 << 4)
|
||||
/**
|
||||
* Codec initializes slice-based threading with a main function
|
||||
*/
|
||||
#define FF_CODEC_CAP_SLICE_THREAD_HAS_MF (1 << 5)
|
||||
/*
|
||||
* The codec supports frame threading and has inter-frame dependencies, so it
|
||||
* uses ff_thread_report/await_progress().
|
||||
*/
|
||||
#define FF_CODEC_CAP_ALLOCATE_PROGRESS (1 << 6)
|
||||
/**
|
||||
* Codec handles avctx->thread_count == 0 (auto) internally.
|
||||
*/
|
||||
#define FF_CODEC_CAP_AUTO_THREADS (1 << 7)
|
||||
/**
|
||||
* Codec handles output frame properties internally instead of letting the
|
||||
* internal logic derive them from AVCodecInternal.last_pkt_props.
|
||||
*/
|
||||
#define FF_CODEC_CAP_SETS_FRAME_PROPS (1 << 8)
|
||||
|
||||
/**
|
||||
* AVCodec.codec_tags termination value
|
||||
*/
|
||||
#define FF_CODEC_TAGS_END -1
|
||||
|
||||
struct AVCodecDefault {
|
||||
const char *key;
|
||||
const char *value;
|
||||
};
|
||||
|
||||
#endif /* AVCODEC_CODEC_INTERNAL_H */
|
@ -51,6 +51,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "get_bits.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "fft.h"
|
||||
#include "internal.h"
|
||||
#include "sinewin.h"
|
||||
|
@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "libavutil/display.h"
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "internal.h"
|
||||
#include "thread.h"
|
||||
|
@ -57,6 +57,7 @@
|
||||
#include <libcrystalhd/libcrystalhd_if.h>
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/imgutils.h"
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/common.h"
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
#include "hwconfig.h"
|
||||
#include "nvdec.h"
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/internal.h"
|
||||
|
||||
|
@ -22,10 +22,10 @@
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "libavutil/thread.h"
|
||||
|
||||
#include "codec_internal.h"
|
||||
#include "dcadec.h"
|
||||
#include "dcahuff.h"
|
||||
#include "dca_syncwords.h"
|
||||
#include "internal.h"
|
||||
#include "profiles.h"
|
||||
|
||||
#define MIN_PACKET_SIZE 16
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "libavutil/mem_internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_internal.h"
|
||||
#include "dca.h"
|
||||
#include "dcaadpcm.h"
|
||||
#include "dcamath.h"
|
||||
|
@ -33,6 +33,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "texturedsp.h"
|
||||
#include "thread.h"
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "bsf.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
#include "hwconfig.h"
|
||||
#include "internal.h"
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
#include "libavutil/avassert.h"
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "libavutil/internal.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_id.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct {
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include "libavutil/internal.h"
|
||||
#include "avcodec.h"
|
||||
#include "codec_id.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct {
|
||||
int fq, q, s, lt;
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "get_bits.h"
|
||||
#include "bytestream.h"
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "golomb.h"
|
||||
#include "dirac_arith.h"
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "blockdsp.h"
|
||||
#include "codec_internal.h"
|
||||
#define UNCHECKED_BITSTREAM_READER 1
|
||||
#include "get_bits.h"
|
||||
#include "dnxhddata.h"
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "blockdsp.h"
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "fdctdsp.h"
|
||||
#include "internal.h"
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "libavutil/mem_internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
|
||||
#include "codec_internal.h"
|
||||
#include "internal.h"
|
||||
#include "get_bits.h"
|
||||
#include "dolby_e.h"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user