Waave
An audio video engine
 All Data Structures Functions Variables Groups Pages
Macros | Functions
Display video frames

Detailed Description

The methods to display the video frames is described in the streaming object. But to display each of them you need to call the WV_refreshVideoFrame when you receive the SDL WV_REFRESH_EVENT

Macros

#define WV_REFRESH_EVENT   SDL_NUMEVENTS - 1

Functions

void WV_refreshVideoFrame (SDL_Event *refreshEvent)
 Display a video frame.

Function Documentation

void WV_refreshVideoFrame ( SDL_Event *  refreshEvent)

Display a video frame.

Parameters:
refreshEventThe reveived refresh event

Display a video frame of a stream using the method discribed in the corresponding streaming object. Call this function each time you receive the WV_REFRESH_EVENT to play video. Use a simple test like this :

SDL_Event event;
while( SDL_PollEvent( &event ) ) {
switch( event.type ) {
case WV_REFRESH_EVENT:
break;
}
}