mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Reset CBFs because CBFs might have been set earlier for depth earlier.
This commit is contained in:
parent
a80de22bc7
commit
800fc8644d
11
src/intra.c
11
src/intra.c
|
@ -665,7 +665,18 @@ void kvz_intra_recon_cu(
|
|||
cur_cu = LCU_GET_CU_AT_PX(lcu, lcu_px.x, lcu_px.y);
|
||||
}
|
||||
|
||||
// Reset CBFs because CBFs might have been set
|
||||
// for depth earlier
|
||||
if (mode_luma >= 0) {
|
||||
cbf_clear(&cur_cu->cbf, depth, COLOR_Y);
|
||||
}
|
||||
if (mode_chroma >= 0) {
|
||||
cbf_clear(&cur_cu->cbf, depth, COLOR_U);
|
||||
cbf_clear(&cur_cu->cbf, depth, COLOR_V);
|
||||
}
|
||||
|
||||
if (depth == 0 || cur_cu->tr_depth > depth) {
|
||||
|
||||
const int offset = width / 2;
|
||||
const int32_t x2 = x + offset;
|
||||
const int32_t y2 = y + offset;
|
||||
|
|
|
@ -445,7 +445,18 @@ void kvz_quantize_lcu_residual(encoder_state_t * const state,
|
|||
width == 32 ||
|
||||
width == 64);
|
||||
|
||||
// Reset CBFs because CBFs might have been set
|
||||
// for depth earlier
|
||||
if (luma) {
|
||||
cbf_clear(&cur_pu->cbf, depth, COLOR_Y);
|
||||
}
|
||||
if (chroma) {
|
||||
cbf_clear(&cur_pu->cbf, depth, COLOR_U);
|
||||
cbf_clear(&cur_pu->cbf, depth, COLOR_V);
|
||||
}
|
||||
|
||||
if (depth == 0 || cur_pu->tr_depth > depth) {
|
||||
|
||||
// Split transform and increase depth
|
||||
const int offset = width / 2;
|
||||
const int32_t x2 = x + offset;
|
||||
|
|
Loading…
Reference in a new issue