gizmos and waveforms restored

This commit is contained in:
itsmattkc
2019-01-17 10:56:26 +11:00
parent 37ceca48da
commit 0351af56a8
11 changed files with 186 additions and 95 deletions
+3 -9
View File
@@ -355,20 +355,14 @@ void ExportThread::run() {
}
if (video_enabled) {
do {
// TODO optimize by rendering the next frame while encoding the last
renderer->start_render(nullptr, sequence, nullptr, video_frame->data[0]);
waitCond.wait(&mutex);
if (!continueEncode) break;
} while (renderer->did_texture_fail());
if (!continueEncode) break;
}
/*if (sequence->playhead == start_frame) {
// render first frame
if (video_enabled) {
qDebug() << "FIRST FRAME start video thread";
renderer->start_render(nullptr, sequence, nullptr, video_frame->data[0]);
}
sequence->playhead++;
}*/
// encode last frame while rendering next frame
double timecode_secs = (double) (sequence->playhead-start_frame) / sequence->frame_rate;
if (video_enabled) {
+1 -1
View File
@@ -54,7 +54,7 @@ public:
bool continueEncode;
signals:
void progress_changed(int value, qint64 remaining_ms);
private slots:
public slots:
void wake();
private:
bool encode(AVFormatContext* ofmt_ctx, AVCodecContext* codec_ctx, AVFrame* frame, AVPacket* packet, AVStream* stream, bool rescale);