Plays MJPEG Video using the RGA. THe RGA allows resize of the JPEG file.

Dependencies:   GR-PEACH_video GraphicsFramework LCD_shield_config R_BSP SDBlockDevice_GR_PEACH TLV320_RBSP USBHost_custom

Fork of RGA_HelloWorld by Renesas

Overview

This demo shows how play a MJPEG and WAV file video using the RZA1 hardware RGA, JCU and SSIF. The JCU decodes each MJPEG frame. The SSIF plays the raw WAV file, and the RGA supplies the GUI and resize of the JPEG image.

MJPEG Creation

Requirements

Python Script

SD Card

  • Rename the jpg file to Renesas.jpg and audio file Renesas.wav
  • Download this image file and rename is Background.jpg /media/uploads/zkimike/background.jpg

Files at this revision

API Documentation at this revision

Comitter:
1050186
Date:
Thu Nov 10 01:50:51 2016 +0000
Parent:
5:52c36113e801
Child:
7:8fd684e60d66
Commit message:
Support GCC ARM version.

Changed in this revision

GraphicsFramework.lib Show annotated file Show diff for this revision Revisions of this file
LCD_shield_config.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/GraphicsFramework.lib	Mon Aug 08 07:28:29 2016 +0000
+++ b/GraphicsFramework.lib	Thu Nov 10 01:50:51 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Renesas/code/GraphicsFramework/#5a1c5bffebce
+http://developer.mbed.org/teams/Renesas/code/GraphicsFramework/#c4526298e222
--- a/LCD_shield_config.lib	Mon Aug 08 07:28:29 2016 +0000
+++ b/LCD_shield_config.lib	Thu Nov 10 01:50:51 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/dkato/code/LCD_shield_config/#5bc6a60b8ff5
+http://developer.mbed.org/users/dkato/code/LCD_shield_config/#720a62b44d67
--- a/main.cpp	Mon Aug 08 07:28:29 2016 +0000
+++ b/main.cpp	Thu Nov 10 01:50:51 2016 +0000
@@ -215,6 +215,7 @@
 
     switch (func_name) {
         case RGA_FUNC_DRAW_RECTANGLE:
+        {
             bool key_on = false;
             int cnt;
             int color_cnt = 0;
@@ -275,8 +276,10 @@
                 RGA_Func_DrawRectangle(frmbuf_info, pos_tbl, DRAW_RECTANGLE_CNT_MAX);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         case RGA_FUNC_DRAW_IMAGE:
+        {
             int center_pos_x = 320;
             int center_pos_y = 110;
             while (1) {
@@ -294,8 +297,10 @@
                 RGA_Func_DrawImage(frmbuf_info, center_pos_x, center_pos_y);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         case RGA_FUNC_DISSOLVE:
+        {
             float32_t work_alpha = 0.0f;
             while (1) {
                 /* Get coordinates */
@@ -311,8 +316,10 @@
                 RGA_Func_Dissolve(frmbuf_info, work_alpha);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         case RGA_FUNC_SCROLL:
+        {
             int work_width_pos = 0;
             while (1) {
                 /* Get coordinates */
@@ -328,8 +335,10 @@
                 RGA_Func_Scroll(frmbuf_info, work_width_pos);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         case RGA_FUNC_ZOOM:
+        {
             int work_height_pos = ZOOM_MAX_NUM;
             while (1) {
                 /* Get coordinates */
@@ -345,8 +354,10 @@
                 RGA_Func_Zoom(frmbuf_info,  work_height_pos);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         case RGA_FUNC_ROTATION:
+        {
             graphics_matrix_float_t work_angle = 0;
             while (1) {
                 /* Get coordinates */
@@ -362,8 +373,10 @@
                 RGA_Func_Rotation(frmbuf_info, work_angle);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         case RGA_FUNC_ACCELERATE:
+        {
             int acce_frame_num = 0;
             int animation_timing = 0;
             float32_t work_relative_pos;
@@ -413,7 +426,8 @@
                 RGA_Func_Accelerate(frmbuf_info, animation_timing, work_relative_pos);
                 Update_LCD_Display(frmbuf_info);
             }
-            break;
+        }
+        break;
         default :
             /* Do nothing */
             break;
--- a/mbed-rtos.lib	Mon Aug 08 07:28:29 2016 +0000
+++ b/mbed-rtos.lib	Thu Nov 10 01:50:51 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#6635230e06ba
+http://mbed.org/users/mbed_official/code/mbed-rtos/#3da5f554d8bf
--- a/mbed.bld	Mon Aug 08 07:28:29 2016 +0000
+++ b/mbed.bld	Thu Nov 10 01:50:51 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/f9eeca106725
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf
\ No newline at end of file