mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-03-12 05:25:23 -07:00
33 lines
670 B
C++
33 lines
670 B
C++
// SPDX-License-Identifier: LicenseRef-AGPL-3.0-only-OpenSSL
|
|
|
|
#ifndef CHIAKI_AVOPENGLFRAMEUPLOADER_H
|
|
#define CHIAKI_AVOPENGLFRAMEUPLOADER_H
|
|
|
|
#include <QObject>
|
|
#include <QOpenGLWidget>
|
|
|
|
#include <chiaki/ffmpegdecoder.h>
|
|
|
|
class StreamSession;
|
|
class AVOpenGLWidget;
|
|
class QSurface;
|
|
|
|
class AVOpenGLFrameUploader: public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
StreamSession *session;
|
|
AVOpenGLWidget *widget;
|
|
QOpenGLContext *context;
|
|
QSurface *surface;
|
|
|
|
private slots:
|
|
void UpdateFrameFromDecoder();
|
|
|
|
public:
|
|
AVOpenGLFrameUploader(StreamSession *session, AVOpenGLWidget *widget, QOpenGLContext *context, QSurface *surface);
|
|
};
|
|
|
|
#endif // CHIAKI_AVOPENGLFRAMEUPLOADER_H
|