IBM Books

Image, Audio, and Video Extenders Administration and Programming

DBvFrameDataTo24BitRGB


Image Audio Video
    X

Converts a video frame from a YUV color-value format, such as MPEG, to a 24-bit RGB format. The user must allocate a target buffer before issuing the API call.

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 DBvFrameDataTo24BitRGB(
      unsigned char *RGB,
      DBvFrameData *fd,
      unsigned long dx,
      unsigned long dy
      );

Parameters

RGB (out)
The pointer to the target RGB buffer.

fd (in)
The pointer to the frame data to be converted.

dx (in)
Frame width

dy (in)
Frame height

Error codes

MMDB_SUCCESS
API call processed successfully.

Examples

Convert a video frame from MPEG to 24-bit RGB:

#include <dmbshot.h>
 
rc = DBvFrameDataTo24BitRGB(RGB, &video->fd,
       video->dx, video->dy);


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