Improve QTRLE encoding performance, no change to output file size/content.
authorMalcolm Bechard <malcolm.bechard@gmail.com>
Wed, 20 Feb 2013 20:50:34 +0000 (15:50 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Feb 2013 20:41:54 +0000 (21:41 +0100)
commit239b88c284af3025513e5cac6e318d1f9a9cdd71
tree91e13e278a85516c871308df03153bf201b891a0
parent2c21d34ea44d38835f85b90de3cbbf54abb894be
Improve QTRLE encoding performance, no change to output file size/content.

Avoid searching for the lowest bulk cost for each pixel that isn't a repeat/skip. Instead store the lowest cost as we go along each pixel, and use it as needed.

Signed-off-by: Malcolm Bechard <malcolm.bechard@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qtrleenc.c