21 #ifndef EXPORTTHREAD_H 22 #define EXPORTTHREAD_H 25 #include <QOffscreenSurface> 27 #include <QWaitCondition> 30 struct AVFormatContext;
31 struct AVCodecContext;
40 #include <libavcodec/avcodec.h> 43 #define COMPRESSION_TYPE_CBR 0 44 #define COMPRESSION_TYPE_CFR 1 45 #define COMPRESSION_TYPE_TARGETSIZE 2 46 #define COMPRESSION_TYPE_TARGETBR 3 57 double video_frame_rate;
58 int video_compression_type;
62 int audio_sampling_rate;
78 QOffscreenSurface surface;
84 void progress_changed(
int value, qint64 remaining_ms);
88 bool encode(AVFormatContext* ofmt_ctx, AVCodecContext* codec_ctx, AVFrame* frame, AVPacket* packet, AVStream* stream,
bool rescale);
91 bool setupContainer();
97 AVFormatContext* fmt_ctx;
98 AVStream* video_stream;
100 AVCodecContext* vcodec_ctx;
101 AVFrame* video_frame;
104 AVStream* audio_stream;
106 AVFrame* audio_frame;
108 AVCodecContext* acodec_ctx;
121 QWaitCondition waitCond;
124 #endif // EXPORTTHREAD_H Definition: exportthread.h:72
Definition: exportthread.h:50
Definition: exportthread.h:68
Definition: exportdialog.h:37