Skip to content
Snippets Groups Projects
Commit 58eda8c1 authored by Niklas Haas's avatar Niklas Haas
Browse files

colorspace: add support for Dolby Vision

This covers Profiles 5 and 8.X. After playing around with the
implementation quite a lot, I eventually settled on the current state,
which requires no LUTs or state and is implemented entirely in pure
GLSL. This is slightly slower than a pure 1D LUT approach, but has the
benefit of not needing to add an extra `pl_shader_obj` to the API at
all, and thus being transparently backwards compatible.

The decoding metadata is assumed to be passed in via a new struct
`pl_dovi_metadata`, which contains both the colorspace matrices
(especially important for profiles 8.X) and reshaping coefficients.

Closes #113
parent f25699c3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment