(HG2, HG3): use image ID entry names, fix HG2 archive view. #479
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change HG2/HG3 archive view entry names to use real ID names.
Fix multiple errors in
ArcHG2.cs
image view, and add version0x20
support.Changes
ArcHG2.cs
where opened images would not passVersion
toHg2MetaData
, causing the reader to unpack everything as version0x10
instead.0x20
as archive, and read real data offset when assigning theHeaderSize
field inHg2MetaData
.0x10
, all HG* images contain frame IDs, which are considered part of the name (at least when used in a multi-image fashion).Example of new frame ID names:
About new fields referenced
HG3 fields referenced
Frame Header
uint32
uint32
"stdinfo"
tagHG2 fields referenced
See Version 0x20 fields: ID and OffsetData (referenced for the
HeaderSize
field assignment)Frame Metadata: Version 0x10
uint32
uint32
uint32
uint32
uint32
uint32
uint32
uint32
uint32
Frame Metadata: Version 0x20 (extended)
uint32
0x20
)Alternatively consider as extra metadata size
uint32
uint32
uint32
int32
int32
bool32
uint32
Value is
0
if no more framesFrame Metadata: Version 0x25 (extended)
int32
int32