[XviD-devel] 10% speedup in decoder

suxen_drol xvid-devel@xvid.org
Mon, 30 Dec 2002 00:26:45 +1100


On Wed, 25 Dec 2002 15:22:58 +0100 (CET) Christoph Lampert <chl@math.uni-bonn.de> wrote:

> The reference code uses 64bit, I guess that's why it's in the decoder. 
> The timestamps themselves are unsigned 16bit (and really use that range if
> you have non-integer FPS), so for operations on them (including
> multiplication) 32 should be sufficient, agreed. But I'm not sure about
> signs, maybe 33 bits can occur. I'll check when I find time... 
> 
> gruel 


dec->time_pp and dec->time_bp are both 32-bits, and
time_bp is always less than time_pp... so 

"TRB = dec->time_pp - dec->time_bp"

is always going to be within 32-bits.

-- pete; life is like a box of ammo