modem 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #------------------------------------------------------------------------------
  2. # $File: modem,v 1.6 2015/02/14 17:35:47 christos Exp $
  3. # modem: file(1) magic for modem programs
  4. #
  5. # From: Florian La Roche <florian@knorke.saar.de>
  6. 1 string PC\ Research,\ Inc Digifax-G3-File
  7. >29 byte 1 \b, fine resolution
  8. >29 byte 0 \b, normal resolution
  9. 0 short 0x0100 raw G3 data, byte-padded
  10. 0 short 0x1400 raw G3 data
  11. #
  12. # Magic data for vgetty voice formats
  13. # (Martin Seine & Marc Eberhard)
  14. #
  15. # raw modem data version 1
  16. #
  17. 0 string RMD1 raw modem data
  18. >4 string >\0 (%s /
  19. >20 short >0 compression type 0x%04x)
  20. #
  21. # portable voice format 1
  22. #
  23. 0 string PVF1\n portable voice format
  24. >5 string >\0 (binary %s)
  25. #
  26. # portable voice format 2
  27. #
  28. 0 string PVF2\n portable voice format
  29. >5 string >\0 (ascii %s)
  30. # From: Bernd Nuernberger <bernd.nuernberger@web.de>
  31. # Brooktrout G3 fax data incl. 128 byte header
  32. # Common suffixes: 3??, BRK, BRT, BTR
  33. 0 leshort 0x01bb
  34. >2 leshort 0x0100 Brooktrout 301 fax image,
  35. >>9 leshort x %d x
  36. >>0x2d leshort x %d
  37. >>6 leshort 200 \b, fine resolution
  38. >>6 leshort 100 \b, normal resolution
  39. >>11 byte 1 \b, G3 compression
  40. >>11 byte 2 \b, G32D compression