45 #define C_FIX(x) ((int)((x) * (1 << CN_SHIFT) + 0.5))
46 #define C1 C_FIX(0.6532814824)
47 #define C2 C_FIX(0.2705980501)
51 #define C_SHIFT (4+1+12)
63 c1 = a1 *
C1 + a3 *
C2;
64 c3 = a1 * C2 - a3 *
C1;
65 dest[0] = av_clip_uint8((c0 + c1) >>
C_SHIFT);
67 dest[0] = av_clip_uint8((c2 + c3) >>
C_SHIFT);
69 dest[0] = av_clip_uint8((c2 - c3) >>
C_SHIFT);
71 dest[0] = av_clip_uint8((c0 - c1) >>
C_SHIFT);
80 ptr[8 + k] = a0 - a1;\
110 idctRowCondDC_8(block + i*8, 0);
116 idct4col_put(dest + line_size + i, 2 * line_size, block + 8 + i);
127 #define C_FIX(x) ((int)((x) * 1.414213562 * (1 << CN_SHIFT) + 0.5))
128 #define C1 C_FIX(0.6532814824)
129 #define C2 C_FIX(0.2705980501)
130 #define C3 C_FIX(0.5)
131 #define C_SHIFT (4+1+12)
142 c1 = a1 *
C1 + a3 *
C2;
143 c3 = a1 * C2 - a3 *
C1;
144 dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >>
C_SHIFT));
146 dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >>
C_SHIFT));
148 dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >>
C_SHIFT));
150 dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >>
C_SHIFT));
154 #define R_FIX(x) ((int)((x) * 1.414213562 * (1 << RN_SHIFT) + 0.5))
155 #define R1 R_FIX(0.6532814824)
156 #define R2 R_FIX(0.2705980501)
157 #define R3 R_FIX(0.5)
169 c1 = a1 *
R1 + a3 *
R2;
170 c3 = a1 * R2 - a3 *
R1;
183 idctRowCondDC_8(block + i*8, 0);
203 idctSparseColAdd_8(dest + i, line_size, block + i);
226 for (i = 0; i < 64; i++)
229 for (i = 0; i < 8; i++)
230 idctRowCondDC_10(block + i*8, 2);
232 for (i = 0; i < 8; i++)
233 idctSparseCol_10(block + i);