Commit 518b7d26 authored by Craig Watson's avatar Craig Watson

Clean-up and removal of duplicate code

parent 11c207d7
This diff is collapsed.
...@@ -26,6 +26,16 @@ extern "C" { ...@@ -26,6 +26,16 @@ extern "C" {
class UBFFmpegVideoEncoderWorker; class UBFFmpegVideoEncoderWorker;
class UBPodcastController; class UBPodcastController;
/**
* This class provides an interface between the podcast controller and the ffmpeg
* back-end.
* It includes all the necessary objects and methods to record video (muxer, audio and
* video streams and encoders, etc) from inputs consisting of raw PCM audio and raw RGBA
* images.
*
* A worker thread is used to encode and write the audio and video on-the-fly.
*/
class UBFFmpegVideoEncoder : public UBAbstractVideoEncoder class UBFFmpegVideoEncoder : public UBAbstractVideoEncoder
{ {
Q_OBJECT Q_OBJECT
...@@ -117,8 +127,8 @@ public: ...@@ -117,8 +127,8 @@ public:
bool isRunning() { return mIsRunning; } bool isRunning() { return mIsRunning; }
void queueFrame(AVFrame* frame); void queueVideoFrame(AVFrame* frame);
void queueAudio(AVFrame *frame); void queueAudioFrame(AVFrame* frame);
public slots: public slots:
void runEncoding(); void runEncoding();
...@@ -128,7 +138,6 @@ signals: ...@@ -128,7 +138,6 @@ signals:
void encodingFinished(); void encodingFinished();
void error(QString message); void error(QString message);
private: private:
void writeLatestVideoFrame(); void writeLatestVideoFrame();
void writeLatestAudioFrame(); void writeLatestAudioFrame();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment