1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*898496eeSXin LI# $File: modem,v 1.11 2022/10/19 20:15:16 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*898496eeSXin LI# http://fileformats.archiveteam.org/wiki/CCITT_Group_3 1548c779cdSXin LI# Reference: https://web.archive.org/web/20020628195336/http://www.netnam.vn/unescocourse/computervision/104.htm 163e41d09dSXin LI# GRR: EOL of G3 is too general as it catches also TrueType fonts, Postscript PrinterFontMetric, others 173e41d09dSXin LI0 short 0x0100 183e41d09dSXin LI# 16 0-bits near beginning like True Type fonts *.ttf, Postscript PrinterFontMetric *.pfm, FTYPE.HYPERCARD, XFER 193e41d09dSXin LI>2 search/9 \0\0 203e41d09dSXin LI# maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3 213e41d09dSXin LI>2 default x 223e41d09dSXin LI# skip IRCAM file (VAX big-endian) ./audio 233e41d09dSXin LI>>0 belong !0x0001a364 243e41d09dSXin LI# skip GEM Image data ./images 253e41d09dSXin LI>>>2 beshort !0x0008 263e41d09dSXin LI# look for first keyword of Panorama database *.pan 273e41d09dSXin LI>>>>11 search/262 \x06DESIGN 283e41d09dSXin LI# skip Panorama database 293e41d09dSXin LI>>>>11 default x 303e41d09dSXin LI# old Apple DreamWorld DreamGrafix *.3200 with keyword at end of g3 looking files 313e41d09dSXin LI>>>>>27118 search/1864 DreamWorld 323e41d09dSXin LI>>>>>27118 default x 333e41d09dSXin LI# skip MouseTrap/Mt.Defaults with file size 16 found on Golden Orchard Apple II CD Rom 343e41d09dSXin LI>>>>>>8 ubequad !0x2e01010454010203 353e41d09dSXin LI# skip PICTUREH.SML found on Golden Orchard Apple II CD Rom 36*898496eeSXin LI>>>>>>>8 ubequad !0x5dee74ad1aa56394 37*898496eeSXin LI# skip few (5/41) DEGAS mid-res bitmap (GEMINI01.PI2 GEMINI02.PI2 GEMINI03.PI2 CODE_RAM.PI2 TBX_DEMO.PI2) 38*898496eeSXin LI# with file size 32034 39*898496eeSXin LI>>>>>>>>-0 offset !32034 raw G3 (Group 3) FAX, byte-padded 403e41d09dSXin LI# version 5.25 labeled the entry above "raw G3 data, byte-padded" 413e41d09dSXin LI!:mime image/g3fax 423e41d09dSXin LI#!:apple ????TIFF 433e41d09dSXin LI!:ext g3 443e41d09dSXin LI# unusual image starting with black pixel 453e41d09dSXin LI#0 short 0x1300 raw G3 (Group 3) FAX 463e41d09dSXin LI0 short 0x1400 473e41d09dSXin LI# 16 0-bits near beginning like PicturePuzzler found on Golden Orchard Apple CD Rom 483e41d09dSXin LI>2 search/9 \0\0 493e41d09dSXin LI# maximal 7 0-bits for pixel sequences or 11 0-bits for EOL in G3 50*898496eeSXin LI>2 default x 51*898496eeSXin LI# 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*898496eeSXin LI>>122 ubeshort&0xFcFf !0x8081 raw G3 (Group 3) FAX 533e41d09dSXin LI# version 5.25 labeled the above entry as "raw G3 data" 543e41d09dSXin LI!:mime image/g3fax 553e41d09dSXin LI!:ext g3 563e41d09dSXin LI# unusual image with black pixel near beginning 573e41d09dSXin LI#0 short 0x1900 raw G3 (Group 3) FAX 583e41d09dSXin LI 59b6cee71dSXin LI# 60b6cee71dSXin LI# Magic data for vgetty voice formats 61b6cee71dSXin LI# (Martin Seine & Marc Eberhard) 62b6cee71dSXin LI 63b6cee71dSXin LI# 64b6cee71dSXin LI# raw modem data version 1 65b6cee71dSXin LI# 66b6cee71dSXin LI0 string RMD1 raw modem data 67b6cee71dSXin LI>4 string >\0 (%s / 6843a5ec4eSXin LI>20 short >0 compression type %#04x) 69b6cee71dSXin LI 70b6cee71dSXin LI# 71b6cee71dSXin LI# portable voice format 1 72b6cee71dSXin LI# 73b6cee71dSXin LI0 string PVF1\n portable voice format 74b6cee71dSXin LI>5 string >\0 (binary %s) 75b6cee71dSXin LI 76b6cee71dSXin LI# 77b6cee71dSXin LI# portable voice format 2 78b6cee71dSXin LI# 79b6cee71dSXin LI0 string PVF2\n portable voice format 80b6cee71dSXin LI>5 string >\0 (ascii %s) 81b6cee71dSXin LI 825f0216bdSXin LI# From: Bernd Nuernberger <bernd.nuernberger@web.de> 835f0216bdSXin LI# Brooktrout G3 fax data incl. 128 byte header 845f0216bdSXin LI# Common suffixes: 3??, BRK, BRT, BTR 855f0216bdSXin LI0 leshort 0x01bb 865f0216bdSXin LI>2 leshort 0x0100 Brooktrout 301 fax image, 875f0216bdSXin LI>>9 leshort x %d x 885f0216bdSXin LI>>0x2d leshort x %d 895f0216bdSXin LI>>6 leshort 200 \b, fine resolution 905f0216bdSXin LI>>6 leshort 100 \b, normal resolution 915f0216bdSXin LI>>11 byte 1 \b, G3 compression 925f0216bdSXin LI>>11 byte 2 \b, G32D compression 93