all repos — mgba @ c188e77b15daf35c2a4f0f85959119f8007c672f

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#pragma once
 7
 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}