vdr  1.7.31
Classes | Namespaces | Macros | Functions
libsi/util.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <pthread.h>
#include <time.h>

Go to the source code of this file.

Classes

class  SI::CharArray
class  SI::CharArray::Data
class  SI::CharArray::DataOwnData
class  SI::CharArray::DataForeignData
class  SI::Parsable
class  SI::CRC32

Namespaces

namespace  SI
namespace  SI::DVBTime

Macros

#define HILO(x)   (x##_hi << 8 | x##_lo)
#define HILOHILO(x)   (x##_hi_hi << 24 | x##_hi_lo << 16 | x##_lo_hi << 8 | x##_lo_lo)
#define BCD_TIME_TO_SECONDS(x)

Functions

time_t SI::DVBTime::getTime (unsigned char date_hi, unsigned char date_lo, unsigned char timehr, unsigned char timemi, unsigned char timese)
time_t SI::DVBTime::getDuration (unsigned char timehr, unsigned char timemi, unsigned char timese)
unsigned char SI::DVBTime::bcdToDec (unsigned char b)

Macro Definition Documentation

#define BCD_TIME_TO_SECONDS (   x)
Value:
((3600 * ((10*((x##_h & 0xF0)>>4)) + (x##_h & 0xF))) + \
(60 * ((10*((x##_m & 0xF0)>>4)) + (x##_m & 0xF))) + \
((10*((x##_s & 0xF0)>>4)) + (x##_s & 0xF)))

Definition at line 23 of file libsi/util.h.

#define HILO (   x)    (x##_hi << 8 | x##_lo)

Definition at line 21 of file libsi/util.h.

#define HILOHILO (   x)    (x##_hi_hi << 24 | x##_hi_lo << 16 | x##_lo_hi << 8 | x##_lo_lo)

Definition at line 22 of file libsi/util.h.