diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-21 04:22:43 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-21 04:22:43 -0800 |
commit | 9e5efd8f669832efacd76c02c69cb71cd469292e (patch) | |
tree | 09fb9f3fa0e4673791498ddc02d80adf618d30c8 | |
parent | 65d68b0ef41497f262d2cc1c72e1c455a1171099 (diff) |
Increase buff and block size and update prototypes
-rw-r--r-- | camera.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |