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
Revision:
2:c7faef0ef374
Parent:
0:84e4649e7707
Child:
5:52c36113e801
--- a/Images/BinaryImage_RZ_A1H.h	Wed Jan 20 02:35:42 2016 +0000
+++ b/Images/BinaryImage_RZ_A1H.h	Thu Jan 21 10:10:19 2016 +0000
@@ -5,7 +5,7 @@
 extern "C" {  /* Start of C Symbol */
 #endif
 
-extern const uint8_t  RGA_Sample_BinaryImage[ 0x00057DBFuL ];
+extern const uint8_t  RGA_Sample_BinaryImage[ 0x0006053FuL ];
 
 #define  JPEG_jpg_ARGB8888              ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00000000 ))
 #define  JPEG_jpg_RGB565                ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0000A520 ))
@@ -17,11 +17,14 @@
 #define  Landscape_wide_jpg_File        ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0002AD28 ))
 #define  TopScrn_jpg_File               ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00030DB0 ))
 #define  RetBtn_jpg_File                ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00040A78 ))
-#define  Crystal_png_ARGB8888           ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00042440 ))
-#define  Crystal_png_ARGB1555           ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0004AFE0 ))
-#define  Crystal_png_ARGB4444           ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0004F5C0 ))
-#define  Crystal_png_File               ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00053BA0 ))
-#define  CrystalDither_png_File         ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0005659C ))
+#define  decs_swipe_jpg_File            ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00042440 ))
+#define  decs_swipe_side_jpg_File       ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x000441A0 ))
+#define  animetion_timing_jpg_File      ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00046D38 ))
+#define  Crystal_png_ARGB8888           ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0004ABC0 ))
+#define  Crystal_png_ARGB1555           ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00053760 ))
+#define  Crystal_png_ARGB4444           ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00057D40 ))
+#define  Crystal_png_File               ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0005C320 ))
+#define  CrystalDither_png_File         ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0005ED1C ))
 
 #ifdef  __cplusplus
  }  /* End of C Symbol */