⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageresample.h

📁 这个是symbian下的一个蛮庞大的3D游戏源代码!对于学习3D开发的人有很大的帮助!
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -