-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
patches/0001-vaav1enc-Do-not-enable-palette-mode-by-default.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From a03dc6e9f49e7c40f9de054fd7530c1e81df268e Mon Sep 17 00:00:00 2001 | ||
From: He Junyan <[email protected]> | ||
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. | ||
--- | ||
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); | ||
-- | ||
2.25.1 | ||
|