Scans the video for meta-data like bad frames and frame accuracy.
Definition at line 76 of file VideoAccessStrategy.h. References CleanUp(), HASH_SIZE, ILOG_INFO, mBadFrameCount, mFrames, mLeadingBadFrameCount, mNrOfFrames, mPackets, mScanDataPresent, NrOfFrames(), ResetVideoSrc(), ScanProtected(), and Impala::Core::Table::Table::Size(). Referenced by Impala::Core::Stream::RgbDataSrcLavc::Scan(). 00077 { 00078 if (!ResetVideoSrc()) 00079 return false; 00080 00081 ILOG_INFO("Scanning video data..."); 00082 mPackets = new PacketTable(1); 00083 mFrames = new FrameTable(Column::ColumnTem<Int32>(1), 00084 Column::ColumnTem<Int32>(1), 00085 Column::ColumnTem<Int32>(1), 00086 Column::ColumnTem<Int32>(1), 00087 Column::FixedStringColumn(HASH_SIZE, 1)); 00088 mNrOfFrames = 0; 00089 mBadFrameCount = 0; 00090 mLeadingBadFrameCount = 0; 00091 00092 bool scanSuccess = ScanProtected(); 00093 ResetVideoSrc(); 00094 if (!scanSuccess) 00095 { 00096 CleanUp(); 00097 return false; 00098 } 00099 00100 mScanDataPresent = true; 00101 mNrOfFrames = mFrames->Size(); 00102 ILOG_INFO("Finished video scan; frame count established: " << 00103 NrOfFrames()); 00104 return true; 00105 }
Here is the call graph for this function:
|