diff options
| author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-12 13:48:47 -0800 |
|---|---|---|
| committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-12 13:54:03 -0800 |
| commit | c114818dc03b58623469400ae62e2466fbcacafc (patch) | |
| tree | 5f36251a69ac63d01367471257c530333e9526da /camera.h | |
| parent | d7d2032993e49c9d8cfa0fdbd810a3e35d8e8f27 (diff) | |
Add debug statements & rename io helpers
Diffstat (limited to 'camera.h')
| -rw-r--r-- | camera.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -44,7 +44,7 @@ #define CAM_BLOCK_SIZE 32 #define CAM_DELAY 10 #define CAM_SERIAL 0 -#define TTY_TIMEOUT 10 +#define TTY_TIMEOUT 5000 static const char TTY_PATH[] = "/dev/ttyHS0"; @@ -86,6 +86,9 @@ LE_SHARED uint8_t getCompression (Camera *cam); LE_SHARED bool setCompression(Camera *cam, uint8_t c); LE_SHARED bool getPTZ(Camera *cam, uint16_t *w, uint16_t *h, uint16_t *wz, uint16_t *hz, uint16_t *pan, uint16_t *tilt); LE_SHARED bool setPTZ(Camera *cam, uint16_t wz, uint16_t hz, uint16_t pan, uint16_t tilt); +uint8_t getImageBlockSize (int jpgLen); +bool readImageBlock (Camera *cam, FILE *filePtr); +bool readImageToFile (Camera *cam, char *path); LE_SHARED bool snapshotToFile (Camera *cam, char *path, uint8_t imgSize); #endif |
