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

void Impala::Core::Stream::RgbDataSrcLavc_old::PopulateMpegIndex (  )  [inline, private]

Definition at line 649 of file RgbDataSrcLavc_old.h.

References ILOG_DEBUG, and ILOG_INFO.

00650     {
00651         AVIndexEntry *idx = mVideoStream->index_entries;
00652         if (idx && !(mFormatCtx->flags & AVFMT_FLAG_IGNIDX))
00653         {
00654             const int nrOfIndexEntries = 
00655                 mVideoStream->nb_index_entries;
00656             int countValidSize = 0;
00657             int countKeyFrame = 0;
00658             int indexPos = 0;
00659             while (indexPos < nrOfIndexEntries)
00660             {
00661                 if (idx[indexPos].size > 0)
00662                 {
00663                     countValidSize++;
00664                     if (idx[indexPos].flags & AVINDEX_KEYFRAME)
00665                         countKeyFrame++;
00666                 }
00667                 indexPos++;
00668             }
00669             ILOG_INFO("Stream contains an index which will be ignored; nr of entries is " << 
00670                 nrOfIndexEntries << 
00671                 ", of which " << countValidSize << " have size>0" <<
00672                 ", of which " << countKeyFrame << " are marked as KEYFRAME");
00673         }
00674 
00675         // add blank frames to the index
00676         for (int i = 0; i < mBlankFrames; i++)
00677         {
00678             ILOG_DEBUG("AddIndex(" << i << ", -1, -1, " << DUMMY_FRAME_HASH << ")");
00679             AddIndex(i, -1, -1, DUMMY_FRAME_HASH);
00680         }
00681 
00682         PopulateMpegIndexBase();
00683 
00684         mIndexExists = true;
00685     }


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