5 #include <QOffscreenSurface> 7 #include <QWaitCondition> 10 struct AVFormatContext;
11 struct AVCodecContext;
20 #include <libavcodec/avcodec.h> 23 #define COMPRESSION_TYPE_CBR 0 24 #define COMPRESSION_TYPE_CFR 1 25 #define COMPRESSION_TYPE_TARGETSIZE 2 26 #define COMPRESSION_TYPE_TARGETBR 3 37 double video_frame_rate;
38 int video_compression_type;
42 int audio_sampling_rate;
58 QOffscreenSurface surface;
64 void progress_changed(
int value, qint64 remaining_ms);
68 bool encode(AVFormatContext* ofmt_ctx, AVCodecContext* codec_ctx, AVFrame* frame, AVPacket* packet, AVStream* stream,
bool rescale);
71 bool setupContainer();
77 AVFormatContext* fmt_ctx;
78 AVStream* video_stream;
80 AVCodecContext* vcodec_ctx;
84 AVStream* audio_stream;
88 AVCodecContext* acodec_ctx;
101 QWaitCondition waitCond;
104 #endif // EXPORTTHREAD_H Definition: exportthread.h:52
Definition: exportthread.h:30
Definition: exportthread.h:48
Definition: exportdialog.h:17