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

void Impala::Application::Im::DoJpg2Raw (  ) 

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

00166 {
00167     ILOG_VAR(Impala.Application.Im.DoJpg2Raw);
00168     CmdOptions& options = CmdOptions::GetInstance();
00169     if (options.GetNrArg() < 3)
00170     {
00171         ILOG_ERROR("Need more arguments");
00172         return;
00173     }
00174     Util::Database* db = &Util::Database::GetInstance();
00175 
00176     String jpgName = options.GetArg(1);
00177     String rawName = options.GetArg(2);
00178     int binary = 1;
00179     if (options.GetNrArg() >= 5)
00180         binary = atol(options.GetArg(4));
00181     Array2dVec3UInt8* data = 0;
00182     ReadJpg(data, jpgName, db);
00183     WriteRaw(data, rawName, db, binary);
00184     delete data;
00185 }

Here is the call graph for this function:


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