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.
Showing the changes to libavfilter (60 of 60 files). Show all
Unified · Split
| @@ -45,6 +45,7 @@ · 44 unmodified lines | |||
| 45 | #include "internal.h" | 45 | #include "internal.h" |
| 46 | #include "af_afir.h" | 46 | #include "af_afir.h" |
| 47 | #include "af_afirdsp.h" | 47 | #include "af_afirdsp.h" |
| 48 | #include "video.h" | ||
| 48 | 49 | ||
| 49 | static void drawtext(AVFrame *pic, int x, int y, const char *txt, uint32_t color) | 50 | static void drawtext(AVFrame *pic, int x, int y, const char *txt, uint32_t color) |
| 50 | { | 51 | { |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | |||
| 27 | #include "audio.h" | 27 | #include "audio.h" |
| 28 | #include "avfilter.h" | 28 | #include "avfilter.h" |
| 29 | #include "internal.h" | 29 | #include "internal.h" |
| 30 | #include "video.h" | ||
| 30 | 31 | ||
| 31 | typedef struct ThreadData { | 32 | typedef struct ThreadData { |
| 32 | AVFrame *in, *out; | 33 | AVFrame *in, *out; |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | |||
| 27 | #include "avfilter.h" | 27 | #include "avfilter.h" |
| 28 | #include "internal.h" | 28 | #include "internal.h" |
| 29 | #include "audio.h" | 29 | #include "audio.h" |
| 30 | #include "video.h" | ||
| 30 | 31 | ||
| 31 | #define FILTER_ORDER 4 | 32 | #define FILTER_ORDER 4 |
| 32 | 33 | ||
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | #include "internal.h" | 32 | #include "internal.h" |
| 33 | #include "lavfutils.h" | 33 | #include "lavfutils.h" |
| 34 | #include "lswsutils.h" | 34 | #include "lswsutils.h" |
| 35 | #include "video.h" | ||
| 35 | 36 | ||
| 36 | #if CONFIG_LIBFREETYPE | 37 | #if CONFIG_LIBFREETYPE |
| 37 | #include <ft2build.h> | 38 | #include <ft2build.h> |
| @@ -43,6 +43,7 @@ · 42 unmodified lines | |||
| 43 | #include "formats.h" | 43 | #include "formats.h" |
| 44 | #include "framepool.h" | 44 | #include "framepool.h" |
| 45 | #include "internal.h" | 45 | #include "internal.h" |
| 46 | #include "video.h" | ||
| 46 | 47 | ||
| 47 | static void tlog_ref(void *ctx, AVFrame *ref, int end) | 48 | static void tlog_ref(void *ctx, AVFrame *ref, int end) |
| 48 | { | 49 | { |
| @@ -43,6 +43,7 @@ · 42 unmodified lines | |||
| 43 | #include "filters.h" | 43 | #include "filters.h" |
| 44 | #include "formats.h" | 44 | #include "formats.h" |
| 45 | #include "internal.h" | 45 | #include "internal.h" |
| 46 | #include "video.h" | ||
| 46 | 47 | ||
| 47 | #define ABS_THRES -70 ///< silence gate: we discard anything below this absolute (LUFS) threshold | 48 | #define ABS_THRES -70 ///< silence gate: we discard anything below this absolute (LUFS) threshold |
| 48 | #define ABS_UP_THRES 10 ///< upper loud limit to consider (ABS_THRES being the minimum) | 49 | #define ABS_UP_THRES 10 ///< upper loud limit to consider (ABS_THRES being the minimum) |
| @@ -28,7 +28,6 @@ · 27 unmodified lines | |||
| 28 | #include "avfilter.h" | 28 | #include "avfilter.h" |
| 29 | #include "formats.h" | 29 | #include "formats.h" |
| 30 | #include "framequeue.h" | 30 | #include "framequeue.h" |
| 31 | #include "video.h" | ||
| 32 | 31 | ||
| 33 | typedef struct AVFilterCommand { | 32 | typedef struct AVFilterCommand { |
| 34 | double time; ///< time expressed in seconds | 33 | double time; ///< time expressed in seconds |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "vulkan_filter.h" | 23 | #include "vulkan_filter.h" |
| 24 | #include "vulkan_spirv.h" | 24 | #include "vulkan_spirv.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "video.h" | ||
| 26 | 27 | ||
| 27 | typedef struct AvgBlurVulkanContext { | 28 | typedef struct AvgBlurVulkanContext { |
| 28 | FFVulkanContext vkctx; | 29 | FFVulkanContext vkctx; |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include "internal.h" | 28 | #include "internal.h" |
| 29 | #include "framesync.h" | 29 | #include "framesync.h" |
| 30 | #include "blend.h" | 30 | #include "blend.h" |
| 31 | #include "video.h" | ||
| 31 | 32 | ||
| 32 | #define IN_TOP 0 | 33 | #define IN_TOP 0 |
| 33 | #define IN_BOTTOM 1 | 34 | #define IN_BOTTOM 1 |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "vulkan_filter.h" | 23 | #include "vulkan_filter.h" |
| 24 | #include "vulkan_spirv.h" | 24 | #include "vulkan_spirv.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "video.h" | ||
| 26 | 27 | ||
| 27 | typedef struct ChromaticAberrationVulkanContext { | 28 | typedef struct ChromaticAberrationVulkanContext { |
| 28 | FFVulkanContext vkctx; | 29 | FFVulkanContext vkctx; |
| @@ -33,6 +33,7 @@ · 32 unmodified lines | |||
| 33 | #include "libavutil/mem_internal.h" | 33 | #include "libavutil/mem_internal.h" |
| 34 | #include "libavutil/opt.h" | 34 | #include "libavutil/opt.h" |
| 35 | #include "internal.h" | 35 | #include "internal.h" |
| 36 | #include "video.h" | ||
| 36 | 37 | ||
| 37 | static const char *const var_names[] = { "c", NULL }; | 38 | static const char *const var_names[] = { "c", NULL }; |
| 38 | enum { VAR_C, VAR_VARS_NB }; | 39 | enum { VAR_C, VAR_VARS_NB }; |
| @@ -30,6 +30,7 @@ · 29 unmodified lines | |||
| 30 | #include "dnn_filter_common.h" | 30 | #include "dnn_filter_common.h" |
| 31 | #include "formats.h" | 31 | #include "formats.h" |
| 32 | #include "internal.h" | 32 | #include "internal.h" |
| 33 | #include "video.h" | ||
| 33 | 34 | ||
| 34 | typedef struct DRContext { | 35 | typedef struct DRContext { |
| 35 | const AVClass *class; | 36 | const AVClass *class; |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | #include "dnn_filter_common.h" | 32 | #include "dnn_filter_common.h" |
| 33 | #include "formats.h" | 33 | #include "formats.h" |
| 34 | #include "internal.h" | 34 | #include "internal.h" |
| 35 | #include "video.h" | ||
| 35 | #include "libswscale/swscale.h" | 36 | #include "libswscale/swscale.h" |
| 36 | #include "libavutil/time.h" | 37 | #include "libavutil/time.h" |
| 37 | 38 | ||
| @@ -19,6 +19,7 @@ · 18 unmodified lines | |||
| 19 | #include "libavutil/opt.h" | 19 | #include "libavutil/opt.h" |
| 20 | #include "libavutil/pixdesc.h" | 20 | #include "libavutil/pixdesc.h" |
| 21 | #include "internal.h" | 21 | #include "internal.h" |
| 22 | #include "video.h" | ||
| 22 | 23 | ||
| 23 | typedef struct EPXContext { | 24 | typedef struct EPXContext { |
| 24 | const AVClass *class; | 25 | const AVClass *class; |
| @@ -27,12 +27,13 @@ · 26 unmodified lines | |||
| 27 | * very simple video equalizer | 27 | * very simple video equalizer |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #include "libavfilter/internal.h" | ||
| 31 | #include "libavutil/common.h" | 30 | #include "libavutil/common.h" |
| 32 | #include "libavutil/imgutils.h" | 31 | #include "libavutil/imgutils.h" |
| 33 | #include "libavutil/opt.h" | 32 | #include "libavutil/opt.h" |
| 34 | #include "libavutil/pixdesc.h" | 33 | #include "libavutil/pixdesc.h" |
| 34 | #include "internal.h" | ||
| 35 | #include "vf_eq.h" | 35 | #include "vf_eq.h" |
| 36 | #include "video.h" | ||
| 36 | 37 | ||
| 37 | static void create_lut(EQParameters *param) | 38 | static void create_lut(EQParameters *param) |
| 38 | { | 39 | { |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | |||
| 29 | #include "drawutils.h" | 29 | #include "drawutils.h" |
| 30 | #include "filters.h" | 30 | #include "filters.h" |
| 31 | #include "internal.h" | 31 | #include "internal.h" |
| 32 | #include "video.h" | ||
| 32 | 33 | ||
| 33 | #define PLANE_R 0x01 | 34 | #define PLANE_R 0x01 |
| 34 | #define PLANE_G 0x02 | 35 | #define PLANE_G 0x02 |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "libavutil/pixdesc.h" | 24 | #include "libavutil/pixdesc.h" |
| 25 | #include "libavutil/tx.h" | 25 | #include "libavutil/tx.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "video.h" | ||
| 27 | #include "window_func.h" | 28 | #include "window_func.h" |
| 28 | 29 | ||
| 29 | #define MAX_BLOCK 256 | 30 | #define MAX_BLOCK 256 |
| @@ -24,7 +24,8 @@ · 23 unmodified lines | |||
| 24 | * FFT domain filtering. | 24 | * FFT domain filtering. |
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | #include "libavfilter/internal.h" | 27 | #include "internal.h" |
| 28 | #include "video.h" | ||
| 28 | #include "libavutil/common.h" | 29 | #include "libavutil/common.h" |
| 29 | #include "libavutil/cpu.h" | 30 | #include "libavutil/cpu.h" |
| 30 | #include "libavutil/imgutils.h" | 31 | #include "libavutil/imgutils.h" |
| @@ -39,6 +39,7 @@ · 38 unmodified lines | |||
| 39 | #include "avfilter.h" | 39 | #include "avfilter.h" |
| 40 | #include "filters.h" | 40 | #include "filters.h" |
| 41 | #include "internal.h" | 41 | #include "internal.h" |
| 42 | #include "video.h" | ||
| 42 | 43 | ||
| 43 | #define INPUT_MAIN 0 | 44 | #define INPUT_MAIN 0 |
| 44 | #define INPUT_CLEANSRC 1 | 45 | #define INPUT_CLEANSRC 1 |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "vulkan_filter.h" | 24 | #include "vulkan_filter.h" |
| 25 | #include "vulkan_spirv.h" | 25 | #include "vulkan_spirv.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "video.h" | ||
| 27 | 28 | ||
| 28 | enum FlipType { | 29 | enum FlipType { |
| 29 | FLIP_VERTICAL, | 30 | FLIP_VERTICAL, |
| @@ -42,6 +42,7 @@ · 41 unmodified lines | |||
| 42 | #include "internal.h" | 42 | #include "internal.h" |
| 43 | #include "qp_table.h" | 43 | #include "qp_table.h" |
| 44 | #include "vf_fspp.h" | 44 | #include "vf_fspp.h" |
| 45 | #include "video.h" | ||
| 45 | 46 | ||
| 46 | #define OFFSET(x) offsetof(FSPPContext, x) | 47 | #define OFFSET(x) offsetof(FSPPContext, x) |
| 47 | #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM | 48 | #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "vulkan_filter.h" | 24 | #include "vulkan_filter.h" |
| 25 | #include "vulkan_spirv.h" | 25 | #include "vulkan_spirv.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "video.h" | ||
| 27 | 28 | ||
| 28 | #define CGS 32 | 29 | #define CGS 32 |
| 29 | #define GBLUR_MAX_KERNEL_SIZE 127 | 30 | #define GBLUR_MAX_KERNEL_SIZE 127 |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | #include "libavutil/opt.h" | 32 | #include "libavutil/opt.h" |
| 33 | #include "libavutil/pixdesc.h" | 33 | #include "libavutil/pixdesc.h" |
| 34 | #include "internal.h" | 34 | #include "internal.h" |
| 35 | #include "video.h" | ||
| 35 | 36 | ||
| 36 | #define MAX_NB_THREADS 32 | 37 | #define MAX_NB_THREADS 32 |
| 37 | #define NB_PLANES 4 | 38 | #define NB_PLANES 4 |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | |||
| 31 | #include "libavutil/avassert.h" | 31 | #include "libavutil/avassert.h" |
| 32 | #include "libavutil/pixdesc.h" | 32 | #include "libavutil/pixdesc.h" |
| 33 | #include "internal.h" | 33 | #include "internal.h" |
| 34 | #include "video.h" | ||
| 34 | 35 | ||
| 35 | typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); | 36 | typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); |
| 36 | 37 | ||
| @@ -29,6 +29,7 @@ · 28 unmodified lines | |||
| 29 | #include "libavutil/pixdesc.h" | 29 | #include "libavutil/pixdesc.h" |
| 30 | #include "avfilter.h" | 30 | #include "avfilter.h" |
| 31 | #include "internal.h" | 31 | #include "internal.h" |
| 32 | #include "video.h" | ||
| 32 | 33 | ||
| 33 | enum FilterMode { | 34 | enum FilterMode { |
| 34 | MODE_NONE, | 35 | MODE_NONE, |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | |||
| 34 | #include "avfilter.h" | 34 | #include "avfilter.h" |
| 35 | #include "formats.h" | 35 | #include "formats.h" |
| 36 | #include "internal.h" | 36 | #include "internal.h" |
| 37 | #include "video.h" | ||
| 37 | 38 | ||
| 38 | typedef struct KerndeintContext { | 39 | typedef struct KerndeintContext { |
| 39 | const AVClass *class; | 40 | const AVClass *class; |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "libavutil/parseutils.h" | 24 | #include "libavutil/parseutils.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "filters.h" | 26 | #include "filters.h" |
| 27 | #include "video.h" | ||
| 27 | #include "vulkan_filter.h" | 28 | #include "vulkan_filter.h" |
| 28 | #include "scale_eval.h" | 29 | #include "scale_eval.h" |
| 29 | 30 | ||
| @@ -55,6 +55,7 @@ · 54 unmodified lines | |||
| 55 | #include "avfilter.h" | 55 | #include "avfilter.h" |
| 56 | #include "formats.h" | 56 | #include "formats.h" |
| 57 | #include "internal.h" | 57 | #include "internal.h" |
| 58 | #include "video.h" | ||
| 58 | 59 | ||
| 59 | enum MCDeintMode { | 60 | enum MCDeintMode { |
| 60 | MODE_FAST = 0, | 61 | MODE_FAST = 0, |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "avfilter.h" | 26 | #include "avfilter.h" |
| 27 | #include "internal.h" | 27 | #include "internal.h" |
| 28 | #include "framesync.h" | 28 | #include "framesync.h" |
| 29 | #include "video.h" | ||
| 29 | 30 | ||
| 30 | typedef struct Mapping { | 31 | typedef struct Mapping { |
| 31 | int input; | 32 | int input; |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "formats.h" | 24 | #include "formats.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "vaapi_vpp.h" | 26 | #include "vaapi_vpp.h" |
| 27 | #include "video.h" | ||
| 27 | 28 | ||
| 28 | // Denoise min/max/default Values | 29 | // Denoise min/max/default Values |
| 29 | #define DENOISE_MIN 0 | 30 | #define DENOISE_MIN 0 |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "vulkan_filter.h" | 23 | #include "vulkan_filter.h" |
| 24 | #include "vulkan_spirv.h" | 24 | #include "vulkan_spirv.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "video.h" | ||
| 26 | 27 | ||
| 27 | #define TYPE_NAME "vec4" | 28 | #define TYPE_NAME "vec4" |
| 28 | #define TYPE_ELEMS 4 | 29 | #define TYPE_ELEMS 4 |
| @@ -27,6 +27,7 @@ · 26 unmodified lines | |||
| 27 | #include "formats.h" | 27 | #include "formats.h" |
| 28 | #include "internal.h" | 28 | #include "internal.h" |
| 29 | #include "vaapi_vpp.h" | 29 | #include "vaapi_vpp.h" |
| 30 | #include "video.h" | ||
| 30 | #include "libavutil/eval.h" | 31 | #include "libavutil/eval.h" |
| 31 | 32 | ||
| 32 | enum var_name { | 33 | enum var_name { |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "vulkan_spirv.h" | 24 | #include "vulkan_spirv.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "framesync.h" | 26 | #include "framesync.h" |
| 27 | #include "video.h" | ||
| 27 | 28 | ||
| 28 | typedef struct OverlayVulkanContext { | 29 | typedef struct OverlayVulkanContext { |
| 29 | FFVulkanContext vkctx; | 30 | FFVulkanContext vkctx; |
| @@ -39,6 +39,7 @@ · 38 unmodified lines | |||
| 39 | #include "libavutil/pixdesc.h" | 39 | #include "libavutil/pixdesc.h" |
| 40 | #include "avfilter.h" | 40 | #include "avfilter.h" |
| 41 | #include "internal.h" | 41 | #include "internal.h" |
| 42 | #include "video.h" | ||
| 42 | 43 | ||
| 43 | typedef struct OWDenoiseContext { | 44 | typedef struct OWDenoiseContext { |
| 44 | const AVClass *class; | 45 | const AVClass *class; |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | |||
| 31 | #include "avfilter.h" | 31 | #include "avfilter.h" |
| 32 | #include "internal.h" | 32 | #include "internal.h" |
| 33 | #include "palette.h" | 33 | #include "palette.h" |
| 34 | #include "video.h" | ||
| 34 | 35 | ||
| 35 | /* Reference a color and how much it's used */ | 36 | /* Reference a color and how much it's used */ |
| 36 | struct color_ref { | 37 | struct color_ref { |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | |||
| 34 | #include "framesync.h" | 34 | #include "framesync.h" |
| 35 | #include "internal.h" | 35 | #include "internal.h" |
| 36 | #include "palette.h" | 36 | #include "palette.h" |
| 37 | #include "video.h" | ||
| 37 | 38 | ||
| 38 | enum dithering_mode { | 39 | enum dithering_mode { |
| 39 | DITHERING_NONE, | 40 | DITHERING_NONE, |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | |||
| 29 | 29 | ||
| 30 | #include "internal.h" | 30 | #include "internal.h" |
| 31 | #include "qp_table.h" | 31 | #include "qp_table.h" |
| 32 | #include "video.h" | ||
| 32 | 33 | ||
| 33 | #include "libpostproc/postprocess.h" | 34 | #include "libpostproc/postprocess.h" |
| 34 | 35 | ||
| @@ -34,6 +34,7 @@ · 33 unmodified lines | |||
| 34 | #include "internal.h" | 34 | #include "internal.h" |
| 35 | #include "qp_table.h" | 35 | #include "qp_table.h" |
| 36 | #include "vf_pp7.h" | 36 | #include "vf_pp7.h" |
| 37 | #include "video.h" | ||
| 37 | 38 | ||
| 38 | enum mode { | 39 | enum mode { |
| 39 | MODE_HARD, | 40 | MODE_HARD, |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "formats.h" | 24 | #include "formats.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "vaapi_vpp.h" | 26 | #include "vaapi_vpp.h" |
| 27 | #include "video.h" | ||
| 27 | 28 | ||
| 28 | // ProcAmp Min/Max/Default Values | 29 | // ProcAmp Min/Max/Default Values |
| 29 | #define BRIGHTNESS_MIN -100.0F | 30 | #define BRIGHTNESS_MIN -100.0F |
| @@ -30,6 +30,7 @@ · 29 unmodified lines | |||
| 30 | #include "avfilter.h" | 30 | #include "avfilter.h" |
| 31 | #include "formats.h" | 31 | #include "formats.h" |
| 32 | #include "internal.h" | 32 | #include "internal.h" |
| 33 | #include "video.h" | ||
| 33 | 34 | ||
| 34 | typedef struct FilterParam { | 35 | typedef struct FilterParam { |
| 35 | float radius; | 36 | float radius; |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "libavutil/pixdesc.h" | 26 | #include "libavutil/pixdesc.h" |
| 27 | #include "internal.h" | 27 | #include "internal.h" |
| 28 | #include "scale_eval.h" | 28 | #include "scale_eval.h" |
| 29 | #include "video.h" | ||
| 29 | 30 | ||
| 30 | typedef struct ScaleVtContext { | 31 | typedef struct ScaleVtContext { |
| 31 | AVClass *class; | 32 | AVClass *class; |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include "scale_eval.h" | 25 | #include "scale_eval.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "colorspace.h" | 27 | #include "colorspace.h" |
| 28 | #include "video.h" | ||
| 28 | 29 | ||
| 29 | enum ScalerFunc { | 30 | enum ScalerFunc { |
| 30 | F_BILINEAR = 0, | 31 | F_BILINEAR = 0, |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include "avfilter.h" | 24 | #include "avfilter.h" |
| 25 | #include "formats.h" | 25 | #include "formats.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "video.h" | ||
| 27 | 28 | ||
| 28 | typedef struct ScrollContext { | 29 | typedef struct ScrollContext { |
| 29 | const AVClass *class; | 30 | const AVClass *class; |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | #include "avfilter.h" | 32 | #include "avfilter.h" |
| 33 | #include "formats.h" | 33 | #include "formats.h" |
| 34 | #include "internal.h" | 34 | #include "internal.h" |
| 35 | #include "video.h" | ||
| 35 | 36 | ||
| 36 | #define RADIUS_MIN 0.1 | 37 | #define RADIUS_MIN 0.1 |
| 37 | #define RADIUS_MAX 5.0 | 38 | #define RADIUS_MAX 5.0 |
| @@ -38,6 +38,7 @@ · 37 unmodified lines | |||
| 38 | #include "internal.h" | 38 | #include "internal.h" |
| 39 | #include "qp_table.h" | 39 | #include "qp_table.h" |
| 40 | #include "vf_spp.h" | 40 | #include "vf_spp.h" |
| 41 | #include "video.h" | ||
| 41 | 42 | ||
| 42 | enum mode { | 43 | enum mode { |
| 43 | MODE_HARD, | 44 | MODE_HARD, |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include "avfilter.h" | 28 | #include "avfilter.h" |
| 29 | #include "formats.h" | 29 | #include "formats.h" |
| 30 | #include "internal.h" | 30 | #include "internal.h" |
| 31 | #include "video.h" | ||
| 31 | #include "libavutil/opt.h" | 32 | #include "libavutil/opt.h" |
| 32 | #include "libavutil/pixdesc.h" | 33 | #include "libavutil/pixdesc.h" |
| 33 | #include "libavformat/avio.h" | 34 | #include "libavformat/avio.h" |
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | #include "avfilter.h" | 32 | #include "avfilter.h" |
| 33 | #include "internal.h" | 33 | #include "internal.h" |
| 34 | #include "tinterlace.h" | 34 | #include "tinterlace.h" |
| 35 | #include "video.h" | ||
| 35 | 36 | ||
| 36 | #define OFFSET(x) offsetof(TInterlaceContext, x) | 37 | #define OFFSET(x) offsetof(TInterlaceContext, x) |
| 37 | #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM | 38 | #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include "formats.h" | 25 | #include "formats.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "vaapi_vpp.h" | 27 | #include "vaapi_vpp.h" |
| 28 | #include "video.h" | ||
| 28 | 29 | ||
| 29 | typedef struct HDRVAAPIContext { | 30 | typedef struct HDRVAAPIContext { |
| 30 | VAAPIVPPContext vpp_ctx; // must be the first field | 31 | VAAPIVPPContext vpp_ctx; // must be the first field |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "formats.h" | 27 | #include "formats.h" |
| 28 | #include "drawutils.h" | 28 | #include "drawutils.h" |
| 29 | #include "video.h" | ||
| 29 | 30 | ||
| 30 | enum PadMode { | 31 | enum PadMode { |
| 31 | MODE_ADD = 0, | 32 | MODE_ADD = 0, |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "transpose.h" | 26 | #include "transpose.h" |
| 27 | #include "vaapi_vpp.h" | 27 | #include "vaapi_vpp.h" |
| 28 | #include "video.h" | ||
| 28 | 29 | ||
| 29 | typedef struct TransposeVAAPIContext { | 30 | typedef struct TransposeVAAPIContext { |
| 30 | VAAPIVPPContext vpp_ctx; // must be the first field | 31 | VAAPIVPPContext vpp_ctx; // must be the first field |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "libavutil/pixdesc.h" | 26 | #include "libavutil/pixdesc.h" |
| 27 | #include "internal.h" | 27 | #include "internal.h" |
| 28 | #include "transpose.h" | 28 | #include "transpose.h" |
| 29 | #include "video.h" | ||
| 29 | 30 | ||
| 30 | typedef struct TransposeVtContext { | 31 | typedef struct TransposeVtContext { |
| 31 | AVClass *class; | 32 | AVClass *class; |
| @@ -25,6 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include "vulkan_spirv.h" | 25 | #include "vulkan_spirv.h" |
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "transpose.h" | 27 | #include "transpose.h" |
| 28 | #include "video.h" | ||
| 28 | 29 | ||
| 29 | typedef struct TransposeVulkanContext { | 30 | typedef struct TransposeVulkanContext { |
| 30 | FFVulkanContext vkctx; | 31 | FFVulkanContext vkctx; |
| @@ -37,6 +37,7 @@ · 36 unmodified lines | |||
| 37 | #include "internal.h" | 37 | #include "internal.h" |
| 38 | #include "qp_table.h" | 38 | #include "qp_table.h" |
| 39 | #include "avfilter.h" | 39 | #include "avfilter.h" |
| 40 | #include "video.h" | ||
| 40 | 41 | ||
| 41 | #define MAX_LEVEL 8 /* quality levels */ | 42 | #define MAX_LEVEL 8 /* quality levels */ |
| 42 | #define BLOCK 16 | 43 | #define BLOCK 16 |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include "libavutil/pixdesc.h" | 28 | #include "libavutil/pixdesc.h" |
| 29 | #include "avfilter.h" | 29 | #include "avfilter.h" |
| 30 | #include "internal.h" | 30 | #include "internal.h" |
| 31 | #include "video.h" | ||
| 31 | 32 | ||
| 32 | #include "vidstabutils.h" | 33 | #include "vidstabutils.h" |
| 33 | 34 | ||
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "libavutil/pixdesc.h" | 23 | #include "libavutil/pixdesc.h" |
| 24 | #include "avfilter.h" | 24 | #include "avfilter.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "video.h" | ||
| 26 | 27 | ||
| 27 | typedef struct WeaveContext { | 28 | typedef struct WeaveContext { |
| 28 | const AVClass *class; | 29 | const AVClass *class; |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | |||
| 31 | #include "libavutil/opt.h" | 31 | #include "libavutil/opt.h" |
| 32 | #include "libavutil/pixdesc.h" | 32 | #include "libavutil/pixdesc.h" |
| 33 | #include "internal.h" | 33 | #include "internal.h" |
| 34 | #include "video.h" | ||
| 34 | 35 | ||
| 35 | #define LB_MASK 0x00FEFEFE | 36 | #define LB_MASK 0x00FEFEFE |
| 36 | #define RED_BLUE_MASK 0x00FF00FF | 37 | #define RED_BLUE_MASK 0x00FF00FF |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "vulkan_spirv.h" | 23 | #include "vulkan_spirv.h" |
| 24 | #include "filters.h" | 24 | #include "filters.h" |
| 25 | #include "internal.h" | 25 | #include "internal.h" |
| 26 | #include "video.h" | ||
| 26 | 27 | ||
| 27 | #define IN_A 0 | 28 | #define IN_A 0 |
| 28 | #define IN_B 1 | 29 | #define IN_B 1 |
| @@ -31,6 +31,7 @@ · 30 unmodified lines | |||
| 31 | #include "libavutil/imgutils.h" | 31 | #include "libavutil/imgutils.h" |
| 32 | #include "avfilter.h" | 32 | #include "avfilter.h" |
| 33 | #include "internal.h" | 33 | #include "internal.h" |
| 34 | #include "video.h" | ||
| 34 | 35 | ||
| 35 | typedef struct YAEPContext { | 36 | typedef struct YAEPContext { |
| 36 | const AVClass *class; | 37 | const AVClass *class; |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "internal.h" | 26 | #include "internal.h" |
| 27 | #include "filters.h" | 27 | #include "filters.h" |
| 28 | #include "colorspace.h" | 28 | #include "colorspace.h" |
| 29 | #include "video.h" | ||
| 29 | 30 | ||
| 30 | enum TestSrcVulkanMode { | 31 | enum TestSrcVulkanMode { |
| 31 | TESTSRC_COLOR, | 32 | TESTSRC_COLOR, |
| @@ -22,6 +22,7 @@ · 21 unmodified lines | |||
| 22 | #include "libavutil/avassert.h" | 22 | #include "libavutil/avassert.h" |
| 23 | #include "libavutil/imgutils.h" | 23 | #include "libavutil/imgutils.h" |
| 24 | #include "internal.h" | 24 | #include "internal.h" |
| 25 | #include "video.h" | ||
| 25 | #include "yadif.h" | 26 | #include "yadif.h" |
| 26 | 27 | ||
| 27 | static int return_frame(AVFilterContext *ctx, int is_second) | 28 | static int return_frame(AVFilterContext *ctx, int is_second) |