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.
Dependencies: MARY_CAMERA NokiaLCD mbed
Diff: bmp_handler.cpp
- Revision:
- 22:d5e24ab4afb7
- Parent:
- 11:149993faf2be
- Child:
- 23:8471197d3096
--- a/bmp_handler.cpp Mon Mar 10 02:11:25 2014 +0000
+++ b/bmp_handler.cpp Tue Mar 11 03:29:01 2014 +0000
@@ -1,4 +1,6 @@
#include "mbed.h" // for mbed
+#include "MARY_CAMERA.h"
+
LocalFileSystem local("local"); // for mbed to access local file system
@@ -59,17 +61,17 @@
#if 1
bmp_header bh = {
0x4D42,
- 176 * 144 * 4 + 54,
+ MARY_CAMERA::PIXEL_PER_LINE * MARY_CAMERA::LINE_PER_FRAME * 4 + 54,
0,
0,
54,
40,
- 176,
- 144,
+ MARY_CAMERA::PIXEL_PER_LINE,
+ MARY_CAMERA::LINE_PER_FRAME,
1,
32,
0,
- 176 * 144 * 4,
+ MARY_CAMERA::PIXEL_PER_LINE * MARY_CAMERA::LINE_PER_FRAME * 4,
2835,
2835,
0,