mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
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:
parent
61eb3b3b71
commit
665b369164
|
@ -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
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue