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
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 3.1
- FFMPEG https://ffmpeg.org/download.html
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
Images/BinaryImage_RZ_A1H.h
- Committer:
- 1050186
- Date:
- 2016-01-20
- Revision:
- 0:84e4649e7707
- Child:
- 2:c7faef0ef374
File content as of revision 0:84e4649e7707:
#ifndef BINARYIMAGE_RZ_A1H_H #define BINARYIMAGE_RZ_A1H_H #ifdef __cplusplus extern "C" { /* Start of C Symbol */ #endif extern const uint8_t RGA_Sample_BinaryImage[ 0x00057DBFuL ]; #define JPEG_jpg_ARGB8888 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00000000 )) #define JPEG_jpg_RGB565 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0000A520 )) #define JPEG_jpg_ARGB1555 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0000FD40 )) #define JPEG_jpg_ARGB4444 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00015560 )) #define JPEG_jpg_YUV422 ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0001AD80 )) #define Flower_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x0001FEC0 )) #define Landscape_jpg_File ((const graphics_image_t*)( RGA_Sample_BinaryImage + 0x00026008 )) #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 )) #ifdef __cplusplus } /* End of C Symbol */ #endif #endif /* BINARYIMAGE_RZ_A1H_H */