SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 69
The Frames data of a .vid file that SmartGPU 2 can play is composed of VideoWidth x
VideoHeight x totalVideoFrames x 2 bytes, that is:
-Each pixel of video data is composed by 2 bytes with the RGB 565 convention:
R4R3R2R1R0G5G4G3 G2G1G0B4B3B2B1B0
That is:
5bits for red, 6 bits for green, 5bits for blue.
High byte colour: R4R3R2R1R0G5G4G3
Low byte colour: G2G1G0B4B3B2B1B0
-The size of each video frame is the multiplication of VideoWidth x Video Height x 2.
-------------------------------------------------------------------------------------------------------------------
As an example:
A video file of a resolution of 320 x 240 pixels, 23 frames per second and duration of
3 minutes, will be in size: 635,904,012bytes, ~635Mbytes:
-Header = 12 bytes
-Frame Size = 320x240x2 = 153600 bytes
-Frames per second = 23 frames
-Video duration = 3 minutes x 60 seconds = 180 seconds
-Video Total Frames = 23 x 180 frames
So if we multiply (320x240x2 x 180 x 23) + 12 = 635,904,012 bytes.
Is recommended to have blocks of videos of a maximum size of 6 minutes, if more
minutes are needed, user can create a video file sequence and call the videos one after
each other: “video1.vid”, “video2.vid”, etc.