frontends/va: Add High Quality preset mode

Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25564>
This commit is contained in:
David Rosca
2023-10-03 17:48:24 +02:00
committed by Marge Bot
parent 94af08421b
commit 75fe0ad8e7
2 changed files with 3 additions and 2 deletions

View File

@@ -183,8 +183,8 @@ vlVaHandleVAEncMiscParameterTypeQualityLevel(struct pipe_enc_quality_modes *p, v
p->pre_encode_mode = PREENCODING_MODE_DEFAULT;
p->vbaq_mode = VBAQ_AUTO;
} else {
p->preset_mode = in->preset_mode > PRESET_MODE_QUALITY
? PRESET_MODE_QUALITY : in->preset_mode;
p->preset_mode = in->preset_mode > PRESET_MODE_HIGH_QUALITY
? PRESET_MODE_HIGH_QUALITY : in->preset_mode;
p->pre_encode_mode = in->pre_encode_mode;
p->vbaq_mode = in->vbaq_mode;
}

View File

@@ -77,6 +77,7 @@
#define PRESET_MODE_SPEED (0)
#define PRESET_MODE_BALANCE (1)
#define PRESET_MODE_QUALITY (2)
#define PRESET_MODE_HIGH_QUALITY (3)
#define PREENCODING_MODE_DISABLE (0)
#define PREENCODING_MODE_DEFAULT (1)