Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

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

Macros

#define STREAM_PLAYSPEED_PAUSE   0
 Speed value to pause stream in playback.
 
#define STREAM_PLAYSPEED_NORMAL   1000
 Speed value to perform stream playback at normal speed.
 
#define STREAM_TIME_BASE   1000000
 Time base represented as integer.
 
#define STREAM_NOPTS_VALUE   0xFFF0000000000000
 Undefined timestamp value.
 

Functions

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.
 

Detailed Description

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

Macro Definition Documentation

◆ 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

Speed value to perform stream playback at normal speed.

See STREAM_PLAYSPEED_PAUSE for pause of stream.

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

Function Documentation

◆ STREAM_MSEC_TO_TIME()

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.

◆ STREAM_SEC_TO_TIME()

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_TIME_TO_MSEC()

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.