#include </home/clem/local/src/opie/noncore/multimedia/camera/lib/zcameraio.h>
Collaboration diagram for ZCameraIO:

Public Types | |
| enum | ReadMode { IMAGE = 0, STATUS = 1, FASTER = 0, BETTER = 2, XNOFLIP = 0, XFLIP = 4, YNOFLIP = 0, YFLIP = 8, AUTOMATICFLIP = -1 } |
Signals | |
| void | shutterClicked () |
Public Member Functions | |
| virtual | ~ZCameraIO () |
| bool | setCaptureFrame (int w, int h, int zoom=256, bool rot=true) |
| bool | setZoom (int zoom=0) |
| void | setReadMode (int=IMAGE|XFLIP|YFLIP) |
| void | setFlip (int flip) |
| bool | isShutterPressed () |
| bool | isAvailable () const |
| bool | isCapturing () const |
| bool | isFinderReversed () const |
| bool | snapshot (QImage *image) |
| bool | snapshot (unsigned char *buf) |
| bool | isOpen () const |
| void | captureFrame (int w, int h, int zoom, QImage *image) |
| void | captureFrame (int w, int h, int zoom, unsigned char *buf) |
Static Public Member Functions | |
| static ZCameraIO * | instance () |
Protected Member Functions | |
| ZCameraIO () | |
| void | clearShutterLatch () |
| void | init () |
| bool | read (char *, int) |
| bool | write (char *, int=0) |
Private Attributes | |
| int | _driver |
| char | _status [4] |
| bool | _pressed |
| int | _height |
| int | _width |
| int | _zoom |
| int | _flip |
| bool | _rot |
| int | _readlen |
| QTime * | _timer |
Static Private Attributes | |
| static ZCameraIO * | _instance = 0 |
|
|
Definition at line 31 of file zcameraio.h. |
|
|
Definition at line 73 of file zcameraio.cpp. References _driver, and setReadMode(). |
|
|
Definition at line 48 of file zcameraio.cpp. References _driver, init(), oendl, oerr, and SHARPZDC. Referenced by instance(). |
|
||||||||||||||||||||
|
Definition at line 308 of file zcameraio.cpp. References _height, _rot, _width, _zoom, setCaptureFrame(), and snapshot(). |
|
||||||||||||||||||||
|
Definition at line 297 of file zcameraio.cpp. References _height, _rot, _width, _zoom, setCaptureFrame(), and snapshot(). |
|
|
Definition at line 177 of file zcameraio.cpp. References write(). Referenced by isShutterPressed(). |
|
|
Definition at line 61 of file zcameraio.cpp. References _timer, oendl, ofatal, setReadMode(), and STATUS. Referenced by ZCameraIO(). |
|
|
Definition at line 37 of file zcameraio.cpp. References odebug, oendl, and ZCameraIO(). Referenced by CameraMainWindow::CameraMainWindow(), Capturer::capture(), CameraMainWindow::changeZoom(), CameraMainWindow::flipMenuItemClicked(), main(), CameraMainWindow::performCapture(), PreviewWidget::PreviewWidget(), PreviewWidget::resizeEvent(), PreviewWidget::timerEvent(), CameraMainWindow::timerEvent(), and CameraMainWindow::zoomMenuItemClicked(). |
|
|
Definition at line 124 of file zcameraio.cpp. References _status. |
|
|
Definition at line 118 of file zcameraio.cpp. References _status. |
|
|
Definition at line 112 of file zcameraio.cpp. References _status. Referenced by snapshot(). |
|
|
Definition at line 83 of file zcameraio.cpp. References _driver. |
|
|
Definition at line 89 of file zcameraio.cpp. References _pressed, _status, _timer, clearShutterLatch(), QTime::elapsed(), and QTime::start(). Referenced by setReadMode(). |
|
||||||||||||
|
Definition at line 183 of file zcameraio.cpp. References _driver, QTime::elapsed(), odebug, oendl, QTime::start(), and t. Referenced by setReadMode(), and snapshot(). |
|
||||||||||||||||||||
|
Definition at line 130 of file zcameraio.cpp. References _height, _readlen, _rot, _width, _zoom, odebug, oendl, owarn, and write(). Referenced by captureFrame(), and setZoom(). |
|
|
Definition at line 171 of file zcameraio.cpp. References _flip. |
|
|
Definition at line 155 of file zcameraio.cpp. References _status, isShutterPressed(), read(), shutterClicked(), STATUS, and write(). Referenced by init(), snapshot(), and ~ZCameraIO(). |
|
|
Definition at line 149 of file zcameraio.cpp. References _height, _rot, _width, and setCaptureFrame(). |
|
|
Referenced by setReadMode(). |
|
|
Definition at line 267 of file zcameraio.cpp. References _flip, _readlen, _rot, IMAGE, isFinderReversed(), odebug, oendl, read(), setReadMode(), STATUS, XFLIP, and YFLIP. |
|
|
Definition at line 214 of file zcameraio.cpp. References _flip, _height, _readlen, _rot, _width, buf, i, IMAGE, isFinderReversed(), odebug, oendl, p, read(), setReadMode(), STATUS, XFLIP, and YFLIP. Referenced by captureFrame(). |
|
||||||||||||
|
Definition at line 203 of file zcameraio.cpp. References _driver, odebug, oendl, and write(). Referenced by clearShutterLatch(), setCaptureFrame(), and setReadMode(). |
|
|
Definition at line 72 of file zcameraio.h. Referenced by isOpen(), read(), write(), ZCameraIO(), and ~ZCameraIO(). |
|
|
Definition at line 79 of file zcameraio.h. Referenced by setFlip(), and snapshot(). |
|
|
Definition at line 76 of file zcameraio.h. Referenced by captureFrame(), setCaptureFrame(), setZoom(), and snapshot(). |
|
|
Definition at line 35 of file zcameraio.cpp. |
|
|
Definition at line 74 of file zcameraio.h. Referenced by isShutterPressed(). |
|
|
Definition at line 81 of file zcameraio.h. Referenced by setCaptureFrame(), and snapshot(). |
|
|
Definition at line 80 of file zcameraio.h. Referenced by captureFrame(), setCaptureFrame(), setZoom(), and snapshot(). |
|
|
Definition at line 73 of file zcameraio.h. Referenced by isAvailable(), isCapturing(), isFinderReversed(), isShutterPressed(), and setReadMode(). |
|
|
Definition at line 83 of file zcameraio.h. Referenced by init(), and isShutterPressed(). |
|
|
Definition at line 77 of file zcameraio.h. Referenced by captureFrame(), setCaptureFrame(), setZoom(), and snapshot(). |
|
|
Definition at line 78 of file zcameraio.h. Referenced by captureFrame(), and setCaptureFrame(). |
1.4.2