summaryrefslogtreecommitdiffstats
path: root/src/barcode/barcode_v4l.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/barcode/barcode_v4l.h')
-rw-r--r--src/barcode/barcode_v4l.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/barcode/barcode_v4l.h b/src/barcode/barcode_v4l.h
index f0cde90..3ab1a32 100644
--- a/src/barcode/barcode_v4l.h
+++ b/src/barcode/barcode_v4l.h
@@ -33,8 +33,8 @@
//#include <linux/videodev2.h>
#include <linux/videodev.h>
-#include <qstring.h>
-#include <qimage.h>
+#include <tqstring.h>
+#include <tqimage.h>
namespace barcodeRecognition {
@@ -72,7 +72,7 @@ public:
virtual ~video_converter() {;}
virtual void init( ng_video_fmt* ) {;}
virtual void exit() {;}
- virtual void frame( QByteArray*, const QByteArray*, ng_video_fmt ) {;}
+ virtual void frame( TQByteArray*, const TQByteArray*, ng_video_fmt ) {;}
int fmtid_in() {return m_fmtid_in;}
int fmtid_out() {return m_fmtid_out;}
protected:
@@ -83,46 +83,46 @@ class yuv422p_to_rgb24 : public video_converter
{
public:
yuv422p_to_rgb24() {m_fmtid_in=VIDEO_YUV422P; m_fmtid_out=VIDEO_RGB24;}
- virtual void frame( QByteArray *, const QByteArray *, ng_video_fmt ) {;}
+ virtual void frame( TQByteArray *, const TQByteArray *, ng_video_fmt ) {;}
};
class yuv422_to_rgb24 : public video_converter
{
public:
yuv422_to_rgb24() {m_fmtid_in=VIDEO_YUYV; m_fmtid_out=VIDEO_RGB24;}
- virtual void frame( QByteArray *, const QByteArray *, ng_video_fmt ) {;}
+ virtual void frame( TQByteArray *, const TQByteArray *, ng_video_fmt ) {;}
};
class yuv420p_to_rgb24 : public video_converter
{
public:
yuv420p_to_rgb24() {m_fmtid_in=VIDEO_YUV420P; m_fmtid_out=VIDEO_RGB24;}
- virtual void frame( QByteArray *, const QByteArray *, ng_video_fmt );
+ virtual void frame( TQByteArray *, const TQByteArray *, ng_video_fmt );
};
class ng_vid_driver
{
public:
- static ng_vid_driver *createDriver( QString device );
+ static ng_vid_driver *createDriver( TQString device );
static int xioctl( int fd, int cmd, void *arg );
/* open/close */
- virtual bool open2( QString device ) = 0;
+ virtual bool open2( TQString device ) = 0;
virtual void close() = 0;
/* attributes */
- virtual QString get_devname() {return m_name;}
+ virtual TQString get_devname() {return m_name;}
virtual int capabilities() = 0;
/* capture */
virtual bool setformat( ng_video_fmt *fmt ) = 0;
- virtual QByteArray* getimage2() = 0; /* single image */
+ virtual TQByteArray* getimage2() = 0; /* single image */
// video converter
static void register_video_converter( video_converter *conv );
static video_converter *find_video_converter( int out, int in );
protected:
- QString m_name;
- static QPtrList<video_converter> m_converter;
+ TQString m_name;
+ static TQPtrList<video_converter> m_converter;
};
@@ -131,13 +131,13 @@ class barcode_v4l
public:
barcode_v4l();
~barcode_v4l();
- QImage grab_one2();
+ TQImage grab_one2();
bool isOpen();
protected:
bool grab_init();
- QString m_devname;
+ TQString m_devname;
int m_grab_width, m_grab_height;
ng_vid_driver *m_drv;
ng_video_fmt m_fmt, m_fmt_drv;
@@ -152,8 +152,8 @@ public:
ng_vid_driver_v4l();
/* open/close */
- //virtual bool open( QString device );
- virtual bool open2( QString device );
+ //virtual bool open( TQString device );
+ virtual bool open2( TQString device );
virtual void close();
/* attributes */
@@ -162,11 +162,11 @@ public:
/* capture */
virtual bool setformat( ng_video_fmt *fmt );
//virtual ng_video_buf* getimage(); /* single image */
- virtual QByteArray* getimage2(); /* single image */
+ virtual TQByteArray* getimage2(); /* single image */
protected:
bool read_setformat( ng_video_fmt *fmt );
- QByteArray* read_getframe2();
+ TQByteArray* read_getframe2();
void *m_drv;
int m_fd;
video_capability m_capability;