Genvid_SubmitVideoData()

GenvidStatus Genvid_SubmitVideoData(const GenvidTimecode timecode, const char *streamID, const void *videoData, const int videoDataSize)

Sends a video frame explicitly using videoDataSize bytes of videoData.

The format of the video data must have been previously specified (see Genvid_SetParameterInt()).

Note that when automatic video source capture is used (which is typical), videoData must be set to NULL and videoDataSize must be set to 0 (see Genvid_SetParameterPointer() for details on automatic capture).

Using a negative timecode value is shorthand for calling Genvid_GetCurrentTimecode() and using that timecode value instead.

It will return one of the following values :

GenvidStatus_UninitializedSDK : The Genvid library was not initialised before calling it.

GenvidStatus_InvalidState : The asynchronous handler was not initialised.

GenvidStatus_InvalidImageFormat : The image format is not supported.

GenvidStatus_InvalidParameter : The stream streamID was not found.

GenvidStatus_Success : The operation has completed properly.