mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
Improve some uses of ff_cropTbl with constant offset
Originally committed as revision 23728 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -25,14 +25,14 @@
|
||||
/* Intra iDCT offset 128 */
|
||||
void ff_bfin_vp3_idct_put (uint8_t *dest, int line_size, DCTELEM *block)
|
||||
{
|
||||
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
|
||||
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP + 128;
|
||||
int i,j;
|
||||
|
||||
ff_bfin_vp3_idct (block);
|
||||
|
||||
for (i=0;i<8;i++)
|
||||
for (j=0;j<8;j++)
|
||||
dest[line_size*i+j]=cm[128+block[i*8+j]];
|
||||
dest[line_size*i+j]=cm[block[i*8+j]];
|
||||
}
|
||||
|
||||
/* Inter iDCT */
|
||||
|
||||
Reference in New Issue
Block a user