updated resizer
This commit is contained in:
27
lib/danbooru_image_resizer/ConvertToRGB.h
Normal file
27
lib/danbooru_image_resizer/ConvertToRGB.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef CONVERT_TO_RGB_H
|
||||
#define CONVERT_TO_RGB_H
|
||||
|
||||
#include "Filter.h"
|
||||
#include <memory>
|
||||
using namespace std;
|
||||
|
||||
class ConvertToRGB: public Filter
|
||||
{
|
||||
public:
|
||||
ConvertToRGB(auto_ptr<Filter> pCompressor);
|
||||
~ConvertToRGB();
|
||||
|
||||
bool Init(int iSourceWidth, int iSourceHeight, int BPP);
|
||||
bool WriteRow(uint8_t *pNewRow);
|
||||
bool Finish() { return true; }
|
||||
|
||||
const char *GetError() const { return NULL; }
|
||||
|
||||
private:
|
||||
uint8_t *m_pBuffer;
|
||||
auto_ptr<Filter> m_pCompressor;
|
||||
int m_iSourceWidth;
|
||||
int m_iBPP;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user