xref: /freebsd/contrib/file/magic/Magdir/pgf (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*43a5ec4eSXin LI# $File: pgf,v 1.3 2021/02/23 00:51:10 christos Exp $
4b6cee71dSXin LI# pgf: file(1) magic for Progressive Graphics File (PGF)
5b6cee71dSXin LI#
6b6cee71dSXin LI# <http://www.libpgf.org/uploads/media/PGF_Details_01.pdf>
7b6cee71dSXin LI# 2013 by Philipp Hahn <pmhahn debian org>
8b6cee71dSXin LI0 string PGF Progressive Graphics image data,
9b6cee71dSXin LI!:mime image/x-pgf
10b6cee71dSXin LI>3	string	2	version %s,
11b6cee71dSXin LI>3	string	4	version %s,
12b6cee71dSXin LI>3	string	5	version %s,
13b6cee71dSXin LI>3	string	6	version %s,
14b6cee71dSXin LI#	PGFPreHeader
15b6cee71dSXin LI#>>4	lelong	x	header size %d,
16b6cee71dSXin LI#	PGFHeader
17b6cee71dSXin LI>>8	lelong	x	%d x
18b6cee71dSXin LI>>12	lelong	x	%d,
19b6cee71dSXin LI>>16	byte	x	%d levels,
20b6cee71dSXin LI>>17	byte	x	compression level %d,
21b6cee71dSXin LI>>18	byte	x	%d bpp,
22b6cee71dSXin LI>>19	byte	x	%d channels,
23b6cee71dSXin LI>>20	clear	x
24b6cee71dSXin LI>>20	byte	0	bitmap,
25b6cee71dSXin LI>>20	byte	1	gray scale,
26b6cee71dSXin LI>>20	byte	2	indexed color,
27b6cee71dSXin LI>>20	byte	3	RGB color,
28*43a5ec4eSXin LI>>20	byte	4	CMYK color,
29b6cee71dSXin LI>>20	byte	5	HSL color,
30b6cee71dSXin LI>>20	byte	6	HSB color,
31b6cee71dSXin LI>>20	byte	7	multi-channel,
32b6cee71dSXin LI>>20	byte	8	duo tone,
33b6cee71dSXin LI>>20	byte	9	LAB color,
34b6cee71dSXin LI>>20	byte	10	gray scale 16,
35b6cee71dSXin LI>>20	byte	11	RGB color 48,
36b6cee71dSXin LI>>20	byte	12	LAB color 48,
37*43a5ec4eSXin LI>>20	byte	13	CMYK color 64,
38b6cee71dSXin LI>>20	byte	14	deep multi-channel,
39b6cee71dSXin LI>>20	byte	15	duo tone 16,
40b6cee71dSXin LI>>20	byte	17	RGBA color,
41b6cee71dSXin LI>>20	byte	18	gray scale 32,
42b6cee71dSXin LI>>20	byte	19	RGB color 12,
43b6cee71dSXin LI>>20	byte	20	RGB color 16,
44b6cee71dSXin LI>>20	byte	255	unknown format,
45b6cee71dSXin LI>>20	default	x	format
46b6cee71dSXin LI>>>20	byte	x	\b %d,
47b6cee71dSXin LI>>21	byte	x	%d bpc
48b6cee71dSXin LI#	PGFPostHeader
49b6cee71dSXin LI#	Level-Sizes
50b6cee71dSXin LI#>>(4.l+4)	lelong x level 0 size: %d
51b6cee71dSXin LI#>>(4.l+8)	lelong x level 1 size: %d
52b6cee71dSXin LI#>>(4.l+12)	lelong x level 2 size: %d
53