|
71 | 71 | #include "tv.h" // for get_time_in_ns |
72 | 72 | #include "types.h" // for video_desc, tile, video_frame, UYVY, RGB |
73 | 73 | #include "utils/macros.h" // for TOSTRING, to_fourcc |
| 74 | +#include "utils/color_out.h" // for color_printf |
74 | 75 | #include "video_codec.h" // for vc_get_linesize, get_codec_name |
75 | 76 | #include "video_compress.h" // for codec, module_option, encoder, compres... |
76 | 77 | #include "video_frame.h" // for vf_free, vf_alloc_desc_data, vf_copy_m... |
@@ -135,12 +136,18 @@ struct { |
135 | 136 | }; |
136 | 137 |
|
137 | 138 | static void usage() { |
138 | | - printf("Cineform encoder usage:\n"); |
139 | | - printf("\t-c cineform[:quality=<quality>][:threads=<num_threads>][:pool_size=<pool_size>]\n"); |
| 139 | + color_printf(TBOLD("Cineform") " encoder usage:\n"); |
| 140 | + color_printf("\t" TBOLD( |
| 141 | + TRED("-c cineform") "[:quality=<quality>][:threads=<num_threads>][:" |
| 142 | + "pool_size=<pool_size>]") "\n"); |
| 143 | + color_printf("\t" TBOLD("-c cineform:help") "\n"); |
| 144 | + |
| 145 | + color_printf("\nOptions:\n"); |
140 | 146 |
|
141 | 147 | for(const auto& opt : usage_opts){ |
142 | | - printf("\t\t<%s> %s\n", opt.key, opt.description); |
| 148 | + color_printf("\t" TBOLD("<%s>") " %s\n", opt.key, opt.description); |
143 | 149 | } |
| 150 | + printf("\n"); |
144 | 151 | } |
145 | 152 |
|
146 | 153 | static int parse_fmt(struct state_video_compress_cineform *s, char *fmt) { |
|
0 commit comments