Demo application – Sensoray 819 Linuxs SDK User Manual
Page 11

S819_ReleaseBuffer
ECODE S819_ReleaseBuffer (BUFFER *buf)
Returns a buffer to the driver. It is essential to call this function after the data has been handled by the
application. Once the buffer is released members of the
*buf
become invalid.
S819_Close
void S819_Close (void)
SDK cleanup. Must be called before an application terminates. Must be the last call to the SDK.
S819_SetXPSwitch
ECODE S819_SetXPSwitch (int brd, int inp, int out)
Controls output video crosspoint switch. Connects selected input to selected output.
brd
board index (0-based).
inp
selected input channel number (1-16).
out
selected output (0-3).
S819_SetXPOut
ECODE S819_SetXPOut (int brd, int mask)
Enables/disables outputs of video crosspoint switch. This allows connecting outputs of multiple
boards together and enabling one of them at a time.
brd
board index (0-based).
mask
bits 0-3 control outputs 0-3 (1 – enabled, 0 – disabled).
Demo application
A simple demo application (common819) is provided to illustrate the use of the SDK. The source file
(common819.c) is included. The application allows capture of multiple H.264 streams and JPEG frames
from any number of available channels. The H.264 data from each stream/channel is written into a
separate file. The files are of a fixed size, so once the end of the file is reached the recording continues
from the start of the file. This allows execution of the demo for an indefinite period of time without
running out of the disk space. The JPEG files are captured at a low rate, overwriting the old data for
each channel.
11