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

void Impala::Core::Stream::RgbDataSrcRaw::Init ( CString  fName,
bool  useMemory 
) [inline, private]

Definition at line 81 of file RgbDataSrcRaw.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Util::Database::GetInstance(), ILOG_ERROR, mArchive, mCurIm, Impala::Core::Stream::RgbDataSrc::mFrameHeight, Impala::Core::Stream::RgbDataSrc::mFrameWidth, Impala::Core::Stream::RgbDataSrc::mLastFrame, Impala::Core::Array::ImageArchiveFile::NrImages(), and Impala::Core::Array::ImageArchiveFile::ReadImage().

Referenced by RgbDataSrcRaw().

00082     {
00083         mCurIm = 0;
00084         mArchive = new Array::ImageArchiveFile(fName, useMemory,
00085                                                &Util::Database::GetInstance());
00086 #else // REPOSITORY_USED
00087     void
00088     Init(Array::ImageArchive* archive)
00089     {
00090         mCurIm = 0;
00091         mArchive = archive;
00092 #endif // REPOSITORY_USED
00093         mLastFrame = mArchive->NrImages() - 1;
00094 
00095         Array::Array2dVec3UInt8* im = mArchive->ReadImage(0);
00096         if (im == 0)
00097         {
00098             ILOG_ERROR("Unable to read image");
00099             return;
00100         }
00101         // this only works in case all images have the same size
00102         mFrameWidth = im->CW();
00103         mFrameHeight = im->CH();
00104         delete im;
00105     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:18:01 2010 for ImpalaSrc by  doxygen 1.5.1