Skip to content

Commit

Permalink
PSD: Adding parsing for 'lsdk' (undocumented) additional layer inform…
Browse files Browse the repository at this point in the history
…ation key that represents a 'nested section diverder setting'
  • Loading branch information
daaaaa committed May 30, 2023
1 parent 033a142 commit 20cd259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,4 +709,6 @@ interface PSD extends com.twelvemonkeys.imageio.metadata.psd.PSD {
int luni = 'l' << 24 | 'u' << 16 | 'n' << 8 | 'i';
int lyid = 'l' << 24 | 'y' << 16 | 'i' << 8 | 'd';
int lsct = 'l' << 24 | 's' << 16 | 'c' << 8 | 't';
// Undocumented: Nested section divider setting
int lsdk = 'l' << 24 | 's' << 16 | 'd' << 8 | 'k';
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ final class PSDLayerInfo {
layerId = pInput.readInt();
break;

case PSD.lsdk:
case PSD.lsct:
if (resourceLength < 4) {
throw new IIOException(String.format("Expected sectionDividerSetting length >= 4: %d", resourceLength));
Expand Down

0 comments on commit 20cd259

Please sign in to comment.