OpenMW
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
MWSound::FFmpeg_Decoder Class Reference

#include <ffmpeg_decoder.hpp>

List of all members.

Public Member Functions

virtual ~FFmpeg_Decoder ()

Private Member Functions

bool getNextPacket ()
bool getAVAudioData ()
size_t readAVAudioData (void *data, size_t length)
virtual void open (const std::string &fname)
virtual void close ()
virtual std::string getName ()
virtual void getInfo (int *samplerate, ChannelConfig *chans, SampleType *type)
virtual size_t read (char *buffer, size_t bytes)
virtual void readAll (std::vector< char > &output)
virtual void rewind ()
virtual size_t getSampleOffset ()
FFmpeg_Decoderoperator= (const FFmpeg_Decoder &rhs)
 FFmpeg_Decoder (const FFmpeg_Decoder &rhs)
 FFmpeg_Decoder ()

Static Private Member Functions

static int readPacket (void *user_data, uint8_t *buf, int buf_size)
static int writePacket (void *user_data, uint8_t *buf, int buf_size)
static int64_t seek (void *user_data, int64_t offset, int whence)

Private Attributes

AVFormatContext * mFormatCtx
AVStream ** mStream
AVPacket mPacket
AVFrame * mFrame
int mFrameSize
int mFramePos
double mNextPts
Ogre::DataStreamPtr mDataStream

Friends

class SoundManager

Constructor & Destructor Documentation


Member Function Documentation

virtual void MWSound::FFmpeg_Decoder::close ( ) [private, virtual]
virtual void MWSound::FFmpeg_Decoder::getInfo ( int *  samplerate,
ChannelConfig chans,
SampleType type 
) [private, virtual]
virtual std::string MWSound::FFmpeg_Decoder::getName ( ) [private, virtual]
virtual size_t MWSound::FFmpeg_Decoder::getSampleOffset ( ) [private, virtual]
virtual void MWSound::FFmpeg_Decoder::open ( const std::string &  fname) [private, virtual]
FFmpeg_Decoder& MWSound::FFmpeg_Decoder::operator= ( const FFmpeg_Decoder rhs) [private]
virtual size_t MWSound::FFmpeg_Decoder::read ( char *  buffer,
size_t  bytes 
) [private, virtual]
virtual void MWSound::FFmpeg_Decoder::readAll ( std::vector< char > &  output) [private, virtual]

Reimplemented from MWSound::Sound_Decoder.

size_t MWSound::FFmpeg_Decoder::readAVAudioData ( void *  data,
size_t  length 
) [private]
static int MWSound::FFmpeg_Decoder::readPacket ( void *  user_data,
uint8_t *  buf,
int  buf_size 
) [static, private]
virtual void MWSound::FFmpeg_Decoder::rewind ( ) [private, virtual]
static int64_t MWSound::FFmpeg_Decoder::seek ( void *  user_data,
int64_t  offset,
int  whence 
) [static, private]
static int MWSound::FFmpeg_Decoder::writePacket ( void *  user_data,
uint8_t *  buf,
int  buf_size 
) [static, private]

Friends And Related Function Documentation

friend class SoundManager [friend]

Member Data Documentation

Ogre::DataStreamPtr MWSound::FFmpeg_Decoder::mDataStream [private]
AVFormatContext* MWSound::FFmpeg_Decoder::mFormatCtx [private]
AVFrame* MWSound::FFmpeg_Decoder::mFrame [private]
AVStream** MWSound::FFmpeg_Decoder::mStream [private]

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