summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-10-13 17:54:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-13 18:08:50 +0200
commite2abe90ed72f10cb5cb112a7e4a3ad56ee2d4e6c (patch)
tree78a4f87a962a880f2c82f7d1601208025d4a913f
parent8c88d734a557d17ef4ff566b8aaf5e9f4ae9dff1 (diff)
vf_pad: remove mathematical constants now redundant.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--doc/filters.texi4
-rw-r--r--libavfilter/vf_pad.c9
2 files changed, 0 insertions, 13 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index cfc7ecb6e5..cd333c5ecc 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1547,10 +1547,6 @@ The parameters @var{width}, @var{height}, @var{x}, and @var{y} are
expressions containing the following constants:
@table @option
-@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 video width and height
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index c4edc23cc5..e24cda8e0a 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -36,9 +36,6 @@
#include "drawutils.h"
static const char *var_names[] = {
- "PI",
- "PHI",
- "E",
"in_w", "iw",
"in_h", "ih",
"out_w", "ow",
@@ -54,9 +51,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,
@@ -153,9 +147,6 @@ static int config_input(AVFilterLink *inlink)
pad->hsub = pix_desc->log2_chroma_w;
pad->vsub = pix_desc->log2_chroma_h;
- 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;