00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef LIBTREMOR_PLUGIN_H
00022 #define LIBTREMOR_PLUGIN_H
00023
00024
00025 #include <qstring.h>
00026 #include <qpe/mediaplayerplugininterface.h>
00027
00028
00029 class LibTremorPluginData;
00030
00031
00032 class LibTremorPlugin : public MediaPlayerDecoder {
00033
00034 public:
00035 LibTremorPlugin();
00036 ~LibTremorPlugin();
00037
00038 const char *pluginName() { return "LibTremorPlugin"; }
00039 const char *pluginComment() { return "This is the Tremor library that has been wrapped as a plugin"; }
00040 double pluginVersion() { return 1.0; }
00041
00042 bool isFileSupported( const QString& );
00043 bool open( const QString& );
00044 bool close();
00045 bool isOpen();
00046 const QString &fileInfo();
00047
00048
00049 int audioStreams();
00050 int audioChannels( int stream );
00051 int audioFrequency( int stream );
00052 int audioSamples( int stream );
00053 bool audioSetSample( long sample, int stream );
00054 long audioGetSample( int stream );
00055 bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream );
00056
00057
00058
00059 int videoStreams() { return 0; }
00060 int videoWidth( int ) { return 0; }
00061 int videoHeight( int ) { return 0; }
00062 double videoFrameRate( int ) { return 0.0; }
00063 int videoFrames( int ) { return 0; }
00064 bool videoSetFrame( long, int ) { return FALSE; }
00065 long videoGetFrame( int ) { return 0; }
00066 bool videoReadFrame( unsigned char **, int, int, int, int, ColorFormat, int ) { return FALSE; }
00067 bool videoReadScaledFrame( unsigned char **, int, int, int, int, int, int, ColorFormat, int ) { return FALSE; }
00068 bool videoReadYUVFrame( char *, char *, char *, int, int, int, int, int ) { return FALSE; }
00069
00070
00071 double getTime();
00072
00073
00074 bool setSMP( int ) { return FALSE; }
00075 bool setMMX( bool ) { return FALSE; }
00076
00077
00078 bool supportsAudio() { return TRUE; }
00079 bool supportsVideo() { return FALSE; }
00080 bool supportsYUV() { return FALSE; }
00081 bool supportsMMX() { return TRUE; }
00082 bool supportsSMP() { return FALSE; }
00083 bool supportsStereo() { return TRUE; }
00084 bool supportsScaling() { return FALSE; }
00085
00086 long getPlayTime() { return -1; }
00087
00088 private:
00089 LibTremorPluginData *d;
00090
00091 };
00092
00093
00094 #endif