Lines Matching defs:opt
33 void CommandParse::ParseCodingType(const MyOptIndex index, CommandOpt &opt)
38 opt.codec = CodecMime::HEVC;
41 opt.codec = CodecMime::VP9;
44 opt.codec = CodecMime::MPEG4;
51 bool CommandParse::Parse(int argc, char *argv[], CommandOpt &opt)
62 opt.useBuffer = true;
68 opt.fileInput = optarg;
71 opt.fileOutput = optarg;
74 opt.width = std::stoi(optarg);
77 opt.height = std::stoi(optarg);
81 opt.colorForamt = static_cast<ColorFormat>(std::stoi(optarg));
85 ParseCodingType(index, opt);
89 if (opt.fileInput.empty() || opt.fileOutput.empty() || opt.width == 0 || opt.height == 0) {