Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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 found | 159 | 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) direction | 164 | // 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 found | 177 | 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)/2 | 182 | // for 45 degree directions approximate edge width in pixel units: 0.7 ~= sqrt(2)/2 |