mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Enable software tonemapping options (#5784)
* Enable software tonemappin options * Remove debugging log * Apply suggestions from code review Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com> * use "camelCase" for CSS classes * use toggle for switching * no comments --------- Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
5bd61d82a3
commit
4f630eeb26
3 changed files with 10 additions and 3 deletions
|
@ -173,7 +173,8 @@
|
||||||
<input type="checkbox" is="emby-checkbox" id="chkTonemapping" />
|
<input type="checkbox" is="emby-checkbox" id="chkTonemapping" />
|
||||||
<span>${EnableTonemapping}</span>
|
<span>${EnableTonemapping}</span>
|
||||||
</label>
|
</label>
|
||||||
<div class="fieldDescription checkboxFieldDescription">${AllowTonemappingHelp}</div>
|
<div class="fieldDescription checkboxFieldDescription allowTonemappingHardwareHelp">${AllowTonemappingHelp}</div>
|
||||||
|
<div class="fieldDescription checkboxFieldDescription allowTonemappingSoftwareHelp">${AllowTonemappingSoftwareHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="selectContainer">
|
<div class="selectContainer">
|
||||||
<select is="emby-select" id="selectTonemappingAlgorithm" label="${LabelTonemappingAlgorithm}">
|
<select is="emby-select" id="selectTonemappingAlgorithm" label="${LabelTonemappingAlgorithm}">
|
||||||
|
@ -190,7 +191,7 @@
|
||||||
<a is="emby-linkbutton" rel="noopener noreferrer" class="button-link" href="http://ffmpeg.org/ffmpeg-all.html#tonemap_005fopencl" target="_blank">${TonemappingAlgorithmHelp}</a>
|
<a is="emby-linkbutton" rel="noopener noreferrer" class="button-link" href="http://ffmpeg.org/ffmpeg-all.html#tonemap_005fopencl" target="_blank">${TonemappingAlgorithmHelp}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="selectContainer">
|
<div class="tonemappingModeOptions selectContainer">
|
||||||
<select is="emby-select" id="selectTonemappingMode" label="${LabelTonemappingMode}">
|
<select is="emby-select" id="selectTonemappingMode" label="${LabelTonemappingMode}">
|
||||||
<option value="auto">${Auto}</option>
|
<option value="auto">${Auto}</option>
|
||||||
<option value="max">MAX</option>
|
<option value="max">MAX</option>
|
||||||
|
|
|
@ -194,12 +194,17 @@ $(document).on('pageinit', '#encodingSettingsPage', function () {
|
||||||
page.querySelector('.fld10bitHevcVp9HwDecoding').classList.add('hide');
|
page.querySelector('.fld10bitHevcVp9HwDecoding').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.value == 'amf' || this.value == 'nvenc' || this.value == 'qsv' || this.value == 'vaapi' || this.value == 'rkmpp' || this.value == 'videotoolbox') {
|
const isHwaSelected = [ 'amf', 'nvenc', 'qsv', 'vaapi', 'rkmpp', 'videotoolbox' ].includes(this.value);
|
||||||
|
if (this.value === '' || isHwaSelected) {
|
||||||
page.querySelector('.tonemappingOptions').classList.remove('hide');
|
page.querySelector('.tonemappingOptions').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
page.querySelector('.tonemappingOptions').classList.add('hide');
|
page.querySelector('.tonemappingOptions').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
page.querySelector('.tonemappingModeOptions').classList.toggle('hide', !isHwaSelected);
|
||||||
|
page.querySelector('.allowTonemappingHardwareHelp').classList.toggle('hide', !isHwaSelected);
|
||||||
|
page.querySelector('.allowTonemappingSoftwareHelp').classList.toggle('hide', isHwaSelected);
|
||||||
|
|
||||||
if (this.value == 'qsv' || this.value == 'vaapi') {
|
if (this.value == 'qsv' || this.value == 'vaapi') {
|
||||||
page.querySelector('.fldIntelLp').classList.remove('hide');
|
page.querySelector('.fldIntelLp').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
"AllowRemoteAccess": "Allow remote connections to this server",
|
"AllowRemoteAccess": "Allow remote connections to this server",
|
||||||
"AllowRemoteAccessHelp": "If unchecked, all remote connections will be blocked.",
|
"AllowRemoteAccessHelp": "If unchecked, all remote connections will be blocked.",
|
||||||
"AllowTonemappingHelp": "Tone-mapping can transform the dynamic range of a video from HDR to SDR while maintaining image details and colors, which are very important information for representing the original scene. Currently works only with 10bit HDR10, HLG and DoVi videos. This requires the corresponding GPGPU runtime.",
|
"AllowTonemappingHelp": "Tone-mapping can transform the dynamic range of a video from HDR to SDR while maintaining image details and colors, which are very important information for representing the original scene. Currently works only with 10bit HDR10, HLG and DoVi videos. This requires the corresponding GPGPU runtime.",
|
||||||
|
"AllowTonemappingSoftwareHelp": "Tone-mapping can transform the dynamic range of a video from HDR to SDR while maintaining image details and colors, which are very important information for representing the original scene. Currently works only with 10bit HDR10 and HLG videos.",
|
||||||
"AlwaysPlaySubtitles": "Always Play",
|
"AlwaysPlaySubtitles": "Always Play",
|
||||||
"AlwaysPlaySubtitlesHelp": "Subtitles matching the language preference will be loaded regardless of the audio language.",
|
"AlwaysPlaySubtitlesHelp": "Subtitles matching the language preference will be loaded regardless of the audio language.",
|
||||||
"AndOtherArtists": "{0} and {1} other artists.",
|
"AndOtherArtists": "{0} and {1} other artists.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue