30 #define BIAS (1 << (PRORES_BITS_PER_SAMPLE - 1))
31 #define CLIP_MIN (1 << (PRORES_BITS_PER_SAMPLE - 8))
32 #define CLIP_MAX (1 << PRORES_BITS_PER_SAMPLE) - CLIP_MIN - 1
34 #define CLIP(x) (av_clip((x), CLIP_MIN, CLIP_MAX))
41 int x,
y, src_offset, dst_offset;
43 for (y = 0, dst_offset = 0; y < 8; y++, dst_offset += stride) {
44 for (x = 0; x < 8; x++) {
45 src_offset = (y << 3) + x;
47 dst[dst_offset + x] =
CLIP(in[src_offset]);