Marvin Scholz
416e3d12c8
core: rename NTPtime64 to vlc_ntp_time
...
This function name did not follow any conventions used throughout
the codebase, so take the chance that we break API/ABI in 4.x to
rename it before we have to keep it around even longer if we don't
do it now.
2023-07-06 20:32:36 +00:00
Steve Lhomme
b1a36d5865
vlc_tick: include vlc_config to get CLOCK_FREQ
...
It is sometimes included without vlc_common.h.
2023-07-05 13:47:59 +00:00
Steve Lhomme
dc91b16390
vlc_tick: use unsigned for sample frequency
...
It cannot be negative. The amount of samples and ticks can be negative.
2023-01-17 10:37:49 +00:00
Steve Lhomme
14c1c439ed
vlc_tick: do explicit float to integer conversion
2023-01-06 14:46:46 +00:00
Steve Lhomme
ebfd515a68
vlc_tick: remove outdated comment
2022-08-17 04:26:22 +00:00
Steve Lhomme
bd8c5cb9d6
vlc_tick: remove deprecated and unused mtime_t
2022-08-17 04:26:22 +00:00
Rémi Denis-Courmont
b18dda3813
tick: remove timespec_from_vlc_tick()
2022-03-30 07:18:29 +00:00
Rémi Denis-Courmont
7022895117
tick: add vlc_tick_to_timespec()
...
This is essentially the same as timespec_to_vlc_tick() but it does not
clobber the namespace, so it can be exported.
2022-03-30 07:18:29 +00:00
Steve Lhomme
3475f8e972
ticks: rename secstotimestr() to vlc_tick_to_str()
2021-08-22 06:53:45 +00:00
Steve Lhomme
a59cb66257
ticks: use a vlc_tick_t with secstotimestr()
...
This is what it's always used with. No need for lossy conversions to int.
2021-08-22 06:53:45 +00:00
Romain Vimont
e5d44f6af0
vlc_tick: add MIN and MAX constants
...
Replace INT64_MIN and INT64_MAX used as vlc_tick_t values by
VLC_TICK_MIN and VLC_TICK_MAX.
2021-07-10 14:26:56 +00:00
Steve Lhomme
5363279805
remove the $Id$ in the source code
2019-01-17 12:21:18 +01:00
Marvin Scholz
e9627c5d11
vlc_tick: Fix documentation of MSTRTIME_MAX_SIZE
...
The documentation referred to mstrtime, which does not exist anymore.
2018-10-12 19:25:48 +02:00
Marvin Scholz
2ed7857aea
vlc_tick: Move documentation to header
...
Some part of the documentation was in the mtime.c file instead of the
header, this commit moves it to the header so it is consistent.
2018-10-12 19:25:48 +02:00
Steve Lhomme
56e39d09a5
vlc_tick: add vlc_tick_from_frac() to simplify conversion from fixed rates
2018-09-25 12:19:08 +02:00
Steve Lhomme
90c53e85d3
vlc_tick: add helper functions to convert vlc_tick to/from samples
...
Based on a sampling rate.
2018-09-20 15:00:31 +02:00
Steve Lhomme
dd351f964c
vlc_tick: add a fonction to get the duration in ticks from a frame rate
2018-09-19 14:56:01 +02:00
Steve Lhomme
6735a69b79
vlc_tick: use a macro for vlc_tick_from_timespec()
...
So we don't have to include extra headers for struct timespec (time.h).
2018-07-04 18:24:16 +02:00
Steve Lhomme
df23697fbf
vlc_tick: use a macro for vlc_tick_from_timeval()
...
So we don't have to include extra headers for struct timeval.
2018-07-04 18:13:20 +02:00
Steve Lhomme
e5e212e417
vlc_tick: add a macro to convert milliseconds to msftime_t
2018-07-04 14:03:30 +02:00
Steve Lhomme
44f5d837ca
vlc_tick: add vlc_tick_from_timespec()
2018-07-04 11:38:11 +02:00
Steve Lhomme
2bf717fbf8
core: rename mtime_to_ts() to timespec_from_vlc_tick()
2018-07-04 11:38:11 +02:00
Steve Lhomme
62dce674cf
core: factorize mtime_to_ts() in mtime.c
2018-07-04 11:38:10 +02:00
Steve Lhomme
af100197fa
vlc_tick: include headers for struct timeval
2018-07-04 11:12:34 +02:00
Steve Lhomme
928e966451
vlc_tick: add vlc_tick_from_timeval()
2018-07-04 10:23:28 +02:00
Hugo Beauzée-Luyssen
af03afe3e1
vlc_ticks: Simplify C++ integer variants of vlc_tick_from_sec
2018-06-29 18:19:39 +02:00
Steve Lhomme
2d4a266663
vlc_tick: remove C++ long variant of vlc_tick_from_sec()
...
it collides with the int64_t variant on some platform
2018-06-29 17:57:06 +02:00
Steve Lhomme
36cba01030
vlc_tick: add msftime_t to express 100ns time
...
Such values currently have a better resolution than vlc_tick_t
Also provide conversion macros/functions to/from vlc_tick_t
2018-06-29 17:35:46 +02:00
Steve Lhomme
1d3482ef4e
vlc_tick: add helper macros to convert nanoseconds to/from vlc_tick_t
2018-06-29 17:35:46 +02:00
Steve Lhomme
0fc429197c
vlc_tick: add helper macros to convert microseconds to/from vlc_tick_t
2018-06-29 17:35:46 +02:00
Steve Lhomme
505182d874
vlc_tick: add helper macros to convert milliseconds to/from vlc_tick_t
2018-06-29 17:35:46 +02:00
Steve Lhomme
58a6a21271
vlc_tick: add helper macros to convert seconds to/from vlc_tick_t
2018-06-29 17:35:46 +02:00
Steve Lhomme
a6149e2c1e
include: rename vlc_mtime.h to vlc_tick.h
2018-06-22 13:26:57 +02:00