33 #define IN_IDCT_DEPTH 16
53 #define IN_IDCT_DEPTH 32
62 #define C_FIX(x) ((int)((x) * (1 << CN_SHIFT) + 0.5))
63 #define C1 C_FIX(0.6532814824)
64 #define C2 C_FIX(0.2705980501)
68 #define C_SHIFT (4+1+12)
80 c1 = a1 *
C1 + a3 *
C2;
81 c3 = a1 * C2 - a3 *
C1;
82 dest[0] = av_clip_uint8((c0 + c1) >>
C_SHIFT);
84 dest[0] = av_clip_uint8((c2 + c3) >>
C_SHIFT);
86 dest[0] = av_clip_uint8((c2 - c3) >>
C_SHIFT);
88 dest[0] = av_clip_uint8((c0 - c1) >>
C_SHIFT);
97 ptr[8 + k] = a0 - a1;\
127 idctRowCondDC_int16_8bit(block + i*8, 0);
133 idct4col_put(dest + line_size + i, 2 * line_size, block + 8 + i);
144 #define C_FIX(x) ((int)((x) * M_SQRT2 * (1 << CN_SHIFT) + 0.5))
145 #define C1 C_FIX(0.6532814824)
146 #define C2 C_FIX(0.2705980501)
147 #define C3 C_FIX(0.5)
148 #define C_SHIFT (4+1+12)
159 c1 = a1 *
C1 + a3 *
C2;
160 c3 = a1 * C2 - a3 *
C1;
161 dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >>
C_SHIFT));
163 dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >>
C_SHIFT));
165 dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >>
C_SHIFT));
167 dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >>
C_SHIFT));
171 #define R_FIX(x) ((int)((x) * M_SQRT2 * (1 << RN_SHIFT) + 0.5))
172 #define R1 R_FIX(0.6532814824)
173 #define R2 R_FIX(0.2705980501)
174 #define R3 R_FIX(0.5)
186 c1 = a1 *
R1 + a3 *
R2;
187 c3 = a1 * R2 - a3 *
R1;
200 idctRowCondDC_int16_8bit(block + i*8, 0);
220 idctSparseColAdd_int16_8bit(dest + i, line_size, block + i);
243 for (i = 0; i < 64; i++)
246 for (i = 0; i < 8; i++)
247 idctRowCondDC_extrashift_10(block + i*8, 2);
249 for (i = 0; i < 8; i++) {
251 idctSparseCol_extrashift_10(block + i);
void ff_prores_idct(int16_t *block, const int16_t *qmat)
Special version of ff_simple_idct_int16_10bit() which does dequantization and scales by a factor of 2...
static void idct4row(int16_t *row)
void ff_simple_idct44_add(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
static void idct4col_put(uint8_t *dest, ptrdiff_t line_size, const int16_t *col)
Libavcodec external API header.
void ff_simple_idct84_add(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
void ff_simple_idct248_put(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
static void idct4col_add(uint8_t *dest, ptrdiff_t line_size, const int16_t *col)
void ff_simple_idct48_add(uint8_t *dest, ptrdiff_t line_size, int16_t *block)