You.i Engine
CYIImageDecoderSTU Class Reference

Detailed Description

Image decoder for the STU file format.

#include <asset/YiImageDecoderSTU.h>

Inheritance diagram for CYIImageDecoderSTU:

Public Member Functions

 CYIImageDecoderSTU ()
 
virtual ~CYIImageDecoderSTU ()
 
std::list< int32_t > * GetValidIndecies (const CYIString &path)
 
virtual bool GetImageDimensions (const CYIString &path, uint32_t *pnWidth, uint32_t *pnHeight) override
 
- Public Member Functions inherited from CYIImageDecoder
 CYIImageDecoder (bool bIsAnimationSupported, bool bIsPreallocatedBitmapSupported)
 
virtual ~CYIImageDecoder ()
 
bool IsAnimationSupported ()
 
bool IsPreAllocatedBitmapSupported ()
 
virtual bool IsFormatSupported (const uint8_t *pData, uint32_t nDataSize)
 
std::unique_ptr< CYIBitmapDecode (const uint8_t *pData, uint32_t nDataSize, YI_DECODER_BITMAP_PARAMS *pParams=nullptr)
 
std::unique_ptr< CYIBitmapDecode (const CYIString &path, YI_DECODER_BITMAP_PARAMS *pParams=nullptr)
 

Protected Member Functions

CYIBitmapDecodeImpl (const CYIString &path, YI_DECODER_BITMAP_PARAMS *pParams)
 
CYIBitmapDecodeImpl (const uint8_t *fileData, uint32_t nDataSize, YI_DECODER_BITMAP_PARAMS *pParams)
 
- Protected Member Functions inherited from CYIImageDecoder
void SetMagicByteInformation (uint32_t uMagicByteOffset, const std::vector< const char * > &possibleSequences)
 

Constructor & Destructor Documentation

CYIImageDecoderSTU::CYIImageDecoderSTU ( )
virtual CYIImageDecoderSTU::~CYIImageDecoderSTU ( )
virtual

Member Function Documentation

CYIBitmap* CYIImageDecoderSTU::DecodeImpl ( const CYIString path,
YI_DECODER_BITMAP_PARAMS pParams 
)
protectedvirtual

Decode an asset at the specified path.

Implements CYIImageDecoder.

CYIBitmap* CYIImageDecoderSTU::DecodeImpl ( const uint8_t *  pData,
uint32_t  nDataSize,
YI_DECODER_BITMAP_PARAMS pParams 
)
protectedvirtual

Decode an asset using pre-loaded file data pData and the nDataSize.

Implements CYIImageDecoder.

virtual bool CYIImageDecoderSTU::GetImageDimensions ( const CYIString path,
uint32_t *  pnWidth,
uint32_t *  pnHeight 
)
overridevirtual

Returns true if the image information can be loaded via the asset package path; the width and height of the asset will be returned through the pnWidth and pnHeight parameters.

Reimplemented from CYIImageDecoder.

std::list<int32_t>* CYIImageDecoderSTU::GetValidIndecies ( const CYIString path)

The documentation for this class was generated from the following file: