Commit 910e577d authored by Francois Cartegnie's avatar Francois Cartegnie

atsc_a65: add gps time to epoch helper

parent efc1cee9
......@@ -19,6 +19,8 @@
#ifndef VLC_ATSC_A65_H
#define VLC_ATSC_A65_H
#define GPS_UTC_EPOCH_OFFSET 315964800
typedef struct atsc_a65_handle_t atsc_a65_handle_t;
atsc_a65_handle_t *atsc_a65_handle_New( const char *psz_lang );
......@@ -26,4 +28,9 @@ void atsc_a65_handle_Release( atsc_a65_handle_t * );
char * atsc_a65_Decode_multiple_string( atsc_a65_handle_t *, const uint8_t *, size_t );
static inline time_t atsc_a65_GPSTimeToEpoch( time_t i_seconds, time_t i_gpstoepoch_leaptime_offset )
{
return i_seconds + GPS_UTC_EPOCH_OFFSET - i_gpstoepoch_leaptime_offset;
}
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment