SetVideoOutput

Set the video overlay output window dimensions and pixel format.

Declaration

N_int32 NAPI GA_videoFuncs::SetVideoOutput(
    GA_buf *videoBuffer,
    N_int32 left,
    N_int32 top,
    N_int32 width,
    N_int32 height,
    N_int32 flags)

Prototype In

snap/graphics.h

Parameters

videoBuffer

Video overlay buffer to use

left

Left pixel coordinate of the output window

top

Top pixel coordinate of the output window

width

Width of the input data in pixels

height

Height of the input data in pixels

flags

Pixel format for the input data (GA_VideoOutputFlagsType)

 

Return Value

0 on success, -1 on failure

Description

This function sets the video output window dimensions for a particular hardware video overlay buffer. This represents the rectangular region on the display screen where the video data will be displayed. The video output rectangle is used by the driver to determine the stretch factor required to interpolate the input video data in offscreen video memory to the video output window on the display screen.

The flags field modifies the way the output image is displayed, and the values are defined in the GA_VideoOutputFlagsType enumeration (enabling interpolation and color keying etc).

See Also

AllocVideoBuffer, FreeVideoBuffer, SetVideoOutput, SetVideoColorKey, StartVideoFrame, EndVideoFrame

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com