| 127 | |
| 128 | |
| 129 | static 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 | |
| 142 | static void dump_dictionary(void *ctx, const AVDictionary *m, |
| 143 | const char *name, const char *indent, |
no test coverage detected