[FFmpeg-devel] [PATCH 4/8] lavfi/inernal: move ff_fmt_is_regular_yuv() declaration to video.h

Anton Khirnov anton at khirnov.net
Sat Aug 17 11:13:54 EEST 2024


---
 libavfilter/avfiltergraph.c | 1 +
 libavfilter/buffersrc.c     | 1 +
 libavfilter/internal.h      | 6 ------
 libavfilter/video.h         | 6 ++++++
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 0da2f8462b..6317f8d457 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -40,6 +40,7 @@
 #include "formats.h"
 #include "framequeue.h"
 #include "internal.h"
+#include "video.h"
 
 #define OFFSET(x) offsetof(AVFilterGraph, x)
 #define F AV_OPT_FLAG_FILTERING_PARAM
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 2743493d5d..1cf23fe37b 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -39,6 +39,7 @@
 #include "filters.h"
 #include "formats.h"
 #include "internal.h"
+#include "video.h"
 
 typedef struct BufferSourceContext {
     const AVClass    *class;
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index eb312ab485..6a0b9ed7e1 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -27,12 +27,6 @@
 #include "libavutil/internal.h"
 #include "avfilter.h"
 
-/**
- * Returns true if a pixel format is "regular YUV", which includes all pixel
- * formats that are affected by YUV colorspace negotiation.
- */
-int ff_fmt_is_regular_yuv(enum AVPixelFormat fmt);
-
 /**
  * Negotiate the media format, dimensions, etc of all inputs to a filter.
  *
diff --git a/libavfilter/video.h b/libavfilter/video.h
index 8c5f6c84e7..77f27fdf7c 100644
--- a/libavfilter/video.h
+++ b/libavfilter/video.h
@@ -45,4 +45,10 @@ AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h);
  */
 AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h);
 
+/**
+ * Returns true if a pixel format is "regular YUV", which includes all pixel
+ * formats that are affected by YUV colorspace negotiation.
+ */
+int ff_fmt_is_regular_yuv(enum AVPixelFormat fmt);
+
 #endif /* AVFILTER_VIDEO_H */
-- 
2.43.0



More information about the ffmpeg-devel mailing list