Simplified some compressed image parsing code.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-30 22:25:26 -03:00
parent 907630b04c
commit a41f78dfe4
26 changed files with 101 additions and 161 deletions
+5 -5
View File
@@ -21,7 +21,7 @@
#pragma once
#include "common/config.h"
#include "image/CompressedFormatHandler.h"
#include "image/FormatHandler.h"
namespace love
{
@@ -34,16 +34,16 @@ namespace magpie
* Handles simple .astc files (generated by ARM's astcenc tool) with compressed
* ASTC data inside.
**/
class ASTCHandler : public CompressedFormatHandler
class ASTCHandler : public FormatHandler
{
public:
virtual ~ASTCHandler() {}
// Implements CompressedFormatHandler.
bool canParse(const Data *data) override;
// Implements FormatHandler.
bool canParseCompressed(Data *data) override;
StrongRef<CompressedMemory> parse(Data *filedata,
StrongRef<CompressedMemory> parseCompressed(Data *filedata,
std::vector<StrongRef<CompressedSlice>> &images,
PixelFormat &format, bool &sRGB) override;