Fix RKMPP-DRM-OpenCL mapping (#12758)

This commit is contained in:
Nyanmisaka 2024-10-01 13:02:01 +00:00 committed by GitHub
parent f36e73e748
commit 4317702559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5674,7 +5674,7 @@ namespace MediaBrowser.Controller.MediaEncoding
if (doOclTonemap && isRkmppDecoder)
{
// 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
@ -5717,7 +5717,7 @@ namespace MediaBrowser.Controller.MediaEncoding
{
// OUTPUT drm(nv12) surface(gem/dma-heap)
// 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");
}
}