vbi_idl_demux_cb flags | |
| #define | VBI_IDL_DATA_LOST (1 << 0) |
| #define | VBI_IDL_DEPENDENT (1 << 3) |
Typedefs | |
| typedef _vbi_idl_demux | vbi_idl_demux |
| IDL demultiplexer context. | |
| typedef vbi_bool | vbi_idl_demux_cb (vbi_idl_demux *dx, const uint8_t *buffer, unsigned int n_bytes, unsigned int flags, void *user_data) |
Functions | |
| void | vbi_idl_demux_reset (vbi_idl_demux *dx) |
| vbi_bool | vbi_idl_demux_feed (vbi_idl_demux *dx, const uint8_t buffer[42]) |
| void | vbi_idl_demux_delete (vbi_idl_demux *dx) |
| vbi_idl_demux * | vbi_idl_a_demux_new (unsigned int channel, unsigned int address, vbi_idl_demux_cb *callback, void *user_data) |
| #define VBI_IDL_DATA_LOST (1 << 0) |
Data was lost (not received or uncorrectable) between the current and previous call.
| #define VBI_IDL_DEPENDENT (1 << 3) |
IDL Format A flag (EN 300 708 section 6.5.2): The data may require the use of data in other channels or with other service packet addresses as defined by the application.
| typedef struct _vbi_idl_demux vbi_idl_demux |
IDL demultiplexer context.
The contents of this structure are private.
Call vbi_idl_demux_new() to allocate an IDL demultiplexer context.
| typedef vbi_bool vbi_idl_demux_cb(vbi_idl_demux *dx, const uint8_t *buffer, unsigned int n_bytes, unsigned int flags, void *user_data) |
| dx | IDL demultiplexer returned by vbi_idl_a_demux_new() and given to vbi_idl_demux_feed(). | |
| buffer | Pointer to received user data. | |
| n_bytes | Number of bytes in the buffer. Can be 0 if the decoded packet did not contain user data. | |
| flags | VBI_IDL_DATA_LOST, VBI_IDL_DEPENDENT. | |
| user_data | User pointer passed to vbi_idl_demux_new(). |
| void vbi_idl_demux_reset | ( | vbi_idl_demux * | dx | ) |
| dx | IDL demultiplexer allocated with vbi_idl_a_demux_new(). |
| vbi_bool vbi_idl_demux_feed | ( | vbi_idl_demux * | dx, | |
| const uint8_t | buffer[42] | |||
| ) |
| dx | IDL demultiplexer allocated with vbi_idl_a_demux_new(). | |
| buffer | Teletext packet (last 42 bytes, i. e. without clock run-in and framing code), as in struct vbi_sliced. |
| void vbi_idl_demux_delete | ( | vbi_idl_demux * | dx | ) |
| dx | IDL demultiplexer allocated with vbi_idl_a_demux_new(), can be NULL. |
| vbi_idl_demux* vbi_idl_a_demux_new | ( | unsigned int | channel, | |
| unsigned int | address, | |||
| vbi_idl_demux_cb * | callback, | |||
| void * | user_data | |||
| ) |
| channel | Filter out packets of this channel. | |
| address | Filter out packets with this service data address. | |
| callback | Function to be called by vbi_idl_demux_feed() when new data is available. | |
| user_data | User pointer passed through to callback function. |
NULL on failure (out of memory).
1.5.2