home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / dv.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  2KB  |  52 lines

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