diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-10-25 12:19:27 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-10-25 12:19:27 +0200 |
commit | 907a7e5cf8c624c49a03c837c206bdb582a3f7d5 (patch) | |
tree | 2131f678ad438e4a8b4bc915084b5cdecd81f050 | |
parent | c5c230005390b52fd0d5c067569729bdb2cae869 (diff) | |
download | libuca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.tar.gz libuca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.tar.bz2 libuca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.tar.xz libuca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.zip |
Call pco_request_image only in non-readout mode
This should improve performance by 25 per cent.
-rw-r--r-- | plugins/pco/uca-pco-camera.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/pco/uca-pco-camera.c b/plugins/pco/uca-pco-camera.c index 45a24d8..c59c24b 100644 --- a/plugins/pco/uca-pco-camera.c +++ b/plugins/pco/uca-pco-camera.c @@ -583,9 +583,10 @@ uca_pco_camera_grab(UcaCamera *camera, gpointer data, GError **error) pco_read_images(priv->pco, priv->active_segment, priv->current_image, priv->current_image); priv->current_image++; } - - err = pco_request_image(priv->pco); - CHECK_AND_RETURN_VAL_ON_PCO_ERROR (err, FALSE); + else { + err = pco_request_image (priv->pco); + CHECK_AND_RETURN_VAL_ON_PCO_ERROR (err, FALSE); + } priv->last_frame = Fg_getLastPicNumberBlockingEx(priv->fg, priv->last_frame + 1, priv->fg_port, MAX_TIMEOUT, priv->fg_mem); |