Olive
Public Slots | Signals | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ExportThread Class Reference
Inheritance diagram for ExportThread:

Public Slots

void wake ()
 

Signals

void progress_changed (int value, qint64 remaining_ms)
 

Public Member Functions

 ExportThread (const ExportParams &iparams, const VideoCodecParams &ivparams, QObject *parent=nullptr)
 
void run ()
 

Public Attributes

QOffscreenSurface surface
 
ExportDialoged
 
bool continueEncode
 

Private Member Functions

bool encode (AVFormatContext *ofmt_ctx, AVCodecContext *codec_ctx, AVFrame *frame, AVPacket *packet, AVStream *stream, bool rescale)
 
bool setupVideo ()
 
bool setupAudio ()
 
bool setupContainer ()
 

Private Attributes

ExportParams params
 
VideoCodecParams vcodec_params
 
AVFormatContext * fmt_ctx
 
AVStream * video_stream
 
AVCodec * vcodec
 
AVCodecContext * vcodec_ctx
 
AVFrame * video_frame
 
AVFrame * sws_frame
 
SwsContext * sws_ctx
 
AVStream * audio_stream
 
AVCodec * acodec
 
AVFrame * audio_frame
 
AVFrame * swr_frame
 
AVCodecContext * acodec_ctx
 
AVPacket video_pkt
 
AVPacket audio_pkt
 
SwrContext * swr_ctx
 
bool vpkt_alloc
 
bool apkt_alloc
 
int aframe_bytes
 
int ret
 
char * c_filename
 
QMutex mutex
 
QWaitCondition waitCond
 

The documentation for this class was generated from the following files: