AVFormatWriter Class Reference

#include <avformatwriter.h>

Inheritance diagram for AVFormatWriter:
FileWriterBase

List of all members.

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

AVFRingBufferm_avfRingBuffer
RingBufferm_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

Detailed Description

Definition at line 13 of file avformatwriter.h.


Constructor & Destructor Documentation

AVFormatWriter::AVFormatWriter (  ) 

Definition at line 38 of file avformatwriter.cpp.

AVFormatWriter::~AVFormatWriter (  ) 

Definition at line 59 of file avformatwriter.cpp.


Member Function Documentation

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().


Member Data Documentation

Definition at line 40 of file avformatwriter.h.

Referenced by OpenFile().

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]
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().

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().

Definition at line 58 of file avformatwriter.h.

Referenced by OpenAudio(), and WriteAudioFrame().

Definition at line 59 of file avformatwriter.h.

Referenced by OpenAudio().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:52 2012 for MythTV by  doxygen 1.6.3