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

int Impala::Core::Trec::IDashQueryEngine::GetLanguage ( int  shotID  )  [inline, private]

Definition at line 388 of file IDashQueryEngine.h.

References Impala::Core::Trec::ThreadSet::GetSegmentation(), Impala::Core::VideoSet::Segmentation::GetVideoId(), Impala::Core::VideoSet::Segmentation::GetVideoSet(), ILOG_WARN, LANGUAGE_ARABIC, LANGUAGE_CHINESE, LANGUAGE_ENGLISH, and mThreadSet.

Referenced by FilterByLanguage().

00389     {
00390         int videoID = mThreadSet->GetSegmentation()->GetVideoId(shotID);
00391         String videofile =
00392             mThreadSet->GetSegmentation()->GetVideoSet()->GetFile(videoID);
00393         
00394         if (videofile.find("_ENG") != String::npos)
00395             return LANGUAGE_ENGLISH;
00396         if (videofile.find("_CHN") != String::npos)
00397             return LANGUAGE_CHINESE;
00398         if (videofile.find("_ARB") != String::npos)
00399             return LANGUAGE_ARABIC;
00400 
00401         ILOG_WARN("QueryEngine::GetLanguage(" << shotID <<
00402                   "): WARNING: could not determine language of " << videofile );
00403         return -1;
00404     }

Here is the call graph for this function:


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