Skip to content

Some issues when get metadata from heic picture #362

@lzzcg

Description

@lzzcg

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 :)

  1. in class ItemInfoBox.ItemInfoEntry.
    the code cannot parse subsequent bytes after eexcute the line itemName = reader.getString(4);
    after I delete this line, the program works ok.

  2. 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 with name = reader.getString((int)box.size - 32);, it works fine.

  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions