returned to AVFilter solution

This commit is contained in:
itsmattkc
2018-10-01 00:03:43 +10:00
parent 8f67b46714
commit c21a21c219
6 changed files with 106 additions and 11 deletions
+1
View File
@@ -29,6 +29,7 @@ Clip::Clip(Sequence* s) :
closing_transition(NULL),
pkt(new AVPacket()),
replaced(false),
filter_graph(NULL),
texture(NULL),
fbo(NULL),
autoscale(config.autoscale_by_default)
+8 -1
View File
@@ -21,6 +21,8 @@ struct AVFrame;
struct AVPacket;
struct SwsContext;
struct SwrContext;
struct AVFilterGraph;
struct AVFilterContext;
class QOpenGLTexture;
struct ClipCache {
@@ -98,8 +100,13 @@ struct Clip
QMutex lock;
QMutex open_lock;
// converters/filters
AVFilterGraph* filter_graph;
AVFilterContext* buffersink_ctx;
AVFilterContext* buffersrc_ctx;
// video playback variables
SwsContext* sws_ctx;
// SwsContext* sws_ctx;
QOpenGLFramebufferObject** fbo;
QOpenGLTexture* texture;
long texture_frame;