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

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.
 
#define STREAM_TIME_TO_MSEC(x)   ((int)((double)(x)*1000 / STREAM_TIME_BASE))
 
#define STREAM_SEC_TO_TIME(x)   ((double)(x)*STREAM_TIME_BASE)
 
#define STREAM_MSEC_TO_TIME(x)   ((double)(x)*STREAM_TIME_BASE / 1000)
 

Macro Definition Documentation

◆ STREAM_MSEC_TO_TIME

#define STREAM_MSEC_TO_TIME ( x)    ((double)(x)*STREAM_TIME_BASE / 1000)

◆ STREAM_SEC_TO_TIME

#define STREAM_SEC_TO_TIME ( x)    ((double)(x)*STREAM_TIME_BASE)

◆ STREAM_TIME_TO_MSEC

#define STREAM_TIME_TO_MSEC ( x)    ((int)((double)(x)*1000 / STREAM_TIME_BASE))