Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::Im::DoPng2Raw (  ) 

Definition at line 188 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().

00189 {
00190     ILOG_VAR(Impala.Application.Im.DoPng2Raw);
00191     CmdOptions& options = CmdOptions::GetInstance();
00192     if (options.GetNrArg() < 3)
00193     {
00194         ILOG_ERROR("Need more arguments");
00195         return;
00196     }
00197     Util::Database* db = &Util::Database::GetInstance();
00198 
00199     String pngName = options.GetArg(1);
00200     String rawName = options.GetArg(2);
00201     int binary = 1;
00202     if (options.GetNrArg() >= 5)
00203         binary = atol(options.GetArg(4));
00204     Array2dVec3UInt8* data = 0;
00205     ReadPng(data, pngName, db);
00206     WriteRaw(data, rawName, db, binary);
00207     delete data;
00208 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:12 2011 for ImpalaSrc by  doxygen 1.5.1