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

RgbDataSrc* Impala::Core::Stream::RgbDataSrcFactory::Construct ( CString  srcName,
CString  option,
Util::Database db = &Util::Database::GetInstance() 
) [inline]

Definition at line 62 of file RgbDataSrcFactory.h.

References Impala::Persistency::RgbDataSrcLocator::GetName(), ILOG_ERROR, ILOG_WARN, SRC_AVI, SRC_DX, SRC_INDEX, SRC_INFO, SRC_LAVC, SRC_LAVC_ADHOCIDX, SRC_LAVC_NOCHECK, SRC_LAVC_READIDX, SRC_LAVC_SCANONLY, SRC_LAVC_WITHIDX, SRC_LAVC_WRITEIDX, SRC_RAW, and SuggestSrc().

Referenced by Impala::Application::DataServer::AcceptRequest(), Impala::Visualization::VideoPlayer::Construct(), Construct(), ConstructWindow(), Impala::Application::mainBackground(), Impala::Application::DemoCamera2d::mainDemoCamera2d(), Impala::Application::mainPlay(), Impala::Application::Src::mainSrc(), Impala::Application::mainVdiff(), Impala::Application::Video::mainVideo(), Impala::Visualization::DirImViewer3D::OpenDir(), Impala::Visualization::DirImViewer::OpenDir(), Impala::Application::Client::TestMpg(), and Impala::Visualization::TimeLineViewStrip::ViewStripOpenRawFile().

00064     {
00065 #else // REPOSITORY_USED
00066     RgbDataSrc*
00067     Construct(const RgbDataSrcLocator& loc, CString option)
00068     {
00069         String srcName = loc.GetName();
00070 #endif // REPOSITORY_USED
00071         int src = SuggestSrc(srcName);
00072         if (!option.empty())
00073         {
00074             if (option == "dx")
00075                 src = SRC_DX;
00076             else if (option == "avi")
00077                 src = SRC_AVI;
00078 
00079             else if (option == "lavc")
00080                 src = SRC_LAVC; // use default setting 
00081             else if (option == "lavcnoidx") // deprecated
00082             {
00083                 ILOG_WARN("Value 'lavcnoidx' for option --src is deprecated;" <<
00084                     " you should choose from 'lavcnocheck' and 'lavcscanonly';" <<
00085                     " 'lavcnoidx' is handled as 'lavcnocheck'");
00086                 src = SRC_LAVC_NOCHECK;
00087             }
00088             else if (option == "lavcnocheck")
00089                 src = SRC_LAVC_NOCHECK;
00090             else if (option == "lavcscanonly")
00091                 src = SRC_LAVC_SCANONLY;
00092             else if (option == "lavcreadidx")
00093                 src = SRC_LAVC_READIDX;
00094             else if (option == "lavcwithidx")
00095                 src = SRC_LAVC_WITHIDX;
00096             else if (option == "lavcwriteidx")
00097                 src = SRC_LAVC_WRITEIDX;
00098             else if (option == "lavcadhocidx")
00099                 src = SRC_LAVC_ADHOCIDX;
00100 
00101             else if (option == "info")
00102                 src = SRC_INFO;
00103             else if (option == "index")
00104                 src = SRC_INDEX;
00105             else if (option == "raw")
00106                 src = SRC_RAW;
00107 
00108             else
00109             {
00110                 ILOG_ERROR("Unknown option value: --src " << option);
00111                 return 0;
00112             }
00113         }
00114 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00115         return Construct(src, srcName, db);
00116 #else // REPOSITORY_USED
00117         return Construct(src, loc);
00118 #endif // REPOSITORY_USED
00119     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:30 2011 for ImpalaSrc by  doxygen 1.5.1