[MPlayer-dev-eng] MS-ADPCM/Stereo Works
Michael Niedermayer
michaelni at gmx.at
Fri Dec 28 05:22:47 CET 2001
Hi
On Friday 28 December 2001 04:51, Mike Melanson wrote:
> On Fri, 28 Dec 2001, Michael Niedermayer wrote:
[...]
> > CLAMP_0_TO_88 could allso be replaced with a look up table
>
> Ordinarily, I would say, "Have at it," except that I'm trying to
> get that other decoder right, first, and it lives in the same module and
> leverages off of some of the same code and tables. But tell me how you
> propose to replace the macros with a table.
very easy
table = {...0,0,0,0,0,1,2,3,4,5,6,... ,86,87,88,88,88,88,88,...};
CLAMP_0_TO_88(a) == table[a + constant];
[...]
Michael
More information about the MPlayer-dev-eng
mailing list