Reimplemented from Impala::Core::Array::ImageArchive. Definition at line 68 of file ImageArchiveMemory.h. References ILOG_ERROR, NrImages(), and Valid(). Referenced by ReadImage(). 00069 { 00070 if (!Valid()) 00071 { 00072 ILOG_ERROR("Cannot GetImageData: archive not valid"); 00073 return 0; 00074 } 00075 if (idx >= NrImages()) 00076 { 00077 ILOG_ERROR("Index out of bounds: " << idx << " vs. " << NrImages()); 00078 return 0; 00079 } 00080 00081 /* Todo 00082 mIOBuffer->SetPosition(mFileOffset[idx]); 00083 char buf[200]; 00084 int width; 00085 int height; 00086 mIOBuffer->Read(buf, 20); 00087 sscanf(buf, "%d %d ", &width, &height); 00088 blockSize = width*height; 00089 UInt8* data = new UInt8[blockSize]; 00090 size_t nrRead = mIOBuffer->Read(data, blockSize); 00091 if (nrRead != blockSize) 00092 ILOG_ERROR("GetImageData: read " << nrRead 00093 << " bytes instead of " << blockSize); 00094 return data; 00095 */ 00096 ILOG_ERROR("GetImageData not implemented yet"); 00097 return 0; 00098 }
Here is the call graph for this function:
|