#include #include #include extern "C" { #include } #include using namespace std; template void generate(const string & database_directory) { auto const db = read_database(database_directory); cout << colors::green("Read database: ") << db.size() << endl; } int main(int argc, char * argv[]) { if (argc != 3) { cerr << "usage: main \n"; return 1; } av_register_all(); av_log_set_level(AV_LOG_QUIET); string const database_directory = argv[1]; string const type = argv[2]; if (type == "rgb") { generate(database_directory); } else if (type == "wvlt_rgb") { generate(database_directory); } else { cerr << "No known type given\n"; return 1; } }