Skip to content

keyou/hdr-demo

Repository files navigation

General

An example to show the principle of rendering HDR content on macOS.

Building

Prerequisites

  • 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

Build

  1. Clone the repo
  2. Run cmake .
  3. Run make
  4. Run ./hdr_demo to show the principle of rendering HDR content
  5. Run ./jpeg_util to generate a JPEG+ICC HDR image

Screenshots

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.

screenshot

Other HDR Images

hdr+jpg

hdr+png

Author

@keyou

keyou

About

An example to understand HDR rendering.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors