xref: /freebsd/contrib/file/magic/Magdir/modem (revision 48c779cdecb5f803e5fe5d761987e976ca9609db)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*48c779cdSXin LI# $File: modem,v 1.9 2019/04/19 00:42:27 christos Exp $
4b6cee71dSXin LI# modem:  file(1) magic for modem programs
5b6cee71dSXin LI#
6b6cee71dSXin LI# From: Florian La Roche <florian@knorke.saar.de>
7b6cee71dSXin LI1	string		PC\ Research,\ Inc	Digifax-G3-File
8b6cee71dSXin LI>29	byte		1			\b, fine resolution
9b6cee71dSXin LI>29	byte		0			\b, normal resolution
10b6cee71dSXin LI
113e41d09dSXin LI# Summary: CCITT Group 3 Facsimile in "raw" form (i.e. no header).
123e41d09dSXin LI# Modified by: Joerg Jenderek
133e41d09dSXin LI# URL: https://de.wikipedia.org/wiki/Fax
14*48c779cdSXin LI# Reference: https://web.archive.org/web/20020628195336/http://www.netnam.vn/unescocourse/computervision/104.htm
153e41d09dSXin LI# GRR: EOL of G3 is too general as it catches also TrueType fonts, Postscript PrinterFontMetric, others
163e41d09dSXin LI0	short		0x0100
173e41d09dSXin LI# 16 0-bits near beginning like True Type fonts *.ttf, Postscript PrinterFontMetric *.pfm, FTYPE.HYPERCARD, XFER
183e41d09dSXin LI>2	search/9	\0\0
193e41d09dSXin LI# maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
203e41d09dSXin LI>2	default		x
213e41d09dSXin LI# skip IRCAM file (VAX big-endian)	./audio
223e41d09dSXin LI>>0	belong		!0x0001a364
233e41d09dSXin LI# skip GEM Image data			./images
243e41d09dSXin LI>>>2	beshort		!0x0008
253e41d09dSXin LI# look for first keyword of Panorama database *.pan
263e41d09dSXin LI>>>>11	search/262	\x06DESIGN
273e41d09dSXin LI# skip Panorama database
283e41d09dSXin LI>>>>11	default		x
293e41d09dSXin LI# old Apple DreamWorld DreamGrafix *.3200 with keyword at end of g3 looking files
303e41d09dSXin LI>>>>>27118	search/1864	DreamWorld
313e41d09dSXin LI>>>>>27118	default		x
323e41d09dSXin LI# skip MouseTrap/Mt.Defaults with file size 16 found on Golden Orchard Apple II CD Rom
333e41d09dSXin LI>>>>>>8		ubequad		!0x2e01010454010203
343e41d09dSXin LI# skip PICTUREH.SML found on Golden Orchard Apple II CD Rom
353e41d09dSXin LI>>>>>>>8	ubequad		!0x5dee74ad1aa56394	raw G3 (Group 3) FAX, byte-padded
363e41d09dSXin LI# version 5.25 labeled the entry above "raw G3 data, byte-padded"
373e41d09dSXin LI!:mime	image/g3fax
383e41d09dSXin LI#!:apple	????TIFF
393e41d09dSXin LI!:ext	g3
403e41d09dSXin LI# unusual image starting with black pixel
413e41d09dSXin LI#0	short		0x1300		raw G3 (Group 3) FAX
423e41d09dSXin LI0	short		0x1400
433e41d09dSXin LI# 16 0-bits near beginning like PicturePuzzler found on Golden Orchard Apple CD Rom
443e41d09dSXin LI>2	search/9	\0\0
453e41d09dSXin LI# maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
463e41d09dSXin LI>2	default		x		raw G3 (Group 3) FAX
473e41d09dSXin LI# version 5.25 labeled the above entry as "raw G3 data"
483e41d09dSXin LI!:mime	image/g3fax
493e41d09dSXin LI!:ext	g3
503e41d09dSXin LI# unusual image with black pixel near beginning
513e41d09dSXin LI#0	short		0x1900		raw G3 (Group 3) FAX
523e41d09dSXin LI
53b6cee71dSXin LI#
54b6cee71dSXin LI# Magic data for vgetty voice formats
55b6cee71dSXin LI# (Martin Seine & Marc Eberhard)
56b6cee71dSXin LI
57b6cee71dSXin LI#
58b6cee71dSXin LI# raw modem data version 1
59b6cee71dSXin LI#
60b6cee71dSXin LI0    string    RMD1      raw modem data
61b6cee71dSXin LI>4   string    >\0       (%s /
62b6cee71dSXin LI>20  short     >0        compression type 0x%04x)
63b6cee71dSXin LI
64b6cee71dSXin LI#
65b6cee71dSXin LI# portable voice format 1
66b6cee71dSXin LI#
67b6cee71dSXin LI0    string    PVF1\n         portable voice format
68b6cee71dSXin LI>5   string    >\0       (binary %s)
69b6cee71dSXin LI
70b6cee71dSXin LI#
71b6cee71dSXin LI# portable voice format 2
72b6cee71dSXin LI#
73b6cee71dSXin LI0    string    PVF2\n         portable voice format
74b6cee71dSXin LI>5   string >\0          (ascii %s)
75b6cee71dSXin LI
765f0216bdSXin LI# From: Bernd Nuernberger <bernd.nuernberger@web.de>
775f0216bdSXin LI# Brooktrout G3 fax data incl. 128 byte header
785f0216bdSXin LI# Common suffixes: 3??, BRK, BRT, BTR
795f0216bdSXin LI0	leshort		0x01bb
805f0216bdSXin LI>2	leshort		0x0100		Brooktrout 301 fax image,
815f0216bdSXin LI>>9	leshort		x		%d x
825f0216bdSXin LI>>0x2d	leshort		x		%d
835f0216bdSXin LI>>6	leshort		200		\b, fine resolution
845f0216bdSXin LI>>6	leshort		100		\b, normal resolution
855f0216bdSXin LI>>11	byte		1		\b, G3 compression
865f0216bdSXin LI>>11	byte		2		\b, G32D compression
87