Definition at line 550 of file VideoAccessStrategy.h. References FrameIsValid(), HASH_SIZE, ILOG_INFO, mBadFrameCount, mFrames, mLeadingBadFrameCount, mNrOfFrames, mPackets, mScanDataPresent, mVideoIsValid, Impala::Util::Read(), Impala::Core::Table::Table::SetEmpty(), and Impala::Core::Table::Table::Size(). 00551 { 00552 Util::IOBufferFile buf(fileName, true, false); 00553 00554 if (mPackets) 00555 mPackets->SetEmpty(); 00556 else 00557 mPackets = new PacketTable(1); 00558 Table::Read(mPackets, &buf); 00559 ILOG_INFO("Read " << mPackets->Size() << " packets from file"); 00560 00561 if (mFrames) 00562 mFrames->SetEmpty(); 00563 else 00564 mFrames = new FrameTable(Column::ColumnTem<Int32>(1), 00565 Column::ColumnTem<Int32>(1), 00566 Column::ColumnTem<Int32>(1), 00567 Column::ColumnTem<Int32>(1), 00568 Column::FixedStringColumn(HASH_SIZE, 1)); 00569 Table::Read(mFrames, &buf); 00570 ILOG_INFO("Read " << mFrames->Size() << " frames from file"); 00571 00572 bool oldScanDataPresent = mScanDataPresent; 00573 mScanDataPresent = true; 00574 mNrOfFrames = mFrames->Size(); 00575 mBadFrameCount = 0; 00576 mLeadingBadFrameCount = 0; 00577 for (int f = 0; f < mNrOfFrames; f++) 00578 if (!FrameIsValid(f)) 00579 { 00580 mBadFrameCount++; 00581 if (mBadFrameCount > f) 00582 mLeadingBadFrameCount++; 00583 } 00584 mVideoIsValid = true; 00585 mScanDataPresent = oldScanDataPresent; 00586 }
Here is the call graph for this function:
|