Lines Matching refs:parser
63 webrtc::test::CommandLineParser parser;
65 // Init the parser and set the usage message
66 parser.Init(argc, argv);
67 parser.SetUsageMessage(usage);
68 parser.SetFlag("in_path", "-1");
69 parser.SetFlag("width", "-1");
70 parser.SetFlag("height", "-1");
71 parser.SetFlag("f", "-1");
72 parser.SetFlag("interval", "-1");
73 parser.SetFlag("l", "-1");
74 parser.SetFlag("out_path", "edited_output.yuv");
75 parser.SetFlag("help", "false");
77 parser.ProcessFlags();
78 if (parser.GetFlag("help") == "true") {
79 parser.PrintUsageMessage();
81 parser.PrintEnteredFlags();
83 const char* in_path = parser.GetFlag("in_path").c_str();
84 int width = strtol((parser.GetFlag("width")).c_str(), NULL, 10);
85 int height = strtol((parser.GetFlag("height")).c_str(), NULL, 10);
86 int first_frame_to_cut = strtol((parser.GetFlag("f")).c_str(), NULL, 10);
87 int interval = strtol((parser.GetFlag("interval")).c_str(), NULL, 10);
88 int last_frame_to_cut = strtol((parser.GetFlag("l")).c_str(), NULL, 10);
90 const char* out_path = parser.GetFlag("out_path").c_str();