summaryrefslogtreecommitdiff
path: root/Source/modules/asura-core/Image/ImageDecoder.h
blob: 6cea8fda590f663b957da327d6174acd6953364f (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
#ifndef _ASURA_ENGINE_IMAGE_DECODER_H_
#define _ASURA_ENGINE_IMAGE_DECODER_H_

#include <asura-base/FileSystem/DataBuffer.h>

#include "ImageData.h"

namespace_begin(AsuraEngine)
namespace_begin(Image)

ASURA_ABSTRACT class ImageDecoder
{
public:
			
	ImageDecoder() {};
	virtual ~ImageDecoder() {};

	///
	/// жڴǷñdecoderѹ
	///
	virtual bool CanDecode(AEFileSystem::DataBuffer& input) = 0;

	///
	/// һڴ棬һѹImage dataѹʧܷnullptr
	///
	virtual void Decode(AEFileSystem::DataBuffer& input, ImageData& target) = 0;

};

namespace_end
namespace_end

#endif