imageresample.h

来自「一个symbian 冒险游戏代码」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef _IMAGE_RESAMPLE_H
#define _IMAGE_RESAMPLE_H


#include "stdint.h"
#include "Fix.h"
#include <lang/Array.h>
#include <assert.h>


class ImageResample
{
public:
	ImageResample();
	~ImageResample();

	void		init( int bufferSize );
	void		deinit();

	uint8_t*	getBuffer();
	uint8_t*	getBuffer( int size );

	//Resample from buffer
	void	resampleHalf(	uint8_t* dst,
							const int width, const int height, const int pitch,
							const int sourceWidth, const int sourceHeight, const int sourcePitch,
							const uint16_t* palette, const int paletteEntryCount,
							int sourceFrameHeight = 0 );

	//Resample from a defined source
	void	resampleHalf(	uint8_t* dst, const uint8_t* src,
							const int width, const int height, const int pitch,
							const int sourceWidth, const int sourceHeight, const int sourcePitch,
							const uint16_t* palette, const int paletteEntryCount,
							int sourceFrameHeight = 0 );
private:
	lang::Array<uint8_t>	m_buffer;
};


#endif //_IMAGE_RESAMPLE_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?