From f3333f0d2ef53a5ca79ba6fabec04dc254e27cc8 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Thu, 16 May 2002 15:25:11 +0000 Subject: [PATCH] add dolby and epson printer. --- magic/Magdir/dolby | 28 ++++++++++++++++++++++++++++ magic/Magdir/printer | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 magic/Magdir/dolby diff --git a/magic/Magdir/dolby b/magic/Magdir/dolby new file mode 100644 index 00000000..238fc2b6 --- /dev/null +++ b/magic/Magdir/dolby @@ -0,0 +1,28 @@ +# AC-3 aka A/52 aka Dolby Digital +# corrections, additions, etc. are always welcome! +# +# syncword +0 beshort 0x0b77 AC-3 aka A/52 aka Dolby Digital stream, +# fscod +>4 byte&0xc0 0x00 48 kHz, +>4 byte&0xc0 0x40 44.1 kHz, +>4 byte&0xc0 0x80 32 kHz, +# is this one used for 96 kHz? +>4 byte&0xc0 0xc0 reserved frequency, +# acmod +>6 byte&0xe0 0x00 1+1 front, +>6 byte&0xe0 0x20 1 front/0 rear, +>6 byte&0xe0 0x40 2 front/0 rear, +>6 byte&0xe0 0x60 3 front/0 rear, +>6 byte&0xe0 0x80 2 front/1 rear, +>6 byte&0xe0 0xa0 3 front/1 rear, +>6 byte&0xe0 0xc0 2 front/2 rear, +>6 byte&0xe0 0xe0 3 front/2 rear, +# lfeon (these may be incorrect) +>7 byte&0x40 0x00 LFE off, +>7 byte&0x40 0x40 LFE on, +# dsurmod (these may be incorrect) +>6 beshort&0x0180 0x0000 Dolby Surround not indicated +>6 beshort&0x0180 0x0080 not Dolby Surround encoded +>6 beshort&0x0180 0x0100 Dolby Surround encoded +>6 beshort&0x0180 0x0180 reserved Dolby Surround mode diff --git a/magic/Magdir/printer b/magic/Magdir/printer index c47ff3ba..dfbd5b97 100644 --- a/magic/Magdir/printer +++ b/magic/Magdir/printer @@ -86,3 +86,7 @@ >45 string >0 face % # From Jukka Ukkonen 0 string \033[K\002\0\0\017\033(a\001\0\001\033(g Canon Bubble Jet BJC formatted data + +# From +# These are the /etc/magic entries to decode data sent to an Epson printer. +0 string \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P Epson Stylus Color 460 data -- 2.40.0