Open gregbenz opened 3 months ago
👍🏻 , not only Apple but HEIC in general
for example S24U, FX7U, OP12 - all of them support Ultra HDR but as soon as you enable HEIC mode it's gone
I saw that the whole UHDR library is based around JPEG files and to be honest isn't that a bit stupid? I'd understand if it was Android 8-9 but Android 14 when most of the phones are shipping with HEIC files that actually save 2-3 times of the storage..?
Is this possible to be done?
@xs1vr we are in the process of integrating hevc and av1 codecs and extending uhdr_codec_t of ultrahdr_api.h to include heic and avif. Inspite of lesser coding efficiency, jpeg is also useful as it has less cpu burden on embedded devices.
It would be helpful to have support to decode images captured with an iPhone, which includes JPG and HEIC images with the Apple gain map format. This would help to transcode images captured with an iPhone (such as for uploading to web services).
If you attempt to decode such an image now, libultrahdr_app will throw "xml parse error, could not find attribute hdrgm:Version".
Support for decoding is all that is needed. Output in the Android format (and ultimately with the ISO gain map spec when finalized) is sufficient.