From dce250beb88c77fa03fb5e0d9a94e12541878e83 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 15 Oct 2024 16:44:27 +0800 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c index 101a1aa766..d0ac0a4081 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c @@ -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);