};
dst[offset - step] = clip8((dst[offset - step] as i16) + delta);
dst[offset] = clip8((dst[offset] as i16) - delta);
};
dst[offset - step] = clip8((dst[offset - step] as i16) + delta);
dst[offset] = clip8((dst[offset] as i16) - delta);
let diff = (diff_q1q0[y] + diff_q1q2 - delta) >> 1;
let delta_q1 = if weak {
clip_symm(diff, (mode1 >> 1) as i16)
let diff = (diff_q1q0[y] + diff_q1q2 - delta) >> 1;
let delta_q1 = if weak {
clip_symm(diff, (mode1 >> 1) as i16)
let diff = (diff_p1p0[y] + diff_p1p2 + delta) >> 1;
let delta_p1 = if weak {
clip_symm(diff, (mode2 >> 1) as i16)
let diff = (diff_p1p0[y] + diff_p1p2 + delta) >> 1;
let delta_p1 = if weak {
clip_symm(diff, (mode2 >> 1) as i16)
blk[off + 0 * step] = ((tm0 + tt0 + 64) >> 7) as i16;
blk[off + 1 * step] = ((tm4 + tt1 + 64) >> 7) as i16;
blk[off + 2 * step] = ((tm6 + tt2 + 64) >> 7) as i16;
blk[off + 0 * step] = ((tm0 + tt0 + 64) >> 7) as i16;
blk[off + 1 * step] = ((tm4 + tt1 + 64) >> 7) as i16;
blk[off + 2 * step] = ((tm6 + tt2 + 64) >> 7) as i16;
blk[off + 4 * step] = ((tm3 + tt4 + 64) >> 7) as i16;
blk[off + 5 * step] = ((tm7 + tt5 + 64) >> 7) as i16;
blk[off + 6 * step] = ((tm5 + tt6 + 64) >> 7) as i16;
blk[off + 4 * step] = ((tm3 + tt4 + 64) >> 7) as i16;
blk[off + 5 * step] = ((tm7 + tt5 + 64) >> 7) as i16;
blk[off + 6 * step] = ((tm5 + tt6 + 64) >> 7) as i16;