mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-16 10:03:35 -07:00
Move Frame Uploader to Thread
This commit is contained in:
parent
3358759aab
commit
679af22f6d
4 changed files with 37 additions and 7 deletions
|
@ -23,6 +23,7 @@
|
|||
|
||||
class AVOpenGLWidget;
|
||||
class VideoDecoder;
|
||||
class QSurface;
|
||||
|
||||
class AVOpenGLFrameUploader: public QObject
|
||||
{
|
||||
|
@ -31,12 +32,14 @@ class AVOpenGLFrameUploader: public QObject
|
|||
private:
|
||||
VideoDecoder *decoder;
|
||||
AVOpenGLWidget *widget;
|
||||
QOpenGLContext *context;
|
||||
QSurface *surface;
|
||||
|
||||
private slots:
|
||||
void UpdateFrame();
|
||||
|
||||
public:
|
||||
AVOpenGLFrameUploader(VideoDecoder *decoder, AVOpenGLWidget *widget);
|
||||
AVOpenGLFrameUploader(VideoDecoder *decoder, AVOpenGLWidget *widget, QOpenGLContext *context, QSurface *surface);
|
||||
};
|
||||
|
||||
#endif // CHIAKI_AVOPENGLFRAMEUPLOADER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue