History

avfilter/vf_blurdetect: remove set but not used variables

Paul B Mahol committed 4 years ago

Commit 944e60f1 parent 452d6111 file · +0 −4Browse files

Unified · Split

libavfilter/vf_blurdetect.c+0−4
@@ -131,8 +131,6 @@ static float edge_width(BLRContext *blr, int i, int j, int8_t dir, int w, int h, · 130 unmodified lines
131 int p1;131 int p1;
132 int p2;132 int p2;
133 int k, x, y;133 int k, x, y;
134 int edge1;
135 int edge2;
136 int radius = blr->radius;134 int radius = blr->radius;
137 135
138 switch(dir) {136 switch(dir) {
@@ -161,7 +159,6 @@ static float edge_width(BLRContext *blr, int i, int j, int8_t dir, int w, int h, · 22 unmodified lines
161 if (tmp <= 0) // local maximum found159 if (tmp <= 0) // local maximum found
162 break;160 break;
163 }161 }
164 edge1 = k;
165 width += k;162 width += k;
166 163
167 // search in +(dX/dY) direction164 // search in +(dX/dY) direction
@@ -180,7 +177,6 @@ static float edge_width(BLRContext *blr, int i, int j, int8_t dir, int w, int h, · 12 unmodified lines
180 if (tmp >= 0) // local maximum found177 if (tmp >= 0) // local maximum found
181 break;178 break;
182 }179 }
183 edge2 = k;
184 width += k;180 width += k;
185 181
186 // for 45 degree directions approximate edge width in pixel units: 0.7 ~= sqrt(2)/2182 // for 45 degree directions approximate edge width in pixel units: 0.7 ~= sqrt(2)/2

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