Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ModPlugin Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/modplug/modplugin.h>

Inheritance diagram for ModPlugin:

Inheritance graph
[legend]
Collaboration diagram for ModPlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModPlugin ()
virtual ~ModPlugin ()
virtual const char * pluginName ()
virtual const char * pluginComment ()
virtual double pluginVersion ()
virtual bool isFileSupported (const QString &file)
virtual bool open (const QString &file)
virtual bool close ()
virtual bool isOpen ()
virtual const QStringfileInfo ()
virtual int audioStreams ()
virtual int audioChannels (int stream)
virtual int audioFrequency (int stream)
virtual int audioSamples (int stream)
virtual bool audioSetSample (long sample, int stream)
virtual long audioGetSample (int stream)
virtual bool audioReadSamples (short *output, int channels, long samples, long &samplesRead, int stream)
virtual int videoStreams ()
virtual int videoWidth (int stream)
virtual int videoHeight (int stream)
virtual double videoFrameRate (int stream)
virtual int videoFrames (int stream)
virtual bool videoSetFrame (long sample, int stream)
virtual long videoGetFrame (int stream)
virtual bool videoReadFrame (unsigned char **outputRows, int inX, int inY, int inW, int inH, ColorFormat colorModel, int stream)
virtual bool videoReadScaledFrame (unsigned char **outputRows, int inX, int inY, int inW, int inH, int outW, int outH, ColorFormat colorModel, int stream)
virtual bool videoReadYUVFrame (char *yOutput, char *uOutput, char *vOutput, int inX, int inY, int inW, int inH, int stream)
virtual double getTime ()
virtual bool setSMP (int cpus)
virtual bool setMMX (bool useMMX)
virtual bool supportsAudio ()
virtual bool supportsVideo ()
virtual bool supportsYUV ()
virtual bool supportsMMX ()
virtual bool supportsSMP ()
virtual bool supportsStereo ()
virtual bool supportsScaling ()

Private Attributes

int m_songTime
int m_maxPosition

Static Private Attributes

static const int s_channels = 2
static const int s_bytesPerSample = 2
static const int s_maxChannels = 128
static const int s_frequency = 44100
static const int s_audioBufferSize = 32768

Constructor & Destructor Documentation

ModPlugin::ModPlugin  ) 
 

Definition at line 26 of file modplugin.cpp.

ModPlugin::~ModPlugin  )  [virtual]
 

Definition at line 30 of file modplugin.cpp.

References close().


Member Function Documentation

int ModPlugin::audioChannels int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 115 of file modplugin.cpp.

References s_channels.

int ModPlugin::audioFrequency int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 120 of file modplugin.cpp.

References s_frequency.

long ModPlugin::audioGetSample int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 137 of file modplugin.cpp.

References CSoundFile::GetCurrentPos(), and s_frequency.

bool ModPlugin::audioReadSamples short *  output,
int  channels,
long  samples,
long &  samplesRead,
int  stream
[virtual]
 

Implements MediaPlayerDecoder.

Definition at line 142 of file modplugin.cpp.

References CSoundFile::Read(), s_bytesPerSample, and s_channels.

int ModPlugin::audioSamples int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 125 of file modplugin.cpp.

References m_songTime, and s_frequency.

bool ModPlugin::audioSetSample long  sample,
int  stream
[virtual]
 

Implements MediaPlayerDecoder.

Definition at line 130 of file modplugin.cpp.

References m_maxPosition, m_songTime, s_frequency, and CSoundFile::SetCurrentPos().

int ModPlugin::audioStreams  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 110 of file modplugin.cpp.

bool ModPlugin::close  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 95 of file modplugin.cpp.

References CSoundFile::Destroy().

Referenced by ~ModPlugin().

const QString & ModPlugin::fileInfo  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 105 of file modplugin.cpp.

References QString::null.

double ModPlugin::getTime  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 212 of file modplugin.cpp.

bool ModPlugin::isFileSupported const QString file  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 50 of file modplugin.cpp.

References QString::fromLatin1(), and i.

bool ModPlugin::isOpen  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 100 of file modplugin.cpp.

References CSoundFile::m_nType, and MOD_TYPE_NONE.

bool ModPlugin::open const QString file  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 68 of file modplugin.cpp.

