Lines Matching defs:buf
39 * @param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
43 static inline char *av_ts_make_string(char *buf, int64_t ts)
45 if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
46 else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%"PRId64, ts);
47 return buf;
60 * @param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
65 static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb)
67 if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
68 else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts);
69 return buf;