Camera in sample for GR-PEACH. This sample works on GR-LYCHEE besides GR-PEACH.

You are viewing an older revision! See the latest version

Homepage

Camera in sample for GR-PEACH. While USER_BUTTON0 is pressed, it will save the image to the USB memory.

You can select the function in the following.

main.cpp

/**** User Selection *********/
#define VIDEO_INPUT_METHOD     (VIDEO_CVBS)        /* Select  VIDEO_CVBS or VIDEO_CMOS_CAMERA                       */
#define VIDEO_INPUT_FORMAT     (VIDEO_RGB888)      /* Select  VIDEO_YCBCR422 or VIDEO_RGB888 or VIDEO_RGB565        */
#define USE_VIDEO_CH           (0)                 /* Select  0 or 1            If selecting VIDEO_CMOS_CAMERA, should be 0.)               */
#define VIDEO_PAL              (0)                 /* Select  0(NTSC) or 1(PAL) If selecting VIDEO_CVBS, this parameter is not referenced.) */
/*****************************/

If you set the VIDEO_RGB888 to VIDEO_INPUT_FORMAT, the image is saved in the bitmap file. In other cases, the image is saved in the binary file (RAW data).

If you increase the following values, please change the "sct file" and make the size of the NC_BSS section big.
(Reference information : [other]How to change sct file in mbed online compiler)

#define PIXEL_HW               (320u)  /* QVGA */
#define PIXEL_VW               (240u)  /* QVGA */


"sct file" change example.

MBRZA1H.sct

===Bfore===
    RW_DATA_NC 0x60900000 0x00100000
    { * (NC_DATA) }              ; Application RW data Non cached area

    ZI_DATA_NC +0
    { * (NC_BSS) }               ; Application ZI data Non cached area

===After===
    RW_DATA_NC 0x60800000 0x00200000
    { * (NC_DATA) }              ; Application RW data Non cached area

    ZI_DATA_NC +0
    { * (NC_BSS) }               ; Application ZI data Non cached area



All wikipages