-
Notifications
You must be signed in to change notification settings - Fork 488
Description
Hi everyone, I'm testing the function of 'getting metadata from heic picture', and find some issues as below. I'm wondering whether I have some misunderstanding to the function? Thank you in advance :)
-
in class ItemInfoBox.ItemInfoEntry.
the code cannot parse subsequent bytes after eexcute the lineitemName = reader.getString(4);
after I delete this line, the program works ok. -
in class HandlerBox, I got an error when execute the line
name = reader.getNullTerminatedString((int)box.size - 32, Charset.defaultCharset());
and after I replace the line withname = reader.getString((int)box.size - 32);
, it works fine. -
in class ItemLocationBox, I think the structure of the ItemLocationBox should be like below:
public class ItemLocationBox extends FullBox
{
int indexSize;
int offsetSize;
int lengthSize;
int baseOffsetSize;
long itemCount;
ItemLocationInfo[] itemLocationInfos;
}
public class ItemLocationInfo
{
long itemID;
int constructionMethod;
int dataReferenceIndex;
byte[] baseOffset;
int extentCount;
Extent[] extents;
}
4. cannot get the Exif info from the mdat box, I think this feature has not been implemented yet. :) moved to #371