27 #define BIAS (1 << (PRORES_BITS_PER_SAMPLE - 1))
28 #define CLIP_MIN (1 << (PRORES_BITS_PER_SAMPLE - 8))
29 #define CLIP_MAX (1 << PRORES_BITS_PER_SAMPLE) - CLIP_MIN - 1
31 #define CLIP_AND_BIAS(x) (av_clip((x) + BIAS, CLIP_MIN, CLIP_MAX))
33 #if CONFIG_PRORES_DECODER | CONFIG_PRORES_LGPL_DECODER
39 int x, y, src_offset, dst_offset;
41 for (y = 0, dst_offset = 0; y < 8; y++, dst_offset +=
stride) {
42 for (x = 0; x < 8; x++) {
43 src_offset = (y << 3) + x;
50 static void prores_idct_put_c(uint16_t *out,
int linesize,
DCTELEM *
block,
const int16_t *qmat)
53 put_pixels(out, linesize >> 1, block);
57 #if CONFIG_PRORES_KOSTYA_ENCODER
58 static void prores_fdct_c(
const uint16_t *src,
int linesize,
DCTELEM *
block)
61 const uint16_t *tsrc = src;
63 for (y = 0; y < 8; y++) {
64 for (x = 0; x < 8; x++)
65 block[y * 8 + x] = tsrc[x];
66 tsrc += linesize >> 1;
74 #if CONFIG_PRORES_DECODER | CONFIG_PRORES_LGPL_DECODER
83 #if CONFIG_PRORES_KOSTYA_ENCODER
84 dsp->
fdct = prores_fdct_c;