[vlc-devel] [PATCH 01/15] vlc_common: add helper function to convert milliseconds to/from mtime_t
Romain Vimont
rom1v at videolabs.io
Fri Jun 15 19:34:54 CEST 2018
On Fri, Jun 15, 2018 at 05:09:12PM +0200, Steve Lhomme wrote:
> From: RĂ©mi Denis-Courmont <remi at remlab.net>
>
> ---
> include/vlc_common.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/vlc_common.h b/include/vlc_common.h
> index cc94b2f374e..cc2f39e84a5 100644
> --- a/include/vlc_common.h
> +++ b/include/vlc_common.h
> @@ -288,6 +288,10 @@
> */
> typedef int64_t mtime_t;
>
> +#define VTICK_FROM_MILLI(ms) ((ms) * (CLOCK_FREQ / 1000))
> +#define MILLI_FROM_VTICK(ms) (((ms) * 1000) / CLOCK_FREQ)
The parameter name should be renamed for clarity.
> +
> +
> /**
> * The vlc_fourcc_t type.
> *
> --
> 2.17.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list