#ifndef _PL_ColorConv_H_
|
#define _PL_ColorConv_H_
|
|
#include "PipeLine.h"
|
#include "MaterialBuffer.h"
|
|
struct PL_ColorConv_Config
|
{
|
int filterMode; // libyuv/scale.h/FilterMode
|
// Used only pm.type==PMT_BYTES
|
int frameType;
|
uint16_t srcWidth;
|
uint16_t srcHeight;
|
PL_ColorConv_Config() :filterMode(0),frameType(0), srcWidth(0), srcHeight(0)
|
{ }
|
};
|
|
class PL_ColorConv : public PipeLineElem
|
{
|
public:
|
PL_ColorConv();
|
virtual ~PL_ColorConv();
|
|
virtual bool init(void* args);
|
virtual void finit();
|
|
virtual bool pay(const PipeMaterial& pm);
|
virtual bool gain(PipeMaterial& pm);
|
|
private:
|
void* internal;
|
};
|
|
PipeLineElem* create_PL_ColorConv();
|
|
#endif
|