summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Image/ImageDecoder.h
blob: 7de92d6ccd4c2b47573adfcf9c1aed75229cb648 (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-utils/IO/DataBuffer.h>

#include "ImageData.h"

namespace_begin(AsuraEngine)
namespace_begin(Image)

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

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

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

};

namespace_end
namespace_end

#endif