[FFmpeg-cvslog] avfilter/vf_blend: add 14bit pixel format support
Paul B Mahol
git at videolan.org
Tue Sep 28 01:15:49 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep 28 00:04:35 2021 +0200| [94e805235bff7e224f0276fdcdeb517b8541fa18] | committer: Paul B Mahol
avfilter/vf_blend: add 14bit pixel format support
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94e805235bff7e224f0276fdcdeb517b8541fa18
---
libavfilter/vf_blend.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c
index e4569a255e..43595a1363 100644
--- a/libavfilter/vf_blend.c
+++ b/libavfilter/vf_blend.c
@@ -48,6 +48,10 @@
#define DEPTH 12
#include "blend_modes.c"
+#undef DEPTH
+#define DEPTH 14
+#include "blend_modes.c"
+
#undef DEPTH
#define DEPTH 16
#include "blend_modes.c"
@@ -331,6 +335,7 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUV420P12, AV_PIX_FMT_YUV422P12, AV_PIX_FMT_YUV444P12, AV_PIX_FMT_YUV440P12,
AV_PIX_FMT_YUVA422P12, AV_PIX_FMT_YUVA444P12,
AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRAP12, AV_PIX_FMT_GRAY12,
+ AV_PIX_FMT_YUV420P14, AV_PIX_FMT_YUV422P14, AV_PIX_FMT_YUV444P14, AV_PIX_FMT_GBRP14,
AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16,
AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_YUVA422P16, AV_PIX_FMT_YUVA444P16,
AV_PIX_FMT_GBRP16, AV_PIX_FMT_GBRAP16, AV_PIX_FMT_GRAY16,
@@ -397,6 +402,7 @@ DEFINE_INIT_BLEND_FUNC(8, 8)
DEFINE_INIT_BLEND_FUNC(9, 16)
DEFINE_INIT_BLEND_FUNC(10, 16)
DEFINE_INIT_BLEND_FUNC(12, 16)
+DEFINE_INIT_BLEND_FUNC(14, 16)
DEFINE_INIT_BLEND_FUNC(16, 16)
DEFINE_INIT_BLEND_FUNC(32, 32)
@@ -415,6 +421,9 @@ void ff_blend_init(FilterParams *param, int depth)
case 12:
init_blend_func_12_16bit(param);
break;
+ case 14:
+ init_blend_func_14_16bit(param);
+ break;
case 16:
init_blend_func_16_16bit(param);
break;
More information about the ffmpeg-cvslog
mailing list