Definition at line 117 of file mainIm.cpp. References Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Array::ReadJpg(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00118 { 00119 ILOG_VAR(Impala.Application.Im.DoJpg2Raw); 00120 CmdOptions& options = CmdOptions::GetInstance(); 00121 if (options.GetNrArg() < 3) 00122 { 00123 ILOG_ERROR("Need more arguments"); 00124 return; 00125 } 00126 Util::Database* db = &Util::Database::GetInstance(); 00127 00128 String jpgName = options.GetArg(1); 00129 String rawName = options.GetArg(2); 00130 int binary = 1; 00131 if (options.GetNrArg() >= 5) 00132 binary = atol(options.GetArg(4)); 00133 Array2dVec3UInt8* data = 0; 00134 ReadJpg(data, jpgName, db); 00135 WriteRaw(data, rawName, db, (binary != 0)); 00136 delete data; 00137 }
Here is the call graph for this function:
|