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

bool Impala::Core::Stream::RgbDataSrcLavc_old::PopulateIndex (  )  [inline, private]

Definition at line 620 of file RgbDataSrcLavc_old.h.

References ILOG_DEBUG, and ILOG_WARN.

Referenced by Init().

00621     {
00622         ILOG_DEBUG("Creating the video index!");
00623 
00624         const String formatName(mFormatCtx->iformat->name);
00625         if (("mpeg" == formatName) || ("mpg" == formatName) 
00626             || mCodecName == "mpeg1video")
00627         {
00628             PopulateMpegIndex();
00629         }
00630         else if (("avi" == formatName) || ("mov,mp4,m4a,3gp,3g2,mj2" == formatName))
00631         {
00632             PopulateAviIndex();
00633         }
00634         else
00635         {
00636             ILOG_WARN("Cannot an create external index for format: " << formatName);
00637             mLastFrame = mFrameCountCalculated - 1; // is an estimate
00638             return false;
00639 
00640             //PopulateTrivialIndex();
00641         }
00642         
00643         ILOG_DEBUG("Frame count established from populating the index: " << mLastFrame + 1);
00644         return true;
00645     }


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