mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Fix RKMPP-DRM-OpenCL mapping (#12758)
This commit is contained in:
parent
f36e73e748
commit
4317702559
@ -5674,7 +5674,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
if (doOclTonemap && isRkmppDecoder)
|
if (doOclTonemap && isRkmppDecoder)
|
||||||
{
|
{
|
||||||
// map from rkmpp/drm to opencl via drm-opencl interop.
|
// map from rkmpp/drm to opencl via drm-opencl interop.
|
||||||
mainFilters.Add("hwmap=derive_device=opencl:mode=read");
|
mainFilters.Add("hwmap=derive_device=opencl");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ocl tonemap
|
// ocl tonemap
|
||||||
@ -5717,7 +5717,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
// OUTPUT drm(nv12) surface(gem/dma-heap)
|
// OUTPUT drm(nv12) surface(gem/dma-heap)
|
||||||
// reverse-mapping via drm-opencl interop.
|
// reverse-mapping via drm-opencl interop.
|
||||||
mainFilters.Add("hwmap=derive_device=rkmpp:mode=write:reverse=1");
|
mainFilters.Add("hwmap=derive_device=rkmpp:reverse=1");
|
||||||
mainFilters.Add("format=drm_prime");
|
mainFilters.Add("format=drm_prime");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user