#include <avformatwriter.h>
Public Member Functions | |
| AVFormatWriter () | |
| ~AVFormatWriter () | |
| bool | Init (void) |
| bool | OpenFile (void) |
| bool | CloseFile (void) |
| bool | WriteVideoFrame (VideoFrame *frame) |
| bool | WriteAudioFrame (unsigned char *buf, int fnum, int timecode) |
| bool | WriteTextFrame (int vbimode, unsigned char *buf, int len, int timecode, int pagenr) |
| bool | NextFrameIsKeyFrame (void) |
| bool | ReOpen (QString filename) |
Private Member Functions | |
| AVStream * | AddVideoStream (void) |
| bool | OpenVideo (void) |
| AVStream * | AddAudioStream (void) |
| bool | OpenAudio (void) |
| AVFrame * | AllocPicture (enum PixelFormat pix_fmt) |
| AVRational | GetCodecTimeBase (void) |
Private Attributes | |
| AVFRingBuffer * | m_avfRingBuffer |
| RingBuffer * | m_ringBuffer |
| AVOutputFormat | m_fmt |
| AVFormatContext * | m_ctx |
| AVStream * | m_videoStream |
| AVCodec * | m_avVideoCodec |
| AVStream * | m_audioStream |
| AVCodec * | m_avAudioCodec |
| AVFrame * | m_picture |
| AVFrame * | m_tmpPicture |
| AVPacket * | m_pkt |
| AVFrame * | m_audPicture |
| AVPacket * | m_audPkt |
| unsigned char * | m_videoOutBuf |
| int | m_videoOutBufSize |
| unsigned int * | m_audioSamples |
| unsigned char * | m_audioOutBuf |
| int | m_audioOutBufSize |
| int | m_audioInputFrameSize |
Definition at line 13 of file avformatwriter.h.
| AVFormatWriter::AVFormatWriter | ( | ) |
Definition at line 38 of file avformatwriter.cpp.
| AVFormatWriter::~AVFormatWriter | ( | ) |
Definition at line 59 of file avformatwriter.cpp.
| bool AVFormatWriter::Init | ( | void | ) | [virtual] |
Reimplemented from FileWriterBase.
Definition at line 93 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| bool AVFormatWriter::OpenFile | ( | void | ) | [virtual] |
Reimplemented from FileWriterBase.
Definition at line 192 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| bool AVFormatWriter::CloseFile | ( | void | ) | [virtual] |
Reimplemented from FileWriterBase.
Definition at line 223 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| bool AVFormatWriter::WriteVideoFrame | ( | VideoFrame * | frame | ) | [virtual] |
Reimplemented from FileWriterBase.
Definition at line 248 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| bool AVFormatWriter::WriteAudioFrame | ( | unsigned char * | buf, | |
| int | fnum, | |||
| int | timecode | |||
| ) | [virtual] |
Reimplemented from FileWriterBase.
Definition at line 332 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| bool AVFormatWriter::WriteTextFrame | ( | int | vbimode, | |
| unsigned char * | buf, | |||
| int | len, | |||
| int | timecode, | |||
| int | pagenr | |||
| ) | [virtual] |
Reimplemented from FileWriterBase.
Definition at line 390 of file avformatwriter.cpp.
| bool AVFormatWriter::NextFrameIsKeyFrame | ( | void | ) |
Definition at line 240 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| bool AVFormatWriter::ReOpen | ( | QString | filename | ) |
Definition at line 396 of file avformatwriter.cpp.
Referenced by Transcode::TranscodeFile().
| AVStream * AVFormatWriter::AddVideoStream | ( | void | ) | [private] |
Definition at line 406 of file avformatwriter.cpp.
Referenced by Init().
| bool AVFormatWriter::OpenVideo | ( | void | ) | [private] |
Definition at line 510 of file avformatwriter.cpp.
Referenced by Init().
| AVStream * AVFormatWriter::AddAudioStream | ( | void | ) | [private] |
Definition at line 561 of file avformatwriter.cpp.
Referenced by Init().
| bool AVFormatWriter::OpenAudio | ( | void | ) | [private] |
Definition at line 608 of file avformatwriter.cpp.
Referenced by Init().
| AVFrame * AVFormatWriter::AllocPicture | ( | enum PixelFormat | pix_fmt | ) | [private] |
Definition at line 668 of file avformatwriter.cpp.
Referenced by OpenVideo().
| AVRational AVFormatWriter::GetCodecTimeBase | ( | void | ) | [private] |
Definition at line 694 of file avformatwriter.cpp.
Referenced by AddAudioStream(), and AddVideoStream().
AVFRingBuffer* AVFormatWriter::m_avfRingBuffer [private] |
Definition at line 40 of file avformatwriter.h.
Referenced by OpenFile().
RingBuffer* AVFormatWriter::m_ringBuffer [private] |
Definition at line 41 of file avformatwriter.h.
Referenced by OpenFile(), and ReOpen().
AVOutputFormat AVFormatWriter::m_fmt [private] |
Definition at line 43 of file avformatwriter.h.
Referenced by Init(), and OpenFile().
AVFormatContext* AVFormatWriter::m_ctx [private] |
Definition at line 44 of file avformatwriter.h.
Referenced by AddAudioStream(), AddVideoStream(), CloseFile(), Init(), OpenFile(), OpenVideo(), WriteAudioFrame(), WriteVideoFrame(), and ~AVFormatWriter().
AVStream* AVFormatWriter::m_videoStream [private] |
Definition at line 45 of file avformatwriter.h.
Referenced by Init(), OpenVideo(), WriteAudioFrame(), and WriteVideoFrame().
AVCodec* AVFormatWriter::m_avVideoCodec [private] |
Definition at line 46 of file avformatwriter.h.
Referenced by AddAudioStream(), GetCodecTimeBase(), Init(), and WriteAudioFrame().
AVStream* AVFormatWriter::m_audioStream [private] |
Definition at line 47 of file avformatwriter.h.
Referenced by Init(), OpenAudio(), and WriteAudioFrame().
AVCodec* AVFormatWriter::m_avAudioCodec [private] |
Definition at line 48 of file avformatwriter.h.
Referenced by Init().
AVFrame* AVFormatWriter::m_picture [private] |
Definition at line 49 of file avformatwriter.h.
Referenced by OpenVideo(), and WriteVideoFrame().
AVFrame* AVFormatWriter::m_tmpPicture [private] |
Definition at line 50 of file avformatwriter.h.
Referenced by OpenVideo().
AVPacket* AVFormatWriter::m_pkt [private] |
Definition at line 51 of file avformatwriter.h.
Referenced by Init(), WriteVideoFrame(), and ~AVFormatWriter().
AVFrame* AVFormatWriter::m_audPicture [private] |
Definition at line 52 of file avformatwriter.h.
Referenced by OpenAudio(), and WriteAudioFrame().
AVPacket* AVFormatWriter::m_audPkt [private] |
Definition at line 53 of file avformatwriter.h.
Referenced by Init(), WriteAudioFrame(), and ~AVFormatWriter().
unsigned char* AVFormatWriter::m_videoOutBuf [private] |
Definition at line 54 of file avformatwriter.h.
Referenced by Init(), OpenVideo(), WriteVideoFrame(), and ~AVFormatWriter().
int AVFormatWriter::m_videoOutBufSize [private] |
Definition at line 55 of file avformatwriter.h.
Referenced by OpenVideo().
unsigned int* AVFormatWriter::m_audioSamples [private] |
Definition at line 56 of file avformatwriter.h.
Referenced by OpenAudio().
unsigned char* AVFormatWriter::m_audioOutBuf [private] |
Definition at line 57 of file avformatwriter.h.
Referenced by OpenAudio(), and WriteAudioFrame().
int AVFormatWriter::m_audioOutBufSize [private] |
Definition at line 58 of file avformatwriter.h.
Referenced by OpenAudio(), and WriteAudioFrame().
int AVFormatWriter::m_audioInputFrameSize [private] |
Definition at line 59 of file avformatwriter.h.
Referenced by OpenAudio().
1.6.3