You.i Engine
YiAssetDecoderBif.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ASSET_DECODER_BIF_H_
3 #define _YI_ASSET_DECODER_BIF_H_
4 
5 
6 #include <asset/YiAssetDecoder.h>
7 #include <asset/YiBifParser.h>
8 
9 class CYIAssetBif;
10 
21 {
22 public:
23 
25  virtual ~CYIAssetDecoderBif();
26 
27  virtual bool SupportsParams(const CYIAssetLoadParams *pDecodeParams) override;
28 
29  virtual std::shared_ptr<CYIAsset> DecodeAsset(const CYIString &path, const CYIAssetLoadParams *pDecodeParams) override;
30 
31  virtual std::shared_ptr<CYIAsset> DecodeAsset(const uint8_t *pData, uint32_t nDataSize, const CYIAssetLoadParams *pDecodeParams) override;
32 
33  virtual bool DecodeAsset(const std::shared_ptr<CYIAsset> &pAsset) override;
34 
35  virtual bool DecodeAsset(const std::shared_ptr<CYIAsset> &pAsset, const uint8_t *pData, uint32_t uDataSize) override;
36 
37  virtual bool IsFormatSupported(const uint8_t *pData, uint32_t nDataSize) override;
38 
39 private:
40 
44  bool PopulateBif(const std::shared_ptr<CYIAssetBif> &pAsset, const CYIString &path, const CYIAssetLoadParams *pDecodeParams);
45  bool PopulateBif(const std::shared_ptr<CYIAssetBif> &pAsset, const uint8_t *pData, uint32_t nDataSize, const CYIAssetLoadParams *pDecodeParams);
46 
48 
49 };
50 
53 #endif // _YI_ASSET_DECODER_BIF_H_
virtual ~CYIAssetDecoderBif()
Asset representing BIF files.
Definition: YiAssetBif.h:21
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
virtual bool SupportsParams(const CYIAssetLoadParams *pDecodeParams) override
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
virtual bool IsFormatSupported(const uint8_t *pData, uint32_t nDataSize) override
Base class for decoders which can accept specialized parameter objects.
Definition: YiAssetLoadParams.h:16
virtual std::shared_ptr< CYIAsset > DecodeAsset(const CYIString &path, const CYIAssetLoadParams *pDecodeParams) override
Base class for all specialized decoders.
Definition: YiAssetDecoder.h:22
Asset decoder for view templates from After Effects; these typically have a ".layout" file extension...
Definition: YiAssetDecoderBif.h:20