mirror of https://github.com/FFmpeg/FFmpeg.git
The left and right samples are the same for the whole line, so store their values and don't recompute them for every iteration of "y". This simple optimization results in a speed improvement between 15% and 20% in my tests (depending on the logo geometry.) Result is obviously the same. Signed-off-by: Jean Delvare <khali@linux-fr.org> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>pull/27/head
parent
6fc8c4cc0e
commit
4e8d6b315c
1 changed files with 10 additions and 6 deletions
Loading…
Reference in new issue