diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-29 19:19:06 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-29 19:33:59 +0200 |
commit | df163487d0a71d7f65f7602e4df6ab68e8fcc0fa (patch) | |
tree | 379a896261fac7b7462f2fd21f63bf835423ff6e /libavfilter/vf_blend.c | |
parent | 8ebcff91118e7b533318b6244d58143da347ce10 (diff) | |
download | ffmpeg-df163487d0a71d7f65f7602e4df6ab68e8fcc0fa.tar.gz |
avfilter/vf_blend: add harmonic mode
Diffstat (limited to 'libavfilter/vf_blend.c')
-rw-r--r-- | libavfilter/vf_blend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index c00fb12839..09a10ff0e0 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -133,6 +133,7 @@ static const AVOption blend_options[] = { { "xor", "", 0, AV_OPT_TYPE_CONST, {.i64=BLEND_XOR}, 0, 0, FLAGS, "mode" }, { "softdifference","", 0, AV_OPT_TYPE_CONST, {.i64=BLEND_SOFTDIFFERENCE}, 0, 0, FLAGS, "mode" }, { "geometric", "", 0, AV_OPT_TYPE_CONST, {.i64=BLEND_GEOMETRIC}, 0, 0, FLAGS, "mode" }, + { "harmonic", "", 0, AV_OPT_TYPE_CONST, {.i64=BLEND_HARMONIC}, 0, 0, FLAGS, "mode" }, { "c0_expr", "set color component #0 expression", OFFSET(params[0].expr_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS }, { "c1_expr", "set color component #1 expression", OFFSET(params[1].expr_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS }, { "c2_expr", "set color component #2 expression", OFFSET(params[2].expr_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS }, @@ -398,6 +399,7 @@ static av_cold void init_blend_func_##depth##_##nbits##bit(FilterParams *param) case BLEND_XOR: param->blend = blend_xor_##depth##bit; break; \ case BLEND_SOFTDIFFERENCE:param->blend = blend_softdifference_##depth##bit; break;\ case BLEND_GEOMETRIC: param->blend = blend_geometric_##depth##bit; break; \ + case BLEND_HARMONIC: param->blend = blend_harmonic_##depth##bit; break; \ } \ } DEFINE_INIT_BLEND_FUNC(8, 8) |