Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

int Impala::Visualization::AllFramesTLineVideo::FindAdjacentPositive ( int  id,
int  frame,
bool  next 
) [inline]

Definition at line 291 of file AllFramesTLineVideo.h.

References mAnnoPositives.

Referenced by GoToAdjacentPositive().

00292     {
00293         int        i, k, prevK;
00294 
00295         frame += next ? 1 : 0;
00296         IntVector* positiveVector = mAnnoPositives[id];
00297 
00298         for (i=0; i<positiveVector->size(); i++)
00299         {
00300             if ((k=(*positiveVector)[i])<frame)
00301                 prevK = k;
00302             else
00303                 break;
00304         }
00305         return /* 15 + */ (next ? k : prevK); // Compensate 15 for keyFrameError 
00306     }


Generated on Thu Jan 13 09:24:28 2011 for ImpalaSrc by  doxygen 1.5.1