init
This commit is contained in:
32
expkg/src/BinaryOPT/ImageReader.h
Normal file
32
expkg/src/BinaryOPT/ImageReader.h
Normal file
@ -0,0 +1,32 @@
|
||||
//
|
||||
// Created by sfd on 25-8-5.
|
||||
//
|
||||
|
||||
#ifndef IMAGEREADER_H
|
||||
#define IMAGEREADER_H
|
||||
#include "BinaryReader.h"
|
||||
#include "../Tex/TexImageContainer.h"
|
||||
|
||||
namespace PKG
|
||||
{
|
||||
class PKG_API ImageReader
|
||||
{
|
||||
public:
|
||||
static TexImage ReadFrom(BinaryReader& reader, const TexImageContainer& container, TexFormat format);
|
||||
|
||||
static TexImageContainer ImageContainerReaderReadFrom(BinaryReader& reader, TexFormat texFormat);
|
||||
|
||||
private:
|
||||
static TexMipMap ReadMipMapV1(BinaryReader& reader);
|
||||
static TexMipMap ReadMipMapV2AndV3(BinaryReader& reader);
|
||||
static TexMipMap ReadMipMapV4(BinaryReader& reader);
|
||||
|
||||
static std::vector<uint8_t> ReadBytes(BinaryReader& reader);
|
||||
|
||||
static MipmapFormat GetFormatFromTex(FreeImageFormat imageFormat, TexFormat format);
|
||||
static MipmapFormat FreeImageFormatToMipmapFormat(FreeImageFormat imageFormat);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif //IMAGEREADER_H
|
||||
Reference in New Issue
Block a user