mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
[inter] Fix inter reconstruction, correct function was in wrong branch
This commit is contained in:
parent
78363ccab0
commit
cb9f9381c3
|
@ -1246,7 +1246,7 @@ void kvz_encode_coding_tree(encoder_state_t * const state,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encode skip flag
|
// Encode skip flag
|
||||||
if (state->frame->slicetype != KVZ_SLICE_I) {
|
if (state->frame->slicetype != KVZ_SLICE_I && cu_width != 4) {
|
||||||
|
|
||||||
int8_t ctx_skip = 0;
|
int8_t ctx_skip = 0;
|
||||||
|
|
||||||
|
|
31
src/inter.c
31
src/inter.c
|
@ -393,22 +393,23 @@ static void inter_recon_unipred(const encoder_state_t * const state,
|
||||||
width, height,
|
width, height,
|
||||||
mv_param, lcu);
|
mv_param, lcu);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// With an integer MV, copy pixels directly from the reference.
|
|
||||||
const int lcu_pu_index = pu_in_lcu.y * LCU_WIDTH + pu_in_lcu.x;
|
|
||||||
if (mv_is_outside_frame) {
|
|
||||||
inter_cp_with_ext_border(ref->y, ref->stride,
|
|
||||||
ref->width, ref->height,
|
|
||||||
&lcu->rec.y[lcu_pu_index], LCU_WIDTH,
|
|
||||||
width, height,
|
|
||||||
&mv_in_frame);
|
|
||||||
} else {
|
} else {
|
||||||
const int frame_mv_index = mv_in_frame.y * ref->stride + mv_in_frame.x;
|
// With an integer MV, copy pixels directly from the reference.
|
||||||
kvz_pixels_blit(&ref->y[frame_mv_index],
|
const int lcu_pu_index = pu_in_lcu.y * LCU_WIDTH + pu_in_lcu.x;
|
||||||
&lcu->rec.y[lcu_pu_index],
|
if (mv_is_outside_frame) {
|
||||||
width, height,
|
inter_cp_with_ext_border(ref->y, ref->stride,
|
||||||
ref->stride, LCU_WIDTH);
|
ref->width, ref->height,
|
||||||
|
&lcu->rec.y[lcu_pu_index], LCU_WIDTH,
|
||||||
|
width, height,
|
||||||
|
&mv_in_frame);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const int frame_mv_index = mv_in_frame.y * ref->stride + mv_in_frame.x;
|
||||||
|
kvz_pixels_blit(&ref->y[frame_mv_index],
|
||||||
|
&lcu->rec.y[lcu_pu_index],
|
||||||
|
width, height,
|
||||||
|
ref->stride, LCU_WIDTH);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue