Refactor transform block loop for inter mode decoding
authorJingning Han <jingning@google.com>
Wed, 8 Jul 2015 16:15:39 +0000 (09:15 -0700)
committerJingning Han <jingning@google.com>
Wed, 8 Jul 2015 22:55:16 +0000 (22:55 +0000)
commit8783a8a97c6caa6ca5be81aab66fe83726b13077
tree55bfe0f2ebc068c625d5d0462e47fe4121f49e07
parent8bf791e7ef59ed55252b9dc9e6b44f672147404d
Refactor transform block loop for inter mode decoding

Rework the inter mode transform block decoding loop. Replace the
block index with the row and col index as the input argument. It
saves function call to compute the row and col index according to
the block index and overall block size, and many if statements
associated with the transform block position relative to the coding
block. For the test bit-stream pedestrian_area 1080p at 5 Mbps,
the decoding speed goes up from 81.13 fps to 81.92 fps.

Note that the intra coded block decoding needs more refactoring
work than the inter ones. So keep it using foreach_transforme_block
as for now.

Change-Id: I5622bdae7be28ed5af96693274057f55ba9b4fb4
vp9/decoder/vp9_decodeframe.c