avfilter/internal: Don't include video.h
internal.h does not depend on video.h (and should not depend on it) and therefore should not include video.h at all; instead all users of video.h should include it directly. Doing so also avoids unnecessary video.h inclusions in files that don't need it, like most audio filters. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
50ea7389ec
commit
6d15643173
@ -45,6 +45,7 @@
|
||||
#include "internal.h"
|
||||
#include "af_afir.h"
|
||||
#include "af_afirdsp.h"
|
||||
#include "video.h"
|
||||
|
||||
static void drawtext(AVFrame *pic, int x, int y, const char *txt, uint32_t color)
|
||||
{
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "audio.h"
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct ThreadData {
|
||||
AVFrame *in, *out;
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "audio.h"
|
||||
#include "video.h"
|
||||
|
||||
#define FILTER_ORDER 4
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "internal.h"
|
||||
#include "lavfutils.h"
|
||||
#include "lswsutils.h"
|
||||
#include "video.h"
|
||||
|
||||
#if CONFIG_LIBFREETYPE
|
||||
#include <ft2build.h>
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "formats.h"
|
||||
#include "framepool.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
static void tlog_ref(void *ctx, AVFrame *ref, int end)
|
||||
{
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "filters.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define ABS_THRES -70 ///< silence gate: we discard anything below this absolute (LUFS) threshold
|
||||
#define ABS_UP_THRES 10 ///< upper loud limit to consider (ABS_THRES being the minimum)
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "framequeue.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct AVFilterCommand {
|
||||
double time; ///< time expressed in seconds
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "vulkan_filter.h"
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct AvgBlurVulkanContext {
|
||||
FFVulkanContext vkctx;
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "internal.h"
|
||||
#include "framesync.h"
|
||||
#include "blend.h"
|
||||
#include "video.h"
|
||||
|
||||
#define IN_TOP 0
|
||||
#define IN_BOTTOM 1
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "vulkan_filter.h"
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct ChromaticAberrationVulkanContext {
|
||||
FFVulkanContext vkctx;
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "libavutil/mem_internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
static const char *const var_names[] = { "c", NULL };
|
||||
enum { VAR_C, VAR_VARS_NB };
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "dnn_filter_common.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct DRContext {
|
||||
const AVClass *class;
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "dnn_filter_common.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
#include "libswscale/swscale.h"
|
||||
#include "libavutil/time.h"
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct EPXContext {
|
||||
const AVClass *class;
|
||||
|
@ -27,12 +27,13 @@
|
||||
* very simple video equalizer
|
||||
*/
|
||||
|
||||
#include "libavfilter/internal.h"
|
||||
#include "libavutil/common.h"
|
||||
#include "libavutil/imgutils.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "vf_eq.h"
|
||||
#include "video.h"
|
||||
|
||||
static void create_lut(EQParameters *param)
|
||||
{
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "drawutils.h"
|
||||
#include "filters.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define PLANE_R 0x01
|
||||
#define PLANE_G 0x02
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "libavutil/tx.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
#include "window_func.h"
|
||||
|
||||
#define MAX_BLOCK 256
|
||||
|
@ -24,7 +24,8 @@
|
||||
* FFT domain filtering.
|
||||
*/
|
||||
|
||||
#include "libavfilter/internal.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
#include "libavutil/common.h"
|
||||
#include "libavutil/cpu.h"
|
||||
#include "libavutil/imgutils.h"
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "filters.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define INPUT_MAIN 0
|
||||
#define INPUT_CLEANSRC 1
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "vulkan_filter.h"
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
enum FlipType {
|
||||
FLIP_VERTICAL,
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "internal.h"
|
||||
#include "qp_table.h"
|
||||
#include "vf_fspp.h"
|
||||
#include "video.h"
|
||||
|
||||
#define OFFSET(x) offsetof(FSPPContext, x)
|
||||
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "vulkan_filter.h"
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define CGS 32
|
||||
#define GBLUR_MAX_KERNEL_SIZE 127
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define MAX_NB_THREADS 32
|
||||
#define NB_PLANES 4
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
enum FilterMode {
|
||||
MODE_NONE,
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct KerndeintContext {
|
||||
const AVClass *class;
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "libavutil/parseutils.h"
|
||||
#include "internal.h"
|
||||
#include "filters.h"
|
||||
#include "video.h"
|
||||
#include "vulkan_filter.h"
|
||||
#include "scale_eval.h"
|
||||
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
enum MCDeintMode {
|
||||
MODE_FAST = 0,
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "framesync.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct Mapping {
|
||||
int input;
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "vaapi_vpp.h"
|
||||
#include "video.h"
|
||||
|
||||
// Denoise min/max/default Values
|
||||
#define DENOISE_MIN 0
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "vulkan_filter.h"
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define TYPE_NAME "vec4"
|
||||
#define TYPE_ELEMS 4
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "vaapi_vpp.h"
|
||||
#include "video.h"
|
||||
#include "libavutil/eval.h"
|
||||
|
||||
enum var_name {
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "framesync.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct OverlayVulkanContext {
|
||||
FFVulkanContext vkctx;
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct OWDenoiseContext {
|
||||
const AVClass *class;
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "palette.h"
|
||||
#include "video.h"
|
||||
|
||||
/* Reference a color and how much it's used */
|
||||
struct color_ref {
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "framesync.h"
|
||||
#include "internal.h"
|
||||
#include "palette.h"
|
||||
#include "video.h"
|
||||
|
||||
enum dithering_mode {
|
||||
DITHERING_NONE,
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "internal.h"
|
||||
#include "qp_table.h"
|
||||
#include "video.h"
|
||||
|
||||
#include "libpostproc/postprocess.h"
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "internal.h"
|
||||
#include "qp_table.h"
|
||||
#include "vf_pp7.h"
|
||||
#include "video.h"
|
||||
|
||||
enum mode {
|
||||
MODE_HARD,
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "vaapi_vpp.h"
|
||||
#include "video.h"
|
||||
|
||||
// ProcAmp Min/Max/Default Values
|
||||
#define BRIGHTNESS_MIN -100.0F
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct FilterParam {
|
||||
float radius;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "scale_eval.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct ScaleVtContext {
|
||||
AVClass *class;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "scale_eval.h"
|
||||
#include "internal.h"
|
||||
#include "colorspace.h"
|
||||
#include "video.h"
|
||||
|
||||
enum ScalerFunc {
|
||||
F_BILINEAR = 0,
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct ScrollContext {
|
||||
const AVClass *class;
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define RADIUS_MIN 0.1
|
||||
#define RADIUS_MAX 5.0
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "internal.h"
|
||||
#include "qp_table.h"
|
||||
#include "vf_spp.h"
|
||||
#include "video.h"
|
||||
|
||||
enum mode {
|
||||
MODE_HARD,
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "libavformat/avio.h"
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "tinterlace.h"
|
||||
#include "video.h"
|
||||
|
||||
#define OFFSET(x) offsetof(TInterlaceContext, x)
|
||||
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "formats.h"
|
||||
#include "internal.h"
|
||||
#include "vaapi_vpp.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct HDRVAAPIContext {
|
||||
VAAPIVPPContext vpp_ctx; // must be the first field
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "internal.h"
|
||||
#include "formats.h"
|
||||
#include "drawutils.h"
|
||||
#include "video.h"
|
||||
|
||||
enum PadMode {
|
||||
MODE_ADD = 0,
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "internal.h"
|
||||
#include "transpose.h"
|
||||
#include "vaapi_vpp.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct TransposeVAAPIContext {
|
||||
VAAPIVPPContext vpp_ctx; // must be the first field
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "transpose.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct TransposeVtContext {
|
||||
AVClass *class;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "vulkan_spirv.h"
|
||||
#include "internal.h"
|
||||
#include "transpose.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct TransposeVulkanContext {
|
||||
FFVulkanContext vkctx;
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "internal.h"
|
||||
#include "qp_table.h"
|
||||
#include "avfilter.h"
|
||||
#include "video.h"
|
||||
|
||||
#define MAX_LEVEL 8 /* quality levels */
|
||||
#define BLOCK 16
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#include "vidstabutils.h"
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct WeaveContext {
|
||||
const AVClass *class;
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define LB_MASK 0x00FEFEFE
|
||||
#define RED_BLUE_MASK 0x00FF00FF
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "vulkan_spirv.h"
|
||||
#include "filters.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
#define IN_A 0
|
||||
#define IN_B 1
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "libavutil/imgutils.h"
|
||||
#include "avfilter.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
|
||||
typedef struct YAEPContext {
|
||||
const AVClass *class;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "internal.h"
|
||||
#include "filters.h"
|
||||
#include "colorspace.h"
|
||||
#include "video.h"
|
||||
|
||||
enum TestSrcVulkanMode {
|
||||
TESTSRC_COLOR,
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/imgutils.h"
|
||||
#include "internal.h"
|
||||
#include "video.h"
|
||||
#include "yadif.h"
|
||||
|
||||
static int return_frame(AVFilterContext *ctx, int is_second)
|
||||
|
Loading…
x
Reference in New Issue
Block a user