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>
release/5.1
Andreas Rheinhardt 3 years ago
parent 5b3732227e
commit a688f3c13c
  1. 1
      libavcodec/012v.c
  2. 1
      libavcodec/4xm.c
  3. 1
      libavcodec/8bps.c
  4. 1
      libavcodec/8svx.c
  5. 2
      libavcodec/a64multienc.c
  6. 2
      libavcodec/aacdec.c
  7. 2
      libavcodec/aacdec_fixed.c
  8. 1
      libavcodec/aacdec_template.c
  9. 2
      libavcodec/aacenc.c
  10. 1
      libavcodec/aasc.c
  11. 1
      libavcodec/ac3dec_fixed.c
  12. 1
      libavcodec/ac3dec_float.c
  13. 1
      libavcodec/ac3enc.c
  14. 2
      libavcodec/ac3enc.h
  15. 2
      libavcodec/ac3enc_fixed.c
  16. 2
      libavcodec/ac3enc_float.c
  17. 1
      libavcodec/ac3enc_template.c
  18. 1
      libavcodec/adpcm.c
  19. 2
      libavcodec/adpcmenc.c
  20. 1
      libavcodec/adxdec.c
  21. 2
      libavcodec/adxenc.c
  22. 1
      libavcodec/agm.c
  23. 2
      libavcodec/aic.c
  24. 2
      libavcodec/alac.c
  25. 2
      libavcodec/alacenc.c
  26. 1
      libavcodec/alsdec.c
  27. 1
      libavcodec/amfenc_h264.c
  28. 1
      libavcodec/amfenc_hevc.c
  29. 1
      libavcodec/amrnbdec.c
  30. 1
      libavcodec/amrwbdec.c
  31. 1
      libavcodec/anm.c
  32. 1
      libavcodec/ansi.c
  33. 1
      libavcodec/apedec.c
  34. 1
      libavcodec/aptx.c
  35. 1
      libavcodec/aptx.h
  36. 2
      libavcodec/aptxdec.c
  37. 1
      libavcodec/aptxenc.c
  38. 1
      libavcodec/arbc.c
  39. 1
      libavcodec/argo.c
  40. 2
      libavcodec/assdec.c
  41. 2
      libavcodec/assenc.c
  42. 1
      libavcodec/asvdec.c
  43. 2
      libavcodec/asvenc.c
  44. 1
      libavcodec/atrac1.c
  45. 1
      libavcodec/atrac3.c
  46. 1
      libavcodec/atrac3plusdec.c
  47. 1
      libavcodec/atrac9dec.c
  48. 1
      libavcodec/audiotoolboxdec.c
  49. 1
      libavcodec/audiotoolboxenc.c
  50. 1
      libavcodec/aura.c
  51. 1
      libavcodec/av1dec.c
  52. 1
      libavcodec/avcodec.c
  53. 1
      libavcodec/avrndec.c
  54. 1
      libavcodec/avs.c
  55. 1
      libavcodec/avuidec.c
  56. 2
      libavcodec/avuienc.c
  57. 1
      libavcodec/bethsoftvideo.c
  58. 1
      libavcodec/bfi.c
  59. 1
      libavcodec/bink.c
  60. 1
      libavcodec/binkaudio.c
  61. 1
      libavcodec/bintext.c
  62. 2
      libavcodec/bitpacked_dec.c
  63. 1
      libavcodec/bitpacked_enc.c
  64. 2
      libavcodec/bmpenc.c
  65. 1
      libavcodec/bmvaudio.c
  66. 1
      libavcodec/bmvvideo.c
  67. 1
      libavcodec/c93.c
  68. 1
      libavcodec/cavsdec.c
  69. 2
      libavcodec/ccaption_dec.c
  70. 1
      libavcodec/cdgraphics.c
  71. 1
      libavcodec/cdtoons.c
  72. 1
      libavcodec/cdxl.c
  73. 1
      libavcodec/cfhd.c
  74. 2
      libavcodec/cfhdenc.c
  75. 1
      libavcodec/cinepak.c
  76. 2
      libavcodec/cinepakenc.c
  77. 1
      libavcodec/clearvideo.c
  78. 1
      libavcodec/cljrdec.c
  79. 2
      libavcodec/cllc.c
  80. 1
      libavcodec/cngdec.c
  81. 2
      libavcodec/cngenc.c
  82. 82
      libavcodec/codec_internal.h
  83. 1
      libavcodec/cook.c
  84. 1
      libavcodec/cpia.c
  85. 1
      libavcodec/cri.c
  86. 1
      libavcodec/crystalhd.c
  87. 1
      libavcodec/cscd.c
  88. 1
      libavcodec/cuviddec.c
  89. 1
      libavcodec/cyuv.c
  90. 2
      libavcodec/dcadec.c
  91. 1
      libavcodec/dcaenc.c
  92. 1
      libavcodec/dds.c
  93. 1
      libavcodec/decode.c
  94. 1
      libavcodec/dfa.c
  95. 1
      libavcodec/dfpwmdec.c
  96. 2
      libavcodec/dfpwmenc.c
  97. 1
      libavcodec/diracdec.c
  98. 1
      libavcodec/dnxhddec.c
  99. 1
      libavcodec/dnxhdenc.c
  100. 1
      libavcodec/dolby_e.c
  101. Some files were not shown because too many files have changed in this diff Show More

