📄 imageresample.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 + -