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

void Impala::Application::VideoExcel::ImageCache::Init ( TableDataSource source,
int  size 
) [inline, private]

Definition at line 248 of file ImageCache.h.

References ILOG_DEBUG, mCacheSize, mImages, mLRU, and mSource.

Referenced by ImageCache().

00249     {
00250         mCacheSize = size;
00251         ILOG_DEBUG("Initializing image cache for "<< mCacheSize <<" OGLIMAGEs");
00252 
00253 #ifdef USE_BOOST_THREADS
00254         mEmptyArray = Core::Array::ArrayCreate<Core::Array::Array2dVec3UInt8>(0, 0, 0, 0);
00255         mThreadPool = new boost::threadpool::pool();
00256         mThreadPool->size_controller().resize(8);
00257         mActiveTasks = false;
00258 #endif
00259 
00260         mSource = source;
00261 
00262         for (int i=0; i<mCacheSize; i++)
00263         {
00264             mImages.push_back(new ImageWithID(-1, 0));
00265             mLRU.push_back(i);
00266         }
00267     }


Generated on Fri Mar 19 10:53:04 2010 for ImpalaSrc by  doxygen 1.5.1