53 #define C_FIX(x) ((int)((x) * (1 << CN_SHIFT) + 0.5))
54 #define C1 C_FIX(0.6532814824)
55 #define C2 C_FIX(0.2705980501)
59 #define C_SHIFT (4+1+12)
71 c1 = a1 *
C1 + a3 *
C2;
72 c3 = a1 * C2 - a3 *
C1;
73 dest[0] = av_clip_uint8((c0 + c1) >>
C_SHIFT);
75 dest[0] = av_clip_uint8((c2 + c3) >>
C_SHIFT);
77 dest[0] = av_clip_uint8((c2 - c3) >>
C_SHIFT);
79 dest[0] = av_clip_uint8((c0 - c1) >>
C_SHIFT);
88 ptr[8 + k] = a0 - a1;\
118 idctRowCondDC_8(block + i*8, 0);
124 idct4col_put(dest + line_size + i, 2 * line_size, block + 8 + i);
135 #define C_FIX(x) ((int)((x) * M_SQRT2 * (1 << CN_SHIFT) + 0.5))
136 #define C1 C_FIX(0.6532814824)
137 #define C2 C_FIX(0.2705980501)
138 #define C3 C_FIX(0.5)
139 #define C_SHIFT (4+1+12)
150 c1 = a1 *
C1 + a3 *
C2;
151 c3 = a1 * C2 - a3 *
C1;
152 dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >>
C_SHIFT));
154 dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >>
C_SHIFT));
156 dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >>
C_SHIFT));
158 dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >>
C_SHIFT));
162 #define R_FIX(x) ((int)((x) * M_SQRT2 * (1 << RN_SHIFT) + 0.5))
163 #define R1 R_FIX(0.6532814824)
164 #define R2 R_FIX(0.2705980501)
165 #define R3 R_FIX(0.5)
177 c1 = a1 *
R1 + a3 *
R2;
178 c3 = a1 * R2 - a3 *
R1;
191 idctRowCondDC_8(block + i*8, 0);
211 idctSparseColAdd_8(dest + i, line_size, block + i);
234 for (i = 0; i < 64; i++)
237 for (i = 0; i < 8; i++)
238 idctRowCondDC_extrashift_10(block + i*8, 2);
240 for (i = 0; i < 8; i++) {
242 idctSparseCol_extrashift_10(block + i);
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_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)