summaryrefslogtreecommitdiffstats
path: root/k9decmpeg/kdecmpeg2.h
diff options
context:
space:
mode:
Diffstat (limited to 'k9decmpeg/kdecmpeg2.h')
-rwxr-xr-xk9decmpeg/kdecmpeg2.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/k9decmpeg/kdecmpeg2.h b/k9decmpeg/kdecmpeg2.h
index 525aa27..4476231 100755
--- a/k9decmpeg/kdecmpeg2.h
+++ b/k9decmpeg/kdecmpeg2.h
@@ -24,31 +24,31 @@
#include "mpeg2.h"
#include <stdio.h>
#include <stdlib.h>
-#include <qimage.h>
+#include <tqimage.h>
#include "ac.h"
-#include <qmutex.h>
-#include <qwidget.h>
-#include <qobject.h>
-#include <qthread.h>
-#include <qdatetime.h>
+#include <tqmutex.h>
+#include <tqwidget.h>
+#include <tqobject.h>
+#include <tqthread.h>
+#include <tqdatetime.h>
/**
*@author
*/
class kDecMPEG2;
-class k9DisplayThread:public QThread {
+class k9DisplayThread:public TQThread {
public:
k9DisplayThread(kDecMPEG2 *_dec) {m_dec=_dec;}
- void setImage(QImage _image);
+ void setImage(TQImage _image);
void setRawImage(uchar *_buffer,int _width,int _height,int size);
protected:
kDecMPEG2 *m_dec;
uchar *m_buffer;
int m_size,m_width,m_height;
- QImage m_image;
- QMutex m_mutex;
+ TQImage m_image;
+ TQMutex m_mutex;
bool m_raw;
void run();
@@ -57,8 +57,9 @@ protected:
class k9DecodeThread;
-class kDecMPEG2 : public QObject {
+class kDecMPEG2 : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
kDecMPEG2(k9DecodeThread *_thread);
kDecMPEG2();
@@ -68,7 +69,7 @@ public:
void start();
void stop();
void pause();
- void draw(QImage *image) {emit pixmapReady(image);}
+ void draw(TQImage *image) {emit pixmapReady(image);}
void drawRaw(uchar *_buffer,int width,int height,int size) {emit ppmReady (_buffer,width,height,size);}
void setUseGL(bool _value) {m_useGL = _value;}
@@ -77,12 +78,12 @@ private:
bool m_useGL;
bool m_pause;
k9DecodeThread *m_thread;
- QImage pix;
- QTime m_timer;
+ TQImage pix;
+ TQTime m_timer;
bool m_opened;
int demux_pid;
int demux_track;
- QMutex mutex;
+ TQMutex mutex;
mpeg2dec_t * decoder;
k9DisplayThread *m_display;
int demux (uint8_t * buf, uint8_t * end, int flags);
@@ -92,7 +93,7 @@ private:
void sync();
signals: // Signals
/** No descriptions */
- void pixmapReady(QImage *image);
+ void pixmapReady(TQImage *image);
void ppmReady(uchar *buffer,int width,int height,int size);
};