Simplify & fix potential bug in rd_pick_partition
commitaae6a4c895185661948e0e816fce58bbd0da2ad0
authorAdrian Grange <agrange@google.com>
Thu, 1 Aug 2013 21:57:46 +0000 (1 14:57 -0700)
committerAdrian Grange <agrange@google.com>
Thu, 8 Aug 2013 16:55:45 +0000 (8 09:55 -0700)
tree2932dbf618eaaa7911b45d6be1f035bd1f19fde3
parent6bfcce8c7a046f098ffdb1496d6fd5950b91e212
Simplify & fix potential bug in rd_pick_partition

Different partitionings were not being evaluated against
best_rd and there were unnecessary calls to RDCOST. This
could have resulted in a non-optimal partioning being
selected.

I simplified the variables used to track the rate,
distortion and RD values throughout the function.

Change-Id: Ifa7085ee80d824e86791432a5bc6d8fea5a3e313
vp9/encoder/vp9_encodeframe.c