summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/image/image_decoder.h
blob: 30e65d3826276f2619b47f2e4a51f7ee46754873 (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/data_buffer.h>

#include "image_data.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