all repos — mgba @ cf15ea91d7743dac546f4bfed2f305c4fd5e6216

mGBA Game Boy Advance Emulator

src/platform/qt/VideoDumper.h (view raw)

 1/* Copyright (c) 2013-2017 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef QGBA_VIDEO_DUMPER
 7#define QGBA_VIDEO_DUMPER
 8#include <QAbstractVideoSurface>
 9
10namespace QGBA {
11
12class VideoDumper : public QAbstractVideoSurface {
13Q_OBJECT
14
15public:
16	VideoDumper(QObject* parent = nullptr);
17
18	bool present(const QVideoFrame& frame) override;
19	QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType type = QAbstractVideoBuffer::NoHandle) const override;
20
21signals:
22	void imageAvailable(const QImage& image);
23};
24
25}
26
27#endif