Ultra HDR is a true HDR image format, and is backcompatible. libultrahdr is the reference codec for the Ultra HDR format. The codecs that support the format can render the HDR intent of the image on HDR displays; other codecs can still decode and display the SDR intent of the image.
After applyGainMap, the frame buffers are copied to CPU. If image editing effects are to be applied, these are again copied to GPU. This consumes time and can be avoided. The current change defers GPU to CPU transfer to the end after all GL processing is done.
After applyGainMap, the frame buffers are copied to CPU. If image editing effects are to be applied, these are again copied to GPU. This consumes time and can be avoided. The current change defers GPU to CPU transfer to the end after all GL processing is done.
Test: ./ultrahdr_app -m 1 -j input_uhdr.jpg -o 1 -O 5 Test: ./ultrahdr_unit_test
Change-Id: I9b3e401027ab9d44e2c6aeb664fb10aee2496b52