Qt API | Qtopia API | Qtopia Documentation |

# LibMadPlugin Class Reference

The LibMadPlugin class is a wrapper for the libmad library. More...

`#include <libmadplugin.h>`

Inherits MediaPlayerDecoder.

List of all member functions.

## Public Members

- LibMadPlugin ()
- ~LibMadPlugin ()
- virtual const char * pluginName ()
- virtual const char * pluginComment ()
- virtual double pluginVersion ()
- virtual bool isFileSupported ( const QString & )
- virtual bool open ( const QString & )
- virtual bool close ()
- virtual bool isOpen ()
- virtual const QString & fileInfo ()
- 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 )
- bool read ()
- bool decode ( short * output, long samples, long & samplesRead )
- virtual int videoStreams ()
- virtual int videoWidth ( int )
- virtual int videoHeight ( int )
- virtual double videoFrameRate ( int )
- virtual int videoFrames ( int )
- virtual bool videoSetFrame ( long, int )
- virtual long videoGetFrame ( int )
- virtual bool videoReadFrame ( unsigned char **, int, int, int, int, ColorFormat, int )
- virtual bool videoReadScaledFrame ( unsigned char **, int, int, int, int, int, int, ColorFormat, int )
- virtual bool videoReadYUVFrame ( char *, char *, char *, int, int, int, int, int )
- virtual double getTime ()
- virtual bool setSMP ( int )
- virtual bool setMMX ( bool )
- virtual bool supportsAudio ()
- virtual bool supportsVideo ()
- virtual bool supportsYUV ()
- virtual bool supportsMMX ()
- virtual bool supportsSMP ()
- virtual bool supportsStereo ()
- virtual bool supportsScaling ()
- virtual long getPlayTime ()

## Detailed Description

The LibMadPlugin class is a wrapper for the libmad library.

LibMAD is an integer-based MPEG audio decoder that supports all three MPEG Layers, and is used by the MediaPlayer.

The libmad library is distributed under the terms of the GNU General Public License, Version 2. The primary copyright holder is Robert Leslie <rob@mars.org>. More information about the Mad library can be found at http://www.mars.org/home/rob/proj/mpeg/

This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.