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

template<class ArrayT>
void Impala::Core::Array::ReadJpg ( ArrayT *&  dst,
Util::IOBuffer *  buffer 
) [inline]

Definition at line 186 of file ReadJpg.h.

References ILOG_ERROR, ILOG_VAR, Impala::Util::IOBuffer::Read(), ReadJpgFromMemory(), and Impala::Util::IOBuffer::Size().

Referenced by Impala::Application::WindowTrecSearch::InitConfig(), ReadFile(), and ReadJpg().

00187 {
00188     ILOG_VAR(Impala.Core.Array.ReadJpg);
00189     size_t memBufSize = buffer->Size();
00190     char* buf = new char[memBufSize];
00191     size_t nrRead = buffer->Read(buf, memBufSize);
00192     if (nrRead != memBufSize)
00193     {
00194         ILOG_ERROR("Buffer read failed");
00195         delete buf;
00196         return;
00197     }
00198     ReadJpgFromMemory(dst, buf, memBufSize);
00199     delete buf;
00200 }

Here is the call graph for this function:


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