History

avfilter/vf_blend: add 14bit pixel format support

Paul B Mahol committed 5 years ago

Commit 94e80521 parent dd190191 file · +9 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_blend.c+9−0
@@ -48,6 +48,10 @@ · 47 unmodified lines
4848 #define DEPTH 12
4949 #include "blend_modes.c"
5050
51+#undef DEPTH
52+#define DEPTH 14
53+#include "blend_modes.c"
54+
5155 #undef DEPTH
5256 #define DEPTH 16
5357 #include "blend_modes.c"
@@ -331,6 +335,7 @@ static int query_formats(AVFilterContext *ctx) · 277 unmodified lines
331335 AV_PIX_FMT_YUV420P12, AV_PIX_FMT_YUV422P12, AV_PIX_FMT_YUV444P12, AV_PIX_FMT_YUV440P12,
332336 AV_PIX_FMT_YUVA422P12, AV_PIX_FMT_YUVA444P12,
333337 AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRAP12, AV_PIX_FMT_GRAY12,
338+ AV_PIX_FMT_YUV420P14, AV_PIX_FMT_YUV422P14, AV_PIX_FMT_YUV444P14, AV_PIX_FMT_GBRP14,
334339 AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16,
335340 AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_YUVA422P16, AV_PIX_FMT_YUVA444P16,
336341 AV_PIX_FMT_GBRP16, AV_PIX_FMT_GBRAP16, AV_PIX_FMT_GRAY16,
@@ -397,6 +402,7 @@ DEFINE_INIT_BLEND_FUNC(8, 8) · 60 unmodified lines
397402 DEFINE_INIT_BLEND_FUNC(9, 16)
398403 DEFINE_INIT_BLEND_FUNC(10, 16)
399404 DEFINE_INIT_BLEND_FUNC(12, 16)
405+DEFINE_INIT_BLEND_FUNC(14, 16)
400406 DEFINE_INIT_BLEND_FUNC(16, 16)
401407 DEFINE_INIT_BLEND_FUNC(32, 32)
402408
@@ -415,6 +421,9 @@ void ff_blend_init(FilterParams *param, int depth) · 12 unmodified lines
415421 case 12:
416422 init_blend_func_12_16bit(param);
417423 break;
424+ case 14:
425+ init_blend_func_14_16bit(param);
426+ break;
418427 case 16:
419428 init_blend_func_16_16bit(param);
420429 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t