From 8c48a8ad1c6153770c24ae2e8a9b0f9efedfc4af Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 23 Mar 2011 09:36:41 +0100 Subject: Some very important person at SiSo decided to have 64-bit frame numbers on 64- bit systems and 32-bit frame numbers on 32-bit systems. This commit changes the API to the former, which means it now takes 1.44x10^10 years to have an overflow at a very slow frame rate of 1000 frames per second. --- src/uca-cam.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/uca-cam.h') diff --git a/src/uca-cam.h b/src/uca-cam.h index d52f390..f12bb12 100644 --- a/src/uca-cam.h +++ b/src/uca-cam.h @@ -156,7 +156,7 @@ typedef uint32_t (*uca_cam_stop_recording) (struct uca_camera *cam); * * \note The meta data parameter is not yet specified but just a place holder. */ -typedef void (*uca_cam_grab_callback) (uint32_t image_number, void *buffer, void *meta_data, void *user); +typedef void (*uca_cam_grab_callback) (uint64_t image_number, void *buffer, void *meta_data, void *user); /** * Register callback for given frame grabber. To actually start receiving @@ -248,7 +248,7 @@ typedef struct uca_camera { enum uca_cam_state state; /**< camera state */ uint32_t frame_width; /**< current frame width */ uint32_t frame_height; /**< current frame height */ - uint32_t current_frame; /**< last grabbed frame number */ + uint64_t current_frame; /**< last grabbed frame number */ uca_cam_grab_callback callback; void *callback_user; /**< user data for callback */ -- cgit v1.2.3