Home | History | Annotate | Line # | Download | only in magdir
modem revision 1.1.1.6
      1 
      2 #------------------------------------------------------------------------------
      3 # $File: modem,v 1.10 2021/04/26 15:56:00 christos Exp $
      4 # modem:  file(1) magic for modem programs
      5 #
      6 # From: Florian La Roche <florian (a] 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
     10 
     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
     16 0	short		0x0100
     17 # 16 0-bits near beginning like True Type fonts *.ttf, Postscript PrinterFontMetric *.pfm, FTYPE.HYPERCARD, XFER
     18 >2	search/9	\0\0
     19 # maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
     20 >2	default		x
     21 # skip IRCAM file (VAX big-endian)	./audio
     22 >>0	belong		!0x0001a364
     23 # skip GEM Image data			./images
     24 >>>2	beshort		!0x0008
     25 # look for first keyword of Panorama database *.pan
     26 >>>>11	search/262	\x06DESIGN
     27 # skip Panorama database
     28 >>>>11	default		x
     29 # old Apple DreamWorld DreamGrafix *.3200 with keyword at end of g3 looking files
     30 >>>>>27118	search/1864	DreamWorld
     31 >>>>>27118	default		x
     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"
     37 !:mime	image/g3fax
     38 #!:apple	????TIFF
     39 !:ext	g3
     40 # unusual image starting with black pixel
     41 #0	short		0x1300		raw G3 (Group 3) FAX
     42 0	short		0x1400
     43 # 16 0-bits near beginning like PicturePuzzler found on Golden Orchard Apple CD Rom
     44 >2	search/9	\0\0
     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"
     48 !:mime	image/g3fax
     49 !:ext	g3
     50 # unusual image with black pixel near beginning
     51 #0	short		0x1900		raw G3 (Group 3) FAX
     52 
     53 #
     54 # Magic data for vgetty voice formats
     55 # (Martin Seine & Marc Eberhard)
     56 
     57 #
     58 # raw modem data version 1
     59 #
     60 0    string    RMD1      raw modem data
     61 >4   string    >\0       (%s /
     62 >20  short     >0        compression type %#04x)
     63 
     64 #
     65 # portable voice format 1
     66 #
     67 0    string    PVF1\n         portable voice format
     68 >5   string    >\0       (binary %s)
     69 
     70 #
     71 # portable voice format 2
     72 #
     73 0    string    PVF2\n         portable voice format
     74 >5   string >\0          (ascii %s)
     75 
     76 # From: Bernd Nuernberger <bernd.nuernberger (a] web.de>
     77 # Brooktrout G3 fax data incl. 128 byte header
     78 # Common suffixes: 3??, BRK, BRT, BTR
     79 0	leshort		0x01bb
     80 >2	leshort		0x0100		Brooktrout 301 fax image,
     81 >>9	leshort		x		%d x
     82 >>0x2d	leshort		x		%d
     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
     87