libdvbv5 1.22.1
Library to work with Digital TV devices on Linux
|
Files | |
file | dvb-log.h |
Provides interfaces to handle libdvbv5 log messages. | |
file | crc32.h |
Provides ancillary code to calculate DVB crc32 checksum. | |
file | countries.h |
Provides ancillary code to convert ISO 3166-1 country codes. | |
Macros | |
#define | ARRAY_SIZE(x) |
Calculates the number of elements of an array. More... | |
Typedefs | |
typedef void(* | dvb_logfunc) (int level, const char *fmt,...) |
typedef used by dvb_fe_open2 for the log function More... | |
Enumerations | |
enum | dvb_country_t { COUNTRY_UNKNOWN , AD , AE , AF , AG , AI , AL , AM , AO , AQ , AR , AS , AT , AU , AW , AX , AZ , BA , BB , BD , BE , BF , BG , BH , BI , BJ , BL , BM , BN , BO , BQ , BR , BS , BT , BV , BW , BY , BZ , CA , CC , CD , CF , CG , CH , CI , CK , CL , CM , CN , CO , CR , CU , CV , CW , CX , CY , CZ , DE , DJ , DK , DM , DO , DZ , EC , EE , EG , EH , ER , ES , ET , FI , FJ , FK , FM , FO , FR , GA , GB , GD , GE , GF , GG , GH , GI , GL , GM , GN , GP , GQ , GR , GS , GT , GU , GW , GY , HK , HM , HN , HR , HT , HU , ID , IE , IL , IM , IN , IO , IQ , IR , IS , IT , JE , JM , JO , JP , KE , KG , KH , KI , KM , KN , KP , KR , KW , KY , KZ , LA , LB , LC , LI , LK , LR , LS , LT , LU , LV , LY , MA , MC , MD , ME , MF , MG , MH , MK , ML , MM , MN , MO , MP , MQ , MR , MS , MT , MU , MV , MW , MX , MY , MZ , NA , NC , NE , NF , NG , NI , NL , NO , NP , NR , NU , NZ , OM , PA , PE , PF , PG , PH , PK , PL , PM , PN , PR , PS , PT , PW , PY , QA , RE , RO , RS , RU , RW , SA , SB , SC , SD , SE , SG , SH , SI , SJ , SK , SL , SM , SN , SO , SR , SS , ST , SV , SX , SY , SZ , TC , TD , TF , TG , TH , TJ , TK , TL , TM , TN , TO , TR , TT , TV , TW , TZ , UA , UG , UM , US , UY , UZ , VA , VC , VE , VG , VI , VN , VU , WF , WS , YE , YT , ZA , ZM , ZW } |
ISO-3166-1 alpha-2 country code. More... | |
Functions | |
void | dvb_default_log (int level, const char *fmt,...) |
This is the prototype of the internal log function that it is used, if the library client doesn't desire to override with something else. More... | |
void | atsc_time (const uint32_t start_time, struct tm *tm) |
Converts an ATSC EIT formatted timestamp into struct tm. More... | |
uint32_t | dvb_crc32 (uint8_t *data, size_t datalen, uint32_t crc) |
Calculates the crc-32 as defined at the MPEG-TS specs. More... | |
enum dvb_country_t | dvb_country_a2_to_id (const char *name) |
Converts an Unix-like 2-letter Country code into enum dvb_country_t. More... | |
enum dvb_country_t | dvb_country_a3_to_id (const char *name) |
Converts a 3-letter Country code as used by MPEG-TS tables into enum dvb_country_t. More... | |
const char * | dvb_country_to_2letters (int id) |
Converts an enum dvb_country_t into Unix-like 2-letter Country code. More... | |
const char * | dvb_country_to_3letters (int id) |
Converts an enum dvb_country_t into a 3-letter Country code as used by MPEG-TS tables. More... | |
const char * | dvb_country_to_name (int id) |
Converts an enum dvb_country_t into a Country name as used by MPEG-TS tables. More... | |
enum dvb_country_t | dvb_guess_user_country (void) |
Guess the country code from the Unix environment variables. More... | |
#define ARRAY_SIZE | ( | x | ) |
Calculates the number of elements of an array.
void(* dvb_logfunc)(void *logpriv, int level, const char *fmt,...) |
enum dvb_country_t |
ISO-3166-1 alpha-2 country code.
Definition at line 544 of file countries.h.
void atsc_time | ( | const uint32_t | start_time, |
struct tm * | tm | ||
) |
Converts an ATSC EIT formatted timestamp into struct tm.
start_time | event on ATSC EIT time format |
tm | pointer to struct tm where the converted timestamp will be stored. |
enum dvb_country_t dvb_country_a2_to_id | ( | const char * | name | ) |
Converts an Unix-like 2-letter Country code into enum dvb_country_t.
name | two-letter Country code. |
enum dvb_country_t dvb_country_a3_to_id | ( | const char * | name | ) |
Converts a 3-letter Country code as used by MPEG-TS tables into enum dvb_country_t.
name | three-letter Country code. |
const char * dvb_country_to_2letters | ( | int | id | ) |
Converts an enum dvb_country_t into Unix-like 2-letter Country code.
id | enum dvb_country_t ID. |
const char * dvb_country_to_3letters | ( | int | id | ) |
Converts an enum dvb_country_t into a 3-letter Country code as used by MPEG-TS tables.
id | enum dvb_country_t ID. |
const char * dvb_country_to_name | ( | int | id | ) |
Converts an enum dvb_country_t into a Country name as used by MPEG-TS tables.
id | enum dvb_country_t ID. |
uint32_t dvb_crc32 | ( | uint8_t * | data, |
size_t | datalen, | ||
uint32_t | crc | ||
) |
Calculates the crc-32 as defined at the MPEG-TS specs.
data | Pointer to the buffer to be checked |
datalen | Length of the buffer |
crc | Initial value for the crc checksum. To calculate the checksum of the entire packet at once, use 0xFFFFFFFF |
void dvb_default_log | ( | int | level, |
const char * | fmt, | ||
... | |||
) |
This is the prototype of the internal log function that it is used, if the library client doesn't desire to override with something else.
level | level of the message, as defined at syslog.h |
fmt | format string (same as format string on sprintf) |
enum dvb_country_t dvb_guess_user_country | ( | void | ) |
Guess the country code from the Unix environment variables.