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++) {
237 idctSparseCol_10(block + i);
void ff_simple_idct84_add(uint8_t *dest, int line_size, int16_t *block)
static void idct4col_add(uint8_t *dest, int line_size, const int16_t *col)
void ff_simple_idct248_put(uint8_t *dest, int line_size, int16_t *block)
static void idct4col_put(uint8_t *dest, int line_size, const int16_t *col)
void ff_prores_idct(int16_t *block, const int16_t *qmat)
Special version of ff_simple_idct_10() which does dequantization and scales by a factor of 2 more bet...
Libavcodec external API header.
static void idct4row(int16_t *row)
void ff_simple_idct48_add(uint8_t *dest, int line_size, int16_t *block)
void ff_simple_idct44_add(uint8_t *dest, int line_size, int16_t *block)