summaryrefslogtreecommitdiffstats
path: root/src/cameras/pco.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:46:39 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:46:39 +0100
commit9088b328b51e685d424fd21817e8aab456d6ab24 (patch)
tree7194af15bd163f408daeb1232a4a1140b40c099d /src/cameras/pco.c
parenta1e34e365b84d5a1c47dbcffa4141303533a55e7 (diff)
downloaduca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.gz
uca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.bz2
uca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.xz
uca-9088b328b51e685d424fd21817e8aab456d6ab24.zip
Fix all warnings issued by -Wall
Diffstat (limited to 'src/cameras/pco.c')
-rw-r--r--src/cameras/pco.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/cameras/pco.c b/src/cameras/pco.c
index 565fd62..9ae94c8 100644
--- a/src/cameras/pco.c
+++ b/src/cameras/pco.c
@@ -15,12 +15,6 @@
#define set_void(p, type, value) { *((type *) p) = (type) value; }
-static uint32_t uca_pco_set_bitdepth(struct uca_camera_t *cam, uint8_t *bitdepth)
-{
- /* TODO: it's not possible via CameraLink so do it via frame grabber */
- return 0;
-}
-
static uint32_t uca_pco_set_exposure(struct uca_camera_t *cam, uint32_t *exposure)
{
uint32_t e, d;
@@ -41,11 +35,6 @@ static uint32_t uca_pco_set_delay(struct uca_camera_t *cam, uint32_t *delay)
return UCA_NO_ERROR;
}
-static uint32_t uca_pco_acquire_image(struct uca_camera_t *cam, void *buffer)
-{
- return UCA_NO_ERROR;
-}
-
static uint32_t uca_pco_destroy(struct uca_camera_t *cam)
{
pco_set_rec_state(GET_PCO(cam), 0);
@@ -223,6 +212,7 @@ uint32_t uca_pco_stop_recording(struct uca_camera_t *cam)
{
if (pco_set_rec_state(GET_PCO(cam), 0) != PCO_NOERROR)
return UCA_ERR_PROP_GENERAL;
+ return UCA_NO_ERROR;
}
uint32_t uca_pco_grab(struct uca_camera_t *cam, char *buffer)
@@ -282,7 +272,7 @@ uint32_t uca_pco_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber)
val = FREE_RUN;
grabber->set_property(grabber, FG_TRIGGERMODE, &val);
- int width, height;
+ uint32_t width, height;
pco_get_actual_size(pco, &width, &height);
uca->frame_width = width;
uca->frame_height = height;