[LMCS] set ph_lmcs_enabled_flag according to the sliceReshaperEnableFlag

This commit is contained in:
Marko Viitanen 2021-05-27 16:09:34 +03:00
parent 4ea9bee0b6
commit 1bbe1204e4

View file

@ -1116,9 +1116,9 @@ static void kvz_encoder_state_write_bitstream_picture_header(
}
if (encoder->cfg.lmcs_enable)
{
WRITE_U(stream, 1, 1, "ph_lmcs_enabled_flag");
//if (picHeader->getLmcsEnabledFlag())
WRITE_U(stream, state->tile->frame->lmcs_aps->m_sliceReshapeInfo.sliceReshaperEnableFlag, 1, "ph_lmcs_enabled_flag");
if (state->tile->frame->lmcs_aps->m_sliceReshapeInfo.sliceReshaperEnableFlag)
{
WRITE_U(stream, 0, 2, "ph_lmcs_aps_id");