AFAIK HDR images in PNG are saved as integer values in 16-bit depth. But in Android SDK I can read HDR image with configuration Config.RGBA_F16
, which has a very interesting description:
Each pixels is stored on 8 bytes. Each channel (RGB and alpha for translucency) is stored as a half-precision floating point value. This configuration is particularly suited for wide-gamut and HDR content.
Is single channel of a pixel (e.g. red) stored in 8 bits as in the description, or is it stored in 16 bits as name RGBA_F16
may suggest?
And the second question is how to get all 4 channels of a single pixel? E.g. where the top-left pixel is stored: at indices 0, 1, 2, 3
or at indices 0, 1*h*w, 2*h*w, 3*w*h
?