/* Inter iDCT */ static void bfin_vp3_idct_add(uint8_t *dest, int line_size, int16_t *block) { ff_bfin_vp3_idct (block); ff_bfin_add_pixels_clamped (block, dest, line_size); memset(block, 0, 128); }
/* 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; 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]]; }
/* Inter iDCT */ static void bfin_vp3_idct_add(uint8_t *dest, int line_size, int16_t *block) { const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; 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[dest[line_size*i + j] + block[j*8 + i]]; memset(block, 0, 128); }
/* Inter iDCT */ void ff_bfin_vp3_idct_add (uint8_t *dest, int line_size, DCTELEM *block) { ff_bfin_vp3_idct (block); ff_bfin_add_pixels_clamped (block, dest, line_size); }