You.i Engine
YiImageDecoderSTU.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_DECODER_STU_H_
3 #define _YI_DECODER_STU_H_
4 
5 #include "asset/YiImageDecoder.h"
6 
12 class CYIBitmap;
13 
18 {
19 public:
21  virtual ~CYIImageDecoderSTU();
22 
23  std::list<int32_t> *GetValidIndecies(const CYIString &path); //this is for the STU viewer, but others may find it useful
24 
25  virtual bool GetImageDimensions(const CYIString &path, uint32_t *pnWidth, uint32_t *pnHeight) override;
26 
27 protected:
29 
30  CYIBitmap *DecodeImpl(const uint8_t *fileData, uint32_t nDataSize, YI_DECODER_BITMAP_PARAMS *pParams);
31 
32 private:
33  CYIBitmap *DoDecompression(void (*seek)(void *, int32_t, int32_t),
34  int32_t (*read)(void *, int32_t, int32_t, void *),
35  int32_t (*tell)(void *),
36  void *dataSource, int32_t depth, CYIBitmap *pBitmap, int32_t nX, int32_t nY, int32_t nIndex);
37 };
38 
41 #endif // _YI_DECODER_STU_H_
Image decoder for the STU file format.
Definition: YiImageDecoderSTU.h:17
std::list< int32_t > * GetValidIndecies(const CYIString &path)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
The core bitmap container class used by You.i Engine.
Definition: YiBitmap.h:20
virtual ~CYIImageDecoderSTU()
virtual bool GetImageDimensions(const CYIString &path, uint32_t *pnWidth, uint32_t *pnHeight) override
CYIBitmap * DecodeImpl(const CYIString &path, YI_DECODER_BITMAP_PARAMS *pParams)
General container for passing parameters to an image decoder.
Definition: YiImageDecoder.h:18
Raster image decoder base class; all raster image decoders should sub-type this class.
Definition: YiImageDecoder.h:41