summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cameras/pco.c34
-rw-r--r--src/grabbers/me4.c1
-rw-r--r--src/uca-grabber.h1
3 files changed, 27 insertions, 9 deletions
diff --git a/src/cameras/pco.c b/src/cameras/pco.c
index 00ceee5..12b71f7 100644
--- a/src/cameras/pco.c
+++ b/src/cameras/pco.c
@@ -295,7 +295,7 @@ static uint32_t uca_pco_grab(struct uca_camera_priv *cam, char *buffer, void *me
pco_desc_t *pco_d = GET_PCO_DESC(cam);
pco_handle pco = pco_d->pco;
- if (cam->state == UCA_CAM_READOUT && pco_d->type == CAMERATYPE_PCO_DIMAX_STD) {
+ if (cam->state == UCA_CAM_READOUT) {
if (pco_d->current_image == pco_d->num_recorded_images)
return UCA_ERR_NO_MORE_IMAGES;
@@ -389,17 +389,33 @@ uint32_t uca_pco_init(struct uca_camera_priv **cam, struct uca_grabber_priv *gra
/* Prepare frame grabber for recording */
int val = 0;
- if (pco_d->type == CAMERATYPE_PCO_EDGE)
- val = UCA_CL_8BIT_FULL_10;
- else if (pco_d->type == CAMERATYPE_PCO_DIMAX_STD)
- val = UCA_CL_SINGLE_TAP_8;
+ switch (pco_d->type) {
+ case CAMERATYPE_PCO_EDGE:
+ val = UCA_CL_8BIT_FULL_10;
+ break;
+ case CAMERATYPE_PCO_DIMAX_STD:
+ val = UCA_CL_SINGLE_TAP_8;
+ break;
+ case CAMERATYPE_PCO4000:
+ val = UCA_CL_SINGLE_TAP_16;
+ break;
+ default:
+ break;
+ }
grabber->set_property(grabber, UCA_GRABBER_CAMERALINK_TYPE, &val);
val = 0;
- if (pco_d->type == CAMERATYPE_PCO_EDGE)
- val = UCA_FORMAT_GRAY8;
- else if (pco_d->type == CAMERATYPE_PCO_DIMAX_STD)
- val = UCA_FORMAT_GRAY16;
+ switch (pco_d->type) {
+ case CAMERATYPE_PCO_EDGE:
+ val = UCA_FORMAT_GRAY8;
+ break;
+ case CAMERATYPE_PCO_DIMAX_STD:
+ case CAMERATYPE_PCO4000:
+ val = UCA_FORMAT_GRAY16;
+ break;
+ default:
+ break;
+ }
grabber->set_property(grabber, UCA_GRABBER_FORMAT, &val);
val = UCA_TRIGGER_AUTO;
diff --git a/src/grabbers/me4.c b/src/grabbers/me4.c
index a157206..74813d1 100644
--- a/src/grabbers/me4.c
+++ b/src/grabbers/me4.c
@@ -42,6 +42,7 @@ static struct uca_sisofg_map_t uca_to_fg[] = {
{ UCA_FORMAT_GRAY8, FG_GRAY, false },
{ UCA_FORMAT_GRAY16, FG_GRAY16, false },
{ UCA_CL_SINGLE_TAP_8, FG_CL_SINGLETAP_8_BIT, false },
+ { UCA_CL_SINGLE_TAP_16, FG_CL_SINGLETAP_16_BIT, false },
{ UCA_CL_8BIT_FULL_8, FG_CL_8BIT_FULL_8, false },
{ UCA_CL_8BIT_FULL_10, FG_CL_8BIT_FULL_10, false },
{ UCA_TRIGGER_AUTO, FREE_RUN, false },
diff --git a/src/uca-grabber.h b/src/uca-grabber.h
index a350cc0..c502ea5 100644
--- a/src/uca-grabber.h
+++ b/src/uca-grabber.h
@@ -23,6 +23,7 @@ enum uca_grabber_constants {
UCA_FORMAT_GRAY16,
UCA_CL_SINGLE_TAP_8,
+ UCA_CL_SINGLE_TAP_16,
UCA_CL_8BIT_FULL_8,
UCA_CL_8BIT_FULL_10
};