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