summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-01-01 16:26:10 +0100
committermanuel <manuel@mausz.at>2018-01-01 16:26:10 +0100
commita51f51db67e3eab80ac2ed28d403a6d77f7acc45 (patch)
tree72e41d0283d3db549ea5a22e3c9063ef2a971d54 /xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
parent4830f27a40323fe859dc166337a2b861877b7121 (diff)
downloadkodi-pvr-build-a51f51db67e3eab80ac2ed28d403a6d77f7acc45.tar.gz
kodi-pvr-build-a51f51db67e3eab80ac2ed28d403a6d77f7acc45.tar.bz2
kodi-pvr-build-a51f51db67e3eab80ac2ed28d403a6d77f7acc45.zip
sync with upstream
Diffstat (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h')
-rw-r--r--xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h b/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
new file mode 100644
index 0000000..b70128e
--- /dev/null
+++ b/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h
@@ -0,0 +1,31 @@
1#pragma once
2
3/*
4* Copyright (C) 2017 Team XBMC
5* http://xbmc.org
6*
7* This Program is free software; you can redistribute it and/or modify
8* it under the terms of the GNU General Public License as published by
9* the Free Software Foundation; either version 2, or (at your option)
10* any later version.
11*
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
23#define DVD_TIME_BASE 1000000
24#define DVD_NOPTS_VALUE 0xFFF0000000000000
25
26#define DVD_TIME_TO_MSEC(x) ((int)((double)(x) * 1000 / DVD_TIME_BASE))
27#define DVD_SEC_TO_TIME(x) ((double)(x) * DVD_TIME_BASE)
28#define DVD_MSEC_TO_TIME(x) ((double)(x) * DVD_TIME_BASE / 1000)
29
30#define DVD_PLAYSPEED_PAUSE 0 // frame stepping
31#define DVD_PLAYSPEED_NORMAL 1000