You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vf_setpts: remove mathematical constants now redundant.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
1a3fa3ab2c
commit
db820c3c13
@@ -1882,15 +1882,6 @@ can contain the following constants:
|
|||||||
@item PTS
|
@item PTS
|
||||||
the presentation timestamp in input
|
the presentation timestamp in input
|
||||||
|
|
||||||
@item PI
|
|
||||||
Greek PI
|
|
||||||
|
|
||||||
@item PHI
|
|
||||||
golden ratio
|
|
||||||
|
|
||||||
@item E
|
|
||||||
Euler number
|
|
||||||
|
|
||||||
@item N
|
@item N
|
||||||
the count of the input frame, starting from 0.
|
the count of the input frame, starting from 0.
|
||||||
|
|
||||||
|
@@ -31,11 +31,8 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char *var_names[] = {
|
||||||
"E", ///< Euler number
|
|
||||||
"INTERLACED", ///< tell if the current frame is interlaced
|
"INTERLACED", ///< tell if the current frame is interlaced
|
||||||
"N", ///< frame number (starting at zero)
|
"N", ///< frame number (starting at zero)
|
||||||
"PHI", ///< golden ratio
|
|
||||||
"PI", ///< greek pi
|
|
||||||
"POS", ///< original position in the file of the frame
|
"POS", ///< original position in the file of the frame
|
||||||
"PREV_INPTS", ///< previous input PTS
|
"PREV_INPTS", ///< previous input PTS
|
||||||
"PREV_OUTPTS", ///< previous output PTS
|
"PREV_OUTPTS", ///< previous output PTS
|
||||||
@@ -46,11 +43,8 @@ static const char *var_names[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum var_name {
|
enum var_name {
|
||||||
VAR_E,
|
|
||||||
VAR_INTERLACED,
|
VAR_INTERLACED,
|
||||||
VAR_N,
|
VAR_N,
|
||||||
VAR_PHI,
|
|
||||||
VAR_PI,
|
|
||||||
VAR_POS,
|
VAR_POS,
|
||||||
VAR_PREV_INPTS,
|
VAR_PREV_INPTS,
|
||||||
VAR_PREV_OUTPTS,
|
VAR_PREV_OUTPTS,
|
||||||
@@ -76,10 +70,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
setpts->var_values[VAR_E ] = M_E;
|
|
||||||
setpts->var_values[VAR_N ] = 0.0;
|
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_INPTS ] = NAN;
|
||||||
setpts->var_values[VAR_PREV_OUTPTS] = NAN;
|
setpts->var_values[VAR_PREV_OUTPTS] = NAN;
|
||||||
setpts->var_values[VAR_STARTPTS ] = NAN;
|
setpts->var_values[VAR_STARTPTS ] = NAN;
|
||||||
|
Reference in New Issue
Block a user