SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 68
2.6 Video Commands
The SMART GPU 2, unlike other graphic development tools in the market, is the
only embedded graphic processor capable of managing files directly in
FAT/FAT12/FAT16 or FAT32 file systems without any special program/interface or
micro SD rare formats. It is fully compatible with any PC.
Smart GPU 2 can manage video; files with custom extension .vid will be easily
opened and played.
A maximum of 32GBs micro SD memory card is supported, allowing storing
several frames of full screen videos.
Briefly Summary of Commands in this section:
*All of Those next commands always begin with the byte ‘V’-56hex, as
they are Video commands, followed by the next parameters/bytes.
• Allocate Video SD – 41hex ‘A’
• Play Video SD – 50hex ‘P’
• Set Frame Video SD – 46hex ‘F’
• De-allocate Video SD – 44hex ‘D’
A complete tutorial on how to load Videos to the SD card is explained on the
“SmartGPU2VideoCreation.pdf” file, at the SD card file management section.
The SmartGPU 2 uses a special file format to display videos, the extension of the file
must be *.vid, however this isn’t a Microsoft generic standard *.vid file, the .vid video
files that SmartGPU 2 can play must contain and be created as follows:
-Header of the Video File 12 bytes.
-Frames data (videoWidth x videoHeight x totalVideoFrames x 2) bytes.
The 12 bytes Header of a .vid file that SmartGPU 2 can play is composed as next:
-Video Width in pixels – 2 bytes
-Video Height in pixels – 2 bytes
-Frames per Second – 2 bytes
-Total Video Frames – 2 bytes
-Reserved for future use – 2 bytes
-Capital Letter ‘V’ – 1 byte
-Capital Letter ‘I’ – 1 byte