dolby 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #------------------------------------------------------------------------------
  2. # $File: dolby,v 1.5 2009/09/19 16:28:08 christos Exp $
  3. # ATSC A/53 aka AC-3 aka Dolby Digital <ashitaka@gmx.at>
  4. # from http://www.atsc.org/standards/a_52a.pdf
  5. # corrections, additions, etc. are always welcome!
  6. #
  7. # syncword
  8. 0 beshort 0x0b77 ATSC A/52 aka AC-3 aka Dolby Digital stream,
  9. # fscod
  10. >4 byte&0xc0 0x00 48 kHz,
  11. >4 byte&0xc0 0x40 44.1 kHz,
  12. >4 byte&0xc0 0x80 32 kHz,
  13. # is this one used for 96 kHz?
  14. >4 byte&0xc0 0xc0 reserved frequency,
  15. #
  16. >5 byte&7 = 0 \b, complete main (CM)
  17. >5 byte&7 = 1 \b, music and effects (ME)
  18. >5 byte&7 = 2 \b, visually impaired (VI)
  19. >5 byte&7 = 3 \b, hearing impaired (HI)
  20. >5 byte&7 = 4 \b, dialogue (D)
  21. >5 byte&7 = 5 \b, commentary (C)
  22. >5 byte&7 = 6 \b, emergency (E)
  23. # acmod
  24. >6 byte&0xe0 0x00 1+1 front,
  25. >6 byte&0xe0 0x20 1 front/0 rear,
  26. >6 byte&0xe0 0x40 2 front/0 rear,
  27. >6 byte&0xe0 0x60 3 front/0 rear,
  28. >6 byte&0xe0 0x80 2 front/1 rear,
  29. >6 byte&0xe0 0xa0 3 front/1 rear,
  30. >6 byte&0xe0 0xc0 2 front/2 rear,
  31. >6 byte&0xe0 0xe0 3 front/2 rear,
  32. # lfeon (these may be incorrect)
  33. >7 byte&0x40 0x00 LFE off,
  34. >7 byte&0x40 0x40 LFE on,
  35. #
  36. >4 byte&0x3e = 0x00 \b, 32 kbit/s
  37. >4 byte&0x3e = 0x02 \b, 40 kbit/s
  38. >4 byte&0x3e = 0x04 \b, 48 kbit/s
  39. >4 byte&0x3e = 0x06 \b, 56 kbit/s
  40. >4 byte&0x3e = 0x08 \b, 64 kbit/s
  41. >4 byte&0x3e = 0x0a \b, 80 kbit/s
  42. >4 byte&0x3e = 0x0c \b, 96 kbit/s
  43. >4 byte&0x3e = 0x0e \b, 112 kbit/s
  44. >4 byte&0x3e = 0x10 \b, 128 kbit/s
  45. >4 byte&0x3e = 0x12 \b, 160 kbit/s
  46. >4 byte&0x3e = 0x14 \b, 192 kbit/s
  47. >4 byte&0x3e = 0x16 \b, 224 kbit/s
  48. >4 byte&0x3e = 0x18 \b, 256 kbit/s
  49. >4 byte&0x3e = 0x1a \b, 320 kbit/s
  50. >4 byte&0x3e = 0x1c \b, 384 kbit/s
  51. >4 byte&0x3e = 0x1e \b, 448 kbit/s
  52. >4 byte&0x3e = 0x20 \b, 512 kbit/s
  53. >4 byte&0x3e = 0x22 \b, 576 kbit/s
  54. >4 byte&0x3e = 0x24 \b, 640 kbit/s
  55. # dsurmod (these may be incorrect)
  56. >6 beshort&0x0180 0x0000 Dolby Surround not indicated
  57. >6 beshort&0x0180 0x0080 not Dolby Surround encoded
  58. >6 beshort&0x0180 0x0100 Dolby Surround encoded
  59. >6 beshort&0x0180 0x0180 reserved Dolby Surround mode