Camera Support in Sparklet

It is possible to leverage the camera support in RGL. For this, it should be enabled via sgui_rh850_enable_camera along with necessary camera memory. Typical code looks like:

 1void sparklet_task(void)
 2{
 3  sgui_rh850_enable_camera ();
 4  //Initialize memory regions and heaps
 5  sgui_rh850_mem_init( (uint32_t)loc_LocalHeap, LOCAL_NUM_BLOCKS, LOCAL_BLOCK_SIZE,\
 6  VRAM_BASE, VRAM_NUM_BLOCKS, VRAM_BLOCK_SIZE, \
 7  SDRAM_BASE, SDRAM_NUM_BLOCKS, SDRAM_BLOCK_SIZE, \
 8  CAMERA_BASE, CAMERA_BLOCK_SIZE, CAPTURE_BUF);
 9  shal_init_signal();
10  sgui_init ();
11  sgui_event_manager_init ();
12  rs_exec_init ();
13  sgui_screens_init ();
14  sgui_sparklet_enable (1);
15  while (1)
16   {
17     sgui_process ();
18     rs_exec_process();
19   }
20}

Please note that, sgui_rh850_enable_camera() has to be executed before sgui_init() .