xref: /freebsd/contrib/file/magic/Magdir/modem (revision 5f0216bd883edee71bf81051e3c20505e4820903)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*5f0216bdSXin LI# $File: modem,v 1.6 2015/02/14 17:35:47 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
11b6cee71dSXin LI0	short		0x0100		raw G3 data, byte-padded
12b6cee71dSXin LI0	short		0x1400		raw G3 data
13b6cee71dSXin LI#
14b6cee71dSXin LI# Magic data for vgetty voice formats
15b6cee71dSXin LI# (Martin Seine & Marc Eberhard)
16b6cee71dSXin LI
17b6cee71dSXin LI#
18b6cee71dSXin LI# raw modem data version 1
19b6cee71dSXin LI#
20b6cee71dSXin LI0    string    RMD1      raw modem data
21b6cee71dSXin LI>4   string    >\0       (%s /
22b6cee71dSXin LI>20  short     >0        compression type 0x%04x)
23b6cee71dSXin LI
24b6cee71dSXin LI#
25b6cee71dSXin LI# portable voice format 1
26b6cee71dSXin LI#
27b6cee71dSXin LI0    string    PVF1\n         portable voice format
28b6cee71dSXin LI>5   string    >\0       (binary %s)
29b6cee71dSXin LI
30b6cee71dSXin LI#
31b6cee71dSXin LI# portable voice format 2
32b6cee71dSXin LI#
33b6cee71dSXin LI0    string    PVF2\n         portable voice format
34b6cee71dSXin LI>5   string >\0          (ascii %s)
35b6cee71dSXin LI
36*5f0216bdSXin LI# From: Bernd Nuernberger <bernd.nuernberger@web.de>
37*5f0216bdSXin LI# Brooktrout G3 fax data incl. 128 byte header
38*5f0216bdSXin LI# Common suffixes: 3??, BRK, BRT, BTR
39*5f0216bdSXin LI0	leshort		0x01bb
40*5f0216bdSXin LI>2	leshort		0x0100		Brooktrout 301 fax image,
41*5f0216bdSXin LI>>9	leshort		x		%d x
42*5f0216bdSXin LI>>0x2d	leshort		x		%d
43*5f0216bdSXin LI>>6	leshort		200		\b, fine resolution
44*5f0216bdSXin LI>>6	leshort		100		\b, normal resolution
45*5f0216bdSXin LI>>11	byte		1		\b, G3 compression
46*5f0216bdSXin LI>>11	byte		2		\b, G32D compression
47