You.i Engine
YiAssetDecoderJPG.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ASSET_DECODER_JPG_H_
3 #define _YI_ASSET_DECODER_JPG_H_
4 
7 #include "utility/YiString.h"
8 
18 {
19 public:
21  {
22  SetDecoder(std::make_unique<CYIImageDecoderJPG>());
23  m_SupportedExtensions = {"jpg", "jpeg"};
24  }
25 
27  {}
28 };
29 
32 #endif // _YI_ASSET_DECODER_JPG_H_
Base class for all specialized raster image decoders.
Definition: YiAssetDecoderImage.h:21
Asset decoder for JPEG image files.
Definition: YiAssetDecoderJPG.h:17
virtual ~CYIAssetDecoderJPG()
Definition: YiAssetDecoderJPG.h:26
std::vector< CYIString > m_SupportedExtensions
Definition: YiAssetDecoder.h:88
CYIAssetDecoderJPG()
Definition: YiAssetDecoderJPG.h:20
void SetDecoder(std::unique_ptr< CYIImageDecoder > pDecoder)