fg_aviplay()

Win32 DirectX Fastgraph/Light

Prototype

int fg_aviplay (void *context, int frames, int flags);

Function fg_aviplay (context() As Any, ByVal frames As Long, ByVal flags As Long) As Long

function fg_aviplay (var context; frames, flags : integer) : integer;

Description

The fg_aviplay() function plays the next one or more individual frames in an AVI file that was previously opened with fg_aviopen().

Parameters

context is the name of a 48-byte buffer containing the AVI file context descriptor.

frames is the number of frames to play from the AVI file, starting from the current file position.

flags is a series of flags that controls how the AVI is played:

Flag

Meaning

FG_AT_XY

If specified, play the AVI file relative to the current graphics position. If not, play it relative to (0,0).

FG_IGNOREAVIPALETTE

If specified, play the AVI file using the current palette. If not, use the palette values stored in the AVI file. Not meaningful for high color or true color AVI files.

FG_NODELAY

If specified, play the AVI file with no delay between frames. If not, delay between frames as specified in the AVI header.

Return value

The number of frames played. This value may be less than the value of frames if the end-of-file is reached before playing the requested number of frames.

Restrictions

none

See also

fg_aviopen(), fg_aviskip(), fg_showavi()

Examples

Image

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.