Home | History | Annotate | Line # | Download | only in magdir
      1  1.1.1.2  christos 
      2      1.1  christos #------------------------------------------------------------------------------
      3  1.1.1.7  christos # $File: modem,v 1.11 2022/10/19 20:15:16 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.7  christos #	http://fileformats.archiveteam.org/wiki/CCITT_Group_3
     15  1.1.1.5  christos # Reference: https://web.archive.org/web/20020628195336/http://www.netnam.vn/unescocourse/computervision/104.htm
     16  1.1.1.3  christos # GRR: EOL of G3 is too general as it catches also TrueType fonts, Postscript PrinterFontMetric, others
     17  1.1.1.4  christos 0	short		0x0100
     18  1.1.1.3  christos # 16 0-bits near beginning like True Type fonts *.ttf, Postscript PrinterFontMetric *.pfm, FTYPE.HYPERCARD, XFER
     19  1.1.1.4  christos >2	search/9	\0\0
     20  1.1.1.3  christos # maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
     21  1.1.1.4  christos >2	default		x
     22  1.1.1.3  christos # skip IRCAM file (VAX big-endian)	./audio
     23  1.1.1.4  christos >>0	belong		!0x0001a364
     24  1.1.1.3  christos # skip GEM Image data			./images
     25  1.1.1.4  christos >>>2	beshort		!0x0008
     26  1.1.1.3  christos # look for first keyword of Panorama database *.pan
     27  1.1.1.4  christos >>>>11	search/262	\x06DESIGN
     28  1.1.1.3  christos # skip Panorama database
     29  1.1.1.4  christos >>>>11	default		x
     30  1.1.1.3  christos # old Apple DreamWorld DreamGrafix *.3200 with keyword at end of g3 looking files
     31  1.1.1.4  christos >>>>>27118	search/1864	DreamWorld
     32  1.1.1.4  christos >>>>>27118	default		x
     33  1.1.1.3  christos # skip MouseTrap/Mt.Defaults with file size 16 found on Golden Orchard Apple II CD Rom
     34  1.1.1.4  christos >>>>>>8		ubequad		!0x2e01010454010203
     35  1.1.1.3  christos # skip PICTUREH.SML found on Golden Orchard Apple II CD Rom
     36  1.1.1.7  christos >>>>>>>8	ubequad		!0x5dee74ad1aa56394
     37  1.1.1.7  christos # skip few (5/41) DEGAS mid-res bitmap (GEMINI01.PI2 GEMINI02.PI2 GEMINI03.PI2 CODE_RAM.PI2 TBX_DEMO.PI2)
     38  1.1.1.7  christos # with file size 32034
     39  1.1.1.7  christos >>>>>>>>-0	offset		!32034	raw G3 (Group 3) FAX, byte-padded
     40  1.1.1.3  christos # version 5.25 labeled the entry above "raw G3 data, byte-padded"
     41  1.1.1.3  christos !:mime	image/g3fax
     42  1.1.1.3  christos #!:apple	????TIFF
     43  1.1.1.3  christos !:ext	g3
     44  1.1.1.3  christos # unusual image starting with black pixel
     45  1.1.1.3  christos #0	short		0x1300		raw G3 (Group 3) FAX
     46  1.1.1.4  christos 0	short		0x1400
     47  1.1.1.3  christos # 16 0-bits near beginning like PicturePuzzler found on Golden Orchard Apple CD Rom
     48  1.1.1.4  christos >2	search/9	\0\0
     49  1.1.1.3  christos # maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3
     50  1.1.1.7  christos >2	default		x
     51  1.1.1.7  christos # skip some (84/1246) MacBinary II/III (Cyberdog2.068k.smi.bin FileMakerPro4.img.bin Hypercard1.25.image.bin UsbStorage1.3.5.smi.bin) with "non random" numbers by versions values 81h/82h + 81h
     52  1.1.1.7  christos >>122	ubeshort&0xFcFf	!0x8081		raw G3 (Group 3) FAX
     53  1.1.1.3  christos # version 5.25 labeled the above entry as "raw G3 data"
     54  1.1.1.3  christos !:mime	image/g3fax
     55  1.1.1.3  christos !:ext	g3
     56  1.1.1.3  christos # unusual image with black pixel near beginning
     57  1.1.1.3  christos #0	short		0x1900		raw G3 (Group 3) FAX
     58  1.1.1.3  christos 
     59      1.1  christos #
     60      1.1  christos # Magic data for vgetty voice formats
     61      1.1  christos # (Martin Seine & Marc Eberhard)
     62      1.1  christos 
     63      1.1  christos #
     64      1.1  christos # raw modem data version 1
     65      1.1  christos #
     66      1.1  christos 0    string    RMD1      raw modem data
     67      1.1  christos >4   string    >\0       (%s /
     68  1.1.1.6  christos >20  short     >0        compression type %#04x)
     69      1.1  christos 
     70      1.1  christos #
     71      1.1  christos # portable voice format 1
     72      1.1  christos #
     73      1.1  christos 0    string    PVF1\n         portable voice format
     74      1.1  christos >5   string    >\0       (binary %s)
     75      1.1  christos 
     76      1.1  christos #
     77      1.1  christos # portable voice format 2
     78      1.1  christos #
     79      1.1  christos 0    string    PVF2\n         portable voice format
     80      1.1  christos >5   string >\0          (ascii %s)
     81      1.1  christos 
     82  1.1.1.3  christos # From: Bernd Nuernberger <bernd.nuernberger (a] web.de>
     83  1.1.1.3  christos # Brooktrout G3 fax data incl. 128 byte header
     84  1.1.1.3  christos # Common suffixes: 3??, BRK, BRT, BTR
     85  1.1.1.3  christos 0	leshort		0x01bb
     86  1.1.1.3  christos >2	leshort		0x0100		Brooktrout 301 fax image,
     87  1.1.1.3  christos >>9	leshort		x		%d x
     88  1.1.1.3  christos >>0x2d	leshort		x		%d
     89  1.1.1.3  christos >>6	leshort		200		\b, fine resolution
     90  1.1.1.3  christos >>6	leshort		100		\b, normal resolution
     91  1.1.1.3  christos >>11	byte		1		\b, G3 compression
     92  1.1.1.3  christos >>11	byte		2		\b, G32D compression
     93