fg_aviopen()

Win32 DirectX Fastgraph/Light

Prototype

int fg_aviopen (char *filename, void *context);

Function fg_aviopen (ByVal filename As String, context() As Any) As Long

function fg_aviopen (filename : string; var context) : integer;

Description

The fg_aviopen() function opens an AVI file for reading.

Parameters

filename is the name of the AVI file. A device and path name may be included as part of the file name. The file name must be terminated by a zero byte.

context is the name of a 48-byte buffer that will receive the AVI file context descriptor. The descriptor values will only be meaningful if the return value is zero.

Return value

0 = AVI file opened successfully

-1 = The specified file does not exist

-2 = The specified file is not an AVI file

-3 = Error initializing the AVI video stream

-4 = Error allocating memory

-5 = The codec needed for the specified AVI file is not available

Restrictions

none

See also

fg_avidone(), fg_avimake()

Examples

Image

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.