ParsecClientPollFrame
ParsecStatusParsecClientPollFrame(Parsec *ps,uint8_tstream,ParsecFrameCallbackcallback,uint32_ttimeout,const void *opaque)
Poll for a new video frame from the host and make it available in system memory.
Parameters
Direction | Name | Description |
---|---|---|
in | ps | Parsec instance returned by ParsecInit . |
in | stream | Video stream index. Must be less than NUM_VSTREAMS . |
in | callback | Fired synchronously if a new frame is available from the host. |
in | timeout | Timeout in milliseconds to wait for a new frame to become available. |
in | opaque | User 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.