27 lines
470 B
C++
27 lines
470 B
C++
#ifndef FFCONV_RESAMPLER_H
|
|
#define FFCONV_RESAMPLER_H
|
|
|
|
#include "Frame.h"
|
|
|
|
extern "C" {
|
|
#include <libswresample/swresample.h>
|
|
}
|
|
|
|
namespace ffcpp {
|
|
|
|
class Resampler {
|
|
private:
|
|
SwrContext* _swrContext;
|
|
|
|
public:
|
|
Resampler(int inChannelLayout, int inSampleRate, AVSampleFormat inSampleFormat,
|
|
int outChannelLayout, int outSampleRate, AVSampleFormat outSampleFormat);
|
|
~Resampler();
|
|
|
|
Frame Resample(Frame& inFrame);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //FFCONV_RESAMPLER_H
|