docs: public static void rgbe2float(float[] rgb, byte[] rgbe, int startRGBEOffset) {
          float f;
  
          if (rgbe[startRGBEOffset + 3] != 0) {   // nonzero pixel
              f = (float) ldexp(1.0, (rgbe[startRGBEOffset + 3] & 0xFF) - (128 + 8));
              rgb[0] = (rgbe[startRGBEOffset + 0] & 0xFF) * f;
              rgb[1] = (rgbe[startRGBEOffset + 1] & 0xFF) * f;
              rgb[2] = (rgbe[startRGBEOffset + 2] & 0xFF) * f;
          }
          else {
              rgb[0] = 0;
              rgb[1] = 0;
              rgb[2] = 0;
          }
      }