|
|
@ -32,9 +32,6 @@ |
|
|
|
#include "libswscale/swscale.h" |
|
|
|
#include "libswscale/swscale.h" |
|
|
|
|
|
|
|
|
|
|
|
static const char *var_names[] = { |
|
|
|
static const char *var_names[] = { |
|
|
|
"PI", |
|
|
|
|
|
|
|
"PHI", |
|
|
|
|
|
|
|
"E", |
|
|
|
|
|
|
|
"in_w", "iw", |
|
|
|
"in_w", "iw", |
|
|
|
"in_h", "ih", |
|
|
|
"in_h", "ih", |
|
|
|
"out_w", "ow", |
|
|
|
"out_w", "ow", |
|
|
@ -48,9 +45,6 @@ static const char *var_names[] = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
enum var_name { |
|
|
|
enum var_name { |
|
|
|
VAR_PI, |
|
|
|
|
|
|
|
VAR_PHI, |
|
|
|
|
|
|
|
VAR_E, |
|
|
|
|
|
|
|
VAR_IN_W, VAR_IW, |
|
|
|
VAR_IN_W, VAR_IW, |
|
|
|
VAR_IN_H, VAR_IH, |
|
|
|
VAR_IN_H, VAR_IH, |
|
|
|
VAR_OUT_W, VAR_OW, |
|
|
|
VAR_OUT_W, VAR_OW, |
|
|
@ -155,9 +149,6 @@ static int config_props(AVFilterLink *outlink) |
|
|
|
char *expr; |
|
|
|
char *expr; |
|
|
|
int ret; |
|
|
|
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_W] = var_values[VAR_IW] = inlink->w; |
|
|
|
var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; |
|
|
|
var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; |
|
|
|
var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN; |
|
|
|
var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN; |
|
|
|