summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libflash
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/libflash') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/libflash/libflashplugin.h4
-rw-r--r--core/multimedia/opieplayer/libflash/libflashpluginimpl.h3
-rw-r--r--core/multimedia/opieplayer/libflash/swf.h2
3 files changed, 3 insertions, 6 deletions
diff --git a/core/multimedia/opieplayer/libflash/libflashplugin.h b/core/multimedia/opieplayer/libflash/libflashplugin.h
index a2f1c42..48b512f 100644
--- a/core/multimedia/opieplayer/libflash/libflashplugin.h
+++ b/core/multimedia/opieplayer/libflash/libflashplugin.h
@@ -15,50 +15,48 @@
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef LIBFLASH_PLUGIN_H 20#ifndef LIBFLASH_PLUGIN_H
21#define LIBFLASH_PLUGIN_H 21#define LIBFLASH_PLUGIN_H
22 22
23 23
24#include <qstring.h> 24#include <qstring.h>
25#include <qapplication.h> 25#include <qapplication.h>
26#include "flash.h" 26#include "flash.h"
27//#include <qpe/mediaplayerplugininterface.h> 27#include <qpe/mediaplayerplugininterface.h>
28#include "../mediaplayerplugininterface.h"
29 28
30 29
31class LibFlashPlugin : public MediaPlayerDecoder { 30class LibFlashPlugin : public MediaPlayerDecoder {
32 31
33public: 32public:
34 LibFlashPlugin(); 33 LibFlashPlugin();
35 ~LibFlashPlugin() { close(); } 34 ~LibFlashPlugin() { close(); }
36 35
37 const char *pluginName() { return "LibFlashPlugin: " PLUGIN_NAME " " FLASH_VERSION_STRING; } 36 const char *pluginName() { return "LibFlashPlugin: " PLUGIN_NAME " " FLASH_VERSION_STRING; }
38 const char *pluginComment() { return "This is the libflash library: " PLUGIN_NAME " " FLASH_VERSION_STRING; } 37 const char *pluginComment() { return "This is the libflash library: " PLUGIN_NAME " " FLASH_VERSION_STRING; }
39 double pluginVersion() { return 1.0; } 38 double pluginVersion() { return 1.0; }
40 39
41 bool isFileSupported( const QString& fileName ) { return fileName.right(4) == ".swf"; } 40 bool isFileSupported( const QString& fileName ) { return fileName.right(4) == ".swf"; }
42 bool open( const QString& fileName ); 41 bool open( const QString& fileName );
43 bool close() { FlashClose( file ); file = NULL; return TRUE; } 42 bool close() { FlashClose( file ); file = NULL; return TRUE; }
44 bool isOpen() { return file != NULL; } 43 bool isOpen() { return file != NULL; }
45 const QString &fileInfo() { return strInfo = qApp->translate( "MediaPlayer", "No Information Available", "media plugin text" ); } 44 const QString &fileInfo() { return strInfo = qApp->translate( "MediaPlayer", "No Information Available", "media plugin text" ); }
46 45
47 // If decoder doesn't support audio then return 0 here 46 // If decoder doesn't support audio then return 0 here
48 int audioStreams() { return 1; } 47 int audioStreams() { return 1; }
49 int audioChannels( int /*stream*/ ) { return 2; } 48 int audioChannels( int /*stream*/ ) { return 2; }
50 int audioFrequency( int /*stream*/ ) { return 44100; } 49 int audioFrequency( int /*stream*/ ) { return 44100; }
51 int audioSamples( int /*stream*/ ) { return 1000000; } 50 int audioSamples( int /*stream*/ ) { return 1000000; }
52int audioBitsPerSample(int) { return 0;}
53 bool audioSetSample( long sample, int stream ); 51 bool audioSetSample( long sample, int stream );
54 long audioGetSample( int stream ); 52 long audioGetSample( int stream );
55 //bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream ); 53 //bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream );
56 //bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream ); 54 //bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream );
57 bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream ); 55 bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream );
58 //bool audioReadSamples( short *output, int channel, long samples, int stream ); 56 //bool audioReadSamples( short *output, int channel, long samples, int stream );
59 //bool audioReReadSamples( short *output, int channel, long samples, int stream ); 57 //bool audioReReadSamples( short *output, int channel, long samples, int stream );
60 58
61 // If decoder doesn't support video then return 0 here 59 // If decoder doesn't support video then return 0 here
62 int videoStreams(); 60 int videoStreams();
63 int videoWidth( int stream ); 61 int videoWidth( int stream );
64 int videoHeight( int stream ); 62 int videoHeight( int stream );
diff --git a/core/multimedia/opieplayer/libflash/libflashpluginimpl.h b/core/multimedia/opieplayer/libflash/libflashpluginimpl.h
index cb8d959..33d8ad2 100644
--- a/core/multimedia/opieplayer/libflash/libflashpluginimpl.h
+++ b/core/multimedia/opieplayer/libflash/libflashpluginimpl.h
@@ -12,26 +12,25 @@
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef LIBFLASH_PLUGIN_IMPL_H 20#ifndef LIBFLASH_PLUGIN_IMPL_H
21#define LIBFLASH_PLUGIN_IMPL_H 21#define LIBFLASH_PLUGIN_IMPL_H
22 22
23 23
24//#include <qpe/mediaplayerplugininterface.h> 24#include <qpe/mediaplayerplugininterface.h>
25#include "../mediaplayerplugininterface.h"
26 25
27 26
28class LibFlashPlugin; 27class LibFlashPlugin;
29 28
30 29
31class LibFlashPluginImpl : public MediaPlayerPluginInterface 30class LibFlashPluginImpl : public MediaPlayerPluginInterface
32{ 31{
33public: 32public:
34 LibFlashPluginImpl(); 33 LibFlashPluginImpl();
35 virtual ~LibFlashPluginImpl(); 34 virtual ~LibFlashPluginImpl();
36 35
37#ifndef QT_NO_COMPONENT 36#ifndef QT_NO_COMPONENT
diff --git a/core/multimedia/opieplayer/libflash/swf.h b/core/multimedia/opieplayer/libflash/swf.h
index 48986cc..5f5e4f7 100644
--- a/core/multimedia/opieplayer/libflash/swf.h
+++ b/core/multimedia/opieplayer/libflash/swf.h
@@ -199,25 +199,25 @@ enum
199extern int shape_size,shape_nb,shaperecord_size,shaperecord_nb,style_size,style_nb; 199extern int shape_size,shape_nb,shaperecord_size,shaperecord_nb,style_size,style_nb;
200 200
201typedef void (*ScanLineFunc)(void *id, long y, long start, long end); 201typedef void (*ScanLineFunc)(void *id, long y, long start, long end);
202 202
203class Bitmap; 203class Bitmap;
204struct FlashMovie; 204struct FlashMovie;
205 205
206extern "C" { 206extern "C" {
207#include "jpeglib.h" 207#include "jpeglib.h"
208}; 208};
209extern "C" { 209extern "C" {
210//#include "zlib.h" 210//#include "zlib.h"
211#include "/opt/qt-2.3.2-embedded/src/3rdparty/zlib/zlib.h" 211#include "../src/3rdparty/zlib/zlib.h"
212}; 212};
213 213
214#include "graphic.h" 214#include "graphic.h"
215#include "character.h" 215#include "character.h"
216#include "bitmap.h" 216#include "bitmap.h"
217#include "shape.h" 217#include "shape.h"
218#include "displaylist.h" 218#include "displaylist.h"
219#include "sound.h" 219#include "sound.h"
220#include "button.h" 220#include "button.h"
221#include "font.h" 221#include "font.h"
222#include "text.h" 222#include "text.h"
223#include "adpcm.h" 223#include "adpcm.h"