avfilter/vf_tonemapx: add dovi tonemapx for 420p10 inputs #447
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.
Changes
This adds Dolby Vision reshaping support for DV Profile 5 videos. The implementation includes some trade-offs for performance during color conversion calculations, which may cause colors in very bright or very dark scenes to appear off. The current implementation requires the input to be in 420p10 format to perform the reshaping. Expanding support to p010 inputs is possible if a use case arises.
Unlike the GPGPU implementation, which performs BL reshaping when only BL is required, this implementation only performs BL reshaping when absolutely necessary. For example, it will not reshape BL for Profile 8 videos and will instead use the HDR10 fallback for performance reasons. The additional reshaping incurs a performance loss of about 35%-50% compared to HDR10 inputs that do not require reshaping. Users will need a 16-core Zen3-level CPU to achieve 4K60 playback if they want to tonemap DV P5 videos on CPU.
Issues
Closes #404