Parsec

ParsecClientPollFrame

ParsecStatusParsecClientPollFrame(Parsec *
ps,
uint8_t
stream,
ParsecFrameCallback
callback,
uint32_t
timeout,
const void *
opaque
)

Poll for a new video frame from the host and make it available in system memory.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
instreamVideo stream index. Must be less than NUM_VSTREAMS.
incallbackFired synchronously if a new frame is available from the host.
intimeoutTimeout in milliseconds to wait for a new frame to become available.
inopaqueUser supplied context to be passed through callback.

Returns

PARSEC_OK if a new frame was available and the callback fired, otherwise a ParsecStatus warning value on timeout.