|
VLC
3.0.15
|

Functions | |
| char * | secstotimestr (char *psz_buffer, int32_t i_seconds) |
| Convert seconds to a time in the format h:mm:ss. More... | |
| void | date_Init (date_t *p_date, uint32_t i_divider_n, uint32_t i_divider_d) |
| Initialize a date_t. More... | |
| void | date_Change (date_t *p_date, uint32_t i_divider_n, uint32_t i_divider_d) |
| Change a date_t. More... | |
| void | date_Set (date_t *p_date, mtime_t i_new_date) |
| Set the date value of a date_t. More... | |
| mtime_t | date_Get (const date_t *p_date) |
| Get the date of a date_t. More... | |
| void | date_Move (date_t *p_date, mtime_t i_difference) |
| Move forwards or backwards the date of a date_t. More... | |
| mtime_t | date_Increment (date_t *p_date, uint32_t i_nb_samples) |
| Increment the date and return the result, taking into account rounding errors. More... | |
| mtime_t | date_Decrement (date_t *p_date, uint32_t i_nb_samples) |
| Decrement the date and return the result, taking into account rounding errors. More... | |
| uint64_t | NTPtime64 (void) |
| void date_Change | ( | date_t * | p_date, |
| uint32_t | i_divider_n, | ||
| uint32_t | i_divider_d | ||
| ) |
Change a date_t.
| date | to change |
| divider | (sample rate) numerator |
| divider | (sample rate) denominator |
References date_t::i_divider_den, date_t::i_divider_num, and date_t::i_remainder.
Decrement the date and return the result, taking into account rounding errors.
| date | to decrement |
| decrementation | in number of samples |
References CLOCK_FREQ, date_t::date, date_t::i_divider_den, date_t::i_divider_num, and date_t::i_remainder.
Increment the date and return the result, taking into account rounding errors.
| date | to increment |
| incrementation | in number of samples |
References CLOCK_FREQ, date_t::date, date_t::i_divider_den, date_t::i_divider_num, date_t::i_remainder, lldiv(), lldiv_t::quot, and lldiv_t::rem.
| void date_Init | ( | date_t * | p_date, |
| uint32_t | i_divider_n, | ||
| uint32_t | i_divider_d | ||
| ) |
Initialize a date_t.
| date | to initialize |
| divider | (sample rate) numerator |
| divider | (sample rate) denominator |
References date_t::date, date_t::i_divider_den, date_t::i_divider_num, and date_t::i_remainder.
Move forwards or backwards the date of a date_t.
| date | to move |
| difference | value |
References date_t::date.
Set the date value of a date_t.
| date | to set |
| date | value |
References date_t::date, and date_t::i_remainder.
| uint64_t NTPtime64 | ( | void | ) |
References TIME_UTC, timespec_get(), timespec::tv_nsec, and timespec::tv_sec.
Referenced by vlc_rand_bytes(), and vlc_sdp_Start().
| char* secstotimestr | ( | char * | psz_buffer, |
| int32_t | i_seconds | ||
| ) |
Convert seconds to a time in the format h:mm:ss.
This function is provided for any interface function which need to print a time string in the format h:mm:ss date.
| secs | the date to be converted |
| psz_buffer | should be a buffer at least MSTRTIME_MAX_SIZE characters |
References MSTRTIME_MAX_SIZE, secstotimestr(), and unlikely.
Referenced by secstotimestr().
1.8.16