OSDN Git Service

prores: use natural integer type for the codebook index
authorChristophe GISQUET <christophe.gisquet@gmail.com>
Tue, 21 Feb 2012 21:36:15 +0000 (22:36 +0100)
committerDiego Biurrun <diego@biurrun.de>
Wed, 22 Feb 2012 08:21:39 +0000 (09:21 +0100)
commitb5696ff2b872b3556a71fe3591c245b4caff08b5
tree31f56fc4527fe3711591b33c2a377fd47e51f1dc
parent0ad522afb3a3b3d22402ecb82dd4609f7655031b
prores: use natural integer type for the codebook index

The operations that use it require it to be promoted to a larger (natural)
type and thus perform sign extension on it.

While an optimal compiler may account for this, gcc 4.6 (for x86 Windows)
fails. Using the natural integer type provides a 2% speedup for Win64
and 1% for Win32.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/proresdec.c
libavcodec/proresenc.c