Definition at line 140 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::ReadPng(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00141 { 00142 ILOG_VAR(Impala.Application.Im.DoPng2Raw); 00143 CmdOptions& options = CmdOptions::GetInstance(); 00144 if (options.GetNrArg() < 3) 00145 { 00146 ILOG_ERROR("Need more arguments"); 00147 return; 00148 } 00149 Util::Database* db = &Util::Database::GetInstance(); 00150 00151 String pngName = options.GetArg(1); 00152 String rawName = options.GetArg(2); 00153 int binary = 1; 00154 if (options.GetNrArg() >= 5) 00155 binary = atol(options.GetArg(4)); 00156 Array2dVec3UInt8* data = 0; 00157 ReadPng(data, pngName, db); 00158 WriteRaw(data, rawName, db, (binary != 0)); 00159 delete data; 00160 }
Here is the call graph for this function:
|