Source code of Windows XP (NT5)
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.

58 lines
2.1 KiB

  1. //------------------------------------------------------------------------------
  2. // File: DV.h
  3. //
  4. // Desc: DV typedefs and defines.
  5. //
  6. // Copyright (c) 1997 - 2000, Microsoft Corporation. All rights reserved.
  7. //------------------------------------------------------------------------------
  8. #ifndef _DV_H_
  9. #define _DV_H_
  10. #define DV_DVSD_NTSC_FRAMESIZE 120000L
  11. #define DV_DVSD_PAL_FRAMESIZE 144000L
  12. #define DV_SMCHN 0x0000e000
  13. #define DV_AUDIOMODE 0x00000f00
  14. #define DV_AUDIOSMP 0x38000000
  15. #define DV_AUDIOQU 0x07000000
  16. #define DV_NTSCPAL 0x00200000
  17. #define DV_STYPE 0x001f0000
  18. //There are NTSC or PAL DV camcorders
  19. #define DV_NTSC 0
  20. #define DV_PAL 1
  21. //DV camcorder can output sd/hd/sl
  22. #define DV_SD 0x00
  23. #define DV_HD 0x01
  24. #define DV_SL 0x02
  25. //user can choice 12 bits or 16 bits audio from DV camcorder
  26. #define DV_CAP_AUD16Bits 0x00
  27. #define DV_CAP_AUD12Bits 0x01
  28. #define SIZE_DVINFO 0x20
  29. typedef struct Tag_DVAudInfo
  30. {
  31. BYTE bAudStyle[2];
  32. //LSB 6 bits for starting DIF sequence number
  33. //MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences
  34. //example: 0x00: mon, audio in first 5/6 DIF sequence
  35. // 0x05: mon, audio in 2nd 5 DIF sequence
  36. // 0x15: stereo, audio only in 2nd 5 DIF sequence
  37. // 0x10: stereo, audio only in 1st 5/6 DIF sequence
  38. // 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence
  39. // 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence
  40. BYTE bAudQu[2]; //qbits, only support 12, 16,
  41. BYTE bNumAudPin; //how many pin(language)
  42. WORD wAvgSamplesPerPinPerFrm[2]; //samples size for one audio pin in one frame(which has 10 or 12 DIF sequence)
  43. WORD wBlkMode; //45 for NTSC, 54 for PAL
  44. WORD wDIFMode; //5 for NTSC, 6 for PAL
  45. WORD wBlkDiv; //15 for NTSC, 18 for PAL
  46. } DVAudInfo;
  47. #endif // _DV_H_