mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 14:35:38 +01:00
31 lines
607 B
C++
31 lines
607 B
C++
#ifndef __TEXCOMP_IMAGE_H__
|
|
#define __TEXCOMP_IMAGE_H__
|
|
|
|
#include "TexCompTypes.h"
|
|
#include "TexComp.h"
|
|
|
|
// Forward declarations
|
|
class ImageLoader;
|
|
|
|
// Class definition
|
|
class Image {
|
|
|
|
public:
|
|
Image(const ImageLoader &);
|
|
const uint8 *RawData() const { return m_PixelData; }
|
|
|
|
CompressedImage *Compress(const SCompressionSettings &settings) const;
|
|
double ComputePSNR(const CompressedImage &ci) const;
|
|
|
|
uint32 GetWidth() const { return m_Width; }
|
|
uint32 GetHeight() const { return m_Height; }
|
|
|
|
private:
|
|
uint32 m_Width;
|
|
uint32 m_Height;
|
|
|
|
uint8 *m_PixelData;
|
|
};
|
|
|
|
#endif // __TEXCOMP_IMAGE_H__
|