Enable early termination in rd search
authorJingning Han <jingning@google.com>
Tue, 2 Jul 2013 23:48:15 +0000 (16:48 -0700)
committerJingning Han <jingning@google.com>
Wed, 3 Jul 2013 19:54:18 +0000 (12:54 -0700)
commit2bd6fe08f8f6b84816e4369ae53725cf97a43c41
treeb62b9e0a1bbc8020118431e3d9eee9750197df12
parent37501d687c509c348bc2bdbe75aa050e2ab0437c
Enable early termination in rd search

This commit allows encoder to detect the cumulative rate-distortion
cost per transformed block inside a partition. If the cumulative
rd cost is already above the best rd value, it terminates the rest
operations and continue to next prediction mode test.

It reduces the runtime of bus at target bit-rate 2000 from 308 second
to 266 second, i.e., about 13% speed-up at no performance penalty.

Change-Id: I5f15a3d8955d97031d5653006027866a00654e7a
vp9/encoder/vp9_rdopt.c