Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgconfigscalerchannel.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgconfigscalerchannel.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgconfigscalerchannel.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgconfigscalerchannel.html on line 8

PgConfigScalerChannel()

Configure a video overlay scaler channel

Synopsis:

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

Arguments:

channel
A pointer to a PgVideoChannel_t structure that specifies the channel you want to configure.
props
A pointer to a PgScalerProps_t structure that specifies how to configure the channel.

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.


Note: If you specify Pg_SCALER_PROP_DRAW_TARGETABLE in props->flags and the targeted surface isn't RGB, PgConfigScalerChannel() fails and returns -1.

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.
-1
An error occurred.

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgconfigscalerchannel.html on line 163

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgconfigscalerchannel.html on line 163