MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / print_fps

Function print_fps

libavformat/dump.c:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128
129static void print_fps(double d, const char *postfix, int log_level)
130{
131 uint64_t v = lrintf(d * 100);
132 if (!v)
133 av_log(NULL, log_level, "%1.4f %s", d, postfix);
134 else if (v % 100)
135 av_log(NULL, log_level, "%3.2f %s", d, postfix);
136 else if (v % (100 * 1000))
137 av_log(NULL, log_level, "%1.0f %s", d, postfix);
138 else
139 av_log(NULL, log_level, "%1.0fk %s", d / 1000, postfix);
140}
141
142static void dump_dictionary(void *ctx, const AVDictionary *m,
143 const char *name, const char *indent,

Callers 1

dump_stream_formatFunction · 0.85

Calls 2

lrintfFunction · 0.85
av_logFunction · 0.85

Tested by

no test coverage detected