Processing a directory now look for image format set in options (#3691)

See the updated '-c' and new '-a' help when using rawtherapee-cli.exe -h
This commit is contained in:
Hombre
2017-05-02 23:08:33 +02:00
parent cf47cdee2d
commit bcad76cd5e
3 changed files with 70 additions and 13 deletions

View File

@@ -2365,6 +2365,27 @@ void Options::save ()
}
}
/*
* return true if ext is a parsed extension (retained or not)
*/
bool Options::is_parse_extention (Glib::ustring fname)
{
Glib::ustring ext = getExtension (fname).lowercase();
if (!ext.empty()) {
// there is an extension to the filename
// look out if it has one of the listed extensions (selected or not)
for (unsigned int i = 0; i < parseExtensions.size(); i++) {
if (ext == parseExtensions[i]) {
return true;
}
}
}
return false;
}
/*
* return true if fname ends with one of the retained image file extensions
*/