blob: 6f2049a8184206b0bc845adc620288cc40e85149 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef __ASURA_ENGINE_IMAGE_DECODER_H__
#define __ASURA_ENGINE_IMAGE_DECODER_H__
#include <asura-lib-utils/io/data_buffer.h>
#include "image_data.h"
namespace AsuraEngine
{
namespace Graphics
{
class ImageDecoder
{
public:
ImageDecoder();
virtual ~ImageDecoder();
///
/// жڴǷñdecoderѹ
///
virtual bool CanDecode(const AEIO::DataBuffer& buffer) = 0;
///
/// һڴ棬һѹImage dataѹʧܷnullptr
///
virtual void Decode(const AEIO::DataBuffer& buffer, ImageData& data) = 0;
};
}
}
#endif
|