IBM Books

Image, Audio, and Video Extenders Administration and Programming

DBvOpenFile


Image Audio Video
    X

Allocates space for a DBvIOType structure and opens the video file for pixel access. When the video is successfully opened, it points at the first frame number (frame 0).

Authorization

None

Library file
OS/2 and Windows AIX, HP-UX, and Solaris
dmbmpeg.lib libdmbmpeg.a (AIX)

libdmbmpeg.sl (HP-UX)

libdmbmpeg.so (Solaris)

Include file

dmbshot.h

Syntax

long DBvOpenFile(
      DBvIOType **video,
      char *fileName,
      );

Parameters

video (out)
The pointer to the video structure pointer.

fileName (in)
The name of the video file to open.

Error codes

MMDB_SUCCESS
API call processed successfully.

MMDB_RC_CANNOT_OPEN
Cannot open video file.

MMDB_RC_NO_MEMORY
Not enough memory.

MMDB_RC_NO_INDEX
No video random access index.

Examples

Open the video file \videos\ajones.mpg:

#include <dmbshot.h>
 
rc = DBvOpenFile(&videoa,
       "\videos\ajones.mpg");


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]