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

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

Definition at line 83 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_MPEG2, SRC_MPEG2ES, SRC_RAW, and SuggestSrc().

Referenced by Impala::Application::DataServer::AcceptRequest(), Impala::Visualization::VideoPlayer::Construct(), Construct(), ConstructWindow(), Impala::Visualization::AllFramesTLineVideo::HandleNewVideo(), Impala::Application::mainBackground(), Impala::Application::DemoCamera2d::mainDemoCamera2d(), Impala::Application::mainPlay(), Impala::Application::mainShotSegmentation(), Impala::Application::Src::mainSrc(), Impala::Application::mainVdiff(), Impala::Application::Video::mainVideo(), Impala::Visualization::DirImViewer::OpenDir(), Impala::Core::VideoSet::ShotSegmenterGUI::SetSource(), Impala::Application::Client::TestMpg(), and Impala::Visualization::TimeLineViewStrip::ViewStripOpenRawFile().

00085     {
00086 #else // REPOSITORY_USED
00087     RgbDataSrc*
00088     Construct(const RgbDataSrcLocator& loc, CString option)
00089     {
00090         String srcName = loc.GetName();
00091 #endif // REPOSITORY_USED
00092         int src = SuggestSrc(srcName);
00093         if (!option.empty())
00094         {
00095             if (option == "dx")
00096                 src = SRC_DX;
00097             else if (option == "avi")
00098                 src = SRC_AVI;
00099             else if (option == "mpeg2")
00100                 src = SRC_MPEG2;
00101             else if (option == "mpeg2es")
00102                 src = SRC_MPEG2ES;
00103 
00104             else if (option == "lavc")
00105                 src = SRC_LAVC; // use default setting 
00106             else if (option == "lavcnoidx") // deprecated
00107             {
00108                 ILOG_WARN("Value 'lavcnoidx' for option --src is deprecated;" <<
00109                     " you should choose from 'lavcnocheck' and 'lavcscanonly';" <<
00110                     " 'lavcnoidx' is handled as 'lavcnocheck'");
00111                 src = SRC_LAVC_NOCHECK;
00112             }
00113             else if (option == "lavcnocheck")
00114                 src = SRC_LAVC_NOCHECK;
00115             else if (option == "lavcscanonly")
00116                 src = SRC_LAVC_SCANONLY;
00117             else if (option == "lavcreadidx")
00118                 src = SRC_LAVC_READIDX;
00119             else if (option == "lavcwithidx")
00120                 src = SRC_LAVC_WITHIDX;
00121             else if (option == "lavcwriteidx")
00122                 src = SRC_LAVC_WRITEIDX;
00123             else if (option == "lavcadhocidx")
00124                 src = SRC_LAVC_ADHOCIDX;
00125 
00126             else if (option == "info")
00127                 src = SRC_INFO;
00128             else if (option == "index")
00129                 src = SRC_INDEX;
00130             else if (option == "raw")
00131                 src = SRC_RAW;
00132 
00133             else
00134             {
00135                 ILOG_ERROR("Unknown option value: --src " << option);
00136                 return 0;
00137             }
00138         }
00139 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00140         return Construct(src, srcName, db);
00141 #else // REPOSITORY_USED
00142         return Construct(src, loc);
00143 #endif // REPOSITORY_USED
00144     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:17:19 2010 for ImpalaSrc by  doxygen 1.5.1