28int main(
int argc,
char const* argv[])
33 LFATAL(
"USAGE: jevois-add-videomapping <USBmode> <USBwidth> <USBheight> <USBfps> <CAMmode> "
34 "<CAMwidth> <CAMheight> <CAMfps> <Vendor> <Module>");
37 for (
int i = 1; i < argc; ++i) { args += argv[i]; args +=
' '; }
39 std::stringstream ss(args);
44 std::vector<jevois::VideoMapping> vm =
45 jevois::videoMappingsFromStream(jevois::CameraSensor::any, ss, defidx,
false,
true);
47 LFATAL(
"Could not parse input args into a valid video mapping: [" << ss.str() <<
']');
53 std::vector<jevois::VideoMapping> mappings =
54 jevois::videoMappingsFromStream(jevois::CameraSensor::any, ifs, defidx,
false,
true);
65 ofs << std::endl << m << std::endl;
#define JEVOIS_ENGINE_CONFIG_FILE
Location of the engine videomappings.cfg definition file.
int logLevel
Current log level.
#define LFATAL(msg)
Convenience macro for users to print out console or syslog messages, FATAL level.
#define LINFO(msg)
Convenience macro for users to print out console or syslog messages, INFO level.
int main(int argc, char const *argv[])
Add a new mapping to videomappings.cfg skipping duplicates.
void logEnd()
Terminate log service.
Simple struct to hold video mapping definitions for the processing Engine.
WDRtype wdr
Type of wide-dynamic-range (WDR) to use, if sensor supports it.
bool hasSameSpecsAs(VideoMapping const &other) const
Equality operator for specs but not vendor or module name.
std::string modulename
Name of the Module that will process this mapping.
std::string str() const
Convenience function to print out the whole mapping in a human-friendly way.
std::string vendor
Module creator name, used as a directory to organize the modules.