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

Function args_parse

libswscale/colorspace-test.c:38–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36static int cpu_caps;
37
38static char *args_parse(int argc, char *argv[])
39{
40 int o;
41
42 while ((o = getopt(argc, argv, "m23")) != -1) {
43 switch (o) {
44 case 'm':
45 cpu_caps |= SWS_CPU_CAPS_MMX;
46 break;
47 case '2':
48 cpu_caps |= SWS_CPU_CAPS_MMX2;
49 break;
50 case '3':
51 cpu_caps |= SWS_CPU_CAPS_3DNOW;
52 break;
53 default:
54 av_log(NULL, AV_LOG_ERROR, "Unknown option %c\n", o);
55 }
56 }
57
58 return argv[optind];
59}
60
61int main(int argc, char **argv)
62{

Callers 1

mainFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected