mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
[LMCS] Allocate LMCS images with the config flag since the actual enabled flag is checked later
This commit is contained in:
parent
bb12894575
commit
d040a4238c
|
@ -1107,7 +1107,7 @@ static void encoder_state_encode(encoder_state_t * const main_state) {
|
|||
);
|
||||
|
||||
|
||||
if (sub_state->tile->frame->lmcs_aps->m_sliceReshapeInfo.sliceReshaperEnableFlag) {
|
||||
if (sub_state->encoder_control->cfg.lmcs_enable) {
|
||||
kvz_image_free(sub_state->tile->frame->source_lmcs);
|
||||
sub_state->tile->frame->source_lmcs = NULL;
|
||||
|
||||
|
@ -1379,7 +1379,7 @@ static void encoder_set_source_picture(encoder_state_t * const state, kvz_pictur
|
|||
}
|
||||
state->tile->frame->rec_lmcs = state->tile->frame->rec;
|
||||
|
||||
if (state->tile->frame->lmcs_aps->m_sliceReshapeInfo.sliceReshaperEnableFlag) {
|
||||
if (state->encoder_control->cfg.lmcs_enable) {
|
||||
state->tile->frame->rec_lmcs = kvz_image_alloc(state->encoder_control->chroma_format, frame->width, frame->height);
|
||||
state->tile->frame->source_lmcs = kvz_image_alloc(state->encoder_control->chroma_format, frame->width, frame->height);
|
||||
}
|
||||
|
@ -1780,7 +1780,7 @@ void kvz_encoder_prepare(encoder_state_t *state)
|
|||
state->tile->frame->cu_array = kvz_cu_array_alloc(width, height);
|
||||
}
|
||||
|
||||
if (state->tile->frame->lmcs_aps->m_sliceReshapeInfo.sliceReshaperEnableFlag) {
|
||||
if (state->encoder_control->cfg.lmcs_enable) {
|
||||
kvz_image_free(state->tile->frame->source_lmcs);
|
||||
state->tile->frame->source_lmcs = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue