1 /*
2  * Copyright (c) 2011 Intel Corporation. All Rights Reserved.
3  * Copyright (c) Imagination Technologies Limited, UK
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the
7  * "Software"), to deal in the Software without restriction, including
8  * without limitation the rights to use, copy, modify, merge, publish,
9  * distribute, sub license, and/or sell copies of the Software, and to
10  * permit persons to whom the Software is furnished to do so, subject to
11  * the following conditions:
12  *
13  * The above copyright notice and this permission notice (including the
14  * next paragraph) shall be included in all copies or substantial portions
15  * of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
20  * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
21  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24  */
25 
26 
27 /******************************************************************************
28 
29  @File         msvdx_vec_h264_reg_io2.h
30 
31  @Title        MSVDX Offsets
32 
33  @Platform     </b>\n
34 
35  @Description  </b>\n This file contains the MSVDX_VEC_H264_REG_IO2_H Defintions.
36 
37 ******************************************************************************/
38 #if !defined (__MSVDX_VEC_H264_REG_IO2_H__)
39 #define __MSVDX_VEC_H264_REG_IO2_H__
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 
46 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BOT_FOC_OFFSET            (0x025C)
47 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BOT_FOC_STRIDE            (8)
48 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BOT_FOC_NO_ENTRIES                (16)
49 
50 // MSVDX_VEC_H264     CR_VEC_H264_BE_BOT_FOC     BOTTOMFIELDORDERCNT
51 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BOT_FOC_BOTTOMFIELDORDERCNT_MASK          (0x0001FFFF)
52 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BOT_FOC_BOTTOMFIELDORDERCNT_LSBMASK               (0x0001FFFF)
53 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BOT_FOC_BOTTOMFIELDORDERCNT_SHIFT         (0)
54 
55 #define MSVDX_VEC_H264_CR_VEC_H264_BE_TOP_FOC_OFFSET            (0x0258)
56 #define MSVDX_VEC_H264_CR_VEC_H264_BE_TOP_FOC_STRIDE            (8)
57 #define MSVDX_VEC_H264_CR_VEC_H264_BE_TOP_FOC_NO_ENTRIES                (16)
58 
59 // MSVDX_VEC_H264     CR_VEC_H264_BE_TOP_FOC     TOPFIELDORDERCNT
60 #define MSVDX_VEC_H264_CR_VEC_H264_BE_TOP_FOC_TOPFIELDORDERCNT_MASK             (0x0001FFFF)
61 #define MSVDX_VEC_H264_CR_VEC_H264_BE_TOP_FOC_TOPFIELDORDERCNT_LSBMASK          (0x0001FFFF)
62 #define MSVDX_VEC_H264_CR_VEC_H264_BE_TOP_FOC_TOPFIELDORDERCNT_SHIFT            (0)
63 
64 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_OFFSET              (0x02FC)
65 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_STRIDE              (4)
66 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_NO_ENTRIES          (8)
67 
68 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0_INVERSE     REFPICLISTINVERSE0_3
69 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_3_MASK           (0x1F000000)
70 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_3_LSBMASK                (0x0000001F)
71 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_3_SHIFT          (24)
72 
73 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0_INVERSE     REFPICLISTINVERSE0_2
74 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_2_MASK           (0x001F0000)
75 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_2_LSBMASK                (0x0000001F)
76 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_2_SHIFT          (16)
77 
78 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0_INVERSE     REFPICLISTINVERSE0_1
79 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_1_MASK           (0x00001F00)
80 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_1_LSBMASK                (0x0000001F)
81 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_1_SHIFT          (8)
82 
83 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0_INVERSE     REFPICLISTINVERSE0_0
84 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_0_MASK           (0x0000001F)
85 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_0_LSBMASK                (0x0000001F)
86 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_INVERSE_REFPICLISTINVERSE0_0_SHIFT          (0)
87 
88 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_OFFSET              (0x031C)
89 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_STRIDE              (4)
90 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_NO_ENTRIES          (8)
91 
92 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     BOTTOMFIELDFLAG1_3
93 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_3_MASK             (0x80000000)
94 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_3_LSBMASK          (0x00000001)
95 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_3_SHIFT            (31)
96 
97 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     REFPICLIST1_3
98 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_3_MASK          (0x0F000000)
99 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_3_LSBMASK               (0x0000000F)
100 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_3_SHIFT         (24)
101 
102 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     BOTTOMFIELDFLAG1_2
103 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_2_MASK             (0x00800000)
104 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_2_LSBMASK          (0x00000001)
105 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_2_SHIFT            (23)
106 
107 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     REFPICLIST1_2
108 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_2_MASK          (0x000F0000)
109 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_2_LSBMASK               (0x0000000F)
110 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_2_SHIFT         (16)
111 
112 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     BOTTOMFIELDFLAG1_1
113 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_1_MASK             (0x00008000)
114 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_1_LSBMASK          (0x00000001)
115 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_1_SHIFT            (15)
116 
117 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     REFPICLIST1_1
118 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_1_MASK          (0x00000F00)
119 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_1_LSBMASK               (0x0000000F)
120 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_1_SHIFT         (8)
121 
122 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     BOTTOMFIELDFLAG1_0
123 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_0_MASK             (0x00000080)
124 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_0_LSBMASK          (0x00000001)
125 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_BOTTOMFIELDFLAG1_0_SHIFT            (7)
126 
127 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST1     REFPICLIST1_0
128 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_0_MASK          (0x0000000F)
129 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_0_LSBMASK               (0x0000000F)
130 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST1_REFPICLIST1_0_SHIFT         (0)
131 
132 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_OFFSET              (0x033C)
133 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_STRIDE              (4)
134 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_NO_ENTRIES          (8)
135 
136 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     BOTTOMFIELDFLAG0_3
137 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_3_MASK             (0x80000000)
138 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_3_LSBMASK          (0x00000001)
139 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_3_SHIFT            (31)
140 
141 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     REFPICLIST0_3
142 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_3_MASK          (0x0F000000)
143 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_3_LSBMASK               (0x0000000F)
144 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_3_SHIFT         (24)
145 
146 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     BOTTOMFIELDFLAG0_2
147 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_2_MASK             (0x00800000)
148 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_2_LSBMASK          (0x00000001)
149 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_2_SHIFT            (23)
150 
151 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     REFPICLIST0_2
152 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_2_MASK          (0x000F0000)
153 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_2_LSBMASK               (0x0000000F)
154 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_2_SHIFT         (16)
155 
156 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     BOTTOMFIELDFLAG0_1
157 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_1_MASK             (0x00008000)
158 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_1_LSBMASK          (0x00000001)
159 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_1_SHIFT            (15)
160 
161 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     REFPICLIST0_1
162 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_1_MASK          (0x00000F00)
163 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_1_LSBMASK               (0x0000000F)
164 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_1_SHIFT         (8)
165 
166 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     BOTTOMFIELDFLAG0_0
167 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_0_MASK             (0x00000080)
168 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_0_LSBMASK          (0x00000001)
169 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_BOTTOMFIELDFLAG0_0_SHIFT            (7)
170 
171 // MSVDX_VEC_H264     CR_VEC_H264_BE_LIST0     REFPICLIST0_0
172 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_0_MASK          (0x0000000F)
173 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_0_LSBMASK               (0x0000000F)
174 #define MSVDX_VEC_H264_CR_VEC_H264_BE_LIST0_REFPICLIST0_0_SHIFT         (0)
175 
176 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_OFFSET               (0x0200)
177 
178 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     H264_FE_SPS0_4BIT_SGM_FLAG
179 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_H264_FE_SPS0_4BIT_SGM_FLAG_MASK              (0x00004000)
180 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_H264_FE_SPS0_4BIT_SGM_FLAG_LSBMASK           (0x00000001)
181 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_H264_FE_SPS0_4BIT_SGM_FLAG_SHIFT             (14)
182 
183 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     MIN_LUMA_BIPRED_SIZE_8X8
184 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_MIN_LUMA_BIPRED_SIZE_8X8_MASK                (0x00000800)
185 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_MIN_LUMA_BIPRED_SIZE_8X8_LSBMASK             (0x00000001)
186 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_MIN_LUMA_BIPRED_SIZE_8X8_SHIFT               (11)
187 
188 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     DIRECT_8X8_INFERENCE_FLAG
189 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_DIRECT_8X8_INFERENCE_FLAG_MASK               (0x00000400)
190 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_DIRECT_8X8_INFERENCE_FLAG_LSBMASK            (0x00000001)
191 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_DIRECT_8X8_INFERENCE_FLAG_SHIFT              (10)
192 
193 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     CHROMA_FORMAT_IDC
194 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_CHROMA_FORMAT_IDC_MASK               (0x00000200)
195 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_CHROMA_FORMAT_IDC_LSBMASK            (0x00000001)
196 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_CHROMA_FORMAT_IDC_SHIFT              (9)
197 
198 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     FRAME_MBS_ONLY_FLAG
199 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_FRAME_MBS_ONLY_FLAG_MASK             (0x00000100)
200 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_FRAME_MBS_ONLY_FLAG_LSBMASK          (0x00000001)
201 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_FRAME_MBS_ONLY_FLAG_SHIFT            (8)
202 
203 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     H264_FE_SPS0_SPARE7
204 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_H264_FE_SPS0_SPARE7_MASK             (0x00000080)
205 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_H264_FE_SPS0_SPARE7_LSBMASK          (0x00000001)
206 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_H264_FE_SPS0_SPARE7_SHIFT            (7)
207 
208 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPS0     PICWIDTHINMBSLESS1
209 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_PICWIDTHINMBSLESS1_MASK              (0x0000007F)
210 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_PICWIDTHINMBSLESS1_LSBMASK           (0x0000007F)
211 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPS0_PICWIDTHINMBSLESS1_SHIFT             (0)
212 
213 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_OFFSET               (0x0204)
214 
215 // MSVDX_VEC_H264     CR_VEC_H264_FE_PPS0     H264_FE_PPS0_SPARE31DOWNTO7
216 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_H264_FE_PPS0_SPARE31DOWNTO7_MASK             (0xFFFFFF80)
217 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_H264_FE_PPS0_SPARE31DOWNTO7_LSBMASK          (0x01FFFFFF)
218 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_H264_FE_PPS0_SPARE31DOWNTO7_SHIFT            (7)
219 
220 // MSVDX_VEC_H264     CR_VEC_H264_FE_PPS0     NUM_SLICE_GROUPS_MINUS1
221 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_NUM_SLICE_GROUPS_MINUS1_MASK         (0x00000070)
222 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_NUM_SLICE_GROUPS_MINUS1_LSBMASK              (0x00000007)
223 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_NUM_SLICE_GROUPS_MINUS1_SHIFT                (4)
224 
225 // MSVDX_VEC_H264     CR_VEC_H264_FE_PPS0     H264_FE_PPS0_SPARE3
226 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_H264_FE_PPS0_SPARE3_MASK             (0x00000008)
227 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_H264_FE_PPS0_SPARE3_LSBMASK          (0x00000001)
228 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_H264_FE_PPS0_SPARE3_SHIFT            (3)
229 
230 // MSVDX_VEC_H264     CR_VEC_H264_FE_PPS0     ENTROPY_CODING_MODE_FLAG
231 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_ENTROPY_CODING_MODE_FLAG_MASK                (0x00000004)
232 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_ENTROPY_CODING_MODE_FLAG_LSBMASK             (0x00000001)
233 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_ENTROPY_CODING_MODE_FLAG_SHIFT               (2)
234 
235 // MSVDX_VEC_H264     CR_VEC_H264_FE_PPS0     CONSTRAINED_INTRA_PRED_FLAG
236 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_CONSTRAINED_INTRA_PRED_FLAG_MASK             (0x00000002)
237 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_CONSTRAINED_INTRA_PRED_FLAG_LSBMASK          (0x00000001)
238 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_CONSTRAINED_INTRA_PRED_FLAG_SHIFT            (1)
239 
240 // MSVDX_VEC_H264     CR_VEC_H264_FE_PPS0     TRANSFORM_8X8_MODE_FLAG
241 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_TRANSFORM_8X8_MODE_FLAG_MASK         (0x00000001)
242 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_TRANSFORM_8X8_MODE_FLAG_LSBMASK              (0x00000001)
243 #define MSVDX_VEC_H264_CR_VEC_H264_FE_PPS0_TRANSFORM_8X8_MODE_FLAG_SHIFT                (0)
244 
245 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_OFFSET           (0x0208)
246 
247 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     H264_FE_CUR_PIC0_SPARE29
248 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE29_MASK            (0x20000000)
249 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE29_LSBMASK         (0x00000001)
250 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE29_SHIFT           (29)
251 
252 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     PICSIZEINMBSLESS1
253 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_PICSIZEINMBSLESS1_MASK           (0x1FFF0000)
254 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_PICSIZEINMBSLESS1_LSBMASK                (0x00001FFF)
255 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_PICSIZEINMBSLESS1_SHIFT          (16)
256 
257 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     PICHEIGHTINMBSLESS1
258 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_PICHEIGHTINMBSLESS1_MASK         (0x00007F00)
259 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_PICHEIGHTINMBSLESS1_LSBMASK              (0x0000007F)
260 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_PICHEIGHTINMBSLESS1_SHIFT                (8)
261 
262 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     H264_FE_CUR_PIC0_SPARE7DOWNTO5
263 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE7DOWNTO5_MASK              (0x000000E0)
264 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE7DOWNTO5_LSBMASK           (0x00000007)
265 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE7DOWNTO5_SHIFT             (5)
266 
267 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     H264_FE_CUR_PIC0_SPARE3
268 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE3_MASK             (0x00000008)
269 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE3_LSBMASK          (0x00000001)
270 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_H264_FE_CUR_PIC0_SPARE3_SHIFT            (3)
271 
272 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     MBAFFFRAMEFLAG
273 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_MBAFFFRAMEFLAG_MASK              (0x00000004)
274 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_MBAFFFRAMEFLAG_LSBMASK           (0x00000001)
275 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_MBAFFFRAMEFLAG_SHIFT             (2)
276 
277 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     FIELD_PIC_FLAG
278 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_FIELD_PIC_FLAG_MASK              (0x00000002)
279 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_FIELD_PIC_FLAG_LSBMASK           (0x00000001)
280 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_FIELD_PIC_FLAG_SHIFT             (1)
281 
282 // MSVDX_VEC_H264     CR_VEC_H264_FE_CUR_PIC0     BOTTOM_FIELD_FLAG
283 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_BOTTOM_FIELD_FLAG_MASK           (0x00000001)
284 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_BOTTOM_FIELD_FLAG_LSBMASK                (0x00000001)
285 #define MSVDX_VEC_H264_CR_VEC_H264_FE_CUR_PIC0_BOTTOM_FIELD_FLAG_SHIFT          (0)
286 
287 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_OFFSET             (0x020C)
288 
289 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE0     H264_FE_SLICE0_SPARE25DOWNTO18
290 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_H264_FE_SLICE0_SPARE25DOWNTO18_MASK                (0x03FC0000)
291 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_H264_FE_SLICE0_SPARE25DOWNTO18_LSBMASK             (0x000000FF)
292 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_H264_FE_SLICE0_SPARE25DOWNTO18_SHIFT               (18)
293 
294 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE0     SLICETYPE
295 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_SLICETYPE_MASK             (0x00030000)
296 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_SLICETYPE_LSBMASK          (0x00000003)
297 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_SLICETYPE_SHIFT            (16)
298 
299 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE0     CABAC_INIT_IDC
300 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_CABAC_INIT_IDC_MASK                (0x0000C000)
301 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_CABAC_INIT_IDC_LSBMASK             (0x00000003)
302 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_CABAC_INIT_IDC_SHIFT               (14)
303 
304 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE0     SLICECOUNT
305 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_SLICECOUNT_MASK            (0x00003FFF)
306 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_SLICECOUNT_LSBMASK         (0x00003FFF)
307 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE0_SLICECOUNT_SHIFT           (0)
308 
309 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_OFFSET             (0x0210)
310 
311 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE1     FIRST_MB_IN_SLICE_Y
312 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_FIRST_MB_IN_SLICE_Y_MASK           (0x7F000000)
313 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_FIRST_MB_IN_SLICE_Y_LSBMASK                (0x0000007F)
314 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_FIRST_MB_IN_SLICE_Y_SHIFT          (24)
315 
316 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE1     H264_FE_SLICE1_SPARE23
317 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_H264_FE_SLICE1_SPARE23_MASK                (0x00800000)
318 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_H264_FE_SLICE1_SPARE23_LSBMASK             (0x00000001)
319 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_H264_FE_SLICE1_SPARE23_SHIFT               (23)
320 
321 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE1     FIRST_MB_IN_SLICE_X
322 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_FIRST_MB_IN_SLICE_X_MASK           (0x007F0000)
323 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_FIRST_MB_IN_SLICE_X_LSBMASK                (0x0000007F)
324 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_FIRST_MB_IN_SLICE_X_SHIFT          (16)
325 
326 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE1     SLICEQPY
327 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_SLICEQPY_MASK              (0x0000FC00)
328 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_SLICEQPY_LSBMASK           (0x0000003F)
329 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_SLICEQPY_SHIFT             (10)
330 
331 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE1     NUM_REF_IDX_L1_ACTIVE_MINUS1
332 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_NUM_REF_IDX_L1_ACTIVE_MINUS1_MASK          (0x000003E0)
333 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_NUM_REF_IDX_L1_ACTIVE_MINUS1_LSBMASK               (0x0000001F)
334 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_NUM_REF_IDX_L1_ACTIVE_MINUS1_SHIFT         (5)
335 
336 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE1     NUM_REF_IDX_L0_ACTIVE_MINUS1
337 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_NUM_REF_IDX_L0_ACTIVE_MINUS1_MASK          (0x0000001F)
338 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_NUM_REF_IDX_L0_ACTIVE_MINUS1_LSBMASK               (0x0000001F)
339 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE1_NUM_REF_IDX_L0_ACTIVE_MINUS1_SHIFT         (0)
340 
341 #define MSVDX_VEC_H264_CR_VEC_H264_FE_BASE_ADDR_SGM_OFFSET              (0x0214)
342 
343 // MSVDX_VEC_H264     CR_VEC_H264_FE_BASE_ADDR_SGM     MAPUNITTOSLICEGROUPMAP
344 #define MSVDX_VEC_H264_CR_VEC_H264_FE_BASE_ADDR_SGM_MAPUNITTOSLICEGROUPMAP_MASK         (0xFFFFF000)
345 #define MSVDX_VEC_H264_CR_VEC_H264_FE_BASE_ADDR_SGM_MAPUNITTOSLICEGROUPMAP_LSBMASK              (0x000FFFFF)
346 #define MSVDX_VEC_H264_CR_VEC_H264_FE_BASE_ADDR_SGM_MAPUNITTOSLICEGROUPMAP_SHIFT                (12)
347 
348 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_OFFSET             (0x0218)
349 
350 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE2     H264_FE_SLICE2_SPARE31DOWNTO30
351 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_H264_FE_SLICE2_SPARE31DOWNTO30_MASK                (0xC0000000)
352 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_H264_FE_SLICE2_SPARE31DOWNTO30_LSBMASK             (0x00000003)
353 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_H264_FE_SLICE2_SPARE31DOWNTO30_SHIFT               (30)
354 
355 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE2     FIRST_MB_IN_SLICE
356 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_FIRST_MB_IN_SLICE_MASK             (0x3FFF0000)
357 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_FIRST_MB_IN_SLICE_LSBMASK          (0x00003FFF)
358 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_FIRST_MB_IN_SLICE_SHIFT            (16)
359 
360 // MSVDX_VEC_H264     CR_VEC_H264_FE_SLICE2     H264_FE_SLICE2_SPARE15DOWNTO12
361 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_H264_FE_SLICE2_SPARE15DOWNTO12_MASK                (0x0000F000)
362 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_H264_FE_SLICE2_SPARE15DOWNTO12_LSBMASK             (0x0000000F)
363 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SLICE2_H264_FE_SLICE2_SPARE15DOWNTO12_SHIFT               (12)
364 
365 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE0_OFFSET             (0x021C)
366 
367 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPARE0     H264_FE_SPARE0_SPARE31DOWNTO12
368 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE0_H264_FE_SPARE0_SPARE31DOWNTO12_MASK                (0xFFFFF000)
369 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE0_H264_FE_SPARE0_SPARE31DOWNTO12_LSBMASK             (0x000FFFFF)
370 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE0_H264_FE_SPARE0_SPARE31DOWNTO12_SHIFT               (12)
371 
372 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE1_OFFSET             (0x0220)
373 
374 // MSVDX_VEC_H264     CR_VEC_H264_FE_SPARE1     H264_FE_SPARE1_SPARE31DOWNTO0
375 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE1_H264_FE_SPARE1_SPARE31DOWNTO0_MASK         (0xFFFFFFFF)
376 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE1_H264_FE_SPARE1_SPARE31DOWNTO0_LSBMASK              (0xFFFFFFFF)
377 #define MSVDX_VEC_H264_CR_VEC_H264_FE_SPARE1_H264_FE_SPARE1_SPARE31DOWNTO0_SHIFT                (0)
378 
379 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC0_OFFSET               (0x0250)
380 
381 // MSVDX_VEC_H264     CR_VEC_H264_BE_FOC0     TOPFIELDORDERCNT_CURR
382 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC0_TOPFIELDORDERCNT_CURR_MASK           (0x0001FFFF)
383 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC0_TOPFIELDORDERCNT_CURR_LSBMASK                (0x0001FFFF)
384 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC0_TOPFIELDORDERCNT_CURR_SHIFT          (0)
385 
386 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC1_OFFSET               (0x0254)
387 
388 // MSVDX_VEC_H264     CR_VEC_H264_BE_FOC1     BOTTOMFIELDORDERCNT_CURR
389 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC1_BOTTOMFIELDORDERCNT_CURR_MASK                (0x0001FFFF)
390 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC1_BOTTOMFIELDORDERCNT_CURR_LSBMASK             (0x0001FFFF)
391 #define MSVDX_VEC_H264_CR_VEC_H264_BE_FOC1_BOTTOMFIELDORDERCNT_CURR_SHIFT               (0)
392 
393 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_OFFSET               (0x02D8)
394 
395 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     H264_BE_SPS0_DEFAULT_MATRIX_FLAG
396 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_H264_BE_SPS0_DEFAULT_MATRIX_FLAG_MASK                (0x00040000)
397 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_H264_BE_SPS0_DEFAULT_MATRIX_FLAG_LSBMASK             (0x00000001)
398 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_H264_BE_SPS0_DEFAULT_MATRIX_FLAG_SHIFT               (18)
399 
400 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     H264_BE_SPS0_2PASS_FLAG
401 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_H264_BE_SPS0_2PASS_FLAG_MASK         (0x00010000)
402 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_H264_BE_SPS0_2PASS_FLAG_LSBMASK              (0x00000001)
403 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_H264_BE_SPS0_2PASS_FLAG_SHIFT                (16)
404 
405 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     BE_PROFILEIDC
406 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_PROFILEIDC_MASK           (0x00003000)
407 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_PROFILEIDC_LSBMASK                (0x00000003)
408 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_PROFILEIDC_SHIFT          (12)
409 
410 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     BE_MIN_LUMA_BIPRED_SIZE_8X8
411 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_MIN_LUMA_BIPRED_SIZE_8X8_MASK             (0x00000800)
412 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_MIN_LUMA_BIPRED_SIZE_8X8_LSBMASK          (0x00000001)
413 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_MIN_LUMA_BIPRED_SIZE_8X8_SHIFT            (11)
414 
415 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     BE_DIRECT_8X8_INFERENCE_FLAG
416 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_DIRECT_8X8_INFERENCE_FLAG_MASK            (0x00000400)
417 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_DIRECT_8X8_INFERENCE_FLAG_LSBMASK         (0x00000001)
418 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_DIRECT_8X8_INFERENCE_FLAG_SHIFT           (10)
419 
420 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     BE_CHROMA_FORMAT_IDC
421 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_CHROMA_FORMAT_IDC_MASK            (0x00000200)
422 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_CHROMA_FORMAT_IDC_LSBMASK         (0x00000001)
423 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_CHROMA_FORMAT_IDC_SHIFT           (9)
424 
425 // MSVDX_VEC_H264     CR_VEC_H264_BE_SPS0     BE_PICWIDTHINMBSLESS1
426 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_PICWIDTHINMBSLESS1_MASK           (0x0000007F)
427 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_PICWIDTHINMBSLESS1_LSBMASK                (0x0000007F)
428 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SPS0_BE_PICWIDTHINMBSLESS1_SHIFT          (0)
429 
430 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_OFFSET               (0x02DC)
431 
432 // MSVDX_VEC_H264     CR_VEC_H264_BE_PPS0     BE_SECOND_CHROMA_QP_INDEX_OFFSET
433 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_SECOND_CHROMA_QP_INDEX_OFFSET_MASK                (0x1F000000)
434 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_SECOND_CHROMA_QP_INDEX_OFFSET_LSBMASK             (0x0000001F)
435 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_SECOND_CHROMA_QP_INDEX_OFFSET_SHIFT               (24)
436 
437 // MSVDX_VEC_H264     CR_VEC_H264_BE_PPS0     BE_CHROMA_QP_INDEX_OFFSET
438 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_CHROMA_QP_INDEX_OFFSET_MASK               (0x001F0000)
439 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_CHROMA_QP_INDEX_OFFSET_LSBMASK            (0x0000001F)
440 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_CHROMA_QP_INDEX_OFFSET_SHIFT              (16)
441 
442 // MSVDX_VEC_H264     CR_VEC_H264_BE_PPS0     BE_WEIGHTED_BIPRED_IDC
443 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_WEIGHTED_BIPRED_IDC_MASK          (0x00000300)
444 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_WEIGHTED_BIPRED_IDC_LSBMASK               (0x00000003)
445 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_WEIGHTED_BIPRED_IDC_SHIFT         (8)
446 
447 // MSVDX_VEC_H264     CR_VEC_H264_BE_PPS0     BE_CONSTRAINED_INTRA_PREDICTION_FLAG
448 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_CONSTRAINED_INTRA_PREDICTION_FLAG_MASK            (0x00000002)
449 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_CONSTRAINED_INTRA_PREDICTION_FLAG_LSBMASK         (0x00000001)
450 #define MSVDX_VEC_H264_CR_VEC_H264_BE_PPS0_BE_CONSTRAINED_INTRA_PREDICTION_FLAG_SHIFT           (1)
451 
452 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_OFFSET           (0x02E0)
453 
454 // MSVDX_VEC_H264     CR_VEC_H264_BE_CUR_PIC0     BE_PICHEIGHTINMBSLESS1
455 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_PICHEIGHTINMBSLESS1_MASK              (0x00007F00)
456 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_PICHEIGHTINMBSLESS1_LSBMASK           (0x0000007F)
457 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_PICHEIGHTINMBSLESS1_SHIFT             (8)
458 
459 // MSVDX_VEC_H264     CR_VEC_H264_BE_CUR_PIC0     BE_REFERENCE_FLAG
460 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_REFERENCE_FLAG_MASK           (0x00000008)
461 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_REFERENCE_FLAG_LSBMASK                (0x00000001)
462 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_REFERENCE_FLAG_SHIFT          (3)
463 
464 // MSVDX_VEC_H264     CR_VEC_H264_BE_CUR_PIC0     BE_MBAFFFRAMEFLAG
465 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_MBAFFFRAMEFLAG_MASK           (0x00000004)
466 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_MBAFFFRAMEFLAG_LSBMASK                (0x00000001)
467 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_MBAFFFRAMEFLAG_SHIFT          (2)
468 
469 // MSVDX_VEC_H264     CR_VEC_H264_BE_CUR_PIC0     BE_FIELD_PIC_FLAG
470 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_FIELD_PIC_FLAG_MASK           (0x00000002)
471 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_FIELD_PIC_FLAG_LSBMASK                (0x00000001)
472 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_FIELD_PIC_FLAG_SHIFT          (1)
473 
474 // MSVDX_VEC_H264     CR_VEC_H264_BE_CUR_PIC0     BE_BOTTOM_FIELD_FLAG
475 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_BOTTOM_FIELD_FLAG_MASK                (0x00000001)
476 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_BOTTOM_FIELD_FLAG_LSBMASK             (0x00000001)
477 #define MSVDX_VEC_H264_CR_VEC_H264_BE_CUR_PIC0_BE_BOTTOM_FIELD_FLAG_SHIFT               (0)
478 
479 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_OFFSET             (0x02E4)
480 
481 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     BE_DIRECT_SPATIAL_MV_PRED_FLAG
482 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_DIRECT_SPATIAL_MV_PRED_FLAG_MASK                (0x80000000)
483 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_DIRECT_SPATIAL_MV_PRED_FLAG_LSBMASK             (0x00000001)
484 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_DIRECT_SPATIAL_MV_PRED_FLAG_SHIFT               (31)
485 
486 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     H264_BE_SLICE0_SPARE30
487 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_SPARE30_MASK                (0x40000000)
488 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_SPARE30_LSBMASK             (0x00000001)
489 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_SPARE30_SHIFT               (30)
490 
491 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     H264_BE_SLICE0_DISABLE_DEBLOCK_FILTER_IDC
492 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_DISABLE_DEBLOCK_FILTER_IDC_MASK             (0x30000000)
493 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_DISABLE_DEBLOCK_FILTER_IDC_LSBMASK          (0x00000003)
494 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_DISABLE_DEBLOCK_FILTER_IDC_SHIFT            (28)
495 
496 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     H264_BE_SLICE0_ALPHA_CO_OFFSET_DIV2
497 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_ALPHA_CO_OFFSET_DIV2_MASK           (0x0F000000)
498 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_ALPHA_CO_OFFSET_DIV2_LSBMASK                (0x0000000F)
499 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_ALPHA_CO_OFFSET_DIV2_SHIFT          (24)
500 
501 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     H264_BE_SLICE0_BETA_OFFSET_DIV2
502 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_BETA_OFFSET_DIV2_MASK               (0x00F00000)
503 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_BETA_OFFSET_DIV2_LSBMASK            (0x0000000F)
504 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_BETA_OFFSET_DIV2_SHIFT              (20)
505 
506 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     H264_BE_SLICE0_FIELD_TYPE
507 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_FIELD_TYPE_MASK             (0x000C0000)
508 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_FIELD_TYPE_LSBMASK          (0x00000003)
509 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_FIELD_TYPE_SHIFT            (18)
510 
511 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     BE_SLICETYPE
512 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_SLICETYPE_MASK          (0x00030000)
513 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_SLICETYPE_LSBMASK               (0x00000003)
514 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_SLICETYPE_SHIFT         (16)
515 
516 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     H264_BE_SLICE0_SPARE15DOWNTO14
517 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_SPARE15DOWNTO14_MASK                (0x0000C000)
518 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_SPARE15DOWNTO14_LSBMASK             (0x00000003)
519 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_H264_BE_SLICE0_SPARE15DOWNTO14_SHIFT               (14)
520 
521 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE0     BE_SLICECOUNT
522 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_SLICECOUNT_MASK         (0x00003FFF)
523 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_SLICECOUNT_LSBMASK              (0x00003FFF)
524 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE0_BE_SLICECOUNT_SHIFT                (0)
525 
526 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_OFFSET             (0x02E8)
527 
528 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     H264_BE_SLICE1_SPARE31
529 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_H264_BE_SLICE1_SPARE31_MASK                (0x80000000)
530 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_H264_BE_SLICE1_SPARE31_LSBMASK             (0x00000001)
531 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_H264_BE_SLICE1_SPARE31_SHIFT               (31)
532 
533 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     BE_FIRST_MB_IN_SLICE_Y
534 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_FIRST_MB_IN_SLICE_Y_MASK                (0x7F000000)
535 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_FIRST_MB_IN_SLICE_Y_LSBMASK             (0x0000007F)
536 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_FIRST_MB_IN_SLICE_Y_SHIFT               (24)
537 
538 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     H264_BE_SLICE1_SPARE23
539 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_H264_BE_SLICE1_SPARE23_MASK                (0x00800000)
540 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_H264_BE_SLICE1_SPARE23_LSBMASK             (0x00000001)
541 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_H264_BE_SLICE1_SPARE23_SHIFT               (23)
542 
543 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     BE_FIRST_MB_IN_SLICE_X
544 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_FIRST_MB_IN_SLICE_X_MASK                (0x007F0000)
545 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_FIRST_MB_IN_SLICE_X_LSBMASK             (0x0000007F)
546 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_FIRST_MB_IN_SLICE_X_SHIFT               (16)
547 
548 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     BE_SLICEQPY
549 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_SLICEQPY_MASK           (0x0000FC00)
550 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_SLICEQPY_LSBMASK                (0x0000003F)
551 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_SLICEQPY_SHIFT          (10)
552 
553 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     BE_NUM_REF_IDX_L1_ACTIVE_MINUS1
554 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_NUM_REF_IDX_L1_ACTIVE_MINUS1_MASK               (0x000003E0)
555 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_NUM_REF_IDX_L1_ACTIVE_MINUS1_LSBMASK            (0x0000001F)
556 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_NUM_REF_IDX_L1_ACTIVE_MINUS1_SHIFT              (5)
557 
558 // MSVDX_VEC_H264     CR_VEC_H264_BE_SLICE1     BE_NUM_REF_IDX_L0_ACTIVE_MINUS1
559 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_NUM_REF_IDX_L0_ACTIVE_MINUS1_MASK               (0x0000001F)
560 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_NUM_REF_IDX_L0_ACTIVE_MINUS1_LSBMASK            (0x0000001F)
561 #define MSVDX_VEC_H264_CR_VEC_H264_BE_SLICE1_BE_NUM_REF_IDX_L0_ACTIVE_MINUS1_SHIFT              (0)
562 
563 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_CUR_PIC_OFFSET          (0x02EC)
564 
565 // MSVDX_VEC_H264     CR_VEC_H264_BE_BASE_ADDR_CUR_PIC     CURRPIC_PARAMS_BASE_ADDRESS
566 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_CUR_PIC_CURRPIC_PARAMS_BASE_ADDRESS_MASK                (0xFFFFF000)
567 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_CUR_PIC_CURRPIC_PARAMS_BASE_ADDRESS_LSBMASK             (0x000FFFFF)
568 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_CUR_PIC_CURRPIC_PARAMS_BASE_ADDRESS_SHIFT               (12)
569 
570 #define MSVDX_VEC_H264_CR_VEC_H264_BE_REF0_OFFSET               (0x02F0)
571 
572 // MSVDX_VEC_H264     CR_VEC_H264_BE_REF0     BE_LONGTERMFRAMEFLAG
573 #define MSVDX_VEC_H264_CR_VEC_H264_BE_REF0_BE_LONGTERMFRAMEFLAG_MASK            (0x0000FFFF)
574 #define MSVDX_VEC_H264_CR_VEC_H264_BE_REF0_BE_LONGTERMFRAMEFLAG_LSBMASK         (0x0000FFFF)
575 #define MSVDX_VEC_H264_CR_VEC_H264_BE_REF0_BE_LONGTERMFRAMEFLAG_SHIFT           (0)
576 
577 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_OFFSET           (0x02F4)
578 
579 // MSVDX_VEC_H264     CR_VEC_H264_BE_COL_PIC0     COL_NOTFRAMEFLAG
580 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_NOTFRAMEFLAG_MASK            (0x00000010)
581 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_NOTFRAMEFLAG_LSBMASK         (0x00000001)
582 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_NOTFRAMEFLAG_SHIFT           (4)
583 
584 // MSVDX_VEC_H264     CR_VEC_H264_BE_COL_PIC0     COL_MBAFFFRAMEFLAG
585 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_MBAFFFRAMEFLAG_MASK          (0x00000004)
586 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_MBAFFFRAMEFLAG_LSBMASK               (0x00000001)
587 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_MBAFFFRAMEFLAG_SHIFT         (2)
588 
589 // MSVDX_VEC_H264     CR_VEC_H264_BE_COL_PIC0     COL_BOTTOM_FIELD_FLAG
590 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_BOTTOM_FIELD_FLAG_MASK               (0x00000001)
591 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_BOTTOM_FIELD_FLAG_LSBMASK            (0x00000001)
592 #define MSVDX_VEC_H264_CR_VEC_H264_BE_COL_PIC0_COL_BOTTOM_FIELD_FLAG_SHIFT              (0)
593 
594 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_COL_PIC_OFFSET          (0x02F8)
595 
596 // MSVDX_VEC_H264     CR_VEC_H264_BE_BASE_ADDR_COL_PIC     COL_PIC_PARAMS_BASE_ADDRESS
597 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_COL_PIC_COL_PIC_PARAMS_BASE_ADDRESS_MASK                (0xFFFFF000)
598 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_COL_PIC_COL_PIC_PARAMS_BASE_ADDRESS_LSBMASK             (0x000FFFFF)
599 #define MSVDX_VEC_H264_CR_VEC_H264_BE_BASE_ADDR_COL_PIC_COL_PIC_PARAMS_BASE_ADDRESS_SHIFT               (12)
600 
601 
602 
603 #ifdef __cplusplus
604 }
605 #endif
606 
607 #endif /* __MSVDX_VEC_H264_REG_IO2_H__ */
608