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

DVD

开发平台:

C/C++

  1. #ifndef __MY_TYPES_H
  2. #define __MY_TYPES_H
  3. //
  4. // Picture Coding Extension
  5. //
  6. typedef union
  7. {
  8. UINT16 para;
  9. struct {
  10. unsigned progressiveframe : 1; // D[0]
  11. unsigned chroma420type : 1; // D[1]
  12. unsigned repeatfirstfield : 1; // D[2]
  13. unsigned alterscan : 1; // D[3]
  14. unsigned intraVLCformat : 1; // D[4]
  15. unsigned Qscaletype : 1; // D[5]
  16. unsigned concealMotionVectors : 1; // D[6]
  17. unsigned framePredframeDCT : 1; // D[7]
  18. unsigned topfieldfirst : 1; // D[8]
  19. unsigned picture_struct : 2; // D[9:10]
  20. unsigned intraDCprecision : 2; // D[11:12]
  21. unsigned reserved : 1; // D[13]
  22. unsigned last_picture : 1; // D[14]
  23. unsigned second_field : 1; // D[15]
  24. } ext0_field;
  25. struct {
  26. unsigned framepic : 1; // D[0]
  27. unsigned forwardframe : 1; // D[1]
  28. unsigned reconstframe : 2; // D[2:3]
  29. unsigned fieldId : 1; // D[4]
  30. } ext1_field;
  31. } PicCod_Ext;
  32. //
  33. // MacroBlock
  34. //
  35. typedef union
  36. {
  37. UINT16 para;
  38. struct {
  39. unsigned quant : 1; // D[0]
  40. unsigned motionforward : 1; // D[1]
  41. unsigned motionbackward : 1; // D[2]
  42. unsigned pattern : 1; // D[3]
  43. unsigned intra : 1; // D[4]
  44. unsigned spatialtemporal: 1; // D[5]
  45. unsigned motiontype : 2; // D[6:7]
  46. unsigned DCTtype : 1; // D[8]
  47. } field;
  48. } MBType;
  49. typedef union
  50. {
  51. UINT16 para;
  52. struct {
  53. unsigned tv_mode : 1; // D[0]
  54. unsigned p_scan : 1; // D[1]
  55. unsigned line_buf_disable : 1; // D[2]
  56. unsigned luma_v_inter_disable : 1; // D[3]
  57. unsigned chroma_v_inter_disable : 1; // D[4]
  58. unsigned game_mode : 1; // D[5]
  59. unsigned color_index_trans_mode : 1; // D[6]
  60. unsigned sdram_reorder_disable : 1; // D[7]
  61. unsigned quasi_inter : 1; // D[8]
  62. unsigned mem_map_mode : 2; // D[9:10]
  63. unsigned dithering666 : 1; // D[11]
  64. } _vpp;
  65. struct {
  66. unsigned video_disable : 1; // D[0]
  67. unsigned source_pic_structure : 1; // D[1]
  68. unsigned single_field_display_mode : 1; // D[2]
  69. unsigned display_field_id : 1; // D[3]
  70. unsigned chroma_resampling_mode : 2; // D[4:5]
  71. unsigned initial_accumulator : 9; // D[6:14]
  72. } _ds;
  73. struct {
  74. unsigned deinterlace_enable : 1; // D[0]
  75. unsigned deflicker : 1; // D[1]
  76. unsigned dipconfig : 4; // D[2:5]
  77. unsigned half_Ref_Pix_mode : 1; // D[6]
  78. unsigned double_ref_pix_distance : 1; // D[7]
  79. } _dip_cfg;
  80. struct {
  81. unsigned mv_detect_threshold : 7; // D[0:6]
  82. unsigned reserved1 : 1; // D[7]
  83. unsigned cross_fading_speed : 7; // D[8:14]
  84. unsigned reserved2 : 1; // D[15]
  85. } _dip_param;
  86. } DS_CFG;
  87. #endif //__MY_TYPES_H