mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Improve fps for cuda tonemap in sw decoding
avoid second copy if subtitle is not applied.
This commit is contained in:
parent
ba11add83b
commit
fb8ae0e9a1
1 changed files with 3 additions and 3 deletions
|
@ -2893,8 +2893,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
}
|
||||
|
||||
var memoryOutput = false;
|
||||
var isUploadForOclTonemap = isSwDecoder && doCuTonemap;
|
||||
if ((isNvDecoder && isSwEncoder) || isUploadForOclTonemap)
|
||||
var isUploadForCuTonemap = isSwDecoder && doCuTonemap;
|
||||
if ((isNvDecoder && isSwEncoder) || (isUploadForCuTonemap && hasSubs))
|
||||
{
|
||||
memoryOutput = true;
|
||||
|
||||
|
@ -2904,7 +2904,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
}
|
||||
|
||||
// OUTPUT yuv420p surface(memory)
|
||||
if (isSwDecoder && isNvencEncoder)
|
||||
if (isSwDecoder && isNvencEncoder && !isUploadForCuTonemap)
|
||||
{
|
||||
memoryOutput = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue