Updated CompressedData to store its data in a single block of memory, like other Data objects

This commit is contained in:
Alex Szpakowski
2013-08-29 16:24:13 -03:00
parent 6b51c5aadc
commit 4c4a385ce6
8 changed files with 80 additions and 116 deletions
+11 -6
View File
@@ -54,13 +54,18 @@ public:
static bool canParse(const filesystem::FileData *data);
/**
* Parses Compressed image data into a list of sub-images.
* @param[in] data The data to parse.
* @param[out] images The list of sub-images (including byte data for each)
* parsed from the file data.
* @return The format of the CompressedData.
* Parses compressed image filedata into a list of sub-images and returns
* a single block of memory containing all the images.
*
* @param[in] filedata The data to parse.
* @param[out] image The list of sub-images generated. Byte data is a pointer
* to the returned data.
* @param[out] dataSize The total size in bytes of the returned data.
* @param[out] format The format of the Compressed Data.
*
* @return The single block of memory containing the parsed images.
**/
static CompressedData::Format parse(filesystem::FileData *data, std::vector<CompressedData::SubImage> &images);
static uint8 *parse(filesystem::FileData *filedata, std::vector<CompressedData::SubImage> &images, size_t &dataSize, CompressedData::Format &format);
private: