Commit ce9b3336 authored by Loren Merritt's avatar Loren Merritt
Browse files

tweak rounding of 8x8dct



git-svn-id: svn://svn.videolan.org/x264/trunk@462 df754926-b1dd-0310-bc7b-ec298dee348c
parent 9331f059
......@@ -289,12 +289,12 @@ static void sub8x8_dct8( int16_t dct[8][8], uint8_t *pix1, int i_pix1, uint8_t *
pixel_sub_wxh( (int16_t*)dct, 8, pix1, i_pix1, pix2, i_pix2 );
#define SRC(x) dct[i][x]
#define SRC(x) dct[x][i]
for( i = 0; i < 8; i++ )
DCT8_1D
#undef SRC
#define SRC(x) dct[x][i]
#define SRC(x) dct[i][x]
for( i = 0; i < 8; i++ )
DCT8_1D
#undef SRC
......
......@@ -105,8 +105,8 @@ void x264_yidct8_mmx( int16_t dct[8][8] ); // including >>6 at the end
inline void x264_sub8x8_dct8_mmxext( int16_t dct[8][8], uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 )
{
x264_pixel_sub_8x8_mmx( (int16_t *)dct, pix1, i_pix1, pix2, i_pix2 );
x264_xdct8_mmxext( dct );
x264_ydct8_mmx( dct );
x264_xdct8_mmxext( dct );
}
void x264_sub16x16_dct8_mmxext( int16_t dct[4][8][8], uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment