Mercurial > libavcodec.hg
comparison i386/fdct_mmx.c @ 635:3e0f62e5eed6 libavcodec
dct cleanup
more accurate mmx dct (dont discard bits for fun)
fixing mmx quantizer bug for qscale%2==1 (bias was slightly wrong)
author | michaelni |
---|---|
date | Sun, 01 Sep 2002 16:52:33 +0000 |
parents | 718a22dc121f |
children | 9abb13c21fbe |
comparison
equal
deleted
inserted
replaced
634:be1cb0e1f276 | 635:3e0f62e5eed6 |
---|---|
23 // | 23 // |
24 ////////////////////////////////////////////////////////////////////// | 24 ////////////////////////////////////////////////////////////////////// |
25 | 25 |
26 #define BITS_FRW_ACC 3 //; 2 or 3 for accuracy | 26 #define BITS_FRW_ACC 3 //; 2 or 3 for accuracy |
27 #define SHIFT_FRW_COL BITS_FRW_ACC | 27 #define SHIFT_FRW_COL BITS_FRW_ACC |
28 #define SHIFT_FRW_ROW (BITS_FRW_ACC + 17) | 28 #define SHIFT_FRW_ROW (BITS_FRW_ACC + 17 - 3) |
29 //#define RND_FRW_ROW (262144 * (BITS_FRW_ACC - 1)) //; 1 << (SHIFT_FRW_ROW-1) | 29 //#define RND_FRW_ROW (262144 * (BITS_FRW_ACC - 1)) //; 1 << (SHIFT_FRW_ROW-1) |
30 #define RND_FRW_ROW (1 << (SHIFT_FRW_ROW-1)) | 30 #define RND_FRW_ROW (1 << (SHIFT_FRW_ROW-1)) |
31 //#define RND_FRW_COL (2 * (BITS_FRW_ACC - 1)) //; 1 << (SHIFT_FRW_COL-1) | 31 //#define RND_FRW_COL (2 * (BITS_FRW_ACC - 1)) //; 1 << (SHIFT_FRW_COL-1) |
32 #define RND_FRW_COL (1 << (SHIFT_FRW_COL-1)) | 32 #define RND_FRW_COL (1 << (SHIFT_FRW_COL-1)) |
33 | 33 |