[FFmpeg-devel] [PATCH 08/11] vf_setpts: remove mathematical constants now redundant.
Nicolas George
nicolas.george at normalesup.org
Thu Oct 13 17:54:08 CEST 2011
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
doc/filters.texi | 9 ---------
libavfilter/vf_setpts.c | 9 ---------
2 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 5246274..7fb84ba 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1878,15 +1878,6 @@ can contain the following constants:
@item PTS
the presentation timestamp in input
- at item PI
-Greek PI
-
- at item PHI
-golden ratio
-
- at item E
-Euler number
-
@item N
the count of the input frame, starting from 0.
diff --git a/libavfilter/vf_setpts.c b/libavfilter/vf_setpts.c
index ace2595..1223be5 100644
--- a/libavfilter/vf_setpts.c
+++ b/libavfilter/vf_setpts.c
@@ -31,11 +31,8 @@
#include "avfilter.h"
static const char *var_names[] = {
- "E", ///< Euler number
"INTERLACED", ///< tell if the current frame is interlaced
"N", ///< frame number (starting at zero)
- "PHI", ///< golden ratio
- "PI", ///< greek pi
"POS", ///< original position in the file of the frame
"PREV_INPTS", ///< previous input PTS
"PREV_OUTPTS", ///< previous output PTS
@@ -46,11 +43,8 @@ static const char *var_names[] = {
};
enum var_name {
- VAR_E,
VAR_INTERLACED,
VAR_N,
- VAR_PHI,
- VAR_PI,
VAR_POS,
VAR_PREV_INPTS,
VAR_PREV_OUTPTS,
@@ -76,10 +70,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
return ret;
}
- setpts->var_values[VAR_E ] = M_E;
setpts->var_values[VAR_N ] = 0.0;
- setpts->var_values[VAR_PHI ] = M_PHI;
- setpts->var_values[VAR_PI ] = M_PI;
setpts->var_values[VAR_PREV_INPTS ] = NAN;
setpts->var_values[VAR_PREV_OUTPTS] = NAN;
setpts->var_values[VAR_STARTPTS ] = NAN;
--
1.7.6.3
More information about the ffmpeg-devel
mailing list