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

void Impala::Core::Stream::Lavc::VideoAccessStrategy::ReadScanData ( CString  fileName  )  [inline, protected]

Definition at line 533 of file VideoAccessStrategy.h.

References FrameIsValid(), HASH_SIZE, ILOG_INFO, mBadFrameCount, mFrames, mLeadingBadFrameCount, mNrOfFrames, mPackets, mScanDataPresent, mVideoIsValid, Impala::Core::Table::Read(), Impala::Core::Table::Table::SetEmpty(), and Impala::Core::Table::Table::Size().

00534     {
00535         Util::IOBufferFile buf(fileName, true, false);
00536 
00537         if (mPackets)
00538             mPackets->SetEmpty();
00539         else
00540             mPackets = new PacketTable(1);
00541         Table::Read(mPackets, &buf);
00542         ILOG_INFO("Read " << mPackets->Size() << " packets from file");
00543 
00544         if (mFrames)
00545             mFrames->SetEmpty();
00546         else
00547             mFrames = new FrameTable(Column::ColumnTem<Int32>(1),
00548                                      Column::ColumnTem<Int32>(1),
00549                                      Column::ColumnTem<Int32>(1),
00550                                      Column::ColumnTem<Int32>(1),
00551                                      Column::FixedStringColumn(HASH_SIZE, 1));
00552         Table::Read(mFrames, &buf);
00553         ILOG_INFO("Read " << mFrames->Size() << " frames from file");
00554 
00555         bool oldScanDataPresent = mScanDataPresent;
00556         mScanDataPresent = true;
00557         mNrOfFrames = mFrames->Size();
00558         mBadFrameCount = 0;
00559         mLeadingBadFrameCount = 0;
00560         for (int f = 0; f < mNrOfFrames; f++)
00561             if (!FrameIsValid(f))
00562             {
00563                 mBadFrameCount++;
00564                 if (mBadFrameCount > f)
00565                     mLeadingBadFrameCount++;
00566             }
00567         mVideoIsValid = true;
00568         mScanDataPresent = oldScanDataPresent;
00569     }

Here is the call graph for this function:


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