Arrived at given DB_FILE in a "normal" walk.
Reimplemented from Impala::Core::VideoSet::Listener. Definition at line 75 of file ShotSegmenter.h. References CleanUpScoresAndPredictions(), Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), ILOG_ERROR, Impala::Core::Stream::RgbDataSrc::LastFrame(), mPredictions, mPyramid, mScores, mWeights, Impala::Core::Geometry::RectanglePyramid::SetImageSize(), and Impala::Core::Array::SetVal(). 00076 { 00077 if (src->LastFrame() < 0) 00078 { 00079 ILOG_ERROR("HandleNewFile: src->LastFrame() = " << src->LastFrame() 00080 << " (fileId = " << fileId << ")"); 00081 return; 00082 } 00083 int lastFrame = src->LastFrame(); 00084 00085 // Reset data for the next file 00086 SetVal(mWeights, 0); 00087 00088 CleanUpScoresAndPredictions(); 00089 00090 mPredictions = Array::ArrayCreate<Array2dScalarReal64>(lastFrame,1,0,0); 00091 SetVal(mPredictions, 0); 00092 00093 mScores = Array::ArrayCreate<Array2dScalarReal64>(lastFrame,1,0,0); 00094 SetVal(mScores, 0); 00095 00096 mPyramid.SetImageSize(src->FrameWidth(), src->FrameHeight()); 00097 }
Here is the call graph for this function:
|