[FFmpeg-devel] [PATCH 03/11] vf_lut: remove mathematical constants now redundant.
Nicolas George
nicolas.george at normalesup.org
Thu Oct 13 17:54:03 CEST 2011
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
doc/filters.texi | 4 ----
libavfilter/vf_lut.c | 10 ----------
2 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 6cffd3d..5f555f5 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1193,10 +1193,6 @@ alpha component
The expressions can contain the following constants and functions:
@table @option
- at item E, PI, PHI
-the corresponding mathematical approximated values for e
-(euler number), pi (greek PI), PHI (golden ratio)
-
@item w, h
the input width and heigth
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 15f2c77..82003df 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -31,9 +31,6 @@
#include "internal.h"
static const char *var_names[] = {
- "E",
- "PHI",
- "PI",
"w", ///< width of the input video
"h", ///< height of the input video
"val", ///< input value for the pixel
@@ -45,9 +42,6 @@ static const char *var_names[] = {
};
enum var_name {
- VAR_E,
- VAR_PHI,
- VAR_PI,
VAR_W,
VAR_H,
VAR_VAL,
@@ -115,10 +109,6 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
lut->class = &lut_class;
av_opt_set_defaults(lut);
- lut->var_values[VAR_PHI] = M_PHI;
- lut->var_values[VAR_PI] = M_PI;
- lut->var_values[VAR_E ] = M_E;
-
lut->is_rgb = !strcmp(ctx->filter->name, "lutrgb");
lut->is_yuv = !strcmp(ctx->filter->name, "lutyuv");
if (args && (ret = av_set_options_string(lut, args, "=", ":")) < 0)
--
1.7.6.3
More information about the ffmpeg-devel
mailing list