1 /*
2  *  Copyright (C) 2017-2018 Team Kodi
3  *  This file is part of Kodi - https://kodi.tv
4  *
5  *  SPDX-License-Identifier: GPL-2.0-or-later
6  *  See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #define DVD_TIME_BASE 1000000
12 #define DVD_NOPTS_VALUE 0xFFF0000000000000
13 
DVD_TIME_TO_MSEC(double x)14 constexpr int DVD_TIME_TO_MSEC(double x) { return static_cast<int>(x * 1000 / DVD_TIME_BASE); }
DVD_SEC_TO_TIME(double x)15 constexpr double DVD_SEC_TO_TIME(double x) { return x * DVD_TIME_BASE; }
DVD_MSEC_TO_TIME(double x)16 constexpr double DVD_MSEC_TO_TIME(double x) { return x * DVD_TIME_BASE / 1000; }
17 
18 #define DVD_PLAYSPEED_PAUSE       0       // frame stepping
19 #define DVD_PLAYSPEED_NORMAL      1000
20