DVDSCMAP.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:6k
源码类别:

DVD

开发平台:

Others

  1. /* **************************************************************************************
  2.  *  Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
  3.  *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
  4.  *
  5.  *  File: $Workfile: DVDSCMAP.H $             
  6.  *
  7.  * Description:
  8.  * ============
  9.  * 
  10.  * 
  11.  * Log:
  12.  * ====
  13.  * $Revision: 4 $
  14.  * Last Modified by $Author: Leonh $ at $Modtime: 12/30/03 11:16a $ 
  15.  ****************************************************************************************
  16.  * Updates:
  17.  ****************************************************************************************
  18.  * $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/DVDSCMAP.H $
  19.  * 
  20.  * 4     12/30/03 11:27a Leonh
  21.  * Angieh:Change for DVD AUDIO navigator header.
  22.  * 
  23.  * 7     10/23/03 11:33a Leslie
  24.  * for store asv pointer
  25.  * 
  26.  * 6     10/20/03 11:46a Leslie
  27.  * check the variable type and change the dvda rtpb schedule way as the
  28.  * same with DVD Video
  29.  * 
  30.  * 5     10/14/03 11:19a Leslie
  31.  * add dvd audio support
  32.  * 
  33.  * 4     8/20/03 2:56p Leonh
  34.  * Merge dvd audio code with the latest nav_dvd code with reference
  35.  * 
  36.  * 3     03-05-08 18:17 Leonh
  37.  * 
  38.  * 2     03-04-30 17:27 Leonh
  39.  * 
  40.  * 1     03-04-28 11:15 Fwang
  41.  * Initial for DVDA
  42.  * 
  43.  * 4     5/21/02 12:38p Leslie
  44.  * Support 5 DVD Bookmarks
  45.  * 
  46.  * 3     9/05/02 16:06 Nirm
  47.  * - Added allocation for CGMS Info Table.
  48.  * 
  49.  * 2     23/04/02 9:34 Nirm
  50.  * - Added dependency in "Config.h".
  51.  * 
  52.  * 1     2/17/02 12:12 Rinata
  53.  * 
  54.  * 1     2/17/02 11:38 Rinata
  55.  * 
  56.  * 3     9/01/02 16:40 Nirm
  57.  * Corrected Include-Paths.
  58.  * 
  59.  * 2     9/01/02 14:51 Atai
  60.  * Code cleaning
  61.  **************************************************************************************** */
  62. #include "Config.h" // Global Configuration - do not remove!
  63. #ifndef DVDSCMAP_H
  64. #define DVDSCMAP_H
  65. #include "Includesysdefs.h"
  66. #include "PlaycoreScPadScPadAlloc.h"
  67. #include "PlaycoreScPadScMgr.h"
  68. #include "PlaycoreNav_DVDHeadernvgadefs.h"
  69. #define PCI_A_SCA SC_NAVIGATORS_ADDR
  70. #define PCI_B_SCA (PCI_A_SCA+CONTAINER_COUNT(PCI_SIZE))
  71. #define POWER_ON_ATRT_SCA (PCI_B_SCA+CONTAINER_COUNT(PCI_SIZE))
  72. #define VMG_MENU_ATRT_SCA (POWER_ON_ATRT_SCA+CONTAINER_COUNT(T_ATRT_SIZE))
  73. #define TITLE_ATRT_SCA (VMG_MENU_ATRT_SCA+CONTAINER_COUNT(M_ATRT_SIZE))
  74. #define VTS_MENU_ATRT_SCA (TITLE_ATRT_SCA+CONTAINER_COUNT(T_ATRT_SIZE))
  75. #define DSI_SCA (VTS_MENU_ATRT_SCA+CONTAINER_COUNT(M_ATRT_SIZE))
  76. #define PGC_GI_SCA (DSI_SCA+CONTAINER_COUNT(DSI_SIZE))
  77. #define BMARK_GPRM_1_SCA (PGC_GI_SCA+CONTAINER_COUNT(PGC_GI_SIZE))
  78. #define BMARK_GPRM_2_SCA (BMARK_GPRM_1_SCA+CONTAINER_COUNT(GPRM_SIZE))
  79. #define BMARK_GPRM_3_SCA (BMARK_GPRM_2_SCA+CONTAINER_COUNT(GPRM_SIZE))
  80. #define BMARK_GPRM_4_SCA (BMARK_GPRM_3_SCA+CONTAINER_COUNT(GPRM_SIZE))
  81. #define BMARK_GPRM_5_SCA (BMARK_GPRM_4_SCA+CONTAINER_COUNT(GPRM_SIZE))
  82. #define BMARK_GPRM_6_SCA (BMARK_GPRM_5_SCA+CONTAINER_COUNT(GPRM_SIZE))
  83. #define BMARK_GPRM_7_SCA (BMARK_GPRM_6_SCA+CONTAINER_COUNT(GPRM_SIZE))
  84. #define ANGLE_OFFSET_SCA (BMARK_GPRM_7_SCA+CONTAINER_COUNT(GPRM_SIZE))
  85. #define RSM_ANGLE_OFFSET_SCA (ANGLE_OFFSET_SCA+CONTAINER_COUNT(ANGLE_OFFSET_SIZE))
  86. #define NP_INFO_SCA (RSM_ANGLE_OFFSET_SCA+CONTAINER_COUNT(ANGLE_OFFSET_SIZE))
  87. //<<<Angie_0803_2004:For DVD Audio Use the mamory allocated by DVD Video
  88. #define ASV_POINTER_SCA SC_NAVIGATORS_ADDR //Use the PCI_A_BUFF Memory
  89. #define AMG_MENU_ATRT_SCA VMG_MENU_ATRT_SCA //Use the VMG_MENU_ATRT Memory
  90. #define AOTT_AOB_ATRT_SCA DSI_SCA //Use the DSI Memory 128 bytes 
  91. #define ATS_DMX_TBL_SCA (AOTT_AOB_ATRT_SCA+CONTAINER_COUNT(AOTT_AOB_ATRT_SIZE))//Use the DSI Memory 288 bytes
  92. //Angie_0803_2004>>>
  93. #ifdef LANGUAGE_LEARNING_SUPPORT
  94. #define DSI_GRAMMER_CMD_SCA (NP_INFO_SCA + CONTAINER_COUNT(sizeof(S_NAV_PK_INFO_FIFO)))
  95. #define SAVED_BMARK_GRAMMER_SCA (DSI_GRAMMER_CMD_SCA + CONTAINER_COUNT(DSI_GRAMMER_CMD_SIZE*MAX_NUMOF_DSI_GRAMMER_CMD))
  96. #define SAVED_BMARK_0_SCA (SAVED_BMARK_GRAMMER_SCA + CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  97. #else
  98. #define SAVED_BMARK_0_SCA (NP_INFO_SCA+CONTAINER_COUNT(sizeof(S_NAV_PK_INFO_FIFO)))
  99. #endif//LANGUAGE_LEARNING_SUPPORT
  100. #define SAVED_BMARK_1_SCA (SAVED_BMARK_0_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  101. #define SAVED_BMARK_2_SCA (SAVED_BMARK_1_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  102. #define SAVED_BMARK_3_SCA (SAVED_BMARK_2_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  103. #define SAVED_BMARK_4_SCA (SAVED_BMARK_3_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  104. #ifdef SUPPORT_FIVE_DVD_BOOKMARKS
  105. #define SAVED_BMARK_5_SCA (SAVED_BMARK_4_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  106. #define SAVED_BMARK_6_SCA (SAVED_BMARK_5_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  107. #define PGC_PB_ORDER_SCA (SAVED_BMARK_6_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  108. #elif D_SUPPORT_TWELVE_BOOKMARKS
  109. #define SAVED_BMARK_5_SCA (SAVED_BMARK_4_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  110. #define SAVED_BMARK_6_SCA (SAVED_BMARK_5_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  111. #define SAVED_BMARK_7_SCA (SAVED_BMARK_6_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  112. #define SAVED_BMARK_8_SCA (SAVED_BMARK_7_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  113. #define SAVED_BMARK_9_SCA (SAVED_BMARK_8_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  114. #define SAVED_BMARK_10_SCA (SAVED_BMARK_9_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  115. #define SAVED_BMARK_11_SCA (SAVED_BMARK_10_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  116. #define SAVED_BMARK_12_SCA (SAVED_BMARK_11_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  117. #define SAVED_BMARK_13_SCA (SAVED_BMARK_12_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  118. #define PGC_PB_ORDER_SCA (SAVED_BMARK_13_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  119. #else
  120. #define PGC_PB_ORDER_SCA (SAVED_BMARK_4_SCA+CONTAINER_COUNT(sizeof(DVD_BOOKMARK)))
  121. #endif//SUPPORT_FIVE_DVD_BOOKMARKS
  122. #define PGC_PB_ORDER_MAX_SIZE 128 // ZORAN BMV0208 made it 128 as max repeat value is 128 //100 /* 100 items can be stored max */
  123. #define VMG_MENU_STRUCT_LUT_SCA (PGC_PB_ORDER_SCA+CONTAINER_COUNT(PGC_PB_ORDER_MAX_SIZE))
  124. #define VTS_MENU_STRUCT_LUT_SCA (VMG_MENU_STRUCT_LUT_SCA + CONTAINER_COUNT( 8*sizeof(WORD) ))
  125. #define VOB_CGMS_INFO_TABLE_SCA (VTS_MENU_STRUCT_LUT_SCA + CONTAINER_COUNT( 8*sizeof(WORD) ))
  126. #define LAST_SCA (VOB_CGMS_INFO_TABLE_SCA + CONTAINER_COUNT(MAX_CGMS_ENTRIES * sizeof(S_VOB_CGMS_INFO)))
  127. #endif //DVDSCMAP_H