summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libmpeg3
Side-by-side diff
Diffstat (limited to 'core/multimedia/opieplayer/libmpeg3') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/libmpeg3/Makefile.in6
-rw-r--r--core/multimedia/opieplayer/libmpeg3/libmpeg3.pro79
-rw-r--r--core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h4
-rw-r--r--core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.h3
4 files changed, 49 insertions, 43 deletions
diff --git a/core/multimedia/opieplayer/libmpeg3/Makefile.in b/core/multimedia/opieplayer/libmpeg3/Makefile.in
index 154f85d..d255e4f 100644
--- a/core/multimedia/opieplayer/libmpeg3/Makefile.in
+++ b/core/multimedia/opieplayer/libmpeg3/Makefile.in
@@ -167,40 +167,42 @@ libmpeg3plugin.o: libmpeg3plugin.cpp \
libmpeg3plugin.h \
libmpeg3.h \
mpeg3private.h \
mpeg3atrack.h \
mpeg3demux.h \
mpeg3title.h \
mpeg3io.h \
mpeg3css.h \
mpeg3private.inc \
audio/mpeg3audio.h \
mpeg3vtrack.h \
video/mpeg3video.h \
- mpeg3protos.h
+ mpeg3protos.h \
+ ../mediaplayerplugininterface.h
libmpeg3pluginimpl.o: libmpeg3pluginimpl.cpp \
libmpeg3plugin.h \
libmpeg3.h \
mpeg3private.h \
mpeg3atrack.h \
mpeg3demux.h \
mpeg3title.h \
mpeg3io.h \
mpeg3css.h \
mpeg3private.inc \
audio/mpeg3audio.h \
mpeg3vtrack.h \
video/mpeg3video.h \
mpeg3protos.h \
+ ../mediaplayerplugininterface.h \
libmpeg3pluginimpl.h
bitstream.o: bitstream.c \
mpeg3private.h \
mpeg3atrack.h \
mpeg3demux.h \
mpeg3title.h \
mpeg3io.h \
mpeg3css.h \
mpeg3private.inc \
audio/mpeg3audio.h \
mpeg3vtrack.h \
@@ -405,25 +407,25 @@ audio/layer2.o: audio/layer2.c \
mpeg3css.h \
mpeg3private.inc \
audio/../libmpeg3.h \
mpeg3private.h \
mpeg3atrack.h \
audio/mpeg3audio.h \
mpeg3vtrack.h \
video/mpeg3video.h \
audio/../mpeg3protos.h \
audio/tables.h
audio/layer3.o: audio/layer3.c \
- audio/huffman.h \
+ huffman.h \
audio/mpeg3audio.h \
audio/ac3.h \
audio/mpeg3real.h \
audio/../bitstream.h \
mpeg3demux.h \
mpeg3title.h \
mpeg3io.h \
mpeg3css.h \
mpeg3private.inc \
audio/../libmpeg3.h \
mpeg3private.h \
mpeg3atrack.h \
diff --git a/core/multimedia/opieplayer/libmpeg3/libmpeg3.pro b/core/multimedia/opieplayer/libmpeg3/libmpeg3.pro
index b1426d1..e50aa4e 100644
--- a/core/multimedia/opieplayer/libmpeg3/libmpeg3.pro
+++ b/core/multimedia/opieplayer/libmpeg3/libmpeg3.pro
@@ -1,42 +1,43 @@
-TEMPLATE = lib
-CONFIG += qt warn_on release
-HEADERS = libmpeg3plugin.h libmpeg3pluginimpl.h
-SOURCES = libmpeg3plugin.cpp libmpeg3pluginimpl.cpp \
- bitstream.c \
- libmpeg3.c \
- mpeg3atrack.c \
- mpeg3css.c \
- mpeg3demux.c \
- mpeg3io.c \
- mpeg3title.c \
- mpeg3vtrack.c \
- audio/ac3.c \
- audio/bit_allocation.c \
- audio/dct.c \
- audio/exponents.c \
- audio/header.c \
- audio/layer2.c \
- audio/layer3.c \
- audio/mantissa.c \
- audio/mpeg3audio.c \
- audio/pcm.c \
- audio/synthesizers.c \
- audio/tables.c \
- video/getpicture.c \
- video/headers.c \
- video/idct.c \
- video/macroblocks.c \
- video/mmxtest.c \
- video/motion.c \
- video/mpeg3video.c \
- video/output.c \
- video/reconstruct.c \
- video/seek.c \
- video/slice.c \
- video/vlc.c
-TARGET = mpeg3plugin
-DESTDIR = ../../plugins/codecs
+TEMPLATE = lib
+CONFIG += qt warn_on release
+HEADERS = libmpeg3plugin.h libmpeg3pluginimpl.h
+SOURCES = libmpeg3plugin.cpp libmpeg3pluginimpl.cpp \
+ bitstream.c \
+ libmpeg3.c \
+ mpeg3atrack.c \
+ mpeg3css.c \
+ mpeg3demux.c \
+ mpeg3io.c \
+ mpeg3title.c \
+ mpeg3vtrack.c \
+ audio/ac3.c \
+ audio/bit_allocation.c \
+ audio/dct.c \
+ audio/exponents.c \
+ audio/header.c \
+ audio/layer2.c \
+ audio/layer3.c \
+ audio/mantissa.c \
+ audio/mpeg3audio.c \
+ audio/pcm.c \
+ audio/synthesizers.c \
+ audio/tables.c \
+ video/getpicture.c \
+ video/headers.c \
+ video/idct.c \
+ video/macroblocks.c \
+ video/mmxtest.c \
+ video/motion.c \
+ video/mpeg3video.c \
+ video/output.c \
+ video/reconstruct.c \
+ video/seek.c \
+ video/slice.c \
+ video/vlc.c
+TARGET = mpeg3plugin
+TMAKE_CC=g++
+DESTDIR = ../../plugins/codecs
INCLUDEPATH += $(OPIEDIR)/include ..
DEPENDPATH += ../$(OPIEDIR)/include ..
LIBS += -lqpe -lpthread -lm
-VERSION = 1.0.0
+VERSION = 1.0.0
diff --git a/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h b/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h
index e0eb930..bd31706 100644
--- a/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h
+++ b/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h
@@ -15,25 +15,26 @@
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef LIBMPEG3_PLUGIN_H
#define LIBMPEG3_PLUGIN_H
#include <qstring.h>
#include <qapplication.h>
#include "libmpeg3.h"
#include "mpeg3protos.h"
-#include <qpe/mediaplayerplugininterface.h>
+//#include <qpe/mediaplayerplugininterface.h>
+#include "../mediaplayerplugininterface.h"
// #define OLD_MEDIAPLAYER_API
class LibMpeg3Plugin : public MediaPlayerDecoder {
public:
LibMpeg3Plugin() { file = NULL; }
~LibMpeg3Plugin() { close(); }
const char *pluginName() { return "LibMpeg3Plugin"; }
@@ -41,24 +42,25 @@ public:
double pluginVersion() { return 1.0; }
bool isFileSupported( const QString& fileName ) { return mpeg3_check_sig( (char *)fileName.latin1() ) == 1; }
bool open( const QString& fileName ) { file = mpeg3_open( (char *)fileName.latin1() ); return file != NULL; }
bool close() { if ( file ) { int r = mpeg3_close( file ); file = NULL; return r == 1; } return FALSE; }
bool isOpen() { return file != NULL; }
const QString &fileInfo() { return strInfo = ""; }
// If decoder doesn't support audio then return 0 here
int audioStreams() { return file ? mpeg3_total_astreams( file ) : 0; }
int audioChannels( int stream ) { return file ? mpeg3_audio_channels( file, stream ) : 0; }
int audioFrequency( int stream ) { return file ? mpeg3_sample_rate( file, stream ) : 0; }
+ int audioBitsPerSample(int) { return 0;}
int audioSamples( int stream ) { return file ? mpeg3_audio_samples( file, stream ) : 0; }
bool audioSetSample( long sample, int stream ) { return file ? mpeg3_set_sample( file, sample, stream) == 1 : FALSE; }
long audioGetSample( int stream ) { return file ? mpeg3_get_sample( file, stream ) : 0; }
#ifdef OLD_MEDIAPLAYER_API
bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream );
bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream );
bool audioReadSamples( short *output, int channel, long samples, int stream );
bool audioReReadSamples( short *output, int channel, long samples, int stream );
#else
bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream );
#endif
diff --git a/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.h b/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.h
index e9926f4..a2f5211 100644
--- a/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.h
+++ b/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.h
@@ -11,25 +11,26 @@
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef LIBMPEG3_PLUGIN_IMPL_H
#define LIBMPEG3_PLUGIN_IMPL_H
-#include <qpe/mediaplayerplugininterface.h>
+//#include <qpe/mediaplayerplugininterface.h>
+#include "../mediaplayerplugininterface.h"
class LibMpeg3Plugin;
class LibMpeg3PluginImpl : public MediaPlayerPluginInterface
{
public:
LibMpeg3PluginImpl();
virtual ~LibMpeg3PluginImpl();
#ifndef QT_NO_COMPONENT