ImageData:encode now supports saving exr image files.

Also add support for loading uint exr image files, and fix a memory leak in the exr loading code.

Resolves #1813.
This commit is contained in:
slime
2022-09-10 23:17:42 -03:00
parent 9be43d671c
commit 9c46b75138
9 changed files with 236 additions and 27 deletions
+6
View File
@@ -43,6 +43,7 @@ public:
{
ENCODED_TGA,
ENCODED_PNG,
ENCODED_EXR,
ENCODED_MAX_ENUM
};
@@ -116,6 +117,11 @@ public:
**/
virtual void freeRawPixels(unsigned char *mem);
/**
* Frees encoded image memory allocated by the format handler.
**/
virtual void freeEncodedImage(unsigned char *mem);
}; // FormatHandler
} // image