|
ZVBI Library 0.2.45
|
Helper functions to decode sliced VBI data. More...
Functions | |
| void | vbi_par (uint8_t *p, unsigned int n) |
| int | vbi_unpar (uint8_t *p, unsigned int n) |
| void | vbi_ham24p (uint8_t *p, unsigned int c) |
| int | vbi_unham24p (const uint8_t *p) |
| _vbi_inline unsigned int | vbi_rev8 (unsigned int c) |
| _vbi_inline unsigned int | vbi_rev16 (unsigned int c) |
| _vbi_inline unsigned int | vbi_rev16p (const uint8_t *p) |
| _vbi_inline unsigned int | vbi_par8 (unsigned int c) |
| _vbi_inline int | vbi_unpar8 (unsigned int c) |
| _vbi_inline unsigned int | vbi_ham8 (unsigned int c) |
| _vbi_inline int | vbi_unham8 (unsigned int c) |
| _vbi_inline int | vbi_unham16p (const uint8_t *p) |
Helper functions to decode sliced VBI data.
| void vbi_par | ( | uint8_t * | p, |
| unsigned int | n ) |
| p | Array of unsigned bytes. |
| n | Size of array. |
Of each byte of the array, changes the most significant bit to make the number of set bits odd.
| int vbi_unpar | ( | uint8_t * | p, |
| unsigned int | n ) |
| p | Array of unsigned bytes. |
| n | Size of array. |
Tests the parity and clears the most significant bit of each byte of the array.
| void vbi_ham24p | ( | uint8_t * | p, |
| unsigned int | c ) |
| p | A Hamming 24/18 protected 24 bit word will be stored here, last significant byte first, lsb first transmitted. |
| c | Integer between 0 ... 1 << 18 - 1. |
Encodes an 18 bit word with Hamming 24/18 protection as specified in ETS 300 706, Section 8.3.
| int vbi_unham24p | ( | const uint8_t * | p | ) |
| p | Pointer to a Hamming 24/18 protected 24 bit word, last significant byte first, lsb first transmitted. |
Decodes a Hamming 24/18 protected byte triplet as specified in ETS 300 706, Section 8.3.
| _vbi_inline unsigned int vbi_rev8 | ( | unsigned int | c | ) |
| c | Unsigned byte. |
Reverses the bits of the argument.
Referenced by vbi_decode_teletext_8302_cni(), and vbi_decode_teletext_8302_pdc().
| _vbi_inline unsigned int vbi_rev16 | ( | unsigned int | c | ) |
| c | Unsigned 16 bit word. |
Reverses (or "reflects") the bits of the argument.
| _vbi_inline unsigned int vbi_rev16p | ( | const uint8_t * | p | ) |
| p | Pointer to a 16 bit word, last significant byte first. |
Reverses (or "reflects") the bits of the argument.
Referenced by vbi_decode_teletext_8301_cni().
| _vbi_inline unsigned int vbi_par8 | ( | unsigned int | c | ) |
| c | Unsigned byte. |
| _vbi_inline int vbi_unpar8 | ( | unsigned int | c | ) |
| c | Unsigned byte. |
Referenced by vbi_xds_demux_feed().
| _vbi_inline unsigned int vbi_ham8 | ( | unsigned int | c | ) |
| c | Integer between 0 ... 15. |
Encodes a nibble with Hamming 8/4 protection as specified in EN 300 706, Section 8.2.
| _vbi_inline int vbi_unham8 | ( | unsigned int | c | ) |
| c | Hamming 8/4 protected byte, lsb first transmitted. |
Decodes a Hamming 8/4 protected byte as specified in EN 300 706, Section 8.2.
Referenced by vbi_decode_teletext_8302_pdc(), and vbi_idl_demux_feed().
| _vbi_inline int vbi_unham16p | ( | const uint8_t * | p | ) |
| p | Pointer to a Hamming 8/4 protected 16 bit word, last significant byte first, lsb first transmitted. |
Decodes a Hamming 8/4 protected byte pair as specified in EN 300 706, Section 8.2.
Referenced by vbi_decode_teletext_8302_cni(), vbi_decode_teletext_8302_pdc(), and vbi_pfc_demux_feed().