An example to show the principle of rendering HDR content on macOS.
- Using a monitor that support HDR, such as MacBook built-in monitor.
- macOS 10.15+
- CMake 3.15+
brew install cmake
- libjpeg-turbo 2.1.0+
brew install libjpeg-turbo
- Clone the repo
- Run
cmake . - Run
make - Run
./hdr_demoto show the principle of rendering HDR content - Run
./jpeg_utilto generate a JPEG+ICC HDR image
This is the image generated by ./jpeg_util, the image contains HDR content.
You can use any screenshot tool to capture it, then you can observe that the result is different from the original image. This is because all the screenshot tools do not support HDR content.