cdxa.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:1k
源码类别:

DVD

开发平台:

C/C++

  1. #ifndef __CDXA_H
  2. #define __CDXA_H
  3. /*
  4. ** CD/CDROM/CDROM-XA information
  5. */
  6. #define CNA_MASK_TYPE           0x0040  //Jeff change from 0x00d0
  7. #define CNA_MASK_COPYABLE       0x0020
  8. #define CNA_AUDIO_2CHANNEL              0x00
  9. #define CNA_AUDIO_2CHANNEL_PREEMP       0x80
  10. #define CNA_AUDIO_4CHANNEL              0x10
  11. #define CNA_AUDIO_4CHANNEL_PREEMP       0x90
  12. #define CNA_DATA                        0x40
  13. #if 0
  14. typedef struct {
  15.   BYTE mm;
  16.   BYTE ss;
  17.   BYTE ff;
  18.   BYTE mode;
  19. } t_cdxa_header;
  20. typedef struct {
  21.   BYTE fn;
  22.   BYTE cn;
  23.   BYTE sm;
  24.   BYTE ci;
  25. } t_cdxa_subheader;
  26. typedef struct {
  27.   BYTE sync[12];
  28.   t_cdxa_header header;
  29.   t_cdxa_subheader subheader;
  30.   BYTE payload[2324];
  31.   UINT32 edc;
  32. } t_cdxa_sector;
  33. #endif
  34. #define CDXA_SH_FN 0
  35. #define CDXA_SH_CN 1
  36. #define CDXA_SH_SM 2
  37. #define CDXA_SH_CI 3
  38. #define SUBMODE_EOF 0x80
  39. #define SUBMODE_RT 0x40
  40. #define SUBMODE_FORM2 0x20
  41. #define SUBMODE_TRIG 0x10
  42. #define SUBMODE_DATA 0x08
  43. #define SUBMODE_AUDIO 0x04
  44. #define SUBMODE_VIDEO 0x02
  45. #define SUBMODE_EOR 0x01
  46. #endif/*__CDXA_H*/