The encoder was moved to its own thread and will transcode the PCM from the audio renderer into the chosen codec while the video frames are still received. The implementation isn't perfect and could use some cleaning up, but it is functional at the moment.
34 lines
825 B
C++
34 lines
825 B
C++
#ifndef EXPORTFORMAT_H
|
|
#define EXPORTFORMAT_H
|
|
|
|
#include <QList>
|
|
#include <QString>
|
|
|
|
class ExportFormat {
|
|
public:
|
|
ExportFormat(const QString& name, const QString& extension, const QString& encoder, const QList<int>& vcodecs, const QList<int>& acodecs) :
|
|
name_(name),
|
|
extension_(extension),
|
|
encoder_(encoder),
|
|
video_codecs_(vcodecs),
|
|
audio_codecs_(acodecs)
|
|
{
|
|
}
|
|
|
|
const QString& name() const {return name_;}
|
|
const QString& extension() const {return extension_;}
|
|
const QString& encoder() const {return encoder_;}
|
|
const QList<int>& video_codecs() const {return video_codecs_;}
|
|
const QList<int>& audio_codecs() const {return audio_codecs_;}
|
|
|
|
private:
|
|
QString name_;
|
|
QString extension_;
|
|
QString encoder_;
|
|
QList<int> video_codecs_;
|
|
QList<int> audio_codecs_;
|
|
|
|
};
|
|
|
|
#endif // EXPORTFORMAT_H
|