Cache the reference frame associated with the current MB mode in each fragment.
authorTim Terriberry <tterribe@xiph.org>
Fri, 24 Sep 2010 02:05:49 +0000 (02:05 +0000)
committerTim Terriberry <tterribe@xiph.org>
Fri, 24 Sep 2010 02:05:49 +0000 (02:05 +0000)
commit13fc2d6f4cb3ec0ec708c3a6a07a8bee7767cc48
treeaf3794aba888bb8214d60dc5fc61cbf5e95d80eb
parent384edbb40cf6f2e2231b628744fc605ddbf9eeec
Cache the reference frame associated with the current MB mode in each fragment.

This avoids repeatedly performing the MB mode -> reference frame translation,
 which is done many times per fragment during DC prediction.
In fact, by using a special OC_FRAME_NONE tag for uncoded fragments, one need
 not even check to see if a fragment is coded during DC prediction, simplifying
 it even more.
This saves 2% on 720p decode on a Cortex A8.

svn path=/trunk/theora/; revision=17457
12 files changed:
lib/analyze.c
lib/arm/armstate.c
lib/c64x/c64xdec.c
lib/c64x/c64xfrag.c
lib/decint.h
lib/decode.c
lib/encint.h
lib/state.c
lib/state.h
lib/tokenize.c
lib/x86/mmxstate.c
lib/x86_vc/mmxstate.c