Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Timebase and timestamp definitions.
Used to exchange the available options between Kodi and addon.

Macro Definition Documentation

◆ STREAM_PLAYSPEED_PAUSE

#define STREAM_PLAYSPEED_PAUSE   0

Speed value to pause stream in playback.

◆ STREAM_PLAYSPEED_NORMAL

#define STREAM_PLAYSPEED_NORMAL   1000

Speed value to perform stream playback at normal speed.

See STREAM_PLAYSPEED_PAUSE for pause of stream.

◆ STREAM_TIME_BASE

#define STREAM_TIME_BASE   1000000

Time base represented as integer.

◆ 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.

Function Documentation

◆ STREAM_TIME_TO_MSEC()

constexpr int STREAM_TIME_TO_MSEC ( double  x)
constexpr

Converts a stream time to milliseconds as an integer value.

Parameters
[in]xStream time
Returns
Milliseconds
Note
Within "C" code this is used as #define.

◆ STREAM_SEC_TO_TIME()

constexpr double STREAM_SEC_TO_TIME ( double  x)
constexpr

Converts a time in seconds to the used stream time format.

Parameters
[in]xSeconds
Returns
Stream time
Note
Within "C" code this is used as #define.

◆ STREAM_MSEC_TO_TIME()

constexpr double STREAM_MSEC_TO_TIME ( double  x)
constexpr

Converts a time in milliseconds to the used stream time format.

Parameters
[in]xMilliseconds
Returns
Stream time
Note
Within "C" code this is used as #define.