[FFmpeg-devel] [PATCH 06/11] vf_scale: remove mathematical constants now redundant.
Nicolas George
nicolas.george at normalesup.org
Thu Oct 13 17:54:06 CEST 2011
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
doc/filters.texi | 4 ----
libavfilter/vf_scale.c | 9 ---------
2 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 3effc9d..be71e7a 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1658,10 +1658,6 @@ The parameters @var{width} and @var{height} are expressions containing
the following constants:
@table @option
- at item E, PI, PHI
-the corresponding mathematical approximated values for e
-(euler number), pi (greek PI), phi (golden ratio)
-
@item in_w, in_h
the input width and height
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 04b8d10..8e258fa 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -32,9 +32,6 @@
#include "libswscale/swscale.h"
static const char *var_names[] = {
- "PI",
- "PHI",
- "E",
"in_w", "iw",
"in_h", "ih",
"out_w", "ow",
@@ -48,9 +45,6 @@ static const char *var_names[] = {
};
enum var_name {
- VAR_PI,
- VAR_PHI,
- VAR_E,
VAR_IN_W, VAR_IW,
VAR_IN_H, VAR_IH,
VAR_OUT_W, VAR_OW,
@@ -155,9 +149,6 @@ static int config_props(AVFilterLink *outlink)
char *expr;
int ret;
- var_values[VAR_PI] = M_PI;
- var_values[VAR_PHI] = M_PHI;
- var_values[VAR_E] = M_E;
var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w;
var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h;
var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN;
--
1.7.6.3
More information about the ffmpeg-devel
mailing list