Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MARY_CAMERA.h
- Revision:
- 17:756fb618c0ed
- Parent:
- 13:210f4bbd0cd6
- Child:
- 19:1d07d6d762a9
--- a/MARY_CAMERA.h Tue Mar 11 05:23:35 2014 +0000 +++ b/MARY_CAMERA.h Tue Mar 11 05:31:41 2014 +0000 @@ -48,19 +48,26 @@ */ +#define CAMERA__PICTSIZE_VGA +//#define CAMERA__PICTSIZE_QCIF + class MARY_CAMERA { public: /** General parameters for MARY_CAMERA */ enum { -#if 0 + +#ifdef CAMERA__PICTSIZE_QCIF PIXEL_PER_LINE = 176, /**< pixels in a line */ LINE_PER_FRAME = 144, /**< pixels in a line */ -#else +#endif + +#ifdef CAMERA__PICTSIZE_VGA PIXEL_PER_LINE = 640, /**< pixels in a line */ LINE_PER_FRAME = 480, /**< pixels in a line */ #endif + BYTE_PER_PIXEL = 2, /**< bytes per pixel */ BYTE_PER_LINE = (PIXEL_PER_LINE * BYTE_PER_PIXEL) /**< data size of 1 line */ };