mirror of https://git.ffmpeg.org/ffmpeg.git
vf_boxblur: cosmetics to reduce diff to qatar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7bfa2f25c0
commit
b5572ab861
|
@ -226,9 +226,9 @@ static inline void blur(uint8_t *dst, int dst_step, const uint8_t *src, int src_
|
|||
* and subtracting 1 input pixel.
|
||||
* The following code adopts this faster variant.
|
||||
*/
|
||||
int x, sum = 0;
|
||||
const int length = radius*2 + 1;
|
||||
const int inv = ((1<<16) + length/2)/length;
|
||||
int x, sum = 0;
|
||||
|
||||
for (x = 0; x < radius; x++)
|
||||
sum += src[x*src_step]<<1;
|
||||
|
|
Loading…
Reference in New Issue