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-10-26 13:34:30 +0300
committerPaul B Mahol <onemda@gmail.com>2021-10-27 12:29:29 +0300
commit97b5b9dbea2fd51861218416dafc46984e286826 (patch)
tree679fd29d6998e128cd69497119f4d07134356483 /libavfilter/vf_lut.c
parent069f7831a2bd1545080121fb6d0773191cd61d70 (diff)
avfilter: split negate filter from lut filter
Using luts for negating is suboptimal. FATE test changes because filter no longer clips values into limited color range.
Diffstat (limited to 'libavfilter/vf_lut.c')
-rw-r--r--libavfilter/vf_lut.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 64668039d1..fd5b364797 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -69,7 +69,6 @@ typedef struct LutContext {
int is_planar;
int is_16bit;
int step;
- int negate_alpha; /* only used by negate */
} LutContext;
#define Y 0
@@ -642,30 +641,3 @@ static av_cold int lutrgb_init(AVFilterContext *ctx)
DEFINE_LUT_FILTER(lutrgb, "Compute and apply a lookup table to the RGB input video.",
lut);
#endif
-
-#if CONFIG_NEGATE_FILTER
-
-static const AVOption negate_options[] = {
- { "negate_alpha", NULL, OFFSET(negate_alpha), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS },
- { NULL }
-};
-
-AVFILTER_DEFINE_CLASS(negate);
-
-static av_cold int negate_init(AVFilterContext *ctx)
-{
- LutContext *s = ctx->priv;
-
- for (int i = 0; i < 4; i++) {
- s->comp_expr_str[i] = av_strdup((i == 3 && !s->negate_alpha) ?
- "val" : "negval");
- if (!s->comp_expr_str[i])
- return AVERROR(ENOMEM);
- }
-
- return 0;
-}
-
-DEFINE_LUT_FILTER(negate, "Negate input video.", negate);
-
-#endif