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)
common internal and external API header
static double av_q2d(AVRational a)
Convert an AVRational to a double.
#define AV_NOPTS_VALUE
Undefined timestamp value.
Rational number (pair of numerator and denominator).
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.
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