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

template<class ArrayT>
void Impala::Core::Array::WriteRawListVar ( std::vector< ArrayT * >  list,
Persistency::File  file,
bool  writeIndex,
bool  binary 
) [inline]

Definition at line 288 of file WriteRaw.h.

References Impala::Persistency::File::GetFileSystem(), Impala::Persistency::File::GetPath(), Impala::Persistency::File::GetWriteBuffer(), ILOG_ERROR, ILOG_VAR, and WriteRawListVar().

Referenced by Impala::Persistency::ImageArchiveRepositoryInFile::Add(), Impala::Core::IDash::VideoSetWrapper::Add(), Impala::Core::ImageSet::FixSizes::HandleDoneDir(), Impala::Core::ImageSet::Archive::HandleDoneDir(), Impala::Core::VideoSet::ExportKeyframes::HandleDoneFile(), Impala::Core::VideoSet::ExportFrames::HandleDoneFile(), Impala::Core::VideoSet::ExportKeyframes::HandleDoneWalk(), Impala::Core::ImageSet::Thumbnails::HandleDoneWalk(), Impala::Core::ImageSet::FixSizes::HandleDoneWalk(), and Impala::Core::ImageSet::Archive::HandleDoneWalk().

00290 {
00291     ILOG_VAR(Impala.Core.Array.WriteRawListVar);
00292     Util::IOBuffer* buf = file.GetWriteBuffer();
00293     if (!buf)
00294         return;
00295 
00296     WriteRawListVar(list, buf, binary);
00297     delete buf;
00298 
00299     if (!writeIndex)
00300         return;
00301     if (!binary)
00302     {
00303         ILOG_ERROR("Cannot write index for non-binary files");
00304         return;
00305     }
00306 
00307     size_t storSize = sizeof(typename ArrayT::StorType);
00308     Int64 elemSize = ArrayT::ElemSize();
00309     std::vector<Int64> v;
00310     Int64 pos = 200;
00311     for (Int64 i=0 ; i<list.size() ; i++)
00312     {
00313         v.push_back(pos);
00314         pos += 20 + storSize * list[i]->CW() * list[i]->CH() * elemSize;
00315     }
00316     Persistency::File idxFile(file.GetPath() + ".idx", file.GetFileSystem());
00317     idxFile.WriteNative(v.begin(), v.end());
00318 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:59:03 2010 for ImpalaSrc by  doxygen 1.5.1