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

Impala::Core::ImageSet::Thumbnails::Thumbnails ( Reporter reporter,
CmdOptions options 
) [inline]

Definition at line 25 of file Thumbnails.h.

References Impala::atof(), Impala::FileNameExt(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, Impala::Core::ImageSet::MakeImageSet(), mArchive, mBuf, mBufSize, mFirstImHeight, mFirstImWidth, mReporter, mRkfMask, mScale, mSplitArchive, mThumbPrefix, mThumbSet, and Impala::Core::ImageSet::Reporter::SetReportArray().

00026     {
00027         mReporter = reporter;
00028         mThumbSet = 0;
00029         mThumbPrefix = "";
00030         String thumbSetDef = options.GetArg(2);
00031         if (FileNameExt(thumbSetDef) == ".txt")
00032             mThumbSet = MakeImageSet(thumbSetDef);
00033         else
00034             mThumbPrefix = thumbSetDef;
00035         mScale = 0.5;
00036         if (options.GetNrArg() > 3)
00037             mScale = atof(options.GetArg(3));
00038         mArchive = false;
00039         mSplitArchive = false;
00040         if (options.GetNrArg() > 4)
00041         {
00042             if (options.GetArg(4) == "archive")
00043                 mArchive = true;
00044             if (options.GetArg(4) == "split")
00045                 mSplitArchive = true;
00046             mReporter->SetReportArray(false); // we will cause a "memory leak"
00047         }
00048         mRkfMask = false;
00049         if (options.GetNrArg() > 5)
00050         {
00051             if (options.GetArg(5) == "rkf")
00052                 mRkfMask = true;
00053         }
00054         mFirstImWidth = -1;
00055         mFirstImHeight = -1;
00056         mBufSize = 100000;
00057         mBuf = new char[mBufSize];
00058         if ((mArchive || mSplitArchive) && (!mThumbSet))
00059         {
00060             ILOG_ERROR("Archiving requires a thumbset");
00061             mArchive = false;
00062             mSplitArchive = false;
00063         }
00064     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:08 2011 for ImpalaSrc by  doxygen 1.5.1