vaav1enc: Do not enable palette mode by default

Palette mode should only be enabled only when we know that the content
of the picture is simple. For example, only white letters on black
screen in SCC mode. So, by default, we need to disable it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7668>
This commit is contained in:
He Junyan 2024-10-15 16:44:27 +08:00 committed by GStreamer Marge Bot
parent 14a9138a88
commit dce250beb8

View file

@ -2333,8 +2333,8 @@ _av1_setup_encoding_features (GstVaAV1Enc * self)
/* not enable it now. */
self->features.enable_warped_motion = FALSE;
// (features.bits.support_warped_motion != 0);
self->features.enable_palette_mode =
(features.bits.support_palette_mode != 0);
self->features.enable_palette_mode = FALSE;
// (features.bits.support_palette_mode != 0);
self->features.enable_dual_filter =
(features.bits.support_dual_filter != 0);
self->features.enable_jnt_comp = (features.bits.support_jnt_comp != 0);