Fix chroma problem in inter prediction.

There is still a separate problem, but this fixes the visible chroma problem
with motion vectors that have reference a chroma half-pixel.
This commit is contained in:
Ari Koivula 2013-10-02 10:59:34 +03:00
parent 61eb3b3b71
commit 665b369164

View file

@ -425,7 +425,7 @@ void filter_inter_halfpel_chroma(int16_t *src, int16_t src_stride, int width, in
src_pos += src_stride; //0,2 src_pos += src_stride; //0,2
ae_temp3 = ((-4*src[src_pos - 1] + 36*src[src_pos] + 36*src[src_pos + 1] - 4*src[src_pos + 2] ) >> shift1) + offset; // ae0,2 ae_temp3 = ((-4*src[src_pos - 1] + 36*src[src_pos] + 36*src[src_pos + 1] - 4*src[src_pos + 2] ) >> shift1) + offset; // ae0,2
dst[dst_pos + 1*dst_stride + 1] = ((( -4*ae_temp1 + 36*dst[dst_pos + 1] + 36*ae_temp2 - 4*ae_temp3 ) >> shift2) + offset) >> shift3; // ee0,0 dst[dst_pos + 1*dst_stride + 1] = ((( -4*ae_temp1 + 36*ae_temp + 36*ae_temp2 - 4*ae_temp3 ) >> shift2) + offset) >> shift3; // ee0,0
} }
if(hor_flag) { if(hor_flag) {