summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2017-12-21 04:22:43 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2017-12-21 04:22:43 -0800
commit9e5efd8f669832efacd76c02c69cb71cd469292e (patch)
tree09fb9f3fa0e4673791498ddc02d80adf618d30c8
parent65d68b0ef41497f262d2cc1c72e1c455a1171099 (diff)
Increase buff and block size and update prototypes
-rw-r--r--camera.h10
1 files 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