Diffstat (limited to 'noncore/multimedia/camera/zcameraio.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/zcameraio.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/noncore/multimedia/camera/zcameraio.h b/noncore/multimedia/camera/zcameraio.h index edce143..3352a5e 100644 --- a/noncore/multimedia/camera/zcameraio.h +++ b/noncore/multimedia/camera/zcameraio.h @@ -35,3 +35,4 @@ class ZCameraIO : public QObject XNOFLIP = 0, XFLIP = 4, - YNOFLIP = 0, YFLIP = 8 + YNOFLIP = 0, YFLIP = 8, + AUTOMATICFLIP = -1 }; @@ -43,2 +44,3 @@ class ZCameraIO : public QObject void setReadMode( int = IMAGE | XFLIP | YFLIP ); + void setFlip( int flip ); @@ -49,4 +51,4 @@ class ZCameraIO : public QObject - bool snapshot( unsigned char* ); - bool snapshot( QImage* ); + bool snapshot( QImage* image ); + bool snapshot( unsigned char* buf ); @@ -56,2 +58,3 @@ class ZCameraIO : public QObject void captureFrame( int w, int h, int zoom, QImage* image ); + void captureFrame( int w, int h, int zoom, unsigned char* buf ); @@ -70,2 +73,3 @@ class ZCameraIO : public QObject char _status[4]; + bool _pressed; static ZCameraIO* _instance; @@ -74,2 +78,3 @@ class ZCameraIO : public QObject int _zoom; + int _flip; bool _rot; |