Go to the documentation of this file.
30 static const struct {
const char *label;
int64_t ts; } ts_vals[] = {
35 {
"INT64_MAX", INT64_MAX },
36 {
"INT64_MIN+1", INT64_MIN + 1 },
38 static const struct {
const char *label;
int64_t ts;
AVRational tb; } time_vals[] = {
40 {
"90000 at 1/90000", 90000, {1, 90000} },
41 {
"0 at 1/1000", 0, {1, 1000} },
42 {
"48000 at 1/48000", 48000, {1, 48000} },
43 {
"44100 at 1/44100", 44100, {1, 44100} },
44 {
"-90000 at 1/90000", -90000, {1, 90000} },
48 printf(
"Testing av_ts_make_string()\n");
50 printf(
"%s: %s\n", ts_vals[
i].label,
54 printf(
"\nTesting av_ts2str()\n");
59 printf(
"\nTesting av_ts_make_time_string2()\n");
61 printf(
"%s: %s\n", time_vals[
i].label,
65 printf(
"\nTesting av_ts_make_time_string()\n");
68 printf(
"5000 at 1/1000: %s\n",
__device__ int printf(const char *,...)
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.
#define FF_ARRAY_ELEMS(a)
Rational number (pair of numerator and denominator).
#define i(width, name, range_min, range_max)
#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.
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
#define av_ts2str(ts)
Convenience macro, the return value should be used only directly in function arguments but never stan...