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

void Impala::Visualization::Video::GetFramePath ( int  frameNr,
char *const   buffer,
const std::string &  basePath,
const std::string  suffix 
) const [inline, private]

Definition at line 115 of file Video.h.

References mSubId, and mType.

00116     {
00117         if (mType == 1)
00118         {
00119 #ifdef RICHARD
00120             sprintf(buffer, "%s%05d%s", basePath.c_str(), frameNr, suffix.c_str());
00121 #else
00122             static std::string sequenceNames[] = {"argument", "gesticulation", "pickpocketing"};
00123             static int sequenceSizes[] = {232, 80, 179};
00124             static int emptySize = 200;
00125             int seqId = 0;
00126             bool showEmpty = false;
00127             
00128             for (int i = 0; i < 3; i++)
00129                 if (frameNr < sequenceSizes[i])
00130                 {
00131                     seqId = i;
00132                     showEmpty = false;
00133                     break;
00134                 }
00135                 else
00136                 {
00137                     frameNr -= sequenceSizes[i];
00138                     if (frameNr < emptySize)
00139                     {
00140                         showEmpty = true;
00141                         break;
00142                     }
00143                     else
00144                         frameNr -= emptySize;
00145                 }
00146 
00147             //sprintf(buffer, "%s%03d%s", basePath.c_str(), frameNr, suffix.c_str());
00148             if (showEmpty)
00149                 sprintf(buffer, "%sempty_r%i.jpg", basePath.c_str(), mSubId);
00150             else
00151                 sprintf(buffer, "%s%s/image%03d%s", basePath.c_str(), sequenceNames[seqId].c_str(), frameNr, suffix.c_str());
00152 #endif
00153         }
00154         else
00155         {
00156             sprintf(buffer, "%s%05d%s", basePath.c_str(), frameNr, suffix.c_str());
00157         }
00158     }


Generated on Thu Jan 13 09:25:21 2011 for ImpalaSrc by  doxygen 1.5.1