OSDN Git Service

store the number of runs to avoid storing the last run value
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Apr 2005 13:24:30 +0000 (13:24 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Apr 2005 13:24:30 +0000 (13:24 +0000)
commitb44985ba12d927d643a7bc03b0db98b83bf4fc9e
tree44e1461b5c2e62ce81a5be6402cb92262a1ec4a6
parent2cd340438abc02fc3c4214b2a22ebbdd0affa7cd
store the number of runs to avoid storing the last run value
about 10% lower bitrate for -qscale 32 (forman & some music video)
worst case bitrate increase <0.1% (lossless or low qscale)
and now the bad news, even though this just adds a single subtraction and an if() into the medium sized unpack_coeffs() loop and the if() will only be false once per unpac_coeff() call, gcc produces 50% slower code, i didnt look at the generated asm yet, not sure if i want to ...

Originally committed as revision 4131 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/snow.c
tests/ffmpeg.regression.ref
tests/rotozoom.regression.ref