22 #ifndef MTROPOLIS_ASSETS_H 23 #define MTROPOLIS_ASSETS_H 25 #include "mtropolis/data.h" 26 #include "mtropolis/runtime.h" 27 #include "mtropolis/render.h" 31 struct AssetLoaderContext;
39 AssetType getAssetType()
const override;
53 const void *getData()
const;
54 size_t getSize()
const;
71 uint32 compressedSize;
72 uint32 decompressedSize;
73 uint16 decompressedBytesPerRow;
92 ImageFormat imageFormat;
111 void optimize(
Runtime *runtime);
132 static const uint32 kMToonRLECodecID = 0x2e524c45;
133 static const uint32 kMToonRLEKeyframePrefix = 0x524c4520;
134 static const uint32 kMToonRLETemporalFramePrefix = 1;
139 void decompressRLEFrame(
size_t frameIndex);
143 template<
class TSrcNumber, u
int32 TSrcLiteralMask, u
int32 TSrcTransparentSkipMask,
class TDestNumber, u
int32 TDestLiteralMask, u
int32 TDestTransparentSkipMask>
146 template<
class TNumber, u
int32 TLiteralMask, u
int32 TTransparentRowSkipMask>
149 template<
class TDest,
class TSrc>
153 bool _isRLETemporalCompressed;
173 kEncodingUncompressed,
193 AssetType getAssetType()
const override;
195 size_t getStreamIndex()
const;
201 uint32 _filePosition;
213 AssetType getAssetType()
const override;
215 uint32 getMovieDataPos()
const;
216 uint32 getMoovAtomPos()
const;
217 uint32 getMovieDataSize()
const;
220 size_t getStreamIndex()
const;
222 void addDamagedFrame(
int frame);
226 uint32 _movieDataPos;
228 uint32 _movieDataSize;
239 AssetType getAssetType()
const override;
255 ColorDepthMode getOriginalColorDepth()
const;
261 ColorDepthMode _colorDepth;
270 AssetType getAssetType()
const override;
278 ColorDepthMode getColorDepth()
const;
279 uint32 getFilePosition()
const;
280 uint32 getSize()
const;
281 size_t getStreamIndex()
const;
282 ImageFormat getImageFormat()
const;
288 ColorDepthMode _colorDepth;
289 uint32 _filePosition;
292 ImageFormat _imageFormat;
303 AssetType getAssetType()
const override;
308 uint32 _frameDataPosition;
309 uint32 _sizeOfFrameData;
321 AssetType getAssetType()
const override;
323 bool isBitmap()
const;
330 TextAlignment _alignment;
Definition: managed_surface.h:51
Definition: runtime.h:469
Definition: runtime.h:1575
Definition: runtime.h:3182
Definition: asset_factory.h:31