IBM Books

Image, Audio, and Video Extenders Administration and Programming

AspectRatio


Image Audio Video
    X

Returns the aspect ratio of the first track of an MPEG video.

Include file

dmbvideo.h

Syntax

>>-AspectRatio--(--handle--)-----------------------------------><
 

Parameters (data type)

handle (DB2VIDEO)
Column name or host variable that contains the handle of the video.

Return values (data type)

Aspect ratio of first track of MPEG video, or a null value for video in other formats (SMALLINT)

Examples

Get the aspect ratio of the video that is stored for Robert Smith in the video column of the employee table:

EXEC SQL BEGIN DECLARE SECTION;
      short hvAsp_ratio;
EXEC SQL END DECLARE SECTION;
 
EXEC SQL SELECT ASPECTRATIO(VIDEO)
      INTO :hvAsp_ratio
      FROM EMPLOYEE
      WHERE NAME='Robert Smith';


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