media node upgrades to reference pixel format

This commit is contained in:
itsmattkc
2019-08-29 12:30:42 +10:00
parent 7dc2290496
commit deff114241
21 changed files with 574 additions and 197 deletions
@@ -0,0 +1,34 @@
#ifndef RENDERERDOWNLOADTHREAD_H
#define RENDERERDOWNLOADTHREAD_H
#include "rendererthreadbase.h"
class RendererDownloadThread : public RendererThreadBase
{
Q_OBJECT
public:
RendererDownloadThread(QOpenGLContext* share_ctx,
const int& width,
const int& height,
const olive::PixelFormat& format,
const olive::RenderMode& mode);
void Queue(RenderTexturePtr texture, const QString &fn);
protected:
virtual void ProcessLoop() override;
private:
GLuint read_buffer_;
QVector<RenderTexturePtr> texture_queue_;
QVector<QString> download_filenames_;
QMutex texture_queue_lock_;
};
using RendererDownloadThreadPtr = std::shared_ptr<RendererDownloadThread>;
#endif // RENDERERDOWNLOADTHREAD_H