Implements Impala::Visualization::MapFunction. Definition at line 60 of file MapFunction.h. References Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::Segmentation::GetNrVideos(), Impala::Visualization::MapFunction::mHeight, mSegmentation, and Impala::Visualization::MapFunction::mWidth. 00061 { 00062 int videos = mSegmentation->GetNrVideos(); 00063 int video = y * videos / mHeight; 00064 if (video < 0) video = 0; 00065 if (video > videos-1) video = videos-1; 00066 00067 int shotsinvideo = mSegmentation->GetNrShotsVideo(video); 00068 00069 int videoshot = x * shotsinvideo / mWidth; 00070 if (videoshot < 0) videoshot = 0; 00071 if (videoshot > shotsinvideo-1) videoshot = shotsinvideo-1; 00072 00073 return videoshot + mSegmentation->GetFirstShotVideo(video); 00074 }
Here is the call graph for this function:
|