mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-28 00:14:16 +01:00
Create imageloader constructor that keeps track of filesize.
This commit is contained in:
parent
4fc8bf916f
commit
5b165e7d7b
@ -52,6 +52,7 @@ class ImageLoader {
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
const uint8 *const m_RawData;
|
const uint8 *const m_RawData;
|
||||||
|
const int32 m_NumRawDataBytes;
|
||||||
uint8 *m_PixelData;
|
uint8 *m_PixelData;
|
||||||
|
|
||||||
uint32 m_Width;
|
uint32 m_Width;
|
||||||
@ -71,6 +72,18 @@ class ImageLoader {
|
|||||||
|
|
||||||
ImageLoader(const uint8 *rawData)
|
ImageLoader(const uint8 *rawData)
|
||||||
: m_RawData(rawData)
|
: m_RawData(rawData)
|
||||||
|
, m_NumRawDataBytes(-1)
|
||||||
|
, m_PixelData(0)
|
||||||
|
, m_Width(0), m_Height(0)
|
||||||
|
, m_RedChannelPrecision(0), m_RedData(0)
|
||||||
|
, m_GreenChannelPrecision(0), m_GreenData(0)
|
||||||
|
, m_BlueChannelPrecision(0), m_BlueData(0)
|
||||||
|
, m_AlphaChannelPrecision(0), m_AlphaData(0)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
ImageLoader(const uint8 *rawData, const int32 numBytes)
|
||||||
|
: m_RawData(rawData)
|
||||||
|
, m_NumRawDataBytes(numBytes)
|
||||||
, m_PixelData(0)
|
, m_PixelData(0)
|
||||||
, m_Width(0), m_Height(0)
|
, m_Width(0), m_Height(0)
|
||||||
, m_RedChannelPrecision(0), m_RedData(0)
|
, m_RedChannelPrecision(0), m_RedData(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user