(WIP) shaders/colorspace: implement reshaping
Needed for Dolby Vision Profile 5 and friends. Implemented as 3x1D LUTs, to avoid having to do any of this math in the shader. (And allow me to be lazy and copy/paste the reference implementation) Probably fast enough to not bother micro-optimizing further. TODO: - implement MMR reshaping - signal resulting bit depth explicitly? Closes #113
Showing
- meson.build 1 addition, 0 deletionsmeson.build
- src/include/libplacebo/renderer.h 6 additions, 0 deletionssrc/include/libplacebo/renderer.h
- src/include/libplacebo/shaders/colorspace.h 19 additions, 0 deletionssrc/include/libplacebo/shaders/colorspace.h
- src/renderer.c 8 additions, 0 deletionssrc/renderer.c
- src/shaders.h 1 addition, 0 deletionssrc/shaders.h
- src/shaders/colorspace.c 87 additions, 0 deletionssrc/shaders/colorspace.c
Loading
Please register or sign in to comment