From c0b6d29485dad8f39873def7cd890613f60a631b Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 11 May 2003 22:40:20 +0000 Subject: command line capturer now seems to work you can now write yourself a nice webcam application :) --- (limited to 'noncore/multimedia/camera/lib/zcameraio.cpp') diff --git a/noncore/multimedia/camera/lib/zcameraio.cpp b/noncore/multimedia/camera/lib/zcameraio.cpp index c940b45..d59cbbb 100644 --- a/noncore/multimedia/camera/lib/zcameraio.cpp +++ b/noncore/multimedia/camera/lib/zcameraio.cpp @@ -139,6 +139,7 @@ bool ZCameraIO::setCaptureFrame( int width, int height, int zoom, bool rot ) _readlen = 2 * _width * _height; // camera is fixed @ 16 bits per pixel return true; } + owarn << "couldn't write to driver" << oendl; return false; } @@ -215,6 +216,8 @@ bool ZCameraIO::snapshot( QImage* image ) odebug << "finder reversed = " << isFinderReversed() << oendl; odebug << "rotation = " << _rot << oendl; + odebug << "w=" << _width << " h= " << _height << " readlen= " << _readlen << oendl; + int readmode; if ( _flip == -1 ) // AUTO { @@ -291,11 +294,12 @@ bool ZCameraIO::snapshot( unsigned char* buf ) void ZCameraIO::captureFrame( int w, int h, int zoom, QImage* image ) { + int prot = _rot; int pw = _width; int ph = _height; - setCaptureFrame( w, h, zoom*256, _rot ); + setCaptureFrame( w, h, zoom*256, w