diff options
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/timing_constants.h')
| -rw-r--r-- | xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/timing_constants.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/timing_constants.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/timing_constants.h new file mode 100644 index 0000000..a226a0d --- /dev/null +++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/timing_constants.h | |||
| @@ -0,0 +1,42 @@ | |||
| 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 | |||
| 12 | /// @ingroup cpp_kodi_addon_inputstream_Defs_TimingConstants | ||
| 13 | /// @brief Speed value to pause stream in playback. | ||
| 14 | /// | ||
| 15 | #define STREAM_PLAYSPEED_PAUSE 0 // frame stepping | ||
| 16 | |||
| 17 | /// @ingroup cpp_kodi_addon_inputstream_Defs_TimingConstants | ||
| 18 | /// @brief Speed value to perform stream playback at normal speed. | ||
| 19 | /// | ||
| 20 | /// See @ref STREAM_PLAYSPEED_PAUSE for pause of stream. | ||
| 21 | /// | ||
| 22 | #define STREAM_PLAYSPEED_NORMAL 1000 | ||
| 23 | |||
| 24 | /// @ingroup cpp_kodi_addon_inputstream_Defs_TimingConstants | ||
| 25 | /// @brief Time base represented as integer. | ||
| 26 | /// | ||
| 27 | #define STREAM_TIME_BASE 1000000 | ||
| 28 | |||
| 29 | /// @ingroup cpp_kodi_addon_inputstream_Defs_TimingConstants | ||
| 30 | /// @brief Undefined timestamp value. | ||
| 31 | /// | ||
| 32 | /// Usually reported by demuxer that work on containers that do not provide | ||
| 33 | /// either pts or dts. | ||
| 34 | /// | ||
| 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 */ | ||
