Go to the source code of this file.
|
struct | date_t |
| Timestamps without long-term rounding errors. More...
|
|
|
static vlc_tick_t | vlc_tick_from_seci (int64_t sec) |
|
static vlc_tick_t | vlc_tick_from_secf (double secf) |
|
static double | secf_from_vlc_tick (vlc_tick_t vtk) |
|
static vlc_tick_t | vlc_tick_rate_duration (float frame_rate) |
|
static vlc_tick_t | vlc_tick_from_samples (int64_t samples, int samp_rate) |
|
static int64_t | samples_from_vlc_tick (vlc_tick_t t, int samp_rate) |
|
static vlc_tick_t | vlc_tick_from_frac (uint64_t num, uint64_t den) |
|
struct timespec | timespec_from_vlc_tick (vlc_tick_t date) |
|
char * | secstotimestr (char *psz_buffer, int32_t secs) |
| Convert seconds to a time in the format h:mm:ss. More...
|
|
void | date_Init (date_t *restrict date, uint32_t num, uint32_t den) |
| Initializes a date_t. More...
|
|
void | date_Change (date_t *restrict date, uint32_t num, uint32_t den) |
| Changes the rate of a date_t. More...
|
|
static void | date_Set (date_t *restrict date, vlc_tick_t value) |
| Sets the exact timestamp of a date_t. More...
|
|
static vlc_tick_t | date_Get (const date_t *restrict date) |
| Gets the current timestamp from a date_t. More...
|
|
vlc_tick_t | date_Increment (date_t *restrict date, uint32_t count) |
| Increments a date. More...
|
|
vlc_tick_t | date_Decrement (date_t *restrict date, uint32_t count) |
| Decrements a date. More...
|
|
uint64_t | NTPtime64 (void) |
|
◆ MS_FROM_VLC_TICK
#define MS_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / (CLOCK_FREQ / INT64_C(1000))) |
Referenced by EsOutDecodersStopBuffering(), EsOutFrameNext(), EsOutVaControlLocked(), net_Connect(), ThreadDisplayPreparePicture(), thumbnailer_RequestCommon(), vlc_atomic_timedwait(), vlc_player_SetCategoryDelay(), vlc_player_SetEsIdDelay(), vlc_timer_schedule(), and vlc_tls_ClientSessionCreate().
◆ MSFTIME_FROM_MS
#define MSFTIME_FROM_MS |
( |
|
sec | ) |
(INT64_C(10000) * (sec)) /* milliseconds in msftime_t */ |
◆ MSFTIME_FROM_SEC
#define MSFTIME_FROM_SEC |
( |
|
sec | ) |
(INT64_C(10000000) * (sec)) /* seconds in msftime_t */ |
◆ MSFTIME_FROM_VLC_TICK
#define MSFTIME_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / (CLOCK_FREQ / INT64_C(10000000)) |
◆ MSTRTIME_MAX_SIZE
#define MSTRTIME_MAX_SIZE 22 |
◆ NS_FROM_VLC_TICK
#define NS_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / (CLOCK_FREQ / (INT64_C(1000000000)))) |
◆ SEC_FROM_VLC_TICK
#define SEC_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / CLOCK_FREQ) |
◆ US_FROM_VLC_TICK
#define US_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / (CLOCK_FREQ / INT64_C(1000000))) |
◆ VLC_TICK_FROM_MS
#define VLC_TICK_FROM_MS |
( |
|
ms | ) |
((CLOCK_FREQ / INT64_C(1000)) * (ms)) |
Referenced by EsOutDecodersStopBuffering(), EsOutDrainDecoder(), EsOutFrameNext(), EsOutVaControlLocked(), FileControl(), input_clock_Update(), input_preparser_New(), LiveControl(), MainLoop(), mdate_multimedia(), mdate_tick(), net_Connect(), OSDWidget(), QueueTake(), sout_MuxSendBuffer(), task_Create(), Thread(), ThreadDisplayPreparePicture(), vlc_atomic_timedwait(), vlc_demux_chained_Thread(), vlc_player_input_New(), vlc_tls_ClientSessionCreate(), vout_Create(), vout_DisplayTitle(), and VoutSaveSnapshot().
◆ VLC_TICK_FROM_MSFTIME
#define VLC_TICK_FROM_MSFTIME |
( |
|
msft | ) |
((msft) * (CLOCK_FREQ / INT64_C(10000000)) |
◆ VLC_TICK_FROM_NS
#define VLC_TICK_FROM_NS |
( |
|
ns | ) |
((ns) * (CLOCK_FREQ / (INT64_C(1000000000)))) |
◆ VLC_TICK_FROM_SEC
#define VLC_TICK_FROM_SEC |
( |
|
sec | ) |
(CLOCK_FREQ * (sec)) |
◆ vlc_tick_from_sec
#define vlc_tick_from_sec |
( |
|
sec | ) |
|
Value:_Generic((sec), \
static vlc_tick_t vlc_tick_from_seci(int64_t sec)
Definition: vlc_tick.h:71
static vlc_tick_t vlc_tick_from_secf(double secf)
Definition: vlc_tick.h:76
Referenced by ControlNav(), vlc_tick_from_frac(), and vlc_tick_now().
◆ vlc_tick_from_timespec
◆ vlc_tick_from_timeval
◆ VLC_TICK_FROM_US
#define VLC_TICK_FROM_US |
( |
|
us | ) |
((CLOCK_FREQ / INT64_C(1000000)) * (us)) |
◆ msftime_t
◆ mtime_t
◆ vlc_tick_t
High precision date or time interval.
Store a high precision date or time interval. The maximum precision is the microsecond, and a 64 bits integer is used to avoid overflows (maximum time interval is then 292271 years, which should be long enough for any video). Dates are stored as microseconds since a common date (usually the epoch). Note that date and time intervals can be manipulated using regular arithmetic operators, and that no special functions are required.
◆ NTPtime64()
uint64_t NTPtime64 |
( |
void |
| ) |
|
◆ samples_from_vlc_tick()
static int64_t samples_from_vlc_tick |
( |
vlc_tick_t |
t, |
|
|
int |
samp_rate |
|
) |
| |
|
inlinestatic |
◆ secf_from_vlc_tick()
static double secf_from_vlc_tick |
( |
vlc_tick_t |
vtk | ) |
|
|
inlinestatic |
◆ secstotimestr()
char* secstotimestr |
( |
char * |
psz_buffer, |
|
|
int32_t |
secs |
|
) |
| |
◆ timespec_from_vlc_tick()
◆ vlc_tick_from_frac()
static vlc_tick_t vlc_tick_from_frac |
( |
uint64_t |
num, |
|
|
uint64_t |
den |
|
) |
| |
|
inlinestatic |
◆ vlc_tick_from_samples()
static vlc_tick_t vlc_tick_from_samples |
( |
int64_t |
samples, |
|
|
int |
samp_rate |
|
) |
| |
|
inlinestatic |
◆ vlc_tick_from_secf()
static vlc_tick_t vlc_tick_from_secf |
( |
double |
secf | ) |
|
|
inlinestatic |
◆ vlc_tick_from_seci()
static vlc_tick_t vlc_tick_from_seci |
( |
int64_t |
sec | ) |
|
|
inlinestatic |
◆ vlc_tick_rate_duration()
static vlc_tick_t vlc_tick_rate_duration |
( |
float |
frame_rate | ) |
|
|
inlinestatic |