Definition at line 143 of file mainVdiff.cpp. References Impala::CmdOptions::AddOption(), Impala::Core::Stream::RgbDataSrcFactory::Construct(), Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetString(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::Core::Stream::RgbDataSrcFactory::Instance(), Impala::Core::Stream::RgbDataSrc::LastFrame(), Impala::Application::DemoCamera2d::oglWnd, Impala::CmdOptions::ParseArgs(), and Impala::Core::Stream::RgbDataSrc::Valid(). Referenced by main(). 00144 { 00145 CmdOptions& options = CmdOptions::GetInstance(); 00146 options.Initialise(true, true, true); 00147 options.AddOption(0, "src2", "type", "", "dx|avi|mpeg2|mpeg2es"); 00148 if (! options.ParseArgs(argc, argv, "filename1 filename2", 2)) 00149 return 1; 00150 00151 ILOG_VAR(Application.mainVdiff); 00152 00153 String srcName1 = options.GetArg(0); 00154 String srcName2 = options.GetArg(1); 00155 00156 RgbDataSrcFactory& factory = RgbDataSrcFactory::Instance(); 00157 RgbDataSrc* src1 = factory.Construct(srcName1, options.GetString("src")); 00158 if (! src1->Valid()) 00159 { 00160 ILOG_ERROR("RgbDataSrc failed"); 00161 return 0; 00162 } 00163 ILOG_INFO("src1: " << src1->LastFrame()+1 << " frames of " 00164 << src1->FrameWidth() << " x " << src1->FrameHeight()); 00165 00166 RgbDataSrc* src2 = factory.Construct(srcName2, options.GetString("src2")); 00167 if (! src2->Valid()) 00168 { 00169 ILOG_ERROR("RgbDataSrc failed"); 00170 return 0; 00171 } 00172 ILOG_INFO("src2: " << src2->LastFrame()+1 << " frames of " 00173 << src2->FrameWidth() << " x " << src2->FrameHeight()); 00174 00175 WindowVdiff* oglWnd = new WindowVdiff(src1, src2); 00176 if (! oglWnd->Valid()) 00177 { 00178 ILOG_ERROR("WindowVdiff failed"); 00179 return 0; 00180 } 00181 return 1; 00182 }
Here is the call graph for this function:
|