updated exporter to work with new frame flow

This commit is contained in:
itsmattkc
2020-01-08 02:27:47 +11:00
parent c8baf4aa3e
commit b8aabb7e01
15 changed files with 232 additions and 43 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ void Encoder::Open()
}
}
void Encoder::Write(FramePtr frame)
void Encoder::WriteFrame(FramePtr frame)
{
if (open_) {
WriteInternal(frame);
+3 -1
View File
@@ -61,7 +61,7 @@ public:
public slots:
void Open();
void Write(FramePtr frame);
void WriteFrame(FramePtr frame);
virtual void WriteAudio(const AudioRenderingParams& pcm_info, const QString& pcm_filename) = 0;
void Close();
@@ -71,6 +71,8 @@ signals:
void Closed();
void AudioComplete();
protected:
virtual bool OpenInternal() = 0;
virtual void WriteInternal(FramePtr frame) = 0;
+2
View File
@@ -89,6 +89,8 @@ void FFmpegEncoder::WriteAudio(const AudioRenderingParams &pcm_info, const QStri
pcm.close();
}
emit AudioComplete();
}
bool FFmpegEncoder::OpenInternal()