rv40dsp: implement prescaled versions for biweight.
authorChristophe GISQUET <christophe.gisquet@gmail.com>
Mon, 19 Mar 2012 21:46:28 +0000 (22:46 +0100)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 10 Apr 2012 17:06:48 +0000 (10:06 -0700)
commit272b252c0110225188c7d7f31167941210aac197
tree47bea5996c88057a418e8872a655bac8f261736e
parentd3c59d5003a483f1a23e225fc71c19bd1116d11c
rv40dsp: implement prescaled versions for biweight.

Quite often, the original weights are multiple of 512. By prescaling them
by 1/512 when they are computed (once per frame), no intermediate shifting
is needed, and no prescaling on each call either.

The x86 code already used that trick.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/arm/rv40dsp_init_neon.c
libavcodec/rv34.c
libavcodec/rv34.h
libavcodec/rv34dsp.h
libavcodec/rv40dsp.c
libavcodec/x86/rv40dsp.asm
libavcodec/x86/rv40dsp_init.c