DevIL
DevIL copied to clipboard
Confusion over Bpp and Bpc
Hey Devs, I've noticed some inconsistency in the handling of ILimage members Bpc and Bpp.
For instance, after creating an ilImage(filename.exr), the image object had a Bpp of 16, where the file object was an RGBA float. Of course, this would be correct if Bpp meant 'bytes per pixel'. However, 'devil_internal_exports.h' indicates that this is actually the number of channels per pixel.
Perhaps this is an inconsistency between the cpp wrapper and the base c implementation. For instance, I added support for 'Blit' in the cpp, and found that it couldn't properly handle the above file. It doesn't seem to handle the float type properly
Anyway, I can provide a diff for the Blit func if you like.