31 if( dev_name ==
"demo" || ( dev_name ==
"test" &&
G::Str::splitMatch(config,
"demo",
";") ) )
33 else if( dev_name ==
"test" )
36 return new CaptureV4l( dev_name , config ) ;
A representation of a timezone.
virtual unsigned int dx() const override
Override from Capture.
static Capture * create(const std::string &dev_name, const std::string &config, Gv::Timezone=Gv::Timezone())
Factory method.
static bool splitMatch(const std::string &in, const std::string &s, const std::string &ws=Str::ws())
Returns true if any of the split parts of 'in' are equal to 's'.
A video capture abstract interface, exposing a file descriptor and a method to handle read events on ...
virtual unsigned int dy() const override
Override from Capture.