Configure a video overlay scaler channel
int PgConfigScalerChannel( PgVideoChannel_t *channel, PgScalerProps_t *props );
ph
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.
If you specify Pg_SCALER_PROP_DRAW_TARGETABLE in props->flags and the targeted surface isn't RGB, PgConfigScalerChannel() fails and returns -1. |
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
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