Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB

  1. /*
  2. * @DEC_COPYRIGHT@
  3. */
  4. /*
  5. * HISTORY
  6. * $Log: ac3.h,v $
  7. * Revision 1.1.2.3 1996/11/11 18:21:00 Hans_Graves
  8. * Added AC3_SYNC_WORD_REV define.
  9. * [1996/11/11 17:56:01 Hans_Graves]
  10. *
  11. * Revision 1.1.2.2 1996/11/08 21:50:39 Hans_Graves
  12. * Swapped bytes in SYNC_WORD
  13. * [1996/11/08 21:16:07 Hans_Graves]
  14. *
  15. * First time under SLIB.
  16. * [1996/11/08 16:23:53 Hans_Graves]
  17. *
  18. * $EndLog$
  19. */
  20. /* File: usr_equ.h $Revision: 1.1.2.3 $ */
  21. /****************************************************************************
  22. ; Unpublished work. Copyright 1993-1996 Dolby Laboratories, Inc.
  23. ; All Rights Reserved.
  24. ;
  25. ; File: usr_equ.h
  26. ; Common equates for AC-3 system
  27. ;
  28. ; History:
  29. ; 8/2/93 Created
  30. ;***************************************************************************/
  31. #ifndef _AC3_H_
  32. #define _AC3_H_
  33. /**** General system equates ****/
  34. #define NBLOCKS 6 /* # of time blocks per frame */
  35. #define NCHANS 6 /* max # of discrete channels */
  36. #define N 256 /* # of samples per time block */
  37. #define AC3_FRAME_SIZE (NBLOCKS*N) /* 6 * 256 = 1536 */
  38. /**** Miscellaneous equates ****/
  39. #define NOUTWORDS (3840 / 2) /* max # words per frame */
  40. #define NINFOWDS 10 /* # words needed by frame info */
  41. /* Note: Because of mismatches between the way AC-3 word stream parsing works
  42. ** and the way that it's done for MPEG, you need to be careful using these
  43. ** definitions
  44. */
  45. #define AC3_SYNC_WORD 0x0B77 /* Byte reversed AC-3 sync word */
  46. #define AC3_SYNC_WORD_REV 0x770B /* packed data stream sync word */
  47. #define AC3_SYNC_WORD_LEN 16 /* sync word length */
  48. #define PCMCHANSZ 256 /* decoder overlap-add channel size */
  49. #define PCM16BIT 1 /* 16-bit PCM code for Dolby SIP */
  50. #ifdef KCAPABLE
  51. #define NKCAPABLEMODES 4 /* # defined karaoke capable modes */
  52. #define NKCAPABLEVARS 6 /* # karaoke pan/mix parameters */
  53. #endif
  54. #endif /* _AC3_H_ */