commit | f60a3910c4ab7725dc6dd54877bbdd3ed5f0e187 | [log] [tgz] |
---|---|---|
author | Jingning Han <jingning@google.com> | Fri Oct 11 11:26:32 2013 -0700 |
committer | Jingning Han <jingning@google.com> | Mon Oct 14 10:45:56 2013 -0700 |
tree | 9138aaf83d0cea432f63ba1333e4301f28a727f4 | |
parent | 4c20bff9d25f3a76442002d418d2fd04c74bbdab [diff] |
Move token_cache from cost_coeffs to MACROBLOCK This commit moves token_cache buffer into macroblock struct, instead of defining as a local variable in cost_coeffs. This avoids repeatedly re-allocating memory space in the rate-distortion optimization loop. The runtime at speed 0 reduces: bus 2000kbps, 161692ms to 159951ms football 600kbps, 229505ms to 225821ms Change-Id: If7da6b0b6d8c5138a16271a33c4548fba33d8840