@ -21,6 +21,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"

@ -36,6 +36,7 @@
#include "blockdsp.h" #include "blockdsp.h"
#include "bswapdsp.h" #include "bswapdsp.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -37,6 +37,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "decode.h" #include "decode.h"
#include "internal.h" #include "internal.h"

@ -41,6 +41,7 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/common.h" #include "libavutil/common.h"

@ -28,9 +28,9 @@
#include "a64colors.h" #include "a64colors.h"
#include "a64tables.h" #include "a64tables.h"
#include "codec_internal.h"
#include "elbg.h" #include "elbg.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"

@ -38,7 +38,7 @@
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "fft.h" #include "fft.h"
#include "mdct15.h" #include "mdct15.h"

@ -64,7 +64,7 @@
#include "libavutil/fixed_dsp.h" #include "libavutil/fixed_dsp.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "fft.h" #include "fft.h"
#include "lpc.h" #include "lpc.h"

@ -91,6 +91,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "internal.h"
static VLC vlc_scalefactors; static VLC vlc_scalefactors;
static VLC vlc_spectral[11]; static VLC vlc_spectral[11];

@ -35,9 +35,9 @@
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "put_bits.h" #include "put_bits.h"
#include "internal.h"
#include "mpeg4audio.h" #include "mpeg4audio.h"
#include "sinewin.h" #include "sinewin.h"
#include "profiles.h" #include "profiles.h"

@ -29,6 +29,7 @@
#include <string.h> #include <string.h>
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "msrledec.h" #include "msrledec.h"

@ -50,6 +50,7 @@
#define FFT_FLOAT 0 #define FFT_FLOAT 0
#define USE_FIXED 1 #define USE_FIXED 1
#include "ac3dec.h" #include "ac3dec.h"
#include "codec_internal.h"
static const int end_freq_inv_tab[8] = static const int end_freq_inv_tab[8] =

@ -31,6 +31,7 @@
#include "config_components.h" #include "config_components.h"
#include "ac3dec.h" #include "ac3dec.h"
#include "codec_internal.h"
#include "eac3dec.c" #include "eac3dec.c"
#include "ac3dec.c" #include "ac3dec.c"

@ -38,6 +38,7 @@
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "config_components.h" #include "config_components.h"
#include "encode.h" #include "encode.h"
#include "internal.h" #include "internal.h"

@ -34,8 +34,8 @@
#include "ac3.h" #include "ac3.h"
#include "ac3dsp.h" #include "ac3dsp.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "fft.h" #include "fft.h"
#include "internal.h"
#include "mathops.h" #include "mathops.h"
#include "me_cmp.h" #include "me_cmp.h"
#include "put_bits.h" #include "put_bits.h"

@ -28,9 +28,9 @@
#define AC3ENC_FLOAT 0 #define AC3ENC_FLOAT 0
#define FFT_FLOAT 0 #define FFT_FLOAT 0
#include "internal.h"
#include "audiodsp.h" #include "audiodsp.h"
#include "ac3enc.h" #include "ac3enc.h"
#include "codec_internal.h"
#include "eac3enc.h" #include "eac3enc.h"
#include "kbdwin.h" #include "kbdwin.h"

@ -27,9 +27,9 @@
*/ */
#define AC3ENC_FLOAT 1 #define AC3ENC_FLOAT 1
#include "internal.h"
#include "audiodsp.h" #include "audiodsp.h"
#include "ac3enc.h" #include "ac3enc.h"
#include "codec_internal.h"
#include "eac3enc.h" #include "eac3enc.h"
#include "kbdwin.h" #include "kbdwin.h"

@ -35,7 +35,6 @@
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "audiodsp.h" #include "audiodsp.h"
#include "internal.h"
#include "ac3enc.h" #include "ac3enc.h"
#include "eac3enc.h" #include "eac3enc.h"

@ -42,6 +42,7 @@
#include "bytestream.h" #include "bytestream.h"
#include "adpcm.h" #include "adpcm.h"
#include "adpcm_data.h" #include "adpcm_data.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
/** /**

@ -31,8 +31,8 @@
#include "bytestream.h" #include "bytestream.h"
#include "adpcm.h" #include "adpcm.h"
#include "adpcm_data.h" #include "adpcm_data.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
/** /**
* @file * @file

@ -22,6 +22,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
#include "adx.h" #include "adx.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -22,8 +22,8 @@
#include "avcodec.h" #include "avcodec.h"
#include "adx.h" #include "adx.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
#include "put_bits.h" #include "put_bits.h"
/** /**

@ -30,6 +30,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "copy_block.h" #include "copy_block.h"
#include "get_bits.h" #include "get_bits.h"
#include "idctdsp.h" #include "idctdsp.h"

@ -26,7 +26,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "internal.h" #include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "golomb.h" #include "golomb.h"
#include "idctdsp.h" #include "idctdsp.h"

@ -52,7 +52,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "bytestream.h" #include "bytestream.h"
#include "internal.h" #include "codec_internal.h"
#include "thread.h" #include "thread.h"
#include "unary.h" #include "unary.h"
#include "mathops.h" #include "mathops.h"

@ -22,9 +22,9 @@
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "put_bits.h" #include "put_bits.h"
#include "internal.h"
#include "lpc.h" #include "lpc.h"
#include "mathops.h" #include "mathops.h"
#include "alac_data.h" #include "alac_data.h"

@ -33,6 +33,7 @@
#include "mpeg4audio.h" #include "mpeg4audio.h"
#include "bgmc.h" #include "bgmc.h"
#include "bswapdsp.h" #include "bswapdsp.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "mlz.h" #include "mlz.h"
#include "libavutil/samplefmt.h" #include "libavutil/samplefmt.h"

@ -20,6 +20,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "amfenc.h" #include "amfenc.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#define OFFSET(x) offsetof(AmfContext, x) #define OFFSET(x) offsetof(AmfContext, x)

@ -19,6 +19,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "amfenc.h" #include "amfenc.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#define OFFSET(x) offsetof(AmfContext, x) #define OFFSET(x) offsetof(AmfContext, x)

@ -55,6 +55,7 @@
#include "acelp_pitch_delay.h" #include "acelp_pitch_delay.h"
#include "lsp.h" #include "lsp.h"
#include "amr.h" #include "amr.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "amrnbdata.h" #include "amrnbdata.h"

@ -36,6 +36,7 @@
#include "acelp_filters.h" #include "acelp_filters.h"
#include "acelp_vectors.h" #include "acelp_vectors.h"
#include "acelp_pitch_delay.h" #include "acelp_pitch_delay.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#define AMR_USE_16BIT_TABLES #define AMR_USE_16BIT_TABLES

@ -26,6 +26,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct AnmContext { typedef struct AnmContext {

@ -30,6 +30,7 @@
#include "libavutil/xga_font_data.h" #include "libavutil/xga_font_data.h"
#include "avcodec.h" #include "avcodec.h"
#include "cga_data.h" #include "cga_data.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#define ATTR_BOLD 0x01 /**< Bold/Bright-foreground (mode 1) */ #define ATTR_BOLD 0x01 /**< Bold/Bright-foreground (mode 1) */

@ -30,6 +30,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bswapdsp.h" #include "bswapdsp.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "unary.h" #include "unary.h"

@ -21,6 +21,7 @@
*/ */
#include "aptx.h" #include "aptx.h"
#include "internal.h"
static const int32_t quantize_intervals_LF[65] = { static const int32_t quantize_intervals_LF[65] = {

@ -25,7 +25,6 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h"
#include "mathops.h" #include "mathops.h"
#include "audio_frame_queue.h" #include "audio_frame_queue.h"

@ -24,6 +24,8 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "aptx.h" #include "aptx.h"
#include "codec_internal.h"
#include "internal.h"
/* /*
* Half-band QMF synthesis filter realized with a polyphase FIR filter. * Half-band QMF synthesis filter realized with a polyphase FIR filter.

@ -24,6 +24,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "aptx.h" #include "aptx.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
/* /*

@ -29,6 +29,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct ARBCContext { typedef struct ARBCContext {

@ -29,6 +29,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct ArgoContext { typedef struct ArgoContext {

@ -23,8 +23,8 @@
#include "avcodec.h" #include "avcodec.h"
#include "ass.h" #include "ass.h"
#include "codec_internal.h"
#include "config_components.h" #include "config_components.h"
#include "internal.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"

@ -25,7 +25,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "ass.h" #include "ass.h"
#include "internal.h" #include "codec_internal.h"
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"

@ -30,6 +30,7 @@
#include "asv.h" #include "asv.h"
#include "avcodec.h" #include "avcodec.h"
#include "blockdsp.h" #include "blockdsp.h"
#include "codec_internal.h"
#include "config_components.h" #include "config_components.h"
#include "idctdsp.h" #include "idctdsp.h"
#include "internal.h" #include "internal.h"

@ -31,10 +31,10 @@
#include "aandcttab.h" #include "aandcttab.h"
#include "asv.h" #include "asv.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "dct.h" #include "dct.h"
#include "encode.h" #include "encode.h"
#include "fdctdsp.h" #include "fdctdsp.h"
#include "internal.h"
#include "mpeg12data.h" #include "mpeg12data.h"
static inline void asv1_put_level(PutBitContext *pb, int level) static inline void asv1_put_level(PutBitContext *pb, int level)

@ -36,6 +36,7 @@
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "fft.h" #include "fft.h"
#include "internal.h" #include "internal.h"

@ -44,6 +44,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "fft.h" #include "fft.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -42,6 +42,7 @@
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"
#include "atrac.h" #include "atrac.h"

@ -22,6 +22,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "fft.h" #include "fft.h"

@ -27,6 +27,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "ac3_parser_internal.h" #include "ac3_parser_internal.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "mpegaudiodecheader.h" #include "mpegaudiodecheader.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"

@ -29,6 +29,7 @@
#include "audio_frame_queue.h" #include "audio_frame_queue.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h" #include "internal.h"
#include "libavformat/isom.h" #include "libavformat/isom.h"

@ -24,6 +24,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"

@ -26,6 +26,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "av1dec.h" #include "av1dec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "hwconfig.h" #include "hwconfig.h"
#include "internal.h" #include "internal.h"
#include "profiles.h" #include "profiles.h"

@ -34,6 +34,7 @@
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "avcodec.h" #include "avcodec.h"
#include "bsf.h" #include "bsf.h"
#include "codec_internal.h"
#include "decode.h" #include "decode.h"
#include "encode.h" #include "encode.h"
#include "frame_thread_encoder.h" #include "frame_thread_encoder.h"

@ -20,6 +20,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"

@ -20,6 +20,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -21,6 +21,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"

@ -21,8 +21,8 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
static av_cold int avui_encode_init(AVCodecContext *avctx) static av_cold int avui_encode_init(AVCodecContext *avctx)

@ -31,6 +31,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bethsoftvideo.h" #include "bethsoftvideo.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct BethsoftvidContext { typedef struct BethsoftvidContext {

@ -29,6 +29,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct BFIContext { typedef struct BFIContext {

@ -31,6 +31,7 @@
#include "binkdata.h" #include "binkdata.h"
#include "binkdsp.h" #include "binkdsp.h"
#include "blockdsp.h" #include "blockdsp.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "hpeldsp.h" #include "hpeldsp.h"
#include "internal.h" #include "internal.h"

@ -39,6 +39,7 @@
#include "dct.h" #include "dct.h"
#include "decode.h" #include "decode.h"
#include "get_bits.h" #include "get_bits.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "rdft.h" #include "rdft.h"
#include "wma_freqs.h" #include "wma_freqs.h"

@ -35,6 +35,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "cga_data.h" #include "cga_data.h"
#include "bintext.h" #include "bintext.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#define FONT_WIDTH 8 #define FONT_WIDTH 8

@ -27,7 +27,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "thread.h" #include "thread.h"

@ -21,6 +21,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h" #include "internal.h"
#include "put_bits.h" #include "put_bits.h"

@ -27,8 +27,8 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "bmp.h" #include "bmp.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF }; static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF };
static const uint32_t rgb565_masks[] = { 0xF800, 0x07E0, 0x001F }; static const uint32_t rgb565_masks[] = { 0xF800, 0x07E0, 0x001F };

@ -23,6 +23,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
static const int bmv_aud_mults[16] = { static const int bmv_aud_mults[16] = {

@ -24,6 +24,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
enum BMVFlags{ enum BMVFlags{

@ -21,6 +21,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct C93DecoderContext { typedef struct C93DecoderContext {

@ -30,6 +30,7 @@
#include "get_bits.h" #include "get_bits.h"
#include "golomb.h" #include "golomb.h"
#include "cavs.h" #include "cavs.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "mpeg12data.h" #include "mpeg12data.h"
#include "startcode.h" #include "startcode.h"

@ -21,7 +21,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "ass.h" #include "ass.h"
#include "internal.h" #include "codec_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#define SCREEN_ROWS 15 #define SCREEN_ROWS 15

@ -21,6 +21,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
/** /**

@ -31,6 +31,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#define CDTOONS_HEADER_SIZE 44 #define CDTOONS_HEADER_SIZE 44

@ -31,6 +31,7 @@
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -32,6 +32,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"
#include "thread.h" #include "thread.h"

@ -33,9 +33,9 @@
#include "bytestream.h" #include "bytestream.h"
#include "cfhd.h" #include "cfhd.h"
#include "cfhdencdsp.h" #include "cfhdencdsp.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "put_bits.h" #include "put_bits.h"
#include "internal.h"
#include "thread.h" #include "thread.h"
/* Derived from existing tables from decoder */ /* Derived from existing tables from decoder */

@ -40,6 +40,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "decode.h" #include "decode.h"
#include "internal.h" #include "internal.h"

@ -44,9 +44,9 @@
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "elbg.h" #include "elbg.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
#define CVID_HEADER_SIZE 10 #define CVID_HEADER_SIZE 10
#define STRIP_HEADER_SIZE 12 #define STRIP_HEADER_SIZE 12

@ -29,6 +29,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "idctdsp.h" #include "idctdsp.h"
#include "internal.h" #include "internal.h"

@ -25,6 +25,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -27,7 +27,7 @@
#include "canopus.h" #include "canopus.h"
#include "get_bits.h" #include "get_bits.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "codec_internal.h"
#include "thread.h" #include "thread.h"
#define VLC_BITS 7 #define VLC_BITS 7

@ -26,6 +26,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
#include "celp_filters.h" #include "celp_filters.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"

@ -23,8 +23,8 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
#include "lpc.h" #include "lpc.h"
typedef struct CNGContext { typedef struct CNGContext {

@ -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 "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "fft.h" #include "fft.h"
#include "internal.h" #include "internal.h"
#include "sinewin.h" #include "sinewin.h"

@ -23,6 +23,7 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -31,6 +31,7 @@
#include "libavutil/display.h" #include "libavutil/display.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"
#include "thread.h" #include "thread.h"

@ -57,6 +57,7 @@
#include <libcrystalhd/libcrystalhd_if.h> #include <libcrystalhd/libcrystalhd_if.h>
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "decode.h" #include "decode.h"
#include "internal.h" #include "internal.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"

@ -22,6 +22,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/common.h" #include "libavutil/common.h"

@ -34,6 +34,7 @@
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "decode.h" #include "decode.h"
#include "hwconfig.h" #include "hwconfig.h"
#include "nvdec.h" #include "nvdec.h"

@ -35,6 +35,7 @@
#include <string.h> #include <string.h>
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"

@ -22,10 +22,10 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "codec_internal.h"
#include "dcadec.h" #include "dcadec.h"
#include "dcahuff.h" #include "dcahuff.h"
#include "dca_syncwords.h" #include "dca_syncwords.h"
#include "internal.h"
#include "profiles.h" #include "profiles.h"
#define MIN_PACKET_SIZE 16 #define MIN_PACKET_SIZE 16

@ -30,6 +30,7 @@
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h"
#include "dca.h" #include "dca.h"
#include "dcaadpcm.h" #include "dcaadpcm.h"
#include "dcamath.h" #include "dcamath.h"

@ -33,6 +33,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "texturedsp.h" #include "texturedsp.h"
#include "thread.h" #include "thread.h"

@ -42,6 +42,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "bsf.h" #include "bsf.h"
#include "codec_internal.h"
#include "decode.h" #include "decode.h"
#include "hwconfig.h" #include "hwconfig.h"
#include "internal.h" #include "internal.h"

@ -24,6 +24,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"

@ -28,6 +28,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_id.h" #include "codec_id.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
typedef struct { typedef struct {

@ -28,8 +28,8 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_id.h" #include "codec_id.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "internal.h"
typedef struct { typedef struct {
int fq, q, s, lt; int fq, q, s, lt;

@ -32,6 +32,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "bytestream.h" #include "bytestream.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "golomb.h" #include "golomb.h"
#include "dirac_arith.h" #include "dirac_arith.h"

@ -29,6 +29,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "blockdsp.h" #include "blockdsp.h"
#include "codec_internal.h"
#define UNCHECKED_BITSTREAM_READER 1 #define UNCHECKED_BITSTREAM_READER 1
#include "get_bits.h" #include "get_bits.h"
#include "dnxhddata.h" #include "dnxhddata.h"

@ -30,6 +30,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "blockdsp.h" #include "blockdsp.h"
#include "codec_internal.h"
#include "encode.h" #include "encode.h"
#include "fdctdsp.h" #include "fdctdsp.h"
#include "internal.h" #include "internal.h"

@ -25,6 +25,7 @@
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "codec_internal.h"
#include "internal.h" #include "internal.h"
#include "get_bits.h" #include "get_bits.h"
#include "dolby_e.h" #include "dolby_e.h"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save