decodeHdr method
Implementation
HdrImage decodeHdr(InputBuffer p) {
hdrImage = HdrImage.create(
width,
height,
samplesPerPixel,
sampleFormat == FORMAT_UINT
? HdrImage.UINT
: sampleFormat == FORMAT_INT
? HdrImage.INT
: HdrImage.FLOAT,
bitsPerSample);
for (var tileY = 0, ti = 0; tileY < tilesY; ++tileY) {
for (var tileX = 0; tileX < tilesX; ++tileX, ++ti) {
_decodeTile(p, tileX, tileY);
}
}
return hdrImage!;
}