66 int xPos = (
_width / 2) - 2;
68 int dPos = (yPos * surface.
getWidth() + xPos) * 4;
69 for (
int i = 0; i < 4; i++) {
70 for (
int j = 0; j < 4; j++) {
71 surface.
getData()[dPos + j * 4 + 0] = 0;
72 surface.
getData()[dPos + j * 4 + 1] = 0;
73 surface.
getData()[dPos + j * 4 + 2] = 255;
74 surface.
getData()[dPos + j * 4 + 3] = 255;
Common::ScopedPtr< Graphics::Surface > _surface
The video's surface.
void addTrack(Track *track, bool isExternal=false)
Define a track to be used by this class.
bool _needCopy
Is new frame content available that needs to by copied?
Testing implementation for the VideoDecoder interface.
void initVideo()
Create a surface for video of these dimensions.
Fader(uint32 width, uint32 height, int n)
Utility templates and functions.
The global events manager.
An abstract representation of a video track.
An image surface, in BGRA format.
void decodeNextTrackFrame(VideoTrack &track)
Decode enough data for the next frame.
void drawFrame(Graphics::Surface &surface)
FaderVideoTrack(uint32 width, uint32 height, int n)