48 #define C_FIX(x) ((int)((x) * (1 << CN_SHIFT) + 0.5))
49 #define C1 C_FIX(0.6532814824)
50 #define C2 C_FIX(0.2705980501)
54 #define C_SHIFT (4+1+12)
66 c1 = a1 *
C1 + a3 *
C2;
67 c3 = a1 * C2 - a3 *
C1;
68 dest[0] = av_clip_uint8((c0 + c1) >>
C_SHIFT);
70 dest[0] = av_clip_uint8((c2 + c3) >>
C_SHIFT);
72 dest[0] = av_clip_uint8((c2 - c3) >>
C_SHIFT);
74 dest[0] = av_clip_uint8((c0 - c1) >>
C_SHIFT);
83 ptr[8 + k] = a0 - a1;\
113 idctRowCondDC_8(block + i*8, 0);
119 idct4col_put(dest + line_size + i, 2 * line_size, block + 8 + i);
130 #define C_FIX(x) ((int)((x) * 1.414213562 * (1 << CN_SHIFT) + 0.5))
131 #define C1 C_FIX(0.6532814824)
132 #define C2 C_FIX(0.2705980501)
133 #define C3 C_FIX(0.5)
134 #define C_SHIFT (4+1+12)
145 c1 = a1 *
C1 + a3 *
C2;
146 c3 = a1 * C2 - a3 *
C1;
147 dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >>
C_SHIFT));
149 dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >>
C_SHIFT));
151 dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >>
C_SHIFT));
153 dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >>
C_SHIFT));
157 #define R_FIX(x) ((int)((x) * 1.414213562 * (1 << RN_SHIFT) + 0.5))
158 #define R1 R_FIX(0.6532814824)
159 #define R2 R_FIX(0.2705980501)
160 #define R3 R_FIX(0.5)
172 c1 = a1 *
R1 + a3 *
R2;
173 c3 = a1 * R2 - a3 *
R1;
186 idctRowCondDC_8(block + i*8, 0);
206 idctSparseColAdd_8(dest + i, line_size, block + i);
229 for (i = 0; i < 64; i++)
232 for (i = 0; i < 8; i++)
233 idctRowCondDC_10(block + i*8, 2);
235 for (i = 0; i < 8; i++)
236 idctSparseCol_10(block + i);