Definition at line 141 of file Segmentation.h. References GetEnd(), GetShotId(), GetStart(), and Impala::Core::Table::Table::Size(). Referenced by Impala::Core::VideoSet::ImportAudioConcepts::HandleNewFile(). 00142 { 00143 std::vector<int> res; 00144 int first = GetShotId(videoId, startFrame); 00145 int last = GetShotId(videoId, endFrame); 00146 if ((first == Size()) || (last == Size())) 00147 return res; 00148 00149 if (first == last) 00150 { 00151 if (endFrame - startFrame + 1 > minimalOverlap) 00152 res.push_back(first); 00153 return res; 00154 } 00155 00156 if (GetEnd(first) - startFrame + 1 > minimalOverlap) 00157 res.push_back(first); 00158 if (last - first > 1) 00159 { 00160 for (int s=first+1 ; s<last ; s++) 00161 res.push_back(s); 00162 } 00163 if (endFrame - GetStart(last) + 1 > minimalOverlap) 00164 res.push_back(last); 00165 return res; 00166 }
Here is the call graph for this function:
|