google / libultrahdr

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.
https://developer.android.com/guide/topics/media/platform/hdr-image-format
Apache License 2.0
162 stars 28 forks source link

Reuse applyGainMap GL textures if effects are to be applied #276

Closed ram-mohan closed 1 month ago

ram-mohan commented 1 month ago

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