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);
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...
static void idct4row(int16_t *row)
void ff_simple_idct48_add(uint8_t *dest, int line_size, int16_t *block)
synthesis window for stochastic i
void ff_simple_idct44_add(uint8_t *dest, int line_size, int16_t *block)