summaryrefslogtreecommitdiffstats
path: root/plugins/pco
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-10-25 12:19:27 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-10-25 12:19:27 +0200
commit907a7e5cf8c624c49a03c837c206bdb582a3f7d5 (patch)
tree2131f678ad438e4a8b4bc915084b5cdecd81f050 /plugins/pco
parentc5c230005390b52fd0d5c067569729bdb2cae869 (diff)
downloaduca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.tar.gz
uca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.tar.bz2
uca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.tar.xz
uca-907a7e5cf8c624c49a03c837c206bdb582a3f7d5.zip
Call pco_request_image only in non-readout mode
This should improve performance by 25 per cent.
Diffstat (limited to 'plugins/pco')
-rw-r--r--plugins/pco/uca-pco-camera.c7
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);