added noise effect and drawing nested sequences to texture

This commit is contained in:
itsmattkc
2018-08-28 12:52:15 +10:00
parent e3f1d31a2b
commit 083954cd06
10 changed files with 212 additions and 130 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ Clip::Clip(Sequence* s) :
closing_transition(NULL),
pkt(new AVPacket()),
replaced(false),
texture(NULL)
texture(NULL),
fbo(NULL)
{
reset();
}
+3 -2
View File
@@ -8,6 +8,7 @@
class Cacher;
class Effect;
class Transition;
class QOpenGLFramebufferObject;
struct Sequence;
struct Media;
struct MediaStream;
@@ -80,7 +81,6 @@ struct Clip
AVFrame* frame;
uchar* comp_frame;
int comp_frame_size;
SwsContext* sws_ctx;
bool pkt_written;
bool reached_end;
@@ -99,7 +99,8 @@ struct Clip
QMutex open_lock;
// video playback variables
//SwsContext* sws_ctx;
SwsContext* sws_ctx;
QOpenGLFramebufferObject* fbo;
QOpenGLTexture* texture;
long texture_frame;