24 #ifndef AVUTIL_TIMESTAMP_H
25 #define AVUTIL_TIMESTAMP_H
29 #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS) && !defined(PRId64)
30 #error missing -D__STDC_FORMAT_MACROS / #define __STDC_FORMAT_MACROS
33 #define AV_TS_MAX_STRING_SIZE 32
54 #define av_ts2str(ts) av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts)
76 #define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
static double av_q2d(AVRational a)
Convert rational to double.
static char * av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb)
Fill the provided buffer with a string containing a timestamp time representation.
rational number numerator/denominator
static char * av_ts_make_string(char *buf, int64_t ts)
Fill the provided buffer with a string containing a timestamp representation.
common internal and external API header
#define AV_TS_MAX_STRING_SIZE
#define AV_NOPTS_VALUE
Undefined timestamp value.