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

virtual void Impala::Core::VideoSet::ReadBlocksFile::HandleNewFile ( VideoSet vs,
int  fileId,
Stream::RgbDataSrc src 
) [inline, virtual]

Arrived at given DB_FILE in a "normal" walk.

Reimplemented from Impala::Core::VideoSet::Listener.

Definition at line 34 of file ReadBlocksFile.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), Impala::File::Eof(), Impala::Util::StringParser::GetInt(), Impala::Util::StringParser::GetString(), ILOG_DEBUG, ILOG_ERROR, mCurShot, mKeyframes, mSegmentation, Impala::File::ReadLine(), and Impala::File::Valid().

00035     {
00036         // todo : this doesn't work anymore, but is also not needed anymore
00037         //std::string fName = vs->GetFilePathId("VideoMetaData", "", fileId, true,
00038         //                                      ".blocks", false);
00039         std::string fName("dummy");
00040         ILOG_DEBUG("Checking " << fName);
00041         File shots(fName, "r");
00042         if (!shots.Valid())
00043         {
00044             ILOG_ERROR("couldn't find " << fName);
00045             return;
00046         }
00047         int i = 1;
00048         while (! shots.Eof())
00049         {
00050             // start with shots file
00051             std::string line = shots.ReadLine(true);
00052             if (! line[0])
00053                 continue;
00054             Util::StringParser p(line);
00055             int startFrame = p.GetInt();
00056             int endFrame = p.GetInt();
00057             std::string name = p.GetString();
00058             mSegmentation->Add(fileId, startFrame, endFrame, name);
00059             mKeyframes->Add(fileId, mCurShot++, (startFrame+endFrame)/2,
00060                             name + "_RKF.jpg");
00061             i++;
00062         }
00063     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:31:07 2010 for ImpalaSrc by  doxygen 1.5.1