You.i Engine
CYIImageDecoderWEBP Class Reference

#include <asset/YiImageDecoderWEBP.h>

Inheritance diagram for CYIImageDecoderWEBP:

Public Member Functions

 CYIImageDecoderWEBP ()
 
virtual ~CYIImageDecoderWEBP ()
 
virtual bool GetImageDimensions (const CYIString &path, uint32_t *pnWidth, uint32_t *pnHeight) override
 
virtual bool IsFormatSupported (const uint8_t *pData, uint32_t nDataSize) override
 
- Public Member Functions inherited from CYIImageDecoder
 CYIImageDecoder (bool bIsAnimationSupported, bool bIsPreallocatedBitmapSupported)
 
virtual ~CYIImageDecoder ()
 
bool IsAnimationSupported ()
 
bool IsPreAllocatedBitmapSupported ()
 
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

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

Constructor & Destructor Documentation

CYIImageDecoderWEBP::CYIImageDecoderWEBP ( )
virtual CYIImageDecoderWEBP::~CYIImageDecoderWEBP ( )
virtual

Member Function Documentation

virtual std::unique_ptr<CYIBitmap> CYIImageDecoderWEBP::DecodeImpl ( const CYIString path,
YI_DECODER_BITMAP_PARAMS pParams 
)
overrideprotectedvirtual

Decode an asset at the specified path.

Implements CYIImageDecoder.

virtual std::unique_ptr<CYIBitmap> CYIImageDecoderWEBP::DecodeImpl ( const uint8_t *  pData,
uint32_t  nDataSize,
YI_DECODER_BITMAP_PARAMS pParams 
)
overrideprotectedvirtual

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

Implements CYIImageDecoder.

virtual bool CYIImageDecoderWEBP::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.

virtual bool CYIImageDecoderWEBP::IsFormatSupported ( const uint8_t *  pData,
uint32_t  nDataSize 
)
overridevirtual

Partially decodes the file content referred to by pData and returns true if the decoder can decode it.

Reimplemented from CYIImageDecoder.


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