struct AVFrame;
struct AVRational;
struct AVPacket;
+class QSurface;
class FFmpegCapture : public bmusb::CaptureInterface
{
public:
- FFmpegCapture(const std::string &filename, unsigned width, unsigned height);
+ FFmpegCapture(const std::string &filename, unsigned width, unsigned height, QSurface *surface);
#ifdef HAVE_SRT
// Takes ownership of the SRT client socket.
- FFmpegCapture(int srt_sock, const std::string &stream_id);
+ FFmpegCapture(int srt_sock, const std::string &stream_id, QSurface *surface);
#endif
~FFmpegCapture();
// -1 is strictly speaking outside the range of the enum, but hopefully, it will be alright.
AVColorSpace last_colorspace = static_cast<AVColorSpace>(-1);
AVChromaLocation last_chroma_location = static_cast<AVChromaLocation>(-1);
+ QSurface *const surface;
};
#endif // !defined(_FFMPEG_CAPTURE_H)