|
libdvbv5
1.6.0
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. | |
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... | |
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... | |
| #define ARRAY_SIZE | ( | x | ) |
| void(* dvb_logfunc)(int level, const char *fmt,...) |
| 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. |
| 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) |
1.8.8