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
Committer:
zkimike
Date:
Wed Jan 17 19:02:00 2018 +0000
Revision:
13:0a5bd13f6e7f
Parent:
5:52c36113e801
Plays MJPEG Video on GR-PEACH

Who changed what in which revision?

UserRevisionLine numberNew contents of line
1050186 0:84e4649e7707 1 #ifndef BINARYIMAGE_RZ_A1H_H
1050186 0:84e4649e7707 2 #define BINARYIMAGE_RZ_A1H_H
1050186 0:84e4649e7707 3
1050186 0:84e4649e7707 4 #ifdef __cplusplus
1050186 0:84e4649e7707 5 extern "C" { /* Start of C Symbol */
1050186 0:84e4649e7707 6 #endif
1050186 0:84e4649e7707 7
dkato 5:52c36113e801 8 extern const uint8_t RGA_Sample_BinaryImage[ 0x0004067FuL ];
1050186 0:84e4649e7707 9
dkato 5:52c36113e801 10 #define Flower_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00000000 ))
dkato 5:52c36113e801 11 #define Landscape_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00006148 ))
dkato 5:52c36113e801 12 #define Landscape_wide_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0000AE68 ))
dkato 5:52c36113e801 13 #define TopScrn_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00010EF0 ))
dkato 5:52c36113e801 14 #define RetBtn_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00020BB8 ))
dkato 5:52c36113e801 15 #define decs_swipe_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00022580 ))
dkato 5:52c36113e801 16 #define decs_swipe_side_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x000242E0 ))
dkato 5:52c36113e801 17 #define animetion_timing_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00026E78 ))
dkato 5:52c36113e801 18 #define Crystal_png_ARGB8888 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0002AD00 ))
dkato 5:52c36113e801 19 #define Crystal_png_ARGB1555 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x000338A0 ))
dkato 5:52c36113e801 20 #define Crystal_png_ARGB4444 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00037E80 ))
dkato 5:52c36113e801 21 #define Crystal_png_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0003C460 ))
dkato 5:52c36113e801 22 #define CrystalDither_png_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0003EE5C ))
1050186 0:84e4649e7707 23
1050186 0:84e4649e7707 24 #ifdef __cplusplus
1050186 0:84e4649e7707 25 } /* End of C Symbol */
1050186 0:84e4649e7707 26 #endif
1050186 0:84e4649e7707 27
1050186 0:84e4649e7707 28 #endif /* BINARYIMAGE_RZ_A1H_H */