Timebase and timestamp definitions.
Used to exchange the available options between Kodi and addon.
More...
|
constexpr int | STREAM_TIME_TO_MSEC (double x) |
| Converts a stream time to milliseconds as an integer value.
|
|
constexpr double | STREAM_SEC_TO_TIME (double x) |
| Converts a time in seconds to the used stream time format.
|
|
constexpr double | STREAM_MSEC_TO_TIME (double x) |
| Converts a time in milliseconds to the used stream time format.
|
|
Timebase and timestamp definitions.
Used to exchange the available options between Kodi and addon.
◆ STREAM_NOPTS_VALUE
#define STREAM_NOPTS_VALUE 0xFFF0000000000000 |
Undefined timestamp value.
Usually reported by demuxer that work on containers that do not provide either pts or dts.
◆ STREAM_PLAYSPEED_NORMAL
#define STREAM_PLAYSPEED_NORMAL 1000 |
◆ STREAM_PLAYSPEED_PAUSE
#define STREAM_PLAYSPEED_PAUSE 0 |
Speed value to pause stream in playback.
◆ STREAM_TIME_BASE
#define STREAM_TIME_BASE 1000000 |
Time base represented as integer.
◆ STREAM_MSEC_TO_TIME()
double STREAM_MSEC_TO_TIME |
( |
double | x | ) |
|
|
constexpr |
Converts a time in milliseconds to the used stream time format.
- Parameters
-
- Returns
- Stream time
- Note
- Within "C" code this is used as
#define
.
◆ STREAM_SEC_TO_TIME()
double STREAM_SEC_TO_TIME |
( |
double | x | ) |
|
|
constexpr |
Converts a time in seconds to the used stream time format.
- Parameters
-
- Returns
- Stream time
- Note
- Within "C" code this is used as
#define
.
◆ STREAM_TIME_TO_MSEC()
int STREAM_TIME_TO_MSEC |
( |
double | x | ) |
|
|
constexpr |
Converts a stream time to milliseconds as an integer value.
- Parameters
-
- Returns
- Milliseconds
- Note
- Within "C" code this is used as
#define
.