References CSoundFile::Create(), MemFile::data(), f, CSoundFile::GetMaxPosition(), CSoundFile::GetSongTime(), IO_ReadOnly, m_maxPosition, m_songTime, QFile::open(), s_bytesPerSample, s_channels, s_frequency, CSoundFile::SetResamplingMode(), CSoundFile::SetWaveConfig(), CSoundFile::SetWaveConfigEx(), and SRCMODE_POLYPHASE.

const char * ModPlugin::pluginComment  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 40 of file modplugin.cpp.

const char * ModPlugin::pluginName  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 35 of file modplugin.cpp.

double ModPlugin::pluginVersion  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 45 of file modplugin.cpp.

bool ModPlugin::setMMX bool  useMMX  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 222 of file modplugin.cpp.

bool ModPlugin::setSMP int  cpus  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 217 of file modplugin.cpp.

bool ModPlugin::supportsAudio  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 227 of file modplugin.cpp.

bool ModPlugin::supportsMMX  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 242 of file modplugin.cpp.

bool ModPlugin::supportsScaling  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 257 of file modplugin.cpp.

bool ModPlugin::supportsSMP  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 247 of file modplugin.cpp.

bool ModPlugin::supportsStereo  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 252 of file modplugin.cpp.

bool ModPlugin::supportsVideo  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 232 of file modplugin.cpp.

bool ModPlugin::supportsYUV  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 237 of file modplugin.cpp.

double ModPlugin::videoFrameRate int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 174 of file modplugin.cpp.

int ModPlugin::videoFrames int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 179 of file modplugin.cpp.

long ModPlugin::videoGetFrame int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 189 of file modplugin.cpp.

int ModPlugin::videoHeight int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 169 of file modplugin.cpp.

bool ModPlugin::videoReadFrame unsigned char **  outputRows,
int  inX,
int  inY,
int  inW,
int  inH,
ColorFormat  colorModel,
int  stream
[virtual]
 

Implements MediaPlayerDecoder.

Definition at line 194 of file modplugin.cpp.

bool ModPlugin::videoReadScaledFrame unsigned char **  outputRows,
int  inX,
int  inY,
int  inW,
int  inH,
int  outW,
int  outH,
ColorFormat  colorModel,
int  stream
[virtual]
 

Implements MediaPlayerDecoder.

Definition at line 200 of file modplugin.cpp.

bool ModPlugin::videoReadYUVFrame char *  yOutput,
char *  uOutput,
char *  vOutput,
int  inX,
int  inY,
int  inW,
int  inH,
int  stream
[virtual]
 

Implements MediaPlayerDecoder.

Definition at line 206 of file modplugin.cpp.

bool ModPlugin::videoSetFrame long  sample,
int  stream
[virtual]
 

Implements MediaPlayerDecoder.

Definition at line 184 of file modplugin.cpp.

int ModPlugin::videoStreams  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 159 of file modplugin.cpp.

int ModPlugin::videoWidth int  stream  )  [virtual]
 

Implements MediaPlayerDecoder.

Definition at line 164 of file modplugin.cpp.


Member Data Documentation

int ModPlugin::m_maxPosition [private]
 

Definition at line 84 of file modplugin.h.

Referenced by audioSetSample(), and open().

int ModPlugin::m_songTime [private]
 

Definition at line 83 of file modplugin.h.

Referenced by audioSamples(), audioSetSample(), and open().

const int ModPlugin::s_audioBufferSize = 32768 [static, private]
 

Definition at line 90 of file modplugin.h.

const int ModPlugin::s_bytesPerSample = 2 [static, private]
 

Definition at line 87 of file modplugin.h.

Referenced by audioReadSamples(), and open().

const int ModPlugin::s_channels = 2 [static, private]
 

Definition at line 86 of file modplugin.h.

Referenced by audioChannels(), audioReadSamples(), and open().

const int ModPlugin::s_frequency = 44100 [static, private]
 

Definition at line 89 of file modplugin.h.

Referenced by audioFrequency(), audioGetSample(), audioSamples(), audioSetSample(), and open().

const int ModPlugin::s_maxChannels = 128 [static, private]
 

Definition at line 88 of file modplugin.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:40:39 2005 for OPIE by  doxygen 1.4.2