diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:13:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:13:10 +0000 |
commit | 3c57dd931145d43f2b0aef96c4d178135956bf91 (patch) | |
tree | 3de698981e9f0cc2c4f9569b19a5f3595e741f6b /devel-docs/pat.txt | |
parent | Initial commit. (diff) | |
download | gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.tar.xz gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.zip |
Adding upstream version 2.10.36.upstream/2.10.36
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devel-docs/pat.txt')
-rw-r--r-- | devel-docs/pat.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/devel-docs/pat.txt b/devel-docs/pat.txt new file mode 100644 index 0000000..36a869f --- /dev/null +++ b/devel-docs/pat.txt @@ -0,0 +1,44 @@ + +The GIMP Pattern File Format Version 1 (.pat) +------------------------------------------------ + +HEADER +------ + +Bytes 0 - 3: header_size: + Type: 32 bit unsigned int + Value: size of pattern header (24) + length of pattern name + +Bytes 4 - 7: version + Type: 32 bit unsigned int + Value: The file format version. + +Bytes 8 - 11: width + Type: 32 bit unsigned int + Value: Pattern width + +Bytes 12 - 15: height + Type: 32 bit unsigned int + Value: Pattern height + +Bytes 16 - 19: bytes + Type: 32 bit unsigned int + Value: Colour depth of pattern + 1 = greyscale, 2 = greyscale + A, 3 = RGB, 4 = RGBA + +Bytes 20 - 23: magic_number + Type: 32 bit unsigned int + Value: GIMP pattern magic number. + ('G' << 24) + ('P' << 16) + ('A' << 8) + 'T' + +Bytes 24 - (header_size - 1): + Type: char * + Value: UTF-8 string - name of pattern + + +BODY +---- + Size: width * height * bytes + Type: uchar * + Value: Pixel values (row-first) for pattern + |