39 static void put_pixels_clamped_mvi(
const int16_t *
block,
uint8_t *pixels,
43 uint64_t clampmask =
zap(-1, 0xaa);
46 uint64_t shorts0, shorts1;
49 shorts0 =
maxsw4(shorts0, 0);
50 shorts0 =
minsw4(shorts0, clampmask);
53 shorts1 =
ldq(block + 4);
54 shorts1 =
maxsw4(shorts1, 0);
55 shorts1 =
minsw4(shorts1, clampmask);
63 void add_pixels_clamped_mvi(
const int16_t *
block,
uint8_t *pixels,
69 uint64_t clampmask =
zap(-1, 0xaa);
70 uint64_t signmask =
zap(-1, 0x33);
71 signmask ^= signmask >> 1;
74 uint64_t shorts0, pix0, signs0;
75 uint64_t shorts1, pix1, signs1;
78 shorts1 =
ldq(block + 4);
82 signs0 = shorts0 & signmask;
87 shorts0 =
maxsw4(shorts0, 0);
88 shorts0 =
minsw4(shorts0, clampmask);
92 signs1 = shorts1 & signmask;
96 shorts1 =
maxsw4(shorts1, 0);
97 shorts1 =
minsw4(shorts1, clampmask);
100 stl(
pkwb(shorts1), pixels + 4);
109 unsigned high_bit_depth)
120 if (!high_bit_depth && !avctx->
lowres &&