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

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

Definition at line 288 of file AllFramesTLineVideo.h.

References mAnnoPositives.

Referenced by GoToAdjacentPositive().

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


Generated on Fri Mar 19 11:41:58 2010 for ImpalaSrc by  doxygen 1.5.1