Functions to decode and encode VPS packets (EN 300 231, EN 300 468).
More...
Detailed Description
Functions to decode and encode VPS packets (EN 300 231, EN 300 468).
Function Documentation
- Parameters:
-
cni | CNI of type VBI_CNI_TYPE_VPS will be stored here. |
buffer | VPS packet as defined for VBI_SLICED_VPS , i.e. 13 bytes without clock run-in and start code. |
Decodes a VPS packet according to EN 300 231, returning the contained 12 bit Country and Network Identifier in *cni.
The code 0xDC3 is translated according to TR 101 231: "As this code is used for a time in two networks a distinction for automatic tuning systems is given in data line 16 [VPS]: bit 3 of byte 5 = 1 for the ARD network / = 0 for the ZDF network."
- Returns:
- Always
TRUE
, no error checking possible. It may be prudent to wait for a second transmission of the received CNI to ensure correct reception.
- Since:
- 0.2.20
- Parameters:
-
buffer | VPS packet as defined for VBI_SLICED_VPS , i.e. 13 bytes without clock run-in and start code. |
cni | CNI of type VBI_CNI_TYPE_VPS. |
Stores the 12 bit Country and Network Identifier cni in a VPS packet according to EN 300 231.
- Returns:
FALSE
if cni is invalid. In this case buffer remains unmodified.
- Since:
- 0.2.20
- Parameters:
-
pid | PDC program ID will be stored here. |
buffer | VPS packet as defined for VBI_SLICED_VPS , i.e. 13 bytes without clock run-in and start code. |
Decodes a VPS datagram according to EN 300 231, storing PDC recording-control data in pid.
- Returns:
FALSE
if the buffer contains incorrect data. In this case pid remains unmodified.
- Since:
- 0.2.34
- Parameters:
-
buffer | VPS packet as defined for VBI_SLICED_VPS , i.e. 13 bytes without clock run-in and start code. |
pid | PDC data to encode. |
Stores PDC recording-control data (CNI, PIL, PCS audio, PTY) in a VPS datagram according to EN 300 231.
- Returns:
FALSE
if any of the parameters to encode are invalid. In this case buffer remains unmodified.
- Since:
- 0.2.34
- Parameters:
-
pid | PDC program ID will be stored here. |
buffer | A DVB PDC descriptor as defined in EN 300 468, including the descriptor_tag and descriptor_length bytes. |
Decodes a DVB PDC descriptor as defined in EN 300 468 and EN 300 231, storing PDC recording-control data in pid.
- Returns:
FALSE
if the buffer contains an incorrect descriptor_tag, descriptor_length or PIL. In this case pid remains unmodified.
- Since:
- 0.2.34
- Parameters:
-
buffer | A DVB PDC descriptor as defined in EN 300 468, including the descriptor_tag and descriptor_length bytes. |
pid | PDC data to encode. |
Stores PDC recording-control data (PIL only) in a DVB PDC descriptor as defined in EN 300 468 and EN 300 231.
- Returns:
FALSE
if any of the parameters to encode are invalid. In this case buffer remains unmodified.
- Since:
- 0.2.34