Main Page | Modules | Data Structures | Data Fields | Related Pages | Examples

Video Programming System Decoder
[Low Level Decoding]

Functions to decode VPS packets (ETS 300 231). More...

Functions

vbi_bool vbi_decode_vps_cni (unsigned int *cni, const uint8_t buffer[13])
vbi_bool vbi_encode_vps_cni (uint8_t buffer[13], unsigned int cni)

Detailed Description

Functions to decode VPS packets (ETS 300 231).


Function Documentation

vbi_bool vbi_decode_vps_cni unsigned int *  cni,
const uint8_t  buffer[13]
 

Parameters:
cni CNI of type VBI_CNI_TYPE_VPS is 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 ETS 300 231, returning the 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 until two identical packets have been received.
Since:
0.2.20

vbi_bool vbi_encode_vps_cni uint8_t  buffer[13],
unsigned int  cni
 

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 ETS 300 231.

Returns:
FALSE if cni is invalid; in this case buffer remains unmodified.
Since:
0.2.20


Generated on Thu May 11 22:52:02 2006 for ZVBI Library by doxygen 1.3.5