feat(server): hardware decoding, libplacebo for tone-mapping #9402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Edit: Reducing the scope of this PR to only change the process for NVENC and possibly QSV and VAAPI depending on Vulkan support. This is because Vulkan is quite new in FFmpeg and we would need a more bleeding edge version to use it more extensively. For the time-being, this does unfortunately mean we essentially have 3 ways of tone-mapping: zscale (CPU), Vulkan (NVENC and maybe QSV and VAAPI) and OpenCL (RKMPP).
This PR overhauls the decoding and tone-mapping behavior for hardware-accelerated transcoding:
shared across all devices, including CPUHow Has This Been Tested?
Tested on CPU and NVENC for both transcoding and video thumbnails. Keeping this in draft until it's been tested with the other APIs.
Fixes #4321
Fixes #8411