summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authoragalin89 <[email protected]>2020-07-27 23:59:23 +0100
committerScott <[email protected]>2020-07-28 20:29:02 +0100
commit907d4fd119292683c80e79dbc22a138ac917b940 (patch)
tree41d89c1864651f8271d1db2a86ec216bd8acdcc4 /libhb
parentfdf45852930e4177d7f77bdfe5eb5727e80c5e80 (diff)
qsv: fix of speed preset to be effective as MFX_TARGETUSAGE_7/MFX_TARGETUSAGE_BEST_SPEED
Diffstat (limited to 'libhb')
-rw-r--r--libhb/qsv_common.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c
index a79a44bf7..171071a14 100644
--- a/libhb/qsv_common.c
+++ b/libhb/qsv_common.c
@@ -1892,7 +1892,14 @@ int hb_qsv_param_default_preset(hb_qsv_param_t *param,
}
else if (!strcasecmp(preset, "speed"))
{
- if (qsv_hardware_generation(hb_get_cpu_platform()) >= QSV_G3)
+ if (qsv_hardware_generation(hb_get_cpu_platform()) >= QSV_G7)
+ {
+ // Since IceLake only
+ param->rc.lookahead = 0;
+ param->videoParam->mfx.NumRefFrame = 1;
+ param->videoParam->mfx.TargetUsage = MFX_TARGETUSAGE_7;
+ }
+ else if (qsv_hardware_generation(hb_get_cpu_platform()) >= QSV_G3)
{
/*
* HSW TargetUsage: 6