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

#include "image_data.h"

namespace AsuraEngine
{
	namespace Graphics
	{

		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;

		};

	}
}

#endif