You.i Engine
YiImageDecoderTGA.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_DECODER_TGA_H_
3 #define _YI_DECODER_TGA_H_
4 
5 #include "asset/YiImageDecoder.h"
6 
13 class CYIBitmap;
14 class CYIBitmapPriv;
15 
20 {
21 public:
23  virtual ~CYIImageDecoderTGA();
24 
25  virtual bool GetImageDimensions(const CYIString &path, uint32_t *pnWidth, uint32_t *pnHeight) override;
26 
31  virtual bool IsFormatSupported(const uint8_t *pData, uint32_t nDataSize) override;
32 
33 protected:
34  virtual std::unique_ptr<CYIBitmap> DecodeImpl(const CYIString &path, YI_DECODER_BITMAP_PARAMS *pParams) override;
35 
36  virtual std::unique_ptr<CYIBitmap> DecodeImpl(const uint8_t *fileData, uint32_t nDataSize, YI_DECODER_BITMAP_PARAMS *pParams) override;
37 };
38 
41 #endif // _YI_DECODER_TGA_H_
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 ~CYIImageDecoderTGA()
virtual std::unique_ptr< CYIBitmap > DecodeImpl(const CYIString &path, YI_DECODER_BITMAP_PARAMS *pParams) override
virtual bool IsFormatSupported(const uint8_t *pData, uint32_t nDataSize) override
virtual bool GetImageDimensions(const CYIString &path, uint32_t *pnWidth, uint32_t *pnHeight) override
Image decoder for the TGA file format.
Definition: YiImageDecoderTGA.h:19
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