MARMEX_VB test application program. This application works on "mbed NXP LPC1768" only. This application expects to have the MARMEX_VB module on a "MAPLE mini type-B (MARM03-BASE)" baseboard (slot2) with MARMEX_OB module (on slot1)
Dependencies: MARMEX_VB NokiaLCD mbed
This is the library test program.
The program can test features of the library (refer to MARMEX-VB's API document) and can save captured data into BMP file.
Warning!
This test program can run on "mbed NXP LPC1768" only.
Picture : sample of test program operation
The modules of MARMEX-VB and MARMEX-OB are set on the "MAPLE mini type-B (MARM03-BASE)" baseboard.
The image data from camera is mirrored and alpha graphics added by software.
bmp_handler.h@8:86aae677a68b, 2014-06-20 (annotated)
- Committer:
- nxpfan
- Date:
- Fri Jun 20 09:05:45 2014 +0000
- Revision:
- 8:86aae677a68b
- Parent:
- 0:343c01965543
SPI-FIFO operation option added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nxpfan | 0:343c01965543 | 1 | |
nxpfan | 0:343c01965543 | 2 | |
nxpfan | 0:343c01965543 | 3 | #ifndef MBED_BMP_HANDLING__ |
nxpfan | 0:343c01965543 | 4 | #define MBED_BMP_HANDLING__ |
nxpfan | 0:343c01965543 | 5 | |
nxpfan | 0:343c01965543 | 6 | typedef struct alpha_param_st { |
nxpfan | 0:343c01965543 | 7 | int h; |
nxpfan | 0:343c01965543 | 8 | int v; |
nxpfan | 0:343c01965543 | 9 | int byte_per_pixel; |
nxpfan | 0:343c01965543 | 10 | char *buffer; |
nxpfan | 0:343c01965543 | 11 | } |
nxpfan | 0:343c01965543 | 12 | alpha_param; |
nxpfan | 0:343c01965543 | 13 | |
nxpfan | 0:343c01965543 | 14 | int open_BMP( char *file_name, int horizontal_size, int vertical_size ); |
nxpfan | 0:343c01965543 | 15 | void write_BMP( short *p, int length ); |
nxpfan | 0:343c01965543 | 16 | void write_BMP( short *p, int length, char mask ); |
nxpfan | 0:343c01965543 | 17 | void close_BMP( void ); |
nxpfan | 0:343c01965543 | 18 | |
nxpfan | 0:343c01965543 | 19 | char *read_alpha_BMP( char *file_name, alpha_param *azp ); |
nxpfan | 0:343c01965543 | 20 | |
nxpfan | 0:343c01965543 | 21 | #endif |
nxpfan | 0:343c01965543 | 22 |