Kodi Development
22.0
for Binary and Script based Add-Ons
Loading...
Searching...
No Matches
timing_constants.h
1
/*
2
* Copyright (C) 2015-2020 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
#ifndef C_API_ADDONINSTANCE_INPUTSTREAM_TIMINGCONSTANTS_H
10
#define C_API_ADDONINSTANCE_INPUTSTREAM_TIMINGCONSTANTS_H
11
15
#define STREAM_PLAYSPEED_PAUSE 0
// frame stepping
16
22
#define STREAM_PLAYSPEED_NORMAL 1000
23
27
#define STREAM_TIME_BASE 1000000
28
35
#define STREAM_NOPTS_VALUE 0xFFF0000000000000
36
37
// "C" defines to translate stream times
38
#define STREAM_TIME_TO_MSEC(x) ((int)((double)(x)*1000 / STREAM_TIME_BASE))
39
#define STREAM_SEC_TO_TIME(x) ((double)(x)*STREAM_TIME_BASE)
40
#define STREAM_MSEC_TO_TIME(x) ((double)(x)*STREAM_TIME_BASE / 1000)
41
42
#endif
/* !C_API_ADDONINSTANCE_INPUTSTREAM_TIMINGCONSTANTS_H */
include
kodi
c-api
addon-instance
inputstream
timing_constants.h
Generated by
1.12.0