Web Camera for mbed-os. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE
Dependencies: HttpServer_snapshot_mbed-os LWIPBP3595Interface_STA_for_mbed-os RomRamBlockDevice mbed-rpc
Fork of GR-Boards_WebCamera by
このサンプルは 「GR-LYCHEE」ではじめる電子工作 で紹介しています。
出版時と内容が異ならないよう、各ライブラリはアップデートせずに使用してください。
このサンプルの最新バージョンは下記から入手できます。最新バージョンは本の内容と一部処理が異なります。
https://github.com/d-kato/GR-Boards_WebCamera
Diff: main.cpp
- Revision:
- 14:212f66386982
- Parent:
- 12:6c002b871c4d
- Child:
- 15:eac4c3711aab
--- a/main.cpp Thu Mar 24 12:49:30 2016 +0000 +++ b/main.cpp Tue Apr 19 02:22:08 2016 +0000 @@ -55,10 +55,22 @@ EthernetInterface network; RomRamFileSystem romramfs("romram"); +#if defined(__ICCARM__) +#pragma data_alignment=16 +static uint8_t FrameBuffer_Video[VIDEO_BUFFER_STRIDE * VIDEO_BUFFER_HEIGHT]@ ".mirrorram"; //16 bytes aligned!; +#pragma data_alignment=4 +#else static uint8_t FrameBuffer_Video[VIDEO_BUFFER_STRIDE * VIDEO_BUFFER_HEIGHT]__attribute((section("NC_BSS"),aligned(16))); //16 bytes aligned!; +#endif static volatile int32_t vsync_count = 0; static volatile int32_t vfield_count = 1; +#if defined(__ICCARM__) +#pragma data_alignment=8 +static uint8_t JpegBuffer[2][1024 * 50]@ ".mirrorram"; //8 bytes aligned!; +#pragma data_alignment=4 +#else static uint8_t JpegBuffer[2][1024 * 50]__attribute((section("NC_BSS"),aligned(8))); //8 bytes aligned!; +#endif static size_t jcu_encode_size[2]; static int image_change = 0; JPEG_Converter Jcu;