Extract descriptor information about image instance.
ImageDescriptor d = new ImageDescriptor();
try {
d.mWidth = rawData[valueIndex++] & 0xff;
d.mHeight = rawData[valueIndex++] & 0xff;
d.mCodingScheme = rawData[valueIndex++] & 0xff;
// parse image id
d.mImageId = (rawData[valueIndex++] & 0xff) << 8;
d.mImageId |= rawData[valueIndex++] & 0xff;
// parse offset
d.mHighOffset = (rawData[valueIndex++] & 0xff); // high byte offset
d.mLowOffset = rawData[valueIndex++] & 0xff; // low byte offset
d.mLength = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));
} catch (IndexOutOfBoundsException e) {
CatLog.d("ImageDescripter", "parse; failed parsing image descriptor");
d = null;
}
return d;