SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 72
2.6.2 Play Video SD 4Ahex - J ascii
Commands (host)
8 bytes
1.- 0x56 (hex), V (ascii). *Video Command.
2.- 0x50 (hex), P (ascii).
3.- X coord high byte (left corner).
4.- X coord low byte.
5.- Y coord high byte (top corner).
6.- Y coord low byte.
7.- Frames to Play high byte.
8.- Frames to Play low byte.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This command calls a video previously allocated on
the SmartGPU 2 and displays it on the screen with the
given point: X(16bit), Y(16bit) as top left corner, If the
video is 320x240 pixels this point must be 0,0 if not, the
video won’t fit on the screen and command will
fail(depends orientation).
User can determine the maximum acceptable X and
Y values with the information obtained when the video
was allocated, the next conditions must always be met:
In Horizontal orientations:
X + VideoWidth <= 320
Y + VideoHeight <= 240
In Vertical orientations:
X + VideoWidth <= 240
Y + VideoHeight <= 320
Any size of video could be called, however user is
responsible that the video fits on the screen with
the X,Y top left corner adjustment.
The parameter Frames to Play, means the desired
frames to play on the screen up from the current video
position, each time this “Play Video SD” command is
called, the current video frame position will advance in
frames the Frames to Play parameter.
If the Frames to Play parameter exceed the Total
Video Frames obtained with “Allocate Video SD”, the
SmartGPU2 will play only the remaining frames and will
return a NAK as response.