44 #define C_FIX(x) ((int)((x) * (1 << CN_SHIFT) + 0.5))
45 #define C1 C_FIX(0.6532814824)
46 #define C2 C_FIX(0.2705980501)
50 #define C_SHIFT (4+1+12)
62 c1 = a1 *
C1 + a3 *
C2;
63 c3 = a1 * C2 - a3 *
C1;
64 dest[0] = av_clip_uint8((c0 + c1) >>
C_SHIFT);
66 dest[0] = av_clip_uint8((c2 + c3) >>
C_SHIFT);
68 dest[0] = av_clip_uint8((c2 - c3) >>
C_SHIFT);
70 dest[0] = av_clip_uint8((c0 - c1) >>
C_SHIFT);
79 ptr[8 + k] = a0 - a1;\
109 idctRowCondDC_8(block + i*8, 0);
115 idct4col_put(dest + line_size + i, 2 * line_size, block + 8 + i);
126 #define C_FIX(x) ((int)((x) * 1.414213562 * (1 << CN_SHIFT) + 0.5))
127 #define C1 C_FIX(0.6532814824)
128 #define C2 C_FIX(0.2705980501)
129 #define C3 C_FIX(0.5)
130 #define C_SHIFT (4+1+12)
141 c1 = a1 *
C1 + a3 *
C2;
142 c3 = a1 * C2 - a3 *
C1;
143 dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >>
C_SHIFT));
145 dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >>
C_SHIFT));
147 dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >>
C_SHIFT));
149 dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >>
C_SHIFT));
153 #define R_FIX(x) ((int)((x) * 1.414213562 * (1 << RN_SHIFT) + 0.5))
154 #define R1 R_FIX(0.6532814824)
155 #define R2 R_FIX(0.2705980501)
156 #define R3 R_FIX(0.5)
168 c1 = a1 *
R1 + a3 *
R2;
169 c3 = a1 * R2 - a3 *
R1;
182 idctRowCondDC_8(block + i*8, 0);
202 idctSparseColAdd_8(dest + i, line_size, block + i);
225 for (i = 0; i < 64; i++)
228 for (i = 0; i < 8; i++)
229 idctRowCondDC_10(block + i*8, 2);
231 for (i = 0; i < 8; i++)
232 idctSparseCol_10(block + i);