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:
Wed Jan 20 08:09:15 2016 +0000
Parent:
0:84e4649e7707
Child:
3:841987280a7f
Commit message:
Modify macro definition

Changed in this revision

rga_func.cpp Show annotated file Show diff for this revision Revisions of this file
rga_func.h Show annotated file Show diff for this revision Revisions of this file
--- a/rga_func.cpp	Wed Jan 20 02:35:42 2016 +0000
+++ b/rga_func.cpp	Wed Jan 20 08:09:15 2016 +0000
@@ -22,8 +22,8 @@
 #include "rga_func.h"
 #include "Images/BinaryImage_RZ_A1H.h"
 
-#define ZOOM_SRC_CENTER_X                   IMAGE_WIDTH_ZOOM_FUNC / 2
-#define ZOOM_SRC_CENTER_Y                   IMAGE_HEIGHT_ZOOM_FUNC / 2
+#define ZOOM_SRC_CENTER_X                   (IMAGE_WIDTH_ZOOM_FUNC / 2)
+#define ZOOM_SRC_CENTER_Y                   (IMAGE_HEIGHT_ZOOM_FUNC / 2)
 
 Canvas2D_ContextClass canvas2d;
 
--- a/rga_func.h	Wed Jan 20 02:35:42 2016 +0000
+++ b/rga_func.h	Wed Jan 20 08:09:15 2016 +0000
@@ -31,8 +31,8 @@
 #define IMAGE_HEIGHT_ZOOM_FUNC              233      // Image height of Zoom function
 
 #define DISSOLVE_MAX_NUM                    256
-#define SCROLL_MAX_NUM                      IMAGE_WIDTH_SCROLL_FUNC - IMG_DRAW_WIDTH
-#define ZOOM_MAX_NUM                        IMAGE_HEIGHT_ZOOM_FUNC / 2
+#define SCROLL_MAX_NUM                      (IMAGE_WIDTH_SCROLL_FUNC - IMG_DRAW_WIDTH)
+#define ZOOM_MAX_NUM                        (IMAGE_HEIGHT_ZOOM_FUNC / 2)
 #define ROTATION_MAX_NUM                    360
 #define ACCELERATE_MAX_NUM                  256