Go to the documentation of this file.
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)
83 #define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
Rational number (pair of numerator and denominator).
#define AV_NOPTS_VALUE
Undefined timestamp value.
static char * av_ts_make_time_string(char *buf, int64_t ts, const AVRational *tb)
Fill the provided buffer with a string containing a timestamp representation.
char * av_ts_make_time_string2(char *buf, int64_t ts, AVRational tb)
Fill the provided buffer with a string containing a timestamp time representation.
static char * av_ts_make_string(char *buf, int64_t ts)
Fill the provided buffer with a string containing a timestamp representation.
#define AV_TS_MAX_STRING_SIZE