Diffstat (limited to 'noncore/multimedia/camera/zcameraio.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/zcameraio.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/noncore/multimedia/camera/zcameraio.cpp b/noncore/multimedia/camera/zcameraio.cpp index 1c449e7..c940b45 100644 --- a/noncore/multimedia/camera/zcameraio.cpp +++ b/noncore/multimedia/camera/zcameraio.cpp | |||
@@ -290,29 +290,22 @@ bool ZCameraIO::snapshot( unsigned char* buf ) | |||
290 | 290 | ||
291 | 291 | ||
292 | void ZCameraIO::captureFrame( int w, int h, int zoom, QImage* image ) | 292 | void ZCameraIO::captureFrame( int w, int h, int zoom, QImage* image ) |
293 | { | 293 | { |
294 | int pw = _width; | 294 | int pw = _width; |
295 | int ph = _height; | 295 | int ph = _height; |
296 | if ( _rot ) | 296 | setCaptureFrame( w, h, zoom*256, _rot ); |
297 | setCaptureFrame( h, w, zoom*256, true ); | ||
298 | else | ||
299 | setCaptureFrame( w, h, zoom*256, false ); | ||
300 | snapshot( image ); | 297 | snapshot( image ); |
301 | setCaptureFrame( pw, ph, _zoom, _rot ); | 298 | setCaptureFrame( pw, ph, _zoom, _rot ); |
302 | } | 299 | } |
303 | 300 | ||
304 | 301 | ||
305 | void ZCameraIO::captureFrame( int w, int h, int zoom, unsigned char* buf ) | 302 | void ZCameraIO::captureFrame( int w, int h, int zoom, unsigned char* buf ) |
306 | { | 303 | { |
307 | //FIXME: this is too slow | 304 | //FIXME: this is too slow |
308 | int pw = _width; | 305 | int pw = _width; |
309 | int ph = _height; | 306 | int ph = _height; |
310 | if ( _rot ) | 307 | setCaptureFrame( w, h, zoom*256, _rot ); |
311 | setCaptureFrame( h, w, zoom*256, true ); | ||
312 | else | ||
313 | setCaptureFrame( w, h, zoom*256, false ); | ||
314 | |||
315 | snapshot( buf ); | 308 | snapshot( buf ); |
316 | setCaptureFrame( pw, ph, _zoom, _rot ); | 309 | setCaptureFrame( pw, ph, _zoom, _rot ); |
317 | } | 310 | } |
318 | 311 | ||