@@ -24,7 +24,8 @@
* Common code between the AC-3 encoder and decoder.
*/
-#include "libavutil/common.h"
+#include "libavutil/error.h"
+#include "libavutil/macros.h"
#include "ac3.h"
@@ -78,6 +78,7 @@ typedef int INTFLOAT;
typedef int16_t SHORTFLOAT;
#else /* USE_FIXED */
+#include "libavutil/libm.h"
#define FIXR(x) ((float)(x))
#define FIXR12(x) ((float)(x))
@@ -19,8 +19,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/common.h"
+#include <limits.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+
#include "libavutil/error.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "ass_split.h"
@@ -24,9 +24,9 @@
#include <limits.h>
#include <stdint.h>
-#include "libavutil/common.h"
#include "libavutil/error.h"
#include "libavutil/intmath.h"
+#include "libavutil/macros.h"
#include "av1.h"
#include "get_bits.h"
@@ -36,11 +36,11 @@
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/bswap.h"
-#include "libavutil/common.h"
#include "libavutil/error.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavutil/qsort.h"
#include "mathops.h"
@@ -24,13 +24,10 @@
* Context Adaptive Binary Arithmetic Coder.
*/
-#include <string.h>
-
-#include "libavutil/common.h"
+#include "libavutil/error.h"
#include "libavutil/mem_internal.h"
#include "cabac.h"
-#include "cabac_functions.h"
DECLARE_ASM_ALIGNED(1, const uint8_t, ff_h264_cabac_tables)[512 + 4*2*64 + 4*64 + 63] = {
9,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5,
@@ -20,14 +20,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <inttypes.h>
-#include <limits.h>
+#include <stdint.h>
+#include "config.h"
#include "libavutil/avassert.h"
-#include "avcodec.h"
+#include "libavutil/intmath.h"
#include "mathops.h"
#include "celp_math.h"
-#include "libavutil/common.h"
#ifdef G729_BITEXACT
static const uint16_t exp2a[]=
@@ -19,10 +19,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
#include <string.h>
-#include "libavutil/common.h"
#include "libavutil/internal.h"
+#include "libavutil/macros.h"
#include "codec_id.h"
#include "codec_desc.h"
@@ -21,7 +21,7 @@
#ifndef AVCODEC_DCA_EXSS_H
#define AVCODEC_DCA_EXSS_H
-#include "libavutil/common.h"
+#include <stdint.h>
#include "avcodec.h"
#include "get_bits.h"
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/common.h"
+#include <stdlib.h>
#include "dcadct.h"
#include "dcamath.h"
@@ -21,7 +21,8 @@
#ifndef AVCODEC_DCADCT_H
#define AVCODEC_DCADCT_H
-#include "libavutil/common.h"
+#include <stdint.h>
+#include "libavutil/attributes.h"
typedef struct DCADCTContext {
void (*imdct_half[2])(int32_t *output, const int32_t *input);
@@ -21,9 +21,11 @@
#ifndef AVCODEC_DCADEC_H
#define AVCODEC_DCADEC_H
-#include "libavutil/common.h"
+#include <stdint.h>
+
#include "libavutil/crc.h"
#include "libavutil/float_dsp.h"
+#include "libavutil/log.h"
#include "avcodec.h"
#include "get_bits.h"
@@ -23,7 +23,7 @@
#include <stddef.h>
#include "libavutil/avassert.h"
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "dcahuff.h"
#include "put_bits.h"
@@ -19,7 +19,7 @@
#ifndef AVCODEC_DIRAC_VLC_H
#define AVCODEC_DIRAC_VLC_H
-#include "libavutil/avutil.h"
+#include <stdint.h>
int ff_dirac_golomb_read_16bit(const uint8_t *buf, int bytes,
uint8_t *_dst, int coeffs);
@@ -19,9 +19,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
+#include "libavutil/log.h"
+#include "libavutil/macros.h"
#include "avcodec.h"
#include "dnxhddata.h"
-#include "libavutil/common.h"
/* The quantization tables below are in zigzag order! */
@@ -24,8 +24,9 @@
#include <stdint.h>
#include "avcodec.h"
-#include "libavutil/internal.h"
+#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/rational.h"
/** Additional profile info flags */
#define DNXHD_INTERLACED (1<<0)
@@ -18,11 +18,12 @@
#include "config.h"
+#include <stddef.h>
#include <stdint.h>
-#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
+#include "libavutil/macros.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
@@ -25,11 +25,14 @@
* Entropy Logarithmic-Scale binary arithmetic decoder
*/
-#include <math.h>
+#include <stddef.h>
#include <stdint.h>
+#include <string.h>
-#include "libavutil/common.h"
+#include "libavutil/error.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/macros.h"
+#include "libavutil/mem.h"
#include "elsdec.h"
@@ -19,8 +19,8 @@
#ifndef AVCODEC_EXRDSP_H
#define AVCODEC_EXRDSP_H
+#include <stddef.h>
#include <stdint.h>
-#include "libavutil/common.h"
typedef struct ExrDSPContext {
void (*reorder_pixels)(uint8_t *dst, const uint8_t *src, ptrdiff_t size);
@@ -19,6 +19,7 @@
*/
#include "libavutil/attributes.h"
+#include "libavutil/internal.h"
#include "libavutil/samplefmt.h"
#include "flacdsp.h"
#include "config.h"
@@ -20,7 +20,7 @@
#define AVCODEC_FLACDSP_H
#include <stdint.h>
-#include "libavutil/internal.h"
+
#include "libavutil/samplefmt.h"
typedef struct FLACDSPContext {
@@ -17,7 +17,7 @@
*/
#include <stdint.h>
-#include "libavutil/avutil.h"
+#include "libavutil/common.h"
#include "mathops.h"
#undef FUNC
@@ -19,7 +19,7 @@
*/
#include <stdint.h>
-#include "libavutil/avutil.h"
+#include "libavutil/macros.h"
#undef FUNC
#undef FSUF
@@ -20,9 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+#include "libavutil/attributes.h"
#include "avcodec.h"
#include "fmtconvert.h"
-#include "libavutil/common.h"
static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src,
float mul, int len)
@@ -26,7 +26,7 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/
-#include "libavutil/common.h"
+#include <stdint.h>
const uint8_t ff_golomb_vlc_len[512]={
19,17,15,15,13,13,13,13,11,11,11,11,11,11,11,11,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
@@ -17,7 +17,7 @@
*/
#include <stddef.h>
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "h264_levels.h"
// H.264 table A-1.
@@ -16,16 +16,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <string.h>
+#include <inttypes.h>
-#include "libavutil/common.h"
+#include "libavutil/log.h"
#include "bsf.h"
-#include "bsf_internal.h"
#include "cbs.h"
#include "cbs_bsf.h"
#include "cbs_h264.h"
+#include "codec_id.h"
#include "h264.h"
+#include "packet.h"
#define NEW_GLOBAL_PIC_INIT_QP 26
@@ -28,9 +28,9 @@
#include <limits.h>
#include <stdio.h>
#include <string.h>
-#include "libavutil/common.h"
#include "libavutil/error.h"
#include "libavutil/log.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "atsc_a53.h"
#include "get_bits.h"
@@ -26,8 +26,11 @@
#include <stdint.h>
+#include "libavutil/error.h"
+#include "libavutil/log.h"
+#include "libavutil/macros.h"
+#include "libavutil/mem.h"
#include "libavutil/qsort.h"
-#include "libavutil/common.h"
#include "huffman.h"
#include "vlc.h"
@@ -66,9 +66,8 @@
* Independent JPEG Group's fast AAN dct.
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include "libavutil/common.h"
+#include <stdint.h>
+#include "libavutil/attributes.h"
#include "dct.h"
#define DCTSIZE 8
@@ -25,7 +25,8 @@
* Discrete wavelet transform
*/
-#include "libavutil/common.h"
+#include "libavutil/error.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "jpeg2000dwt.h"
@@ -62,7 +62,9 @@
* Independent JPEG Group's LLM idct.
*/
-#include "libavutil/common.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "libavutil/intreadwrite.h"
#include "dct.h"
@@ -31,7 +31,6 @@
#define AVCODEC_LAGARITHRAC_H
#include <stdint.h>
-#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "get_bits.h"
@@ -21,7 +21,6 @@
#include <opus_defines.h>
-#include "libavutil/common.h"
#include "libavutil/error.h"
#include "libopus.h"
@@ -21,10 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <inttypes.h>
+#include <math.h>
#define FRAC_BITS 14
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "mathops.h"
#include "lsp.h"
#include "libavcodec/mips/lsp_mips.h"
@@ -27,7 +27,7 @@
#include <stdint.h>
#include "libavutil/avassert.h"
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "lzw.h"
#include "put_bits.h"
@@ -27,11 +27,12 @@
#include <float.h>
#include <math.h>
#include <stddef.h>
+#include <stdint.h>
#include "config.h"
#include "libavutil/attributes.h"
-#include "libavutil/common.h"
+#include "libavutil/error.h"
#include "mdct15.h"
@@ -54,6 +54,7 @@
#include <string.h>
+#include "config.h"
#include "libavutil/mips/asmdefs.h"
#include "libavcodec/mpegaudiodsp.h"
@@ -55,6 +55,7 @@
#include <string.h>
+#include "config.h"
#include "libavutil/mips/asmdefs.h"
#include "libavcodec/mpegaudiodsp.h"
@@ -21,10 +21,7 @@
#include <string.h>
#include <stdint.h>
-#include <stdlib.h>
#include "libavutil/avassert.h"
-#include "libavutil/common.h"
-#include "libavutil/error.h"
#include "libavutil/qsort.h"
#include "mjpegenc_huffman.h"
@@ -24,7 +24,7 @@
* MPEG Audio header decoder.
*/
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "mpegaudio.h"
#include "mpegaudiodata.h"
@@ -22,7 +22,7 @@
#include <stddef.h>
#include <stdint.h>
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
typedef struct MPADSPContext {
void (*apply_window_float)(float *synth_buf, float *window,
@@ -30,7 +30,7 @@
#ifndef AVCODEC_MSMPEG4DATA_H
#define AVCODEC_MSMPEG4DATA_H
-#include "libavutil/common.h"
+#include <stdint.h>
#include "rl.h"
#include "vlc.h"
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+#include "libavutil/attributes.h"
#include "opusdsp.h"
static void postfilter_c(float *data, int period, float *gains, int len)
@@ -19,8 +19,6 @@
#ifndef AVCODEC_OPUSDSP_H
#define AVCODEC_OPUSDSP_H
-#include "libavutil/common.h"
-
#define CELT_EMPH_COEFF 0.8500061035f
typedef struct OpusDSP {
@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
#include "libavutil/attributes.h"
-#include "libavutil/common.h"
#include "png.h"
#include "pngdsp.h"
@@ -23,7 +23,7 @@
#define AVCODEC_RA288_H
#include <stdint.h>
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "libavutil/mem_internal.h"
static const float amptable[8]={
@@ -29,8 +29,8 @@
#include <stdint.h>
-#include "libavutil/common.h"
#include "libavutil/avassert.h"
+#include "libavutil/intmath.h"
typedef struct RangeCoder {
int low;
@@ -24,9 +24,9 @@
* Raw Video Codec
*/
+#include "libavutil/macros.h"
#include "avcodec.h"
#include "raw.h"
-#include "libavutil/common.h"
static const PixelFormatTag raw_pix_fmt_tags[] = {
{ AV_PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
@@ -21,7 +21,7 @@
#include <string.h>
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "rle.h"
@@ -23,12 +23,7 @@
#ifndef AVCODEC_SCPR3_H
#define AVCODEC_SCPR3_H
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "avcodec.h"
-#include "internal.h"
+#include <stdint.h>
typedef struct PixelModel3 {
uint8_t type;
@@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavcodec/cabac_functions.h"
#include "libavcodec/cabac.c"
#define SIZE 10240
#include "libavutil/lfg.h"
-#include "libavcodec/avcodec.h"
#include "libavcodec/put_bits.h"
typedef struct CABACTestContext {
@@ -20,6 +20,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
+#include <stdio.h>
+
+#include "libavutil/common.h"
+
#include "libavcodec/jpeg2000dwt.c"
#include "libavutil/lfg.h"
@@ -19,6 +19,7 @@
#include <stdint.h>
#include <string.h>
+#include "libavutil/error.h"
#include "libavutil/lfg.h"
#include "libavutil/log.h"
@@ -16,10 +16,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdio.h>
+#include <inttypes.h>
#include "libavutil/avstring.h"
-#include "libavutil/common.h"
+#include "libavutil/avutil.h"
#include "libavutil/log.h"
#include "bsf.h"
@@ -18,9 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "videodsp.h"
#define BIT_DEPTH 8
@@ -26,7 +26,7 @@
#ifndef AVCODEC_VP56DATA_H
#define AVCODEC_VP56DATA_H
-#include "libavutil/common.h"
+#include <stdint.h>
#include "vp56.h"
extern const uint8_t ff_vp56_b2p[];
@@ -19,7 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/common.h"
+#include <stdint.h>
+#include "libavutil/error.h"
+#include "bytestream.h"
#include "vp56.h"
const uint8_t ff_vp56_norm_shift[256]= {
@@ -21,8 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+
+#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
-#include "libavutil/common.h"
#include "libavutil/mem_internal.h"
#include "vp9dsp.h"
@@ -22,7 +22,10 @@
#ifndef AVCODEC_WAVPACK_H
#define AVCODEC_WAVPACK_H
-#include "libavutil/common.h"
+#include <limits.h>
+#include <stdint.h>
+#include "libavutil/attributes.h"
+#include "libavutil/intmath.h"
#define MAX_TERMS 16
#define MAX_TERM 8
@@ -21,6 +21,8 @@
#ifndef AVCODEC_WAVPACKENC_H
#define AVCODEC_WAVPACKENC_H
+#include <stdint.h>
+#include "libavutil/macros.h"
#include "wavpack.h"
typedef struct WavPackDecorrSpec {
@@ -30,8 +30,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
#include "libavutil/attributes.h"
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h"
#include "fdct.h"
@@ -19,9 +19,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
+
+#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
-#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h"
@@ -19,8 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdint.h>
+#include "config.h"
#include "libavutil/attributes.h"
-#include "libavutil/common.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/pngdsp.h"
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <limits.h>
+#include "libavutil/error.h"
#include "libavutil/intreadwrite.h"
#include "xiph.h"
@@ -21,7 +21,7 @@
#ifndef AVCODEC_XIPH_H
#define AVCODEC_XIPH_H
-#include "libavutil/common.h"
+#include <stdint.h>
/**
* Split a single extradata buffer into the three headers that most
@@ -22,7 +22,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/common.h"
+#include <math.h>
+#include <stddef.h>
+
+#include "libavutil/macros.h"
+#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "timefilter.h"
@@ -21,15 +21,14 @@
#ifndef AVFILTER_AFIR_H
#define AVFILTER_AFIR_H
+#include <stddef.h>
+#include <stdint.h>
+
#include "libavutil/tx.h"
-#include "libavutil/common.h"
#include "libavutil/float_dsp.h"
-#include "libavutil/opt.h"
-
-#include "audio.h"
-#include "avfilter.h"
-#include "formats.h"
-#include "internal.h"
+#include "libavutil/frame.h"
+#include "libavutil/log.h"
+#include "libavutil/rational.h"
typedef struct AudioFIRSegment {
int nb_partitions;
@@ -24,10 +24,10 @@
#ifndef AVFILTER_VOLUME_H
#define AVFILTER_VOLUME_H
-#include "libavutil/common.h"
+#include <stdint.h>
#include "libavutil/eval.h"
#include "libavutil/float_dsp.h"
-#include "libavutil/opt.h"
+#include "libavutil/log.h"
#include "libavutil/samplefmt.h"
enum PrecisionType {
@@ -25,11 +25,9 @@
#include <string.h>
#include "libavutil/avassert.h"
-#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/imgutils.h"
-#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
@@ -20,8 +20,8 @@
#ifndef AVFILTER_COLORSPACE_H
#define AVFILTER_COLORSPACE_H
-#include "libavutil/common.h"
#include "libavutil/frame.h"
+#include "libavutil/pixfmt.h"
#define REFERENCE_WHITE 100.0f
@@ -47,7 +47,8 @@
#include <limits.h>
#include <math.h> /* You may have to define _USE_MATH_DEFINES if you use MSVC */
-#include "libavutil/common.h"
+#include "libavutil/error.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libavutil/thread.h"
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "motion_estimation.h"
static const int8_t sqr1[8][2] = {{ 0,-1}, { 0, 1}, {-1, 0}, { 1, 0}, {-1,-1}, {-1, 1}, { 1,-1}, { 1, 1}};
@@ -21,7 +21,7 @@
#ifndef AVFILTER_MOTION_ESTIMATION_H
#define AVFILTER_MOTION_ESTIMATION_H
-#include "libavutil/avutil.h"
+#include <stdint.h>
#define AV_ME_METHOD_ESA 1
#define AV_ME_METHOD_TSS 2
@@ -21,11 +21,11 @@
* Libavfilter multithreading support
*/
-#include "config.h"
+#include <stddef.h>
-#include "libavutil/common.h"
+#include "libavutil/error.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
-#include "libavutil/thread.h"
#include "libavutil/slicethread.h"
#include "avfilter.h"
@@ -24,7 +24,7 @@
#define AVFORMAT_ARGO_ASF_H
#include <stdint.h>
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "avformat.h"
@@ -20,10 +20,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
#include "libavutil/bswap.h"
-#include "libavutil/common.h"
#include "libavutil/des.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/mem.h"
#include "libavutil/rc4.h"
#include "asfcrypt.h"
@@ -19,8 +19,7 @@
*/
#include "avlanguage.h"
-#include "libavutil/avstring.h"
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
@@ -25,7 +25,6 @@
#include <stdint.h>
-#include "libavutil/common.h"
#include "avformat.h"
#include "avio.h"
@@ -23,8 +23,8 @@
#define AVFORMAT_MATROSKA_H
#include "libavcodec/codec_id.h"
+#include "avformat.h"
#include "metadata.h"
-#include "internal.h"
/* EBML version supported */
#define EBML_VERSION 1
@@ -22,7 +22,6 @@
#include "network.h"
#include "tls.h"
#include "url.h"
-#include "libavutil/avutil.h"
#include "libavutil/avassert.h"
#include "libavutil/mem.h"
#include "libavutil/time.h"
@@ -19,8 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
#include "config.h"
-#include "libavutil/common.h"
+#include "libavutil/macros.h"
#include "avformat.h"
#include "internal.h"
#include "metadata.h"
@@ -19,8 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/avutil.h"
-#include "libavutil/avstring.h"
+#include <string.h>
+
+#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "tee_common.h"
@@ -38,6 +38,8 @@
#include "libavutil/opt.h"
#include "libavutil/time_internal.h"
+#include "libavcodec/codec_desc.h"
+
typedef struct AdaptationSet {
char id[10];
int *streams;
@@ -21,8 +21,9 @@
#include <stdint.h>
#include <string.h>
-#include "libavutil/common.h"
+#include "libavutil/error.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/macros.h"
#include "wv.h"
@@ -32,8 +32,8 @@
#include "config.h"
#include "adler32.h"
-#include "common.h"
#include "intreadwrite.h"
+#include "macros.h"
#define BASE 65521L /* largest prime smaller than 65536 */
@@ -20,11 +20,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "common.h"
+#include <string.h>
+
+#include "config.h"
#include "aes.h"
#include "aes_internal.h"
+#include "error.h"
#include "intreadwrite.h"
-#include "timer.h"
+#include "macros.h"
+#include "mem.h"
const int av_aes_size= sizeof(AVAES);
@@ -19,10 +19,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "common.h"
+#include <string.h>
+
#include "aes_ctr.h"
#include "aes.h"
#include "aes_internal.h"
+#include "macros.h"
+#include "mem.h"
#include "random_seed.h"
#define AES_BLOCK_SIZE (16)
@@ -21,16 +21,18 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#include <errno.h>
+#include <limits.h>
+#include <math.h>
#include <stdarg.h>
+#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <float.h>
-#include "config.h"
-#include "common.h"
#include "avstring.h"
-#include "bprint.h"
+#include "libm.h"
typedef struct FFFILE {
size_t buf_size;
@@ -19,17 +19,20 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <limits.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
-#include "common.h"
#include "mem.h"
#include "avassert.h"
#include "avstring.h"
#include "bprint.h"
+#include "error.h"
+#include "macros.h"
+#include "version.h"
int av_strstart(const char *str, const char *pfx, const char **ptr)
{
@@ -24,10 +24,12 @@
* @author Ryan Martell <rdm4@martellventures.com> (with lots of Michael)
*/
-#include "common.h"
+#include <limits.h>
+#include <stddef.h>
+
#include "base64.h"
+#include "error.h"
#include "intreadwrite.h"
-#include "timer.h"
/* ---------------- private code */
static const uint8_t map2[256] =
@@ -21,8 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "avutil.h"
-#include "common.h"
+#include <string.h>
+
+#include "attributes.h"
#include "intreadwrite.h"
#include "mem.h"
#include "blowfish.h"
@@ -18,15 +18,16 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "avstring.h"
#include "bprint.h"
-#include "common.h"
#include "compat/va_copy.h"
#include "error.h"
+#include "macros.h"
#include "mem.h"
#define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size))
@@ -22,7 +22,6 @@
#include <stdatomic.h>
#include <stdint.h>
-#include "internal.h"
#include "buffer.h"
#include "thread.h"
@@ -18,9 +18,13 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include <string.h>
+
#include "camellia.h"
-#include "common.h"
+#include "error.h"
#include "intreadwrite.h"
+#include "mem.h"
#include "attributes.h"
#define LR32(x,c) ((x) << (c) | (x) >> (32 - (c)))
@@ -18,9 +18,13 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include <string.h>
+
#include "cast5.h"
-#include "common.h"
+#include "error.h"
#include "intreadwrite.h"
+#include "mem.h"
#include "attributes.h"
#define IA(x) ((x) >> 24)
@@ -24,12 +24,14 @@
*/
#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
-#include "avstring.h"
-#include "avutil.h"
#include "channel_layout.h"
#include "bprint.h"
#include "common.h"
+#include "error.h"
+#include "macros.h"
struct channel_name {
const char *name;
@@ -21,7 +21,6 @@
#include <stddef.h>
#include <math.h>
-#include "common.h"
#include "libavutil/color_utils.h"
#include "libavutil/pixfmt.h"
@@ -23,8 +23,8 @@
#include "thread.h"
#include "avassert.h"
#include "bswap.h"
-#include "common.h"
#include "crc.h"
+#include "error.h"
#if CONFIG_HARDCODED_TABLES
static const AVCRC av_crc_table[AV_CRC_MAX][257] = {
@@ -19,10 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+
#include <stdint.h>
-#include "avutil.h"
-#include "common.h"
+#include "attributes.h"
+#include "error.h"
#include "intreadwrite.h"
#include "mem.h"
#include "des.h"
@@ -18,9 +18,12 @@
#undef _GNU_SOURCE
#define _XOPEN_SOURCE 600 /* XSI-compliant version of strerror_r */
-#include "avutil.h"
+#include <stdio.h>
+#include <string.h>
+#include "config.h"
#include "avstring.h"
-#include "common.h"
+#include "error.h"
+#include "macros.h"
struct error_entry {
int num;
@@ -45,6 +45,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "common.h"
#include "fixed_dsp.h"
static void vector_fmul_add_c(int *dst, const int *src0, const int *src1, const int *src2, int len){
@@ -49,8 +49,8 @@
#define AVUTIL_FIXED_DSP_H
#include <stdint.h>
+#include "config.h"
#include "attributes.h"
-#include "common.h"
#include "libavcodec/mathops.h"
typedef struct AVFixedDSPContext {
@@ -28,8 +28,8 @@
#include <math.h>
#include <string.h>
+#include "config.h"
#include "attributes.h"
-#include "internal.h"
#include "lls.h"
static void update_lls(LLSModel *m, const double *var)
@@ -32,9 +32,11 @@
#if HAVE_IO_H
#include <io.h>
#endif
+#include <inttypes.h>
#include <stdarg.h>
+#include <stdio.h>
#include <stdlib.h>
-#include "avutil.h"
+#include <string.h>
#include "bprint.h"
#include "common.h"
#include "internal.h"
@@ -19,13 +19,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <limits.h>
+#include <stdint.h>
#include <string.h>
-#include "avutil.h"
#include "avassert.h"
-#include "common.h"
#include "intreadwrite.h"
#include "lzo.h"
+#include "macros.h"
+#include "mem.h"
/// Define if we may write up to 12 bytes beyond the output buffer.
#define OUTBUF_PADDED 1
@@ -37,10 +37,13 @@
#include <malloc.h>
#endif
-#include "avutil.h"
-#include "common.h"
+#include "attributes.h"
+#include "avassert.h"
#include "dynarray.h"
+#include "error.h"
+#include "internal.h"
#include "intreadwrite.h"
+#include "macros.h"
#include "mem.h"
#ifdef MALLOC_PREFIX
@@ -59,8 +62,6 @@ void free(void *ptr);
#endif /* MALLOC_PREFIX */
-#include "mem_internal.h"
-
#define ALIGN (HAVE_AVX512 ? 64 : (HAVE_AVX ? 32 : 16))
/* NOTE: if you want to override these functions with your own
@@ -16,12 +16,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
+
#include "config.h"
-#include "common.h"
#include "pixelutils.h"
-#include "internal.h"
#if CONFIG_PIXELUTILS
+#include <stdlib.h>
+#include <string.h>
+
+#include "attributes.h"
+#include "macros.h"
#include "x86/pixelutils.h"
@@ -60,7 +65,8 @@ static const av_pixelutils_sad_fn sad_c[] = {
block_sad_16x16_c,
block_sad_32x32_c,
};
-
+#else
+#include "log.h"
#endif /* CONFIG_PIXELUTILS */
av_pixelutils_sad_fn av_pixelutils_get_sad_fn(int w_bits, int h_bits, int aligned, void *log_ctx)
@@ -21,7 +21,7 @@
#ifndef AVUTIL_QSORT_H
#define AVUTIL_QSORT_H
-#include "common.h"
+#include "macros.h"
/**
@@ -20,8 +20,9 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "avutil.h"
-#include "common.h"
+
+#include "error.h"
+#include "macros.h"
#include "mem.h"
#include "rc4.h"
@@ -22,10 +22,12 @@
#include <stddef.h>
#include <string.h>
+#include "config.h"
#include "attributes.h"
-#include "avutil.h"
#include "bswap.h"
+#include "error.h"
#include "intreadwrite.h"
+#include "macros.h"
#include "ripemd.h"
#include "mem.h"
@@ -23,9 +23,10 @@
#include <string.h>
+#include "config.h"
#include "attributes.h"
-#include "avutil.h"
#include "bswap.h"
+#include "error.h"
#include "sha.h"
#include "intreadwrite.h"
#include "mem.h"
@@ -23,9 +23,10 @@
#include <string.h>
+#include "config.h"
#include "attributes.h"
-#include "avutil.h"
#include "bswap.h"
+#include "error.h"
#include "sha512.h"
#include "intreadwrite.h"
#include "mem.h"
@@ -21,7 +21,8 @@
#include <string.h>
#include "avstring.h"
-#include "common.h"
+#include "frame.h"
+#include "macros.h"
#include "mem.h"
#include "stereo3d.h"
@@ -22,9 +22,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "avutil.h"
-#include "common.h"
+#include <string.h>
#include "intreadwrite.h"
+#include "mem.h"
#include "tea.h"
typedef struct AVTEA {
@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdio.h>
#include "libavutil/color_utils.c"
+#include "libavutil/macros.h"
int main(int argc, char *argv[])
{
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdio.h>
+
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "libavutil/pixelutils.c"
#define W1 320
@@ -18,9 +18,13 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include <string.h>
+
#include "twofish.h"
-#include "common.h"
+#include "error.h"
#include "intreadwrite.h"
+#include "mem.h"
#include "attributes.h"
#define LR(x, n) ((x) << (n) | (x) >> (32 - (n)))
@@ -16,12 +16,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include "buffer.h"
-#include "common.h"
#include "frame.h"
#include "mem.h"
#include "video_enc_params.h"
@@ -21,9 +21,8 @@
#include "libavutil/cpu.h"
#include "libavutil/error.h"
-#include "libavutil/imgutils.h"
#include "libavutil/imgutils_internal.h"
-#include "libavutil/internal.h"
+#include "libavutil/macros.h"
#include "cpu.h"
@@ -28,8 +28,8 @@
* @ingroup lavu_xtea
*/
-#include "avutil.h"
-#include "common.h"
+#include <string.h>
+#include "config.h"
#include "intreadwrite.h"
#include "mem.h"
#include "xtea.h"
@@ -21,17 +21,11 @@
#include <math.h>
#include <stdint.h>
#include <stdio.h>
-#include <string.h>
-#include "libavutil/avutil.h"
#include "libavutil/bswap.h"
#include "libavutil/intreadwrite.h"
-#include "libavutil/mathematics.h"
-#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
#include "config.h"
-#include "rgb2rgb.h"
-#include "swscale.h"
#include "swscale_internal.h"
#define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
@@ -18,9 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/avutil.h"
#include "libavutil/opt.h"
-#include "libavutil/pixfmt.h"
#include "swscale.h"
#include "swscale_internal.h"
@@ -26,10 +26,7 @@
#ifndef SWSCALE_RGB2RGB_H
#define SWSCALE_RGB2RGB_H
-#include <inttypes.h>
-
-#include "libavutil/avutil.h"
-#include "swscale.h"
+#include <stdint.h>
/* A full collection of RGB to RGB(BGR) converters */
extern void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size);
@@ -18,22 +18,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <inttypes.h>
-#include <math.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/avassert.h"
-#include "libavutil/avutil.h"
#include "libavutil/bswap.h"
+#include "libavutil/common.h"
#include "libavutil/cpu.h"
-#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
-#include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.h"
#include "config.h"
-#include "rgb2rgb.h"
#include "swscale_internal.h"
#include "swscale.h"
@@ -26,7 +26,6 @@
#include "config.h"
#include "libavutil/avassert.h"
-#include "libavutil/avutil.h"
#include "libavutil/common.h"
#include "libavutil/frame.h"
#include "libavutil/intreadwrite.h"
Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/ac3.c | 3 ++- libavcodec/ac3.h | 1 + libavcodec/ass_split.c | 8 +++++++- libavcodec/av1_parse.h | 2 +- libavcodec/bitstream.c | 2 +- libavcodec/cabac.c | 5 +---- libavcodec/celp_math.c | 7 +++---- libavcodec/codec_desc.c | 3 ++- libavcodec/dca_exss.h | 2 +- libavcodec/dcadct.c | 2 +- libavcodec/dcadct.h | 3 ++- libavcodec/dcadec.h | 4 +++- libavcodec/dcahuff.c | 2 +- libavcodec/dirac_vlc.h | 2 +- libavcodec/dnxhddata.c | 4 +++- libavcodec/dnxhddata.h | 3 ++- libavcodec/dv_profile.c | 3 ++- libavcodec/elsdec.c | 7 +++++-- libavcodec/exrdsp.h | 2 +- libavcodec/flacdsp.c | 1 + libavcodec/flacdsp.h | 2 +- libavcodec/flacdsp_lpc_template.c | 2 +- libavcodec/flacdsp_template.c | 2 +- libavcodec/fmtconvert.c | 3 ++- libavcodec/golomb.c | 2 +- libavcodec/h264_levels.c | 2 +- libavcodec/h264_redundant_pps_bsf.c | 7 ++++--- libavcodec/h264_sei.c | 2 +- libavcodec/huffman.c | 5 ++++- libavcodec/jfdctfst.c | 5 ++--- libavcodec/jpeg2000dwt.c | 3 ++- libavcodec/jrevdct.c | 4 +++- libavcodec/lagarithrac.h | 1 - libavcodec/libopus.c | 1 - libavcodec/lsp.c | 4 ++-- libavcodec/lzwenc.c | 2 +- libavcodec/mdct15.c | 3 ++- libavcodec/mips/mpegaudiodsp_mips_fixed.c | 1 + libavcodec/mips/mpegaudiodsp_mips_float.c | 1 + libavcodec/mjpegenc_huffman.c | 3 --- libavcodec/mpegaudiodecheader.c | 2 +- libavcodec/mpegaudiodsp.h | 2 +- libavcodec/msmpeg4data.h | 2 +- libavcodec/opusdsp.c | 2 ++ libavcodec/opusdsp.h | 2 -- libavcodec/pngdsp.c | 2 +- libavcodec/ra288.h | 2 +- libavcodec/rangecoder.h | 2 +- libavcodec/raw.c | 2 +- libavcodec/rle.c | 2 +- libavcodec/scpr3.h | 7 +------ libavcodec/tests/cabac.c | 2 +- libavcodec/tests/jpeg2000dwt.c | 5 +++++ libavcodec/tests/rangecoder.c | 1 + libavcodec/trace_headers_bsf.c | 4 ++-- libavcodec/videodsp.c | 3 ++- libavcodec/vp56data.h | 2 +- libavcodec/vp56rac.c | 4 +++- libavcodec/vp9dsp.c | 4 +++- libavcodec/wavpack.h | 5 ++++- libavcodec/wavpackenc.h | 2 ++ libavcodec/x86/fdct.c | 3 ++- libavcodec/x86/mpegaudiodsp.c | 4 +++- libavcodec/x86/pngdsp_init.c | 3 ++- libavcodec/xiph.c | 2 ++ libavcodec/xiph.h | 2 +- libavdevice/timefilter.c | 6 +++++- libavfilter/af_afir.h | 13 ++++++------- libavfilter/af_volume.h | 4 ++-- libavfilter/avfiltergraph.c | 2 -- libavfilter/colorspace.h | 2 +- libavfilter/ebur128.c | 3 ++- libavfilter/motion_estimation.c | 1 + libavfilter/motion_estimation.h | 2 +- libavfilter/pthread.c | 6 +++--- libavformat/argo_asf.h | 2 +- libavformat/asfcrypt.c | 3 ++- libavformat/avlanguage.c | 3 +-- libavformat/hlsplaylist.h | 1 - libavformat/matroska.h | 2 +- libavformat/network.c | 1 - libavformat/riff.c | 3 ++- libavformat/tee_common.c | 5 +++-- libavformat/webmdashenc.c | 2 ++ libavformat/wv.c | 3 ++- libavutil/adler32.c | 2 +- libavutil/aes.c | 8 ++++++-- libavutil/aes_ctr.c | 5 ++++- libavutil/avsscanf.c | 8 +++++--- libavutil/avstring.c | 5 ++++- libavutil/base64.c | 6 ++++-- libavutil/blowfish.c | 5 +++-- libavutil/bprint.c | 3 ++- libavutil/buffer_internal.h | 1 - libavutil/camellia.c | 6 +++++- libavutil/cast5.c | 6 +++++- libavutil/channel_layout.c | 6 ++++-- libavutil/color_utils.c | 1 - libavutil/crc.c | 2 +- libavutil/des.c | 6 ++++-- libavutil/error.c | 7 +++++-- libavutil/fixed_dsp.c | 1 + libavutil/fixed_dsp.h | 2 +- libavutil/lls.c | 2 +- libavutil/log.c | 4 +++- libavutil/lzo.c | 6 ++++-- libavutil/mem.c | 9 +++++---- libavutil/pixelutils.c | 12 +++++++++--- libavutil/qsort.h | 2 +- libavutil/rc4.c | 5 +++-- libavutil/ripemd.c | 4 +++- libavutil/sha.c | 3 ++- libavutil/sha512.c | 3 ++- libavutil/stereo3d.c | 3 ++- libavutil/tea.c | 4 ++-- libavutil/tests/color_utils.c | 2 ++ libavutil/tests/pixelutils.c | 4 ++++ libavutil/twofish.c | 6 +++++- libavutil/video_enc_params.c | 2 -- libavutil/x86/imgutils_init.c | 3 +-- libavutil/xtea.c | 4 ++-- libswscale/input.c | 6 ------ libswscale/options.c | 2 -- libswscale/rgb2rgb.h | 5 +---- libswscale/swscale.c | 8 ++------ libswscale/swscale_internal.h | 1 - 126 files changed, 260 insertions(+), 178 deletions(-)