History

avfilter/scale_eval: remove redundant mathematical constants

Even though removed from vf_scale in 3b316f9f22, they were reintroduced when scale.c, now scale_eval.c, was split off in 037bb4021c

Gyan Doshi committed 6 years ago

Commit 78676ee1 parent 41100291 file · +0 −12Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/scale_eval.c+0−12
@@ -25,9 +25,6 @@ · 24 unmodified lines
2525 #include "libavutil/pixdesc.h"
2626
2727 static const char *const var_names[] = {
28− "PI",
29− "PHI",
30− "E",
3128 "in_w", "iw",
3229 "in_h", "ih",
3330 "out_w", "ow",
@@ -43,9 +40,6 @@ static const char *const var_names[] = { · 9 unmodified lines
4340 };
4441
4542 enum var_name {
46− VAR_PI,
47− VAR_PHI,
48− VAR_E,
4943 VAR_IN_W, VAR_IW,
5044 VAR_IN_H, VAR_IH,
5145 VAR_OUT_W, VAR_OW,
@@ -68,9 +62,6 @@ enum var_name { · 16 unmodified lines
6862 * non-scale2ref specific values.
6963 */
7064 static const char *const var_names_scale2ref[] = {
71− "PI",
72− "PHI",
73− "E",
7465 "in_w", "iw",
7566 "in_h", "ih",
7667 "out_w", "ow",
@@ -124,9 +115,6 @@ int ff_scale_eval_dimensions(void *log_ctx, · 47 unmodified lines
124115 main_desc = av_pix_fmt_desc_get(main_link->format);
125116 }
126117
127− var_values[VAR_PI] = M_PI;
128− var_values[VAR_PHI] = M_PHI;
129− var_values[VAR_E] = M_E;
130118 var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w;
131119 var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h;
132120 var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t