From 84d7b3396da5718ae483cb64c6e56b54feba2803 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Wed, 20 Dec 2023 14:29:14 +0800 Subject: [PATCH] Add Rockchip MPP (RKMPP) as a new HWA type Signed-off-by: nyanmisaka --- .../dashboard/encodingsettings.html | 19 ++++++++++++------- src/controllers/dashboard/encodingsettings.js | 4 ++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/controllers/dashboard/encodingsettings.html b/src/controllers/dashboard/encodingsettings.html index af2d4eb6d..330dac8a1 100644 --- a/src/controllers/dashboard/encodingsettings.html +++ b/src/controllers/dashboard/encodingsettings.html @@ -16,6 +16,7 @@ + @@ -34,19 +35,23 @@

${LabelEnableHardwareDecodingFor}

+
diff --git a/src/controllers/dashboard/encodingsettings.js b/src/controllers/dashboard/encodingsettings.js index 24946cadb..3d434df7f 100644 --- a/src/controllers/dashboard/encodingsettings.js +++ b/src/controllers/dashboard/encodingsettings.js @@ -200,13 +200,13 @@ $(document).on('pageinit', '#encodingSettingsPage', function () { page.querySelector('#txtVaapiDevice').removeAttribute('required'); } - if (this.value == 'amf' || this.value == 'nvenc' || this.value == 'qsv' || this.value == 'vaapi' || this.value == 'videotoolbox') { + if (this.value == 'amf' || this.value == 'nvenc' || this.value == 'qsv' || this.value == 'vaapi' || this.value == 'rkmpp' || this.value == 'videotoolbox') { page.querySelector('.fld10bitHevcVp9HwDecoding').classList.remove('hide'); } else { page.querySelector('.fld10bitHevcVp9HwDecoding').classList.add('hide'); } - if (this.value == 'amf' || this.value == 'nvenc' || this.value == 'qsv' || this.value == 'vaapi') { + if (this.value == 'amf' || this.value == 'nvenc' || this.value == 'qsv' || this.value == 'vaapi' || this.value == 'rkmpp') { page.querySelector('.tonemappingOptions').classList.remove('hide'); } else { page.querySelector('.tonemappingOptions').classList.add('hide');