ffconv/ffcpp/Scaler.h

27 lines
445 B
C++

#ifndef FFCONV_SCALER_H
#define FFCONV_SCALER_H
extern "C" {
#include <libswscale/swscale.h>
}
#include "Frame.h"
namespace ffcpp {
class Scaler {
private:
SwsContext* _swsContext;
int _dstHeight;
int _dstWidth;
AVPixelFormat _dstPixFmt;
public:
Scaler(int srcWidth, int srcHeight, AVPixelFormat srcPixFmt, int dstWidth, int dstHeight, AVPixelFormat dstPixFmt);
Frame scale(Frame& inFrame);
};
}
#endif //FFCONV_SCALER_H