Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-09-28 01:04:35 +0300
committerPaul B Mahol <onemda@gmail.com>2021-09-28 01:14:20 +0300
commit94e805235bff7e224f0276fdcdeb517b8541fa18 (patch)
tree51daa7b23996f5c12506664658d0ba1efe0e6fc8 /libavfilter/vf_blend.c
parentdd190195007093da57959c68c740e729e1048c24 (diff)
avfilter/vf_blend: add 14bit pixel format support
Diffstat (limited to 'libavfilter/vf_blend.c')
-rw-r--r--libavfilter/vf_blend.c9
1 files changed, 9 insertions, 0 deletions
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
@@ -49,6 +49,10 @@
#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;