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

OGLIMAGE* Impala::Application::TagsLife::RemoteRetriever::requestImage ( std::string  url,
bool  fromCache = true,
bool  toCache = true 
) [inline]

Definition at line 52 of file RemoteRetriever.h.

References ILOG_DEBUG, Impala::Application::MediaTable::RemoteRetriever::mCachePrefix, Impala::Application::MediaTable::RemoteRetriever::mUseCache, Impala::Visualization::RgbOglImage::OglImage(), and requestImage().

Referenced by requestImage().

00052                                                                                       {
00053         Core::Array::Array2dVec3UInt8* empty = Core::Array::ArrayCreate<Core::Array::Array2dVec3UInt8>(0, 0, 0, 0);
00054         OGLIMAGE* oglIm = Visualization::RgbOglImage::OglImage(empty);
00055                 if(!mUseCache) fromCache = toCache = false;
00056         RemoteImageRetriever retriever = RemoteImageRetriever(url, oglIm, fromCache, toCache, mCachePrefix);
00057 #ifdef USE_BOOST_THREAD
00058 #ifdef USE_BOOST_THREADPOOL
00059         threadpool.schedule(retriever);
00060 #else
00061         boost::thread work(retriever);
00062 #endif
00063 #else
00064         retriever();
00065 #endif
00066                 ILOG_DEBUG("Returning image of " << oglIm->w << "x" << oglIm->h <<" pixels at " << oglIm);
00067         return oglIm;
00068     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:21 2011 for ImpalaSrc by  doxygen 1.5.1