summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
committermanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
commit2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (patch)
treecc9e1f8ea69eebca8416677b2470a5b3f11a850e /xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
parentb3d195f0188758a14875a5a2f270e4fd190a679f (diff)
downloadkodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.gz
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.bz2
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.zip
sync with upstream
Diffstat (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h')
-rw-r--r--xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h34
1 files changed, 11 insertions, 23 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h b/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
index 209897e..0672002 100644
--- a/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
+++ b/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
@@ -1,31 +1,19 @@
1#pragma once
2
3/* 1/*
4* Copyright (C) 2017 Team XBMC 2 * Copyright (C) 2017-2018 Team Kodi
5* http://kodi.tv 3 * This file is part of Kodi - https://kodi.tv
6* 4 *
7* This Program is free software; you can redistribute it and/or modify 5 * SPDX-License-Identifier: GPL-2.0-or-later
8* it under the terms of the GNU General Public License as published by 6 * See LICENSES/README.md for more information.
9* the Free Software Foundation; either version 2, or (at your option) 7 */
10* any later version. 8
11* 9#pragma once
12* This Program is distributed in the hope that it will be useful,
13* but WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15* GNU General Public License for more details.
16*
17* You should have received a copy of the GNU General Public License
18* along with XBMC; see the file COPYING. If not, see
19* <http://www.gnu.org/licenses/>.
20*
21*/
22 10
23#define DVD_TIME_BASE 1000000 11#define DVD_TIME_BASE 1000000
24#define DVD_NOPTS_VALUE 0xFFF0000000000000 12#define DVD_NOPTS_VALUE 0xFFF0000000000000
25 13
26#define DVD_TIME_TO_MSEC(x) ((int)((double)(x) * 1000 / DVD_TIME_BASE)) 14constexpr int DVD_TIME_TO_MSEC(double x) { return static_cast<int>(x * 1000 / DVD_TIME_BASE); }
27#define DVD_SEC_TO_TIME(x) ((double)(x) * DVD_TIME_BASE) 15constexpr double DVD_SEC_TO_TIME(double x) { return x * DVD_TIME_BASE; }
28#define DVD_MSEC_TO_TIME(x) ((double)(x) * DVD_TIME_BASE / 1000) 16constexpr double DVD_MSEC_TO_TIME(double x) { return x * DVD_TIME_BASE / 1000; }
29 17
30#define DVD_PLAYSPEED_PAUSE 0 // frame stepping 18#define DVD_PLAYSPEED_PAUSE 0 // frame stepping
31#define DVD_PLAYSPEED_NORMAL 1000 19#define DVD_PLAYSPEED_NORMAL 1000