QMedia Video media commands

QM_SetVideoMediaDisplayFormat

QM_SetVideoMediaDisplayFormat(movieRef; trackID; displayFormat):error
movieRef Longint Movie reference
trackID Longint Track ID
displayFormat Longint Display format
error Longint Error result

Changes the display format that is used when adding samples to a video track.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile.

Parameter trackID is the ID of the track.

Parameter displayFormat specifies the position and scaling of the picture or image within the video track's bounds. The following 4D picture display formats are supported:

Truncated Centered1
Scaled to Fit2
Truncated non Centered4
Scaled to fit proportional5
Scaled to fit prop centered6

QMedia sets the default diplay format to Scaled to fit prop centered (6).

Example

  `Set the display format for video track ID $trackID
 
C_LONGINT($format)
$format:=Scaled to fit prop centered `4D's picture display format
 
$err:=QM_SetVideoMediaDisplayFormat ($movie;$trackID;$format)
 
 

Related commands

QM_GetVideoMediaDisplayFormat Returns the display format of new video samples.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:42:35