X12_write, X12_cleanup – Sensoray 512 QNX User Manual

Page 16

Advertising
background image

16

None.

Notes

Attempts to read "nbytes" bytes of MPEG data from the SM2210 output FIFO. The actual amount read is
returned. If no data is available “0” is returned unless blocking has been enabled. In which case this
function will wait until at least one byte of data is made available. If this is the first read the encoder is
initialized and started.

X12_write

int X12_write(int CardId,char *buffer, int nbytes);

Parameters

CardId

Card identifier. Must be between 0 and number of cards minus 1.

buffer

Pointer to output video buffer.

nbytes

Number of bytes to output or -1 if any errors were detected.

Return values

None.

Notes

Attempts to write "nbytes" bytes of MPEG data to the SM2210 input FIFO. The actual amount written is
returned. If this is the first write the decoder is initialized and started.

X12_cleanup

void X12_cleanup(void);

Parameters

None.

Return values

None.

Notes

Resets all boards.

Advertising