PgNextVideoFrame()

Get the index of the next video buffer to fill

Synopsis:

int PgNextVideoFrame( PgVideoChannel_t *channel );

Library:

ph

Description:

PgNextVideoFrame() returns the index of the video buffers into which your application should copy the video frame data. Call this function before transferring a frame of video data to the video overlay scaler.

Returns:

The index of the video buffer, or -1 if an error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgConfigScalerChannel(), PgCreateVideoChannel(), PgDestroyVideoChannel(), PgGetOverlayChromaColor(), PgGetScalerCapabilities(), PgScalerCaps_t, PgScalerProps_t, PgVideoChannel_t

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