Skip to content

Commit

Permalink
add BitPerSampleUnit to the GUI
Browse files Browse the repository at this point in the history
The BitsPerSampleUnit is missing in the GUI. It is hard-coded as Integer, because this is how it is also done in the other handlers. According to the specification of MIX, it can also be float. but this is not supported by jhove
  • Loading branch information
samalloing authored Feb 16, 2024
1 parent d745990 commit 4021afd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,10 @@ private DefaultMutableTreeNode nisoToNode(NisoImageMetadata niso) {
for (int i = 0; i < iarray.length; i++) {
nod.add(new DefaultMutableTreeNode(Integer.toString(iarray[i]),
false));
//BitsPerSampleUnit Integer is assumed, because of BitsPerSample
// According to the specification, it can also be float.
// This is currently not supported by jHove
nod.add(new DefaultMutableTreeNode("Integer"));
}
}
if ((n = niso.getSamplesPerPixel()) != NisoImageMetadata.NULL) {
Expand Down

0 comments on commit 4021afd

Please sign in to comment.