Home | History | Annotate | Line # | Download | only in magdir
modem revision 1.1.1.4.10.1
      1       1.1.1.2  christos 
      2           1.1  christos #------------------------------------------------------------------------------
      3  1.1.1.4.10.1  christos # $File: modem,v 1.9 2019/04/19 00:42:27 christos Exp $
      4           1.1  christos # modem:  file(1) magic for modem programs
      5           1.1  christos #
      6           1.1  christos # From: Florian La Roche <florian (a] knorke.saar.de>
      7       1.1.1.2  christos 1	string		PC\ Research,\ Inc	Digifax-G3-File
      8       1.1.1.2  christos >29	byte		1			\b, fine resolution
      9       1.1.1.2  christos >29	byte		0			\b, normal resolution
     10           1.1  christos 
     11       1.1.1.3  christos # Summary: CCITT Group 3 Facsimile in "raw" form (i.e. no header).
     12       1.1.1.3  christos # Modified by: Joerg Jenderek
     13       1.1.1.3  christos # URL: https://de.wikipedia.org/wiki/Fax
     14  1.1.1.4.10.1  christos # Reference: https://web.archive.org/web/20020628195336/http://www.netnam.vn/unescocourse/computervision/104.htm
     15       1.1.1.3  christos # GRR: EOL of G3 is too general as it catches also TrueType fonts, Postscript PrinterFontMetric, others
     16       1.1.1.4  christos 0	short		0x0100
     17       1.1.1.3  christos # 16 0-bits near beginning like True Type fonts *.ttf, Postscript PrinterFontMetric *.pfm, FTYPE.HYPERCARD, XFER
     18       1.1.1.4  christos >2	search/9	\0\0
     19       1.1.1.3  christos # maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
     20       1.1.1.4  christos >2	default		x
     21       1.1.1.3  christos # skip IRCAM file (VAX big-endian)	./audio
     22       1.1.1.4  christos >>0	belong		!0x0001a364
     23       1.1.1.3  christos # skip GEM Image data			./images
     24       1.1.1.4  christos >>>2	beshort		!0x0008
     25       1.1.1.3  christos # look for first keyword of Panorama database *.pan
     26       1.1.1.4  christos >>>>11	search/262	\x06DESIGN
     27       1.1.1.3  christos # skip Panorama database
     28       1.1.1.4  christos >>>>11	default		x
     29       1.1.1.3  christos # old Apple DreamWorld DreamGrafix *.3200 with keyword at end of g3 looking files
     30       1.1.1.4  christos >>>>>27118	search/1864	DreamWorld
     31       1.1.1.4  christos >>>>>27118	default		x
     32       1.1.1.3  christos # skip MouseTrap/Mt.Defaults with file size 16 found on Golden Orchard Apple II CD Rom
     33       1.1.1.4  christos >>>>>>8		ubequad		!0x2e01010454010203
     34       1.1.1.3  christos # skip PICTUREH.SML found on Golden Orchard Apple II CD Rom
     35       1.1.1.3  christos >>>>>>>8	ubequad		!0x5dee74ad1aa56394	raw G3 (Group 3) FAX, byte-padded
     36       1.1.1.3  christos # version 5.25 labeled the entry above "raw G3 data, byte-padded"
     37       1.1.1.3  christos !:mime	image/g3fax
     38       1.1.1.3  christos #!:apple	????TIFF
     39       1.1.1.3  christos !:ext	g3
     40       1.1.1.3  christos # unusual image starting with black pixel
     41       1.1.1.3  christos #0	short		0x1300		raw G3 (Group 3) FAX
     42       1.1.1.4  christos 0	short		0x1400
     43       1.1.1.3  christos # 16 0-bits near beginning like PicturePuzzler found on Golden Orchard Apple CD Rom
     44       1.1.1.4  christos >2	search/9	\0\0
     45       1.1.1.3  christos # maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
     46       1.1.1.3  christos >2	default		x		raw G3 (Group 3) FAX
     47       1.1.1.3  christos # version 5.25 labeled the above entry as "raw G3 data"
     48       1.1.1.3  christos !:mime	image/g3fax
     49       1.1.1.3  christos !:ext	g3
     50       1.1.1.3  christos # unusual image with black pixel near beginning
     51       1.1.1.3  christos #0	short		0x1900		raw G3 (Group 3) FAX
     52       1.1.1.3  christos 
     53           1.1  christos #
     54           1.1  christos # Magic data for vgetty voice formats
     55           1.1  christos # (Martin Seine & Marc Eberhard)
     56           1.1  christos 
     57           1.1  christos #
     58           1.1  christos # raw modem data version 1
     59           1.1  christos #
     60           1.1  christos 0    string    RMD1      raw modem data
     61           1.1  christos >4   string    >\0       (%s /
     62           1.1  christos >20  short     >0        compression type 0x%04x)
     63           1.1  christos 
     64           1.1  christos #
     65           1.1  christos # portable voice format 1
     66           1.1  christos #
     67           1.1  christos 0    string    PVF1\n         portable voice format
     68           1.1  christos >5   string    >\0       (binary %s)
     69           1.1  christos 
     70           1.1  christos #
     71           1.1  christos # portable voice format 2
     72           1.1  christos #
     73           1.1  christos 0    string    PVF2\n         portable voice format
     74           1.1  christos >5   string >\0          (ascii %s)
     75           1.1  christos 
     76       1.1.1.3  christos # From: Bernd Nuernberger <bernd.nuernberger (a] web.de>
     77       1.1.1.3  christos # Brooktrout G3 fax data incl. 128 byte header
     78       1.1.1.3  christos # Common suffixes: 3??, BRK, BRT, BTR
     79       1.1.1.3  christos 0	leshort		0x01bb
     80       1.1.1.3  christos >2	leshort		0x0100		Brooktrout 301 fax image,
     81       1.1.1.3  christos >>9	leshort		x		%d x
     82       1.1.1.3  christos >>0x2d	leshort		x		%d
     83       1.1.1.3  christos >>6	leshort		200		\b, fine resolution
     84       1.1.1.3  christos >>6	leshort		100		\b, normal resolution
     85       1.1.1.3  christos >>11	byte		1		\b, G3 compression
     86       1.1.1.3  christos >>11	byte		2		\b, G32D compression
     87