From 9e5efd8f669832efacd76c02c69cb71cd469292e Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Thu, 21 Dec 2017 04:22:43 -0800 Subject: Increase buff and block size and update prototypes --- camera.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/camera.h b/camera.h index 37bffcd..fd4c913 100644 --- a/camera.h +++ b/camera.h @@ -40,8 +40,8 @@ #define VC0706_SET_ZOOM 0x52 #define VC0706_GET_ZOOM 0x53 -#define CAM_BUFF_SIZE 100 -#define CAM_BLOCK_SIZE 32 +#define CAM_BUFF_SIZE 200 +#define CAM_BLOCK_SIZE 192 #define CAM_DELAY 10 #define CAM_SERIAL 0 #define CAM_BAUD_RATE 38400 @@ -58,9 +58,9 @@ typedef struct { } Camera; // File stream functions for reading photos -LE_SHARED bool cam_snapshotToFile (Camera *cam, char *path,uint8_t imgSize); -bool cam_readImageToFile (Camera *cam, char *path); -bool cam_readImageBlock (Camera *cam, FILE *filePtr); +LE_SHARED bool cam_snapshotToFile (Camera *cam, const char *path, uint8_t imgSize, char *imgPath); +bool cam_readImageToFile (Camera *cam, const char *path, char *imgPath); +bool cam_readImageBlocks (Camera *cam, FILE *filePtr); uint8_t cam_getImageBlockSize (int jpgLen); // Higher level commands -- cgit v1.2.3