[FFmpeg-cvslog] lavfi/inernal: move ff_fmt_is_regular_yuv() declaration to video.h
Anton Khirnov
git at videolan.org
Mon Aug 19 22:49:52 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Aug 16 10:03:29 2024 +0200| [a2314308f297ca2384cb30dda580cdc47f12ada4] | committer: Anton Khirnov
lavfi/inernal: move ff_fmt_is_regular_yuv() declaration to video.h
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2314308f297ca2384cb30dda580cdc47f12ada4
---
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 */
More information about the ffmpeg-cvslog
mailing list