[Previous] [Contents] [Index] [Next]

PgConfigScalerChannel()

Configure a video overlay scaler channel

Synopsis:

int PgConfigScalerChannel(
       PgVideoChannel_t *channel,
       PgScalerProps_t *props );

Library:

ph

Description:

This function configures the video overlay scaler channel specified by channel. It uses the configuration information specified by props to set the state of the overlay hardware.

Once the scaler is properly configured, the structure pointed to by channel contains pointers to offscreen context structures that describe the video data buffers. You can use PdGetOffscreenContextPtr() to retrieve pointers to the video data buffers.

Returns:

0
The state of the scaler hardware was successfully changed, and the video data frame buffers haven't changed since the last call to PgConfigScalerChannel().
1
The state of the scaler hardware was successfully changed, and the offscreen buffer contexts in the channel structure have changed. In this case, information about the video data buffers that was returned by previous calls is no longer valid.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdGetOffscreenContextPtr(), PgCreateVideoChannel(), PgDestroyVideoChannel(), PgGetOverlayChromaColor(), PgGetScalerCapabilities(), PgNextVideoFrame(), PgScalerCaps_t, PgScalerProps_t, PgVideoChannel_t

"Video overlay" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]