loaders: PNG: Handle gamma on 16bpp conversion
[gfxprim.git] / doc / signatures.txt
blobfce2bf9362f54f1182036a7e6da8e75b991b6075
1 File signatures
2 ---------------
4 File signature is a short well defined sequence of bytes usually situated at
5 the beginning of the file.
7 .Table of image file signatures used by GFXprim loaders
8 [options="autowidth,header"]
9 |=============================================================================
10 | Extension | Format Name                 | Signature | Signature in Hex
11 | *JPEG*    |                             | | +0xff 0xd8 0xff+
12 | *PNG*     | Portable Network Graphics   | +\211PNG\r\n\032\n+ |
13                                             +89 50 4e 47 0d 0a 1a 0a+
14 | *GIF*     | Graphics Interchange Format | +GIF87a or GIF89a+ |
15 | *BMP*     |                             | +BM+ | +42 4d+
16 | *TIFF*    | Tagged Image File Format    | +II*\0 or MM\0*+ | +49 49 2a 00 or
17                                                                 4d 4d 2a 00+
18 | *PSP*     | Paint Shop Pro Image        |
19  +Paint Shop Pro Image File\n\x1a\0\0\0\0\0\0\0\0+ |
20 | *PSD*     | Adobe Photoshop Image       | +8BPS\0\x01+ |
21 | *PBM*     | Netpbm portable bitmap      | +P1 or P4+ |
22 | *PGM*     | Netpbm portable graymap     | +P2 or P5+ |
23 | *PPM*     | Netpbm portable pixmap      | +P3 or P6+ |
24 | *PNM*     | Netpbm portable anymap      | +P1, P2, P3, P4, P5, P6+ |
25 | *JP2*     | JPEG 2000                   |
26 +\0\0\0\x0cjP\x20\x20\x0d\x0a\x87\x0a+ | +00 00 00 0c 6a 50 20 20 0d 0a 87 0a+
27 | *PCX*     | ZSoft PCX                   || +0a [01-05] 0x01 {01, 02, 04, 08}+
28 | *CBZ*     | Comic Book Archive (ZIP)    | +PK\03\04+ |
29 |=============================================================================
32 Explanation
33 ~~~~~~~~~~~
34  * Signature strings are written in C string syntax
35  * The [A-B] denotes any number from interval
36  * The {A, B, C} denotes any number from the set