Debian Codegraph @

media_driver/agnostic/gen12/hw/mhw_sfc_hwcmd_g12_X.h

raw
1 /*
2 * Copyright (c) 2015-2019, Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22 //!
23 //! \file mhw_sfc_hwcmd_g12_X.h
24 //! \brief Auto-generated constructors for MHW and states.
25 //! \details This file may not be included outside of g12_X as other components
26 //! should use MHW interface to interact with MHW commands and states.
27 //!
28 #ifndef __MHW_SFC_HWCMD_G12_X_H__
29 #define __MHW_SFC_HWCMD_G12_X_H__
30
31 #pragma once
32
33 #include <cstdint>
34 #include <cstddef>
35
36 #pragma pack(1)
37
38 class mhw_sfc_g12_X
39 {
40 public:
41 // Internal Macros
42 #define __CODEGEN_MAX(_a, _b) (((_a) > (_b)) ? (_a) : (_b))
43 #define __CODEGEN_BITFIELD(l, h) (h) - (l) + 1
44 #define __CODEGEN_OP_LENGTH_BIAS 2
45 #define __CODEGEN_OP_LENGTH(x) (uint32_t)((__CODEGEN_MAX(x, __CODEGEN_OP_LENGTH_BIAS)) - __CODEGEN_OP_LENGTH_BIAS)
46
47 static uint32_t GetOpLength(uint32_t uiLength) { return __CODEGEN_OP_LENGTH(uiLength); }
48
49 //!
50 //! \brief SFC_AVS_STATE
51 //! \details
52 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
53 //! each frame once the lock request is granted.
54 //!
55 struct SFC_AVS_STATE_CMD
56 {
57 union
58 {
59 //!< DWORD 0
60 struct
61 {
62 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
63 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
64 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
65 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
66 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
67 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
68 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
69 };
70 uint32_t Value;
71 } DW0;
72 union
73 {
74 //!< DWORD 1
75 struct
76 {
77 uint32_t TransitionAreaWith8Pixels : __CODEGEN_BITFIELD( 0, 2) ; //!< Transition Area with 8 Pixels
78 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
79 uint32_t TransitionAreaWith4Pixels : __CODEGEN_BITFIELD( 4, 6) ; //!< Transition Area with 4 Pixels
80 uint32_t Reserved39 : __CODEGEN_BITFIELD( 7, 23) ; //!< Reserved
81 uint32_t SharpnessLevel : __CODEGEN_BITFIELD(24, 31) ; //!< SHARPNESS_LEVEL
82 };
83 uint32_t Value;
84 } DW1;
85 union
86 {
87 //!< DWORD 2
88 struct
89 {
90 uint32_t MaxDerivativePoint8 : __CODEGEN_BITFIELD( 0, 7) ; //!< MAX Derivative Point 8
91 uint32_t Reserved72 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
92 uint32_t MaxDerivative4Pixels : __CODEGEN_BITFIELD(16, 23) ; //!< Max Derivative 4 Pixels
93 uint32_t Reserved88 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
94 };
95 uint32_t Value;
96 } DW2;
97 union
98 {
99 //!< DWORD 3
100 struct
101 {
102 uint32_t InputVerticalSitingSpecifiesTheVerticalSitingOfTheInput : __CODEGEN_BITFIELD( 0, 3) ; //!< INPUT_VERTICAL_SITING__SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT
103 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 7) ; //!< Reserved
104 uint32_t InputHorizontalSitingValueSpecifiesTheHorizontalSitingOfTheInput : __CODEGEN_BITFIELD( 8, 11) ; //!< INPUT_HORIZONTAL_SITING_VALUE__SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT
105 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 31) ; //!< Reserved
106 };
107 uint32_t Value;
108 } DW3;
109
110 //! \name Local enumerations
111
112 enum SUBOPCODEB
113 {
114 SUBOPCODEB_SFCAVSSTATE = 2, //!< No additional details
115 };
116
117 enum SUBOPCODEA
118 {
119 SUBOPCODEA_COMMON = 0, //!< No additional details
120 };
121
122 enum MEDIA_COMMAND_OPCODE
123 {
124 MEDIA_COMMAND_OPCODE_MEDIAHEVCSFCMODE = 9, //!< No additional details
125 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
126 };
127
128 enum PIPELINE
129 {
130 PIPELINE_MEDIA = 2, //!< No additional details
131 };
132
133 enum COMMAND_TYPE
134 {
135 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
136 };
137
138 //! \brief SHARPNESS_LEVEL
139 //! \details
140 //! When adaptive scaling is off, determines the balance between sharp and
141 //! smooth scalers.
142 enum SHARPNESS_LEVEL
143 {
144 SHARPNESS_LEVEL_UNNAMED0 = 0, //!< Contribute 1 from the smooth scalar
145 SHARPNESS_LEVEL_UNNAMED255 = 255, //!< Contribute 1 from the sharp scalar
146 };
147
148 //! \brief INPUT_VERTICAL_SITING__SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT
149 //! \details
150 //! For 444 and 422 format, vertical chroma siting should be programmed to
151 //! zero.
152 enum INPUT_VERTICAL_SITING__SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT
153 {
154 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_0 = 0, //!< No additional details
155 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_18 = 1, //!< No additional details
156 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_28 = 2, //!< No additional details
157 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_38 = 3, //!< No additional details
158 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_48 = 4, //!< No additional details
159 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_58 = 5, //!< No additional details
160 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_68 = 6, //!< No additional details
161 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_78 = 7, //!< No additional details
162 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_88 = 8, //!< No additional details
163 };
164
165 //! \brief INPUT_HORIZONTAL_SITING_VALUE__SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT
166 //! \details
167 //! For 444 format, horizontal chroma siting should be programmed to zero.
168 enum INPUT_HORIZONTAL_SITING_VALUE__SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT
169 {
170 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_0_FRACTIONININTEGER = 0, //!< No additional details
171 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_18 = 1, //!< No additional details
172 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_28 = 2, //!< No additional details
173 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_38 = 3, //!< No additional details
174 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_48 = 4, //!< No additional details
175 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_58 = 5, //!< No additional details
176 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_68 = 6, //!< No additional details
177 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_78 = 7, //!< No additional details
178 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_88 = 8, //!< No additional details
179 };
180
181 //! \name Initializations
182
183 //! \brief Explicit member initialization function
184 SFC_AVS_STATE_CMD();
185
186 static const size_t dwSize = 4;
187 static const size_t byteSize = 16;
188 };
189
190 //!
191 //! \brief SFC_IEF_STATE
192 //! \details
193 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
194 //! each frame once the lock request is granted.
195 //!
196 struct SFC_IEF_STATE_CMD
197 {
198 union
199 {
200 //!< DWORD 0
201 struct
202 {
203 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
204 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
205 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
206 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
207 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
208 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
209 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
210 };
211 uint32_t Value;
212 } DW0;
213 union
214 {
215 //!< DWORD 1
216 struct
217 {
218 uint32_t GainFactor : __CODEGEN_BITFIELD( 0, 5) ; //!< GAIN_FACTOR
219 uint32_t WeakEdgeThreshold : __CODEGEN_BITFIELD( 6, 11) ; //!< WEAK_EDGE_THRESHOLD
220 uint32_t StrongEdgeThreshold : __CODEGEN_BITFIELD(12, 17) ; //!< STRONG_EDGE_THRESHOLD
221 uint32_t R3XCoefficient : __CODEGEN_BITFIELD(18, 22) ; //!< R3X_COEFFICIENT
222 uint32_t R3CCoefficient : __CODEGEN_BITFIELD(23, 27) ; //!< R3C_COEFFICIENT
223 uint32_t Reserved60 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
224 };
225 uint32_t Value;
226 } DW1;
227 union
228 {
229 //!< DWORD 2
230 struct
231 {
232 uint32_t GlobalNoiseEstimation : __CODEGEN_BITFIELD( 0, 7) ; //!< GLOBAL_NOISE_ESTIMATION
233 uint32_t NonEdgeWeight : __CODEGEN_BITFIELD( 8, 10) ; //!< NON_EDGE_WEIGHT
234 uint32_t RegularWeight : __CODEGEN_BITFIELD(11, 13) ; //!< REGULAR_WEIGHT
235 uint32_t StrongEdgeWeight : __CODEGEN_BITFIELD(14, 16) ; //!< STRONG_EDGE_WEIGHT
236 uint32_t R5XCoefficient : __CODEGEN_BITFIELD(17, 21) ; //!< R5X_COEFFICIENT
237 uint32_t R5CxCoefficient : __CODEGEN_BITFIELD(22, 26) ; //!< R5CX_COEFFICIENT
238 uint32_t R5CCoefficient : __CODEGEN_BITFIELD(27, 31) ; //!< R5C_COEFFICIENT
239 };
240 uint32_t Value;
241 } DW2;
242 union
243 {
244 //!< DWORD 3
245 struct
246 {
247 uint32_t StdSinAlpha : __CODEGEN_BITFIELD( 0, 7) ; //!< STD Sin(alpha)
248 uint32_t StdCosAlpha : __CODEGEN_BITFIELD( 8, 15) ; //!< STD Cos(alpha)
249 uint32_t SatMax : __CODEGEN_BITFIELD(16, 21) ; //!< SAT_MAX
250 uint32_t HueMax : __CODEGEN_BITFIELD(22, 27) ; //!< HUE_MAX
251 uint32_t Reserved124 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
252 };
253 uint32_t Value;
254 } DW3;
255 union
256 {
257 //!< DWORD 4
258 struct
259 {
260 uint32_t S3U : __CODEGEN_BITFIELD( 0, 10) ; //!< S3U
261 uint32_t Reserved139 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
262 uint32_t DiamondMargin : __CODEGEN_BITFIELD(12, 14) ; //!< DIAMOND_MARGIN
263 uint32_t VyStdEnable : __CODEGEN_BITFIELD(15, 15) ; //!< VY_STD_Enable
264 uint32_t UMid : __CODEGEN_BITFIELD(16, 23) ; //!< U_MID
265 uint32_t VMid : __CODEGEN_BITFIELD(24, 31) ; //!< V_MID
266 };
267 uint32_t Value;
268 } DW4;
269 union
270 {
271 //!< DWORD 5
272 struct
273 {
274 uint32_t DiamondDv : __CODEGEN_BITFIELD( 0, 6) ; //!< DIAMOND_DV
275 uint32_t DiamondTh : __CODEGEN_BITFIELD( 7, 12) ; //!< DIAMOND_TH
276 uint32_t DiamondAlpha : __CODEGEN_BITFIELD(13, 20) ; //!< Diamond_alpha
277 uint32_t HsMargin : __CODEGEN_BITFIELD(21, 23) ; //!< HS_MARGIN
278 uint32_t DiamondDu : __CODEGEN_BITFIELD(24, 30) ; //!< DIAMOND_DU
279 uint32_t SkinDetailFactor : __CODEGEN_BITFIELD(31, 31) ; //!< SKIN_DETAIL_FACTOR
280 };
281 uint32_t Value;
282 } DW5;
283 union
284 {
285 //!< DWORD 6
286 struct
287 {
288 uint32_t YPoint1 : __CODEGEN_BITFIELD( 0, 7) ; //!< Y_POINT_1
289 uint32_t YPoint2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Y_POINT_2
290 uint32_t YPoint3 : __CODEGEN_BITFIELD(16, 23) ; //!< Y_POINT_3
291 uint32_t YPoint4 : __CODEGEN_BITFIELD(24, 31) ; //!< Y_POINT_4
292 };
293 uint32_t Value;
294 } DW6;
295 union
296 {
297 //!< DWORD 7
298 struct
299 {
300 uint32_t InvMarginVyl : __CODEGEN_BITFIELD( 0, 15) ; //!< INV_Margin_VYL
301 uint32_t Reserved240 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
302 };
303 uint32_t Value;
304 } DW7;
305 union
306 {
307 //!< DWORD 8
308 struct
309 {
310 uint32_t InvMarginVyu : __CODEGEN_BITFIELD( 0, 15) ; //!< INV_Margin_VYU
311 uint32_t P0L : __CODEGEN_BITFIELD(16, 23) ; //!< P0L
312 uint32_t P1L : __CODEGEN_BITFIELD(24, 31) ; //!< P1L
313 };
314 uint32_t Value;
315 } DW8;
316 union
317 {
318 //!< DWORD 9
319 struct
320 {
321 uint32_t P2L : __CODEGEN_BITFIELD( 0, 7) ; //!< P2L
322 uint32_t P3L : __CODEGEN_BITFIELD( 8, 15) ; //!< P3L
323 uint32_t B0L : __CODEGEN_BITFIELD(16, 23) ; //!< B0L
324 uint32_t B1L : __CODEGEN_BITFIELD(24, 31) ; //!< B1L
325 };
326 uint32_t Value;
327 } DW9;
328 union
329 {
330 //!< DWORD 10
331 struct
332 {
333 uint32_t B2L : __CODEGEN_BITFIELD( 0, 7) ; //!< B2L
334 uint32_t B3L : __CODEGEN_BITFIELD( 8, 15) ; //!< B3L
335 uint32_t S0L : __CODEGEN_BITFIELD(16, 26) ; //!< S0L
336 uint32_t YSlope2 : __CODEGEN_BITFIELD(27, 31) ; //!< Y_Slope_2
337 };
338 uint32_t Value;
339 } DW10;
340 union
341 {
342 //!< DWORD 11
343 struct
344 {
345 uint32_t S1L : __CODEGEN_BITFIELD( 0, 10) ; //!< S1L
346 uint32_t S2L : __CODEGEN_BITFIELD(11, 21) ; //!< S2L
347 uint32_t Reserved374 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
348 };
349 uint32_t Value;
350 } DW11;
351 union
352 {
353 //!< DWORD 12
354 struct
355 {
356 uint32_t S3L : __CODEGEN_BITFIELD( 0, 10) ; //!< S3L
357 uint32_t P0U : __CODEGEN_BITFIELD(11, 18) ; //!< P0U
358 uint32_t P1U : __CODEGEN_BITFIELD(19, 26) ; //!< P1U
359 uint32_t YSlope1 : __CODEGEN_BITFIELD(27, 31) ; //!< Y_Slope1
360 };
361 uint32_t Value;
362 } DW12;
363 union
364 {
365 //!< DWORD 13
366 struct
367 {
368 uint32_t P2U : __CODEGEN_BITFIELD( 0, 7) ; //!< P2U
369 uint32_t P3U : __CODEGEN_BITFIELD( 8, 15) ; //!< P3U
370 uint32_t B0U : __CODEGEN_BITFIELD(16, 23) ; //!< B0U
371 uint32_t B1U : __CODEGEN_BITFIELD(24, 31) ; //!< B1U
372 };
373 uint32_t Value;
374 } DW13;
375 union
376 {
377 //!< DWORD 14
378 struct
379 {
380 uint32_t B2U : __CODEGEN_BITFIELD( 0, 7) ; //!< B2U
381 uint32_t B3U : __CODEGEN_BITFIELD( 8, 15) ; //!< B3U
382 uint32_t S0U : __CODEGEN_BITFIELD(16, 26) ; //!< S0U
383 uint32_t Reserved475 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
384 };
385 uint32_t Value;
386 } DW14;
387 union
388 {
389 //!< DWORD 15
390 struct
391 {
392 uint32_t S1U : __CODEGEN_BITFIELD( 0, 10) ; //!< S1U
393 uint32_t S2U : __CODEGEN_BITFIELD(11, 21) ; //!< S2U
394 uint32_t Reserved502 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
395 };
396 uint32_t Value;
397 } DW15;
398 union
399 {
400 //!< DWORD 16
401 struct
402 {
403 uint32_t TransformEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Transform Enable
404 uint32_t YuvChannelSwap : __CODEGEN_BITFIELD( 1, 1) ; //!< YUV Channel Swap
405 uint32_t Reserved514 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
406 uint32_t C0 : __CODEGEN_BITFIELD( 3, 15) ; //!< C0
407 uint32_t C1 : __CODEGEN_BITFIELD(16, 28) ; //!< C1
408 uint32_t Reserved541 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
409 };
410 uint32_t Value;
411 } DW16;
412 union
413 {
414 //!< DWORD 17
415 struct
416 {
417 uint32_t C2 : __CODEGEN_BITFIELD( 0, 12) ; //!< C2
418 uint32_t C3 : __CODEGEN_BITFIELD(13, 25) ; //!< C3
419 uint32_t Reserved570 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
420 };
421 uint32_t Value;
422 } DW17;
423 union
424 {
425 //!< DWORD 18
426 struct
427 {
428 uint32_t C4 : __CODEGEN_BITFIELD( 0, 12) ; //!< C4
429 uint32_t C5 : __CODEGEN_BITFIELD(13, 25) ; //!< C5
430 uint32_t Reserved602 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
431 };
432 uint32_t Value;
433 } DW18;
434 union
435 {
436 //!< DWORD 19
437 struct
438 {
439 uint32_t C6 : __CODEGEN_BITFIELD( 0, 12) ; //!< C6
440 uint32_t C7 : __CODEGEN_BITFIELD(13, 25) ; //!< C7
441 uint32_t Reserved634 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
442 };
443 uint32_t Value;
444 } DW19;
445 union
446 {
447 //!< DWORD 20
448 struct
449 {
450 uint32_t C8 : __CODEGEN_BITFIELD( 0, 12) ; //!< C8
451 uint32_t Reserved653 : __CODEGEN_BITFIELD(13, 31) ; //!< Reserved
452 };
453 uint32_t Value;
454 } DW20;
455 union
456 {
457 //!< DWORD 21
458 struct
459 {
460 uint32_t OffsetIn1 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_1
461 uint32_t OffsetOut1 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_1
462 uint32_t Reserved694 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
463 };
464 uint32_t Value;
465 } DW21;
466 union
467 {
468 //!< DWORD 22
469 struct
470 {
471 uint32_t OffsetIn2 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_2
472 uint32_t OffsetOut2 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_2
473 uint32_t Reserved726 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
474 };
475 uint32_t Value;
476 } DW22;
477 union
478 {
479 //!< DWORD 23
480 struct
481 {
482 uint32_t OffsetIn3 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_3
483 uint32_t OffsetOut3 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_3
484 uint32_t Reserved758 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
485 };
486 uint32_t Value;
487 } DW23;
488
489 //! \name Local enumerations
490
491 enum SUBOPCODEB
492 {
493 SUBOPCODEB_SFCIEFSTATE = 3, //!< No additional details
494 };
495
496 enum SUBOPCODEA
497 {
498 SUBOPCODEA_COMMON = 0, //!< No additional details
499 };
500
501 enum MEDIA_COMMAND_OPCODE
502 {
503 MEDIA_COMMAND_OPCODE_MEDIAHEVCSFCMODE = 9, //!< No additional details
504 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
505 };
506
507 enum PIPELINE
508 {
509 PIPELINE_MEDIA = 2, //!< No additional details
510 };
511
512 enum COMMAND_TYPE
513 {
514 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
515 };
516
517 //! \brief GAIN_FACTOR
518 //! \details
519 //! User control sharpening strength.
520 enum GAIN_FACTOR
521 {
522 GAIN_FACTOR_UNNAMED_4_4 = 44, //!< No additional details
523 };
524
525 //! \brief WEAK_EDGE_THRESHOLD
526 //! \details
527 //! If Strong Edge Threshold &gt; EM &gt; Weak Edge Threshold ? the basic
528 //! VSA detects a weak edge.
529 enum WEAK_EDGE_THRESHOLD
530 {
531 WEAK_EDGE_THRESHOLD_UNNAMED1 = 1, //!< No additional details
532 };
533
534 //! \brief STRONG_EDGE_THRESHOLD
535 //! \details
536 //! If EM &gt; Strong Edge Threshold ? the basic VSA detects a strong edge.
537 enum STRONG_EDGE_THRESHOLD
538 {
539 STRONG_EDGE_THRESHOLD_UNNAMED8 = 8, //!< No additional details
540 };
541
542 //! \brief R3X_COEFFICIENT
543 //! \details
544 //! IEF smoothing coefficient, <i>see IEF map.</i>
545 enum R3X_COEFFICIENT
546 {
547 R3X_COEFFICIENT_UNNAMED5 = 5, //!< No additional details
548 };
549
550 //! \brief R3C_COEFFICIENT
551 //! \details
552 //! IEF smoothing coefficient, <i>see IEF map.</i>
553 enum R3C_COEFFICIENT
554 {
555 R3C_COEFFICIENT_UNNAMED5 = 5, //!< No additional details
556 };
557
558 //! \brief GLOBAL_NOISE_ESTIMATION
559 //! \details
560 //! Global noise estimation of previous frame.
561 enum GLOBAL_NOISE_ESTIMATION
562 {
563 GLOBAL_NOISE_ESTIMATION_UNNAMED255 = 255, //!< No additional details
564 };
565
566 //! \brief NON_EDGE_WEIGHT
567 //! \details
568 //! . Sharpening strength when <u>NO EDGE</u> is found in basic VSA.
569 enum NON_EDGE_WEIGHT
570 {
571 NON_EDGE_WEIGHT_UNNAMED1 = 1, //!< No additional details
572 };
573
574 //! \brief REGULAR_WEIGHT
575 //! \details
576 //! Sharpening strength when a <u>WEAK</u> edge is found in basic VSA.
577 enum REGULAR_WEIGHT
578 {
579 REGULAR_WEIGHT_UNNAMED2 = 2, //!< No additional details
580 };
581
582 //! \brief STRONG_EDGE_WEIGHT
583 //! \details
584 //! Sharpening strength when a <u>STRONG</u> edge is found in basic VSA.
585 enum STRONG_EDGE_WEIGHT
586 {
587 STRONG_EDGE_WEIGHT_UNNAMED7 = 7, //!< No additional details
588 };
589
590 //! \brief R5X_COEFFICIENT
591 //! \details
592 //! IEF smoothing coefficient, <i>see IEF map.</i>
593 enum R5X_COEFFICIENT
594 {
595 R5X_COEFFICIENT_UNNAMED7 = 7, //!< No additional details
596 };
597
598 //! \brief R5CX_COEFFICIENT
599 //! \details
600 //! IEF smoothing coefficient, <i>see IEF map.</i>
601 enum R5CX_COEFFICIENT
602 {
603 R5CX_COEFFICIENT_UNNAMED7 = 7, //!< No additional details
604 };
605
606 //! \brief R5C_COEFFICIENT
607 //! \details
608 //! IEF smoothing coefficient, <i>see IEF map.</i>
609 enum R5C_COEFFICIENT
610 {
611 R5C_COEFFICIENT_UNNAMED7 = 7, //!< No additional details
612 };
613
614 //! \brief SAT_MAX
615 //! \details
616 //! Rectangle half length.
617 enum SAT_MAX
618 {
619 SAT_MAX_UNNAMED31 = 31, //!< No additional details
620 };
621
622 //! \brief HUE_MAX
623 //! \details
624 //! Rectangle half width.
625 enum HUE_MAX
626 {
627 HUE_MAX_UNNAMED1_4 = 14, //!< No additional details
628 };
629
630 enum DIAMOND_MARGIN
631 {
632 DIAMOND_MARGIN_UNNAMED_4 = 4, //!< No additional details
633 };
634
635 //! \brief U_MID
636 //! \details
637 //! Rectangle middle-point U coordinate.
638 enum U_MID
639 {
640 U_MID_UNNAMED110 = 110, //!< No additional details
641 };
642
643 //! \brief V_MID
644 //! \details
645 //! Rectangle middle-point V coordinate.
646 enum V_MID
647 {
648 V_MID_UNNAMED15_4 = 154, //!< No additional details
649 };
650
651 //! \brief DIAMOND_DV
652 //! \details
653 //! Rhombus center shift in the hue-direction, relative to the rectangle
654 //! center.
655 enum DIAMOND_DV
656 {
657 DIAMOND_DV_UNNAMED0 = 0, //!< No additional details
658 };
659
660 //! \brief DIAMOND_TH
661 //! \details
662 //! Half length of the rhombus axis in the sat-direction.
663 enum DIAMOND_TH
664 {
665 DIAMOND_TH_UNNAMED35 = 35, //!< No additional details
666 };
667
668 //! \brief HS_MARGIN
669 //! \details
670 //! Defines rectangle margin.
671 enum HS_MARGIN
672 {
673 HS_MARGIN_UNNAMED3 = 3, //!< No additional details
674 };
675
676 //! \brief DIAMOND_DU
677 //! \details
678 //! Rhombus center shift in the sat-direction, relative to the rectangle
679 //! center.
680 enum DIAMOND_DU
681 {
682 DIAMOND_DU_UNNAMED0 = 0, //!< No additional details
683 };
684
685 //! \brief SKIN_DETAIL_FACTOR
686 //! \details
687 //! This flag bit is in operation only when one of the following conditions
688 //! exists:
689 //! <ul>
690 //! <li>when the control bit <b>SkinToneTunedIEF_Enable</b> is on.
691 //! </li>
692 //! <Li>When <b>SkinDetailFactor</b> is equal to 0,
693 //! sign(<b>SkinDetailFactor</b>) is equal to +1, and the content of the
694 //! detected skin tone area is detail revealed.</Li>
695 //! <li>When <b>SkinDetailFactor</b> is equal to 1,
696 //! sign(<b>SkinDetailFactor</b>) is equal to -1, and the content of the
697 //! detected skin tone area is not detail revealed.</li>
698 //! </ul>
699 enum SKIN_DETAIL_FACTOR
700 {
701 SKIN_DETAIL_FACTOR_DETAILREVEALED = 0, //!< No additional details
702 SKIN_DETAIL_FACTOR_NOTDETAILREVEALED = 1, //!< No additional details
703 };
704
705 //! \brief Y_POINT_1
706 //! \details
707 //! First point of the Y piecewise linear membership function.
708 enum Y_POINT_1
709 {
710 Y_POINT_1_UNNAMED_46 = 46, //!< No additional details
711 };
712
713 //! \brief Y_POINT_2
714 //! \details
715 //! Second point of the Y piecewise linear membership function.
716 enum Y_POINT_2
717 {
718 Y_POINT_2_UNNAMED_47 = 47, //!< No additional details
719 };
720
721 //! \brief Y_POINT_3
722 //! \details
723 //! Third point of the Y piecewise linear membership function.
724 enum Y_POINT_3
725 {
726 Y_POINT_3_UNNAMED25_4 = 254, //!< No additional details
727 };
728
729 //! \brief Y_POINT_4
730 //! \details
731 //! Fourth point of the Y piecewise linear membership function.
732 enum Y_POINT_4
733 {
734 Y_POINT_4_UNNAMED255 = 255, //!< No additional details
735 };
736
737 //! \brief P0L
738 //! \details
739 //! Y Point 0 of the lower part of the detection PWLF.
740 enum P0L
741 {
742 P0L_UNNAMED_46 = 46, //!< No additional details
743 };
744
745 //! \brief P1L
746 //! \details
747 //! Y Point 1 of the lower part of the detection PWLF.
748 enum P1L
749 {
750 P1L_UNNAMED216 = 216, //!< No additional details
751 };
752
753 //! \brief P2L
754 //! \details
755 //! Y Point 2 of the lower part of the detection PWLF.
756 enum P2L
757 {
758 P2L_UNNAMED236 = 236, //!< No additional details
759 };
760
761 //! \brief P3L
762 //! \details
763 //! Y Point 3 of the lower part of the detection PWLF.
764 enum P3L
765 {
766 P3L_UNNAMED236 = 236, //!< No additional details
767 };
768
769 //! \brief B0L
770 //! \details
771 //! V Bias 0 of the lower part of the detection PWLF.
772 enum B0L
773 {
774 B0L_UNNAMED133 = 133, //!< No additional details
775 };
776
777 //! \brief B1L
778 //! \details
779 //! V Bias 1 of the lower part of the detection PWLF.
780 enum B1L
781 {
782 B1L_UNNAMED130 = 130, //!< No additional details
783 };
784
785 //! \brief B2L
786 //! \details
787 //! V Bias 2 of the lower part of the detection PWLF.
788 enum B2L
789 {
790 B2L_UNNAMED130 = 130, //!< No additional details
791 };
792
793 //! \brief B3L
794 //! \details
795 //! V Bias 3 of the lower part of the detection PWLF.
796 enum B3L
797 {
798 B3L_UNNAMED130 = 130, //!< No additional details
799 };
800
801 //! \brief P0U
802 //! \details
803 //! Y Point 0 of the upper part of the detection PWLF.
804 enum P0U
805 {
806 P0U_UNNAMED_46 = 46, //!< No additional details
807 };
808
809 //! \brief P1U
810 //! \details
811 //! Y Point 1 of the upper part of the detection PWLF.
812 enum P1U
813 {
814 P1U_UNNAMED66 = 66, //!< No additional details
815 };
816
817 //! \brief P2U
818 //! \details
819 //! Y Point 2 of the upper part of the detection PWLF.
820 enum P2U
821 {
822 P2U_UNNAMED150 = 150, //!< No additional details
823 };
824
825 //! \brief P3U
826 //! \details
827 //! Y Point 3 of the upper part of the detection PWLF.
828 enum P3U
829 {
830 P3U_UNNAMED236 = 236, //!< No additional details
831 };
832
833 //! \brief B0U
834 //! \details
835 //! V Bias 0 of the upper part of the detection PWLF.
836 enum B0U
837 {
838 B0U_UNNAMED1_43 = 143, //!< No additional details
839 };
840
841 //! \brief B1U
842 //! \details
843 //! V Bias 1 of the upper part of the detection PWLF.
844 enum B1U
845 {
846 B1U_UNNAMED163 = 163, //!< No additional details
847 };
848
849 //! \brief B2U
850 //! \details
851 //! V Bias 2 of the upper part of the detection PWLF.
852 enum B2U
853 {
854 B2U_UNNAMED200 = 200, //!< No additional details
855 };
856
857 //! \brief B3U
858 //! \details
859 //! V Bias 3 of the upper part of the detection PWLF.
860 enum B3U
861 {
862 B3U_UNNAMED1_40 = 140, //!< No additional details
863 };
864
865 //! \brief C0
866 //! \details
867 //! Transform coefficient
868 enum C0
869 {
870 C0_UNNAMED102_4 = 1024, //!< No additional details
871 };
872
873 //! \brief C1
874 //! \details
875 //! Transform coefficient
876 enum C1
877 {
878 C1_UNNAMED0 = 0, //!< No additional details
879 };
880
881 //! \brief C2
882 //! \details
883 //! Transform coefficient
884 enum C2
885 {
886 C2_UNNAMED0 = 0, //!< No additional details
887 };
888
889 //! \brief C3
890 //! \details
891 //! Transform coefficient
892 enum C3
893 {
894 C3_UNNAMED0 = 0, //!< No additional details
895 };
896
897 //! \brief C4
898 //! \details
899 //! Transform coefficient
900 enum C4
901 {
902 C4_UNNAMED102_4 = 1024, //!< No additional details
903 };
904
905 //! \brief C5
906 //! \details
907 //! Transform coefficient
908 enum C5
909 {
910 C5_UNNAMED0 = 0, //!< No additional details
911 };
912
913 //! \brief C6
914 //! \details
915 //! Transform coefficient
916 enum C6
917 {
918 C6_UNNAMED0 = 0, //!< No additional details
919 };
920
921 //! \brief C7
922 //! \details
923 //! Transform coefficient
924 enum C7
925 {
926 C7_UNNAMED0 = 0, //!< No additional details
927 };
928
929 //! \brief C8
930 //! \details
931 //! Transform coefficient
932 enum C8
933 {
934 C8_UNNAMED102_4 = 1024, //!< No additional details
935 };
936
937 //! \brief OFFSET_IN_1
938 //! \details
939 //! Offset in for Y/R.
940 enum OFFSET_IN_1
941 {
942 OFFSET_IN_1_UNNAMED0 = 0, //!< No additional details
943 };
944
945 //! \brief OFFSET_OUT_1
946 //! \details
947 //! Offset out for Y/R.
948 enum OFFSET_OUT_1
949 {
950 OFFSET_OUT_1_UNNAMED0 = 0, //!< No additional details
951 };
952
953 //! \brief OFFSET_IN_2
954 //! \details
955 //! Offset in for U/G.
956 enum OFFSET_IN_2
957 {
958 OFFSET_IN_2_UNNAMED0 = 0, //!< No additional details
959 };
960
961 //! \brief OFFSET_OUT_2
962 //! \details
963 //! Offset out for U/G.
964 enum OFFSET_OUT_2
965 {
966 OFFSET_OUT_2_UNNAMED0 = 0, //!< No additional details
967 };
968
969 //! \brief OFFSET_IN_3
970 //! \details
971 //! Offset in for V/B.
972 enum OFFSET_IN_3
973 {
974 OFFSET_IN_3_UNNAMED0 = 0, //!< No additional details
975 };
976
977 //! \brief OFFSET_OUT_3
978 //! \details
979 //! Offset out for V/B.
980 enum OFFSET_OUT_3
981 {
982 OFFSET_OUT_3_UNNAMED0 = 0, //!< No additional details
983 };
984
985 //! \name Initializations
986
987 //! \brief Explicit member initialization function
988 SFC_IEF_STATE_CMD();
989
990 static const size_t dwSize = 24;
991 static const size_t byteSize = 96;
992 };
993
994 //!
995 //! \brief SFC_FRAME_START
996 //! \details
997 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
998 //! each frame once the lock request is granted.
999 //!
1000 struct SFC_FRAME_START_CMD
1001 {
1002 union
1003 {
1004 //!< DWORD 0
1005 struct
1006 {
1007 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1008 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1009 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1010 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
1011 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
1012 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1013 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1014 };
1015 uint32_t Value;
1016 } DW0;
1017 union
1018 {
1019 //!< DWORD 1
1020 struct
1021 {
1022 uint32_t Reserved32 ; //!< Reserved
1023 };
1024 uint32_t Value;
1025 } DW1;
1026
1027 //! \name Local enumerations
1028
1029 enum SUBOPCODEB
1030 {
1031 SUBOPCODEB_SFCFRAMESTART = 4, //!< No additional details
1032 };
1033
1034 enum SUBOPCODEA
1035 {
1036 SUBOPCODEA_COMMON = 0, //!< No additional details
1037 };
1038
1039 enum MEDIA_COMMAND_OPCODE
1040 {
1041 MEDIA_COMMAND_OPCODE_MEDIAHEVCSFCMODE = 9, //!< No additional details
1042 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
1043 };
1044
1045 enum PIPELINE
1046 {
1047 PIPELINE_MEDIA = 2, //!< No additional details
1048 };
1049
1050 enum COMMAND_TYPE
1051 {
1052 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1053 };
1054
1055 //! \name Initializations
1056
1057 //! \brief Explicit member initialization function
1058 SFC_FRAME_START_CMD();
1059
1060 static const size_t dwSize = 2;
1061 static const size_t byteSize = 8;
1062 };
1063
1064 //!
1065 //! \brief SFC_LOCK
1066 //! \details
1067 //!
1068 //!
1069 struct SFC_LOCK_CMD
1070 {
1071 union
1072 {
1073 //!< DWORD 0
1074 struct
1075 {
1076 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1077 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1078 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1079 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
1080 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
1081 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1082 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1083 };
1084 uint32_t Value;
1085 } DW0;
1086 union
1087 {
1088 //!< DWORD 1
1089 struct
1090 {
1091 uint32_t VeSfcPipeSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< VE-SFC Pipe Select
1092 uint32_t PreScaledOutputSurfaceOutputEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Pre-Scaled Output Surface Output Enable
1093 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved
1094 };
1095 uint32_t Value;
1096 } DW1;
1097
1098 //! \name Local enumerations
1099
1100 enum SUBOPCODEB
1101 {
1102 SUBOPCODEB_SFCLOCK = 0, //!< No additional details
1103 };
1104
1105 enum SUBOPCODEA
1106 {
1107 SUBOPCODEA_COMMON = 0, //!< No additional details
1108 };
1109
1110 enum MEDIA_COMMAND_OPCODE
1111 {
1112 MEDIA_COMMAND_OPCODE_MEDIAHEVCSFCMODE = 9, //!< No additional details
1113 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
1114 };
1115
1116 enum PIPELINE
1117 {
1118 PIPELINE_MEDIA = 2, //!< No additional details
1119 };
1120
1121 enum COMMAND_TYPE
1122 {
1123 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1124 };
1125
1126 //! \name Initializations
1127
1128 //! \brief Explicit member initialization function
1129 SFC_LOCK_CMD();
1130
1131 static const size_t dwSize = 2;
1132 static const size_t byteSize = 8;
1133 };
1134
1135 //!
1136 //! \brief SFC_STATE
1137 //! \details
1138 //! This command is sent from VDBOX/HCP/VEBOX to SFC pipeline at the start
1139 //! of each frame once the lock request is granted.
1140 //!
1141 struct SFC_STATE_CMD
1142 {
1143 union
1144 {
1145 //!< DWORD 0
1146 struct
1147 {
1148 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1149 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1150 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1151 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
1152 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
1153 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1154 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1155 };
1156 uint32_t Value;
1157 } DW0;
1158 union
1159 {
1160 //!< DWORD 1
1161 struct
1162 {
1163 uint32_t SfcPipeMode : __CODEGEN_BITFIELD( 0, 3) ; //!< SFC_PIPE_MODE
1164 uint32_t SfcInputChromaSubSampling : __CODEGEN_BITFIELD( 4, 7) ; //!< SFC_INPUT_CHROMA_SUB_SAMPLING
1165 uint32_t VdVeInputOrderingMode : __CODEGEN_BITFIELD( 8, 10) ; //!< VDVE_INPUT_ORDERING_MODE
1166 uint32_t Reserved43 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1167 uint32_t SfcEngineMode : __CODEGEN_BITFIELD(12, 13) ; //!< SFC Engine Mode
1168 uint32_t SfcInputStreamBitDepth : __CODEGEN_BITFIELD(14, 15) ; //!< SFC Input Stream Bit Depth
1169 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1170 };
1171 uint32_t Value;
1172 } DW1;
1173 union
1174 {
1175 //!< DWORD 2
1176 struct
1177 {
1178 uint32_t InputFrameResolutionWidth : __CODEGEN_BITFIELD( 0, 13) ; //!< Input Frame Resolution Width
1179 uint32_t Reserved78 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1180 uint32_t InputFrameResolutionHeight : __CODEGEN_BITFIELD(16, 29) ; //!< Input Frame Resolution Height
1181 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1182 };
1183 uint32_t Value;
1184 } DW2;
1185 union
1186 {
1187 //!< DWORD 3
1188 struct
1189 {
1190 uint32_t OutputSurfaceFormatType : __CODEGEN_BITFIELD( 0, 3) ; //!< OUTPUT_SURFACE_FORMAT_TYPE
1191 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 4) ; //!< Reserved
1192 uint32_t RgbaChannelSwapEnable : __CODEGEN_BITFIELD( 5, 5) ; //!< RGBA_CHANNEL_SWAP_ENABLE
1193 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
1194 uint32_t OutputChromaDownsamplingCoSitingPositionVerticalDirection : __CODEGEN_BITFIELD( 8, 11) ; //!< OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION
1195 uint32_t OutputChromaDownsamplingCoSitingPositionHorizontalDirection : __CODEGEN_BITFIELD(12, 15) ; //!< OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION
1196 uint32_t InputColorSpace0Yuv1Rgb : __CODEGEN_BITFIELD(16, 16) ; //!< INPUT_COLOR_SPACE__0_YUV1__RGB
1197 uint32_t Reserved113 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved
1198 };
1199 uint32_t Value;
1200 } DW3;
1201 union
1202 {
1203 //!< DWORD 4
1204 struct
1205 {
1206 uint32_t IefEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< IEF_ENABLE
1207 uint32_t SkinToneTunedIefEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Skin Tone Tuned IEF_Enable
1208 uint32_t Ief4SmoothEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< IEF4SMOOTH_ENABLE_
1209 uint32_t Enable8TapForChromaChannelsFiltering : __CODEGEN_BITFIELD( 3, 3) ; //!< Enable 8 tap for Chroma channels filtering
1210 uint32_t AvsFilterMode : __CODEGEN_BITFIELD( 4, 5) ; //!< AVS_FILTER_MODE
1211 uint32_t AdaptiveFilterForAllChannels : __CODEGEN_BITFIELD( 6, 6) ; //!< ADAPTIVE_FILTER_FOR_ALL_CHANNELS
1212 uint32_t AvsScalingEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< AVS_SCALING_ENABLE
1213 uint32_t BypassYAdaptiveFiltering : __CODEGEN_BITFIELD( 8, 8) ; //!< BYPASS_Y_ADAPTIVE_FILTERING
1214 uint32_t BypassXAdaptiveFiltering : __CODEGEN_BITFIELD( 9, 9) ; //!< BYPASS_X_ADAPTIVE_FILTERING
1215 uint32_t RgbAdaptive : __CODEGEN_BITFIELD(10, 10) ; //!< RGB Adaptive
1216 uint32_t Reserved139 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1217 uint32_t ChromaUpsamplingEnable : __CODEGEN_BITFIELD(12, 12) ; //!< Chroma Upsampling Enable
1218 uint32_t Reserved141 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
1219 uint32_t RotationMode : __CODEGEN_BITFIELD(16, 17) ; //!< ROTATION_MODE
1220 uint32_t ColorFillEnable : __CODEGEN_BITFIELD(18, 18) ; //!< Color Fill Enable
1221 uint32_t CscEnable : __CODEGEN_BITFIELD(19, 19) ; //!< CSC Enable
1222 uint32_t Bitdepth : __CODEGEN_BITFIELD(20, 21) ; //!< BITDEPTH
1223 uint32_t TileType : __CODEGEN_BITFIELD(22, 22) ; //!< Tile Type
1224 uint32_t HistogramStreamout : __CODEGEN_BITFIELD(23, 23); //!< Tile Type
1225 uint32_t Reserved151 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1226 };
1227 uint32_t Value;
1228 } DW4;
1229 union
1230 {
1231 //!< DWORD 5
1232 struct
1233 {
1234 uint32_t SourceRegionWidth : __CODEGEN_BITFIELD( 0, 13) ; //!< Source Region Width
1235 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1236 uint32_t SourceRegionHeight : __CODEGEN_BITFIELD(16, 29) ; //!< Source Region Height
1237 uint32_t Reserved190 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1238 };
1239 uint32_t Value;
1240 } DW5;
1241 union
1242 {
1243 //!< DWORD 6
1244 struct
1245 {
1246 uint32_t SourceRegionHorizontalOffset : __CODEGEN_BITFIELD( 0, 13) ; //!< Source Region Horizontal Offset
1247 uint32_t Reserved206 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1248 uint32_t SourceRegionVerticalOffset : __CODEGEN_BITFIELD(16, 29) ; //!< Source Region Vertical Offset
1249 uint32_t Reserved222 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1250 };
1251 uint32_t Value;
1252 } DW6;
1253 union
1254 {
1255 //!< DWORD 7
1256 struct
1257 {
1258 uint32_t OutputFrameWidth : __CODEGEN_BITFIELD( 0, 13) ; //!< Output Frame Width
1259 uint32_t Reserved238 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1260 uint32_t OutputFrameHeight : __CODEGEN_BITFIELD(16, 29) ; //!< Output Frame Height
1261 uint32_t Reserved254 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1262 };
1263 uint32_t Value;
1264 } DW7;
1265 union
1266 {
1267 //!< DWORD 8
1268 struct
1269 {
1270 uint32_t ScaledRegionSizeWidth : __CODEGEN_BITFIELD( 0, 13) ; //!< Scaled Region Size Width
1271 uint32_t Reserved270 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1272 uint32_t ScaledRegionSizeHeight : __CODEGEN_BITFIELD(16, 29) ; //!< Scaled Region Size Height
1273 uint32_t Reserved286 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1274 };
1275 uint32_t Value;
1276 } DW8;
1277 union
1278 {
1279 //!< DWORD 9
1280 struct
1281 {
1282 uint32_t ScaledRegionHorizontalOffset : __CODEGEN_BITFIELD( 0, 14) ; //!< Scaled Region Horizontal Offset
1283 uint32_t Reserved303 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1284 uint32_t ScaledRegionVerticalOffset : __CODEGEN_BITFIELD(16, 30) ; //!< Scaled Region Vertical Offset
1285 uint32_t Reserved319 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
1286 };
1287 uint32_t Value;
1288 } DW9;
1289 union
1290 {
1291 //!< DWORD 10
1292 struct
1293 {
1294 uint32_t GrayBarPixelUG : __CODEGEN_BITFIELD( 0, 9) ; //!< Gray Bar Pixel - U/G
1295 uint32_t Reserved330 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved
1296 uint32_t GrayBarPixelYR : __CODEGEN_BITFIELD(16, 25) ; //!< Gray Bar Pixel - Y/R
1297 uint32_t Reserved346 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1298 };
1299 uint32_t Value;
1300 } DW10;
1301 union
1302 {
1303 //!< DWORD 11
1304 struct
1305 {
1306 uint32_t GrayBarPixelA : __CODEGEN_BITFIELD( 0, 9) ; //!< Gray Bar Pixel - A
1307 uint32_t Reserved362 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved
1308 uint32_t GrayBarPixelVB : __CODEGEN_BITFIELD(16, 25) ; //!< Gray Bar Pixel - V/B
1309 uint32_t Reserved378 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1310 };
1311 uint32_t Value;
1312 } DW11;
1313 union
1314 {
1315 //!< DWORD 12
1316 struct
1317 {
1318 uint32_t UvDefaultValueForUChannelForMonoInputSupport : __CODEGEN_BITFIELD( 0, 9) ; //!< UV Default value for U channel (For Mono Input Support)
1319 uint32_t Reserved394 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved
1320 uint32_t UvDefaultValueForVChannelForMonoInputSupport : __CODEGEN_BITFIELD(16, 25) ; //!< UV Default value for V channel (For Mono Input Support)
1321 uint32_t Reserved410 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1322 };
1323 uint32_t Value;
1324 } DW12;
1325 union
1326 {
1327 //!< DWORD 13
1328 struct
1329 {
1330 uint32_t AlphaDefaultValue : __CODEGEN_BITFIELD( 0, 9) ; //!< Alpha Default Value
1331 uint32_t Reserved426 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved
1332 };
1333 uint32_t Value;
1334 } DW13;
1335 union
1336 {
1337 //!< DWORD 14
1338 struct
1339 {
1340 uint32_t Reserved440 : __CODEGEN_BITFIELD( 0, 4) ; //!< Reserved
1341 uint32_t ScalingFactorHeight : __CODEGEN_BITFIELD( 5, 27) ; //!< SCALING_FACTOR_HEIGHT
1342 uint32_t Reserved469 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1343 };
1344 uint32_t Value;
1345 } DW14;
1346 union
1347 {
1348 //!< DWORD 15
1349 struct
1350 {
1351 uint32_t Reserved480 : __CODEGEN_BITFIELD( 0, 4) ; //!< Reserved
1352 uint32_t ScalingFactorWidth : __CODEGEN_BITFIELD( 5, 27) ; //!< SCALING_FACTOR_WIDTH
1353 uint32_t Reserved501 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1354 };
1355 uint32_t Value;
1356 } DW15;
1357 union
1358 {
1359 //!< DWORD 16
1360 struct
1361 {
1362 uint32_t Reserved512 ; //!< Reserved
1363 };
1364 uint32_t Value;
1365 } DW16;
1366 union
1367 {
1368 //!< DWORD 17
1369 struct
1370 {
1371 uint32_t Reserved544 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1372 uint32_t OutputFrameSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< Output Frame Surface Base Address
1373 };
1374 uint32_t Value;
1375 } DW17;
1376 union
1377 {
1378 //!< DWORD 18
1379 struct
1380 {
1381 uint32_t OutputFrameSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Output Frame Surface Base Address High
1382 uint32_t Reserved592 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1383 };
1384 uint32_t Value;
1385 } DW18;
1386 union
1387 {
1388 //!< DWORD 19
1389 struct
1390 {
1391 uint32_t Reserved608 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1392 uint32_t OutputFrameSurfaceBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< Output Frame Surface Base Address - Index to Memory Object Control State (MOCS) Tables
1393 uint32_t OutputFrameSurfaceBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< Output Frame Surface Base Address - Arbitration Priority Control
1394 uint32_t OutputFrameSurfaceBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Output Frame Surface Base Address - Memory Compression Enable
1395 uint32_t OutputFrameSurfaceBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< OUTPUT_FRAME_SURFACE_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1396 uint32_t Reserved619 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1397 uint32_t OutputFrameSurfaceBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< OUTPUT_FRAME_SURFACE_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1398 uint32_t OutputSurfaceTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< OUTPUT_SURFACE_TILED_MODE
1399 uint32_t Reserved623 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1400 };
1401 uint32_t Value;
1402 } DW19;
1403 union
1404 {
1405 //!< DWORD 20
1406 struct
1407 {
1408 uint32_t Reserved640 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1409 uint32_t AvsLineBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< AVS Line Buffer Surface Base Address
1410 };
1411 uint32_t Value;
1412 } DW20;
1413 union
1414 {
1415 //!< DWORD 21
1416 struct
1417 {
1418 uint32_t AvsLineBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< AVS Line Buffer Surface Base Address High
1419 uint32_t Reserved688 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1420 };
1421 uint32_t Value;
1422 } DW21;
1423 union
1424 {
1425 //!< DWORD 22
1426 struct
1427 {
1428 uint32_t Reserved704 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1429 uint32_t AvsLineBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< AVS Line Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1430 uint32_t AvsLineBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< AVS Line Buffer Base Address - Arbitration Priority Control
1431 uint32_t AvsLineBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1432 uint32_t AvsLineBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1433 uint32_t Reserved715 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1434 uint32_t AvsLineBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< AVS_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1435 uint32_t AvsLineBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< AVS_LINE_BUFFER_TILED_MODE
1436 uint32_t Reserved719 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1437 };
1438 uint32_t Value;
1439 } DW22;
1440 union
1441 {
1442 //!< DWORD 23
1443 struct
1444 {
1445 uint32_t Reserved736 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1446 uint32_t IefLineBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< IEF Line Buffer Surface Base Address
1447 };
1448 uint32_t Value;
1449 } DW23;
1450 union
1451 {
1452 //!< DWORD 24
1453 struct
1454 {
1455 uint32_t IefLineBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< IEF Line Buffer Surface Base Address High
1456 uint32_t Reserved784 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1457 };
1458 uint32_t Value;
1459 } DW24;
1460 union
1461 {
1462 //!< DWORD 25
1463 struct
1464 {
1465 uint32_t Reserved800 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1466 uint32_t IefLineBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< IEF Line Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1467 uint32_t IefLineBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< IEF Line Buffer Base Address - Arbitration Priority Control
1468 uint32_t IefLineBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1469 uint32_t IefLineBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1470 uint32_t Reserved811 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1471 uint32_t IefLineBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< IEF_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1472 uint32_t IefLineBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< IEF_LINE_BUFFER_TILED_MODE
1473 uint32_t Reserved815 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1474 };
1475 uint32_t Value;
1476 } DW25;
1477 union
1478 {
1479 //!< DWORD 26
1480 struct
1481 {
1482 uint32_t Reserved832 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1483 uint32_t SfdLineBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< SFD Line Buffer Surface Base Address
1484 };
1485 uint32_t Value;
1486 } DW26;
1487 union
1488 {
1489 //!< DWORD 27
1490 struct
1491 {
1492 uint32_t SfdLineBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< SFD Line Buffer Surface Base Address High
1493 uint32_t Reserved880 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1494 };
1495 uint32_t Value;
1496 } DW27;
1497 union
1498 {
1499 //!< DWORD 28
1500 struct
1501 {
1502 uint32_t Reserved896 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1503 uint32_t SfdLineBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< SFD Line Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1504 uint32_t SfdLineBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SFD Line Buffer Base Address - Arbitration Priority Control
1505 uint32_t SfdLineBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< SFD_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1506 uint32_t SfdLineBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SFD_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1507 uint32_t Reserved907 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1508 uint32_t SfdLineBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< SFD_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1509 uint32_t SfdLineBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< SFD_LINE_BUFFER_TILED_MODE
1510 uint32_t Reserved911 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1511 };
1512 uint32_t Value;
1513 } DW28;
1514 union
1515 {
1516 //!< DWORD 29
1517 struct
1518 {
1519 uint32_t OutputSurfaceTileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< OUTPUT_SURFACE_TILE_WALK
1520 uint32_t OutputSurfaceTiled : __CODEGEN_BITFIELD( 1, 1) ; //!< OUTPUT_SURFACE_TILED
1521 uint32_t OutputSurfaceHalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< Output Surface Half Pitch For Chroma
1522 uint32_t OutputSurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Output Surface Pitch
1523 uint32_t Reserved948 : __CODEGEN_BITFIELD(20, 26) ; //!< Reserved
1524 uint32_t OutputSurfaceInterleaveChromaEnable : __CODEGEN_BITFIELD(27, 27) ; //!< Output Surface Interleave Chroma Enable
1525 uint32_t OutputSurfaceFormat : __CODEGEN_BITFIELD(28, 31) ; //!< Output Surface Format
1526 };
1527 uint32_t Value;
1528 } DW29;
1529 union
1530 {
1531 //!< DWORD 30
1532 struct
1533 {
1534 uint32_t OutputSurfaceYOffsetForU : __CODEGEN_BITFIELD( 0, 15) ; //!< Output Surface Y Offset For U
1535 uint32_t OutputSurfaceXOffsetForU : __CODEGEN_BITFIELD(16, 31) ; //!< Output Surface X Offset For U
1536 };
1537 uint32_t Value;
1538 } DW30;
1539 union
1540 {
1541 //!< DWORD 31
1542 struct
1543 {
1544 uint32_t OutputSurfaceYOffsetForV : __CODEGEN_BITFIELD( 0, 13) ; //!< Output Surface Y Offset For V
1545 uint32_t Reserved1006 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1546 uint32_t OutputSurfaceXOffsetForV : __CODEGEN_BITFIELD(16, 29) ; //!< Output Surface X Offset For V
1547 uint32_t Reserved1022 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1548 };
1549 uint32_t Value;
1550 } DW31;
1551 union
1552 {
1553 //!< DWORD 32
1554 struct
1555 {
1556 uint32_t Reserved1024 ; //!< Reserved
1557 };
1558 uint32_t Value;
1559 } DW32;
1560 union
1561 {
1562 //!< DWORD 33
1563 struct
1564 {
1565 uint32_t Reserved1056 ; //!< Reserved
1566 };
1567 uint32_t Value;
1568 } DW33;
1569 union
1570 {
1571 //!< DWORD 34
1572 struct
1573 {
1574 uint32_t SourceStartX : __CODEGEN_BITFIELD( 0, 13) ; //!< SourceStartX
1575 uint32_t Reserved1102 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1576 uint32_t SourceEndX : __CODEGEN_BITFIELD(16, 29) ; //!< SourceEndX
1577 uint32_t Reserved1118 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1578 };
1579 uint32_t Value;
1580 } DW34;
1581 union
1582 {
1583 //!< DWORD 35
1584 struct
1585 {
1586 uint32_t DestinationStartX : __CODEGEN_BITFIELD( 0, 13) ; //!< DestinationStartx
1587 uint32_t Reserved1134 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1588 uint32_t DestinationEndX : __CODEGEN_BITFIELD(16, 29) ; //!< Destinationendx
1589 uint32_t Reserved1150 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1590 };
1591 uint32_t Value;
1592 } DW35;
1593 union
1594 {
1595 //!< DWORD 36
1596 struct
1597 {
1598 uint32_t Reserved1160 : __CODEGEN_BITFIELD( 0, 4) ; //!< Reserved
1599 uint32_t Xphaseshift : __CODEGEN_BITFIELD( 5, 28) ; //!< Xphaseshift
1600 uint32_t Reserved1174 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1601 };
1602 uint32_t Value;
1603 } DW36;
1604 union
1605 {
1606 //!< DWORD 37
1607 struct
1608 {
1609 uint32_t Reserved1190 : __CODEGEN_BITFIELD( 0, 4) ; //!< Reserved
1610 uint32_t Yphaseshift : __CODEGEN_BITFIELD( 5, 28) ; //!< Yphaseshift
1611 uint32_t Reserved1206 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1612 };
1613 uint32_t Value;
1614 } DW37;
1615 union
1616 {
1617 //!< DWORD 38
1618 struct
1619 {
1620 uint32_t Reserved1216 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1621 uint32_t AvsLineTileBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< AVS Line Tile Buffer Surface Base Address
1622 };
1623 uint32_t Value;
1624 } DW38;
1625 union
1626 {
1627 //!< DWORD 39
1628 struct
1629 {
1630 uint32_t AvsLineTileBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< AVS Line Tile Buffer Surface Base Address High
1631 uint32_t Reserved1264 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1632 };
1633 uint32_t Value;
1634 } DW39;
1635 union
1636 {
1637 //!< DWORD 40
1638 struct
1639 {
1640 uint32_t Reserved1280 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1641 uint32_t AvsLineTileBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< AVS Line Tile Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1642 uint32_t AvsLineTileBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< AVS Line Tile Buffer Base Address - Arbitration Priority Control
1643 uint32_t AvsLineTileBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< AVS_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1644 uint32_t AvsLineTileBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< AVS_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1645 uint32_t Reserved1291 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1646 uint32_t AvsLineTileBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< AVS_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1647 uint32_t AvsLineTileBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< AVS_LINE_TILE_BUFFER_TILED_MODE
1648 uint32_t Reserved1295 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1649 };
1650 uint32_t Value;
1651 } DW40;
1652 union
1653 {
1654 //!< DWORD 41
1655 struct
1656 {
1657 uint32_t Reserved1312 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1658 uint32_t IefLineTileBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< IEF Line Tile Buffer Surface Base Address
1659 };
1660 uint32_t Value;
1661 } DW41;
1662 union
1663 {
1664 //!< DWORD 42
1665 struct
1666 {
1667 uint32_t IefLineTileBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< IEF Line Tile Buffer Surface Base Address High
1668 uint32_t Reserved1360 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1669 };
1670 uint32_t Value;
1671 } DW42;
1672 union
1673 {
1674 //!< DWORD 43
1675 struct
1676 {
1677 uint32_t Reserved1376 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1678 uint32_t IefLineTileBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< IEF Line Tile Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1679 uint32_t IefLineTileBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< IEF Line Tile Buffer Base Address - Arbitration Priority Control
1680 uint32_t IefLineTileBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< IEF_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1681 uint32_t IefLineTileBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< IEF_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1682 uint32_t Reserved1387 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1683 uint32_t IefLineTileBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< IEF_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1684 uint32_t IefLineTileBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< IEF_LINE_TILE_BUFFER_TILED_MODE
1685 uint32_t Reserved1391 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1686 };
1687 uint32_t Value;
1688 } DW43;
1689 union
1690 {
1691 //!< DWORD 44
1692 struct
1693 {
1694 uint32_t Reserved1408 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1695 uint32_t SfdLineTileBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< SFD Line Tile Buffer Surface Base Address
1696 };
1697 uint32_t Value;
1698 } DW44;
1699 union
1700 {
1701 //!< DWORD 45
1702 struct
1703 {
1704 uint32_t SfdLineTileBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< SFD Line Tile Buffer Surface Base Address High
1705 uint32_t Reserved1456 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1706 };
1707 uint32_t Value;
1708 } DW45;
1709 union
1710 {
1711 //!< DWORD 46
1712 struct
1713 {
1714 uint32_t Reserved1472 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1715 uint32_t SfdLineTileBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< SFD Line Tile Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1716 uint32_t SfdLineTileBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SFD Line Tile Buffer Base Address - Arbitration Priority Control
1717 uint32_t SfdLineTileBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< SFD_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1718 uint32_t SfdLineTileBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SFD_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1719 uint32_t Reserved1483 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1720 uint32_t SfdLineTileBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< SFD_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1721 uint32_t SfdLineTileBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< SFD_LINE_TILE_BUFFER_TILED_MODE
1722 uint32_t Reserved1487 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1723 };
1724 uint32_t Value;
1725 } DW46;
1726
1727 union
1728 {
1729 //!< DWORD 47
1730 struct
1731 {
1732 uint32_t Reserved1729 : __CODEGEN_BITFIELD(0, 11); //!< Reserved
1733 uint32_t HistogramSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31); //!< Histogram Surface Base Address
1734 };
1735 uint32_t Value;
1736 } DW47;
1737 union
1738 {
1739 //!< DWORD 48
1740 struct
1741 {
1742 uint32_t HistogramSurfaceBaseAddressHigh : __CODEGEN_BITFIELD(0, 15); //!< Histogram Surface Base Address High
1743 uint32_t Reserved1740 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
1744 };
1745 uint32_t Value;
1746 } DW48;
1747 union
1748 {
1749 //!< DWORD 49
1750 struct
1751 {
1752 uint32_t HistogramBaseAddressData : __CODEGEN_BITFIELD(0, 0); //!< Histogram Base Address - Resevered Data
1753 uint32_t HistogramBaseAddressMOCSIndex : __CODEGEN_BITFIELD(1, 6); //!< Histogram Base Address - Index to Memory Object Control State (MOCS) Tables
1754 uint32_t HistogramBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD(7, 8); //!< Histogram Base Address - Arbitration Priority Control
1755 uint32_t HistogramBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD(9, 9); //!< Histogram Base Address - Memory Compression Enable
1756 uint32_t HistogramBaseAddressMemoryCompressionType : __CODEGEN_BITFIELD(10, 10); //!< Histogram Base Address - Memory Compression Type
1757 uint32_t Reserved1754 : __CODEGEN_BITFIELD(11, 11); //!< Reserved
1758 uint32_t HistogramBaseAddressCacheSelect : __CODEGEN_BITFIELD(12, 12); //!< Histogram Base Address - Cache Select
1759 uint32_t HistogramTiledMode : __CODEGEN_BITFIELD(13, 14); //!< Histogram Tiled Mode
1760 uint32_t Reserved1757 : __CODEGEN_BITFIELD(15, 31); //!< Reserved
1761 };
1762 uint32_t Value;
1763 } DW49;
1764
1765 //! \name Local enumerations
1766
1767 enum SUBOPCODEB
1768 {
1769 SUBOPCODEB_SFCSTATE = 1, //!< No additional details
1770 };
1771
1772 enum SUBOPCODEA
1773 {
1774 SUBOPCODEA_COMMON = 0, //!< No additional details
1775 };
1776
1777 enum MEDIA_COMMAND_OPCODE
1778 {
1779 MEDIA_COMMAND_OPCODE_MEDIAHCPSFCMODE = 9, //!< No additional details
1780 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
1781 };
1782
1783 enum PIPELINE
1784 {
1785 PIPELINE_MEDIA = 2, //!< No additional details
1786 };
1787
1788 enum COMMAND_TYPE
1789 {
1790 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1791 };
1792
1793 //! \brief SFC_PIPE_MODE
1794 //! \details
1795 //! Note: for SFC Pipe mode set to VE-to-SFC AVS mode.
1796 //! IECP pipeline mode MUST be enabled.
1797 //! However, each sub-IECP feature can be turned on/off independently.
1798 enum SFC_PIPE_MODE
1799 {
1800 SFC_PIPE_MODE_UNNAMED0 = 0, //!< VD-to-SFC AVS
1801 SFC_PIPE_MODE_UNNAMED1 = 1, //!< VE-to-SFC AVS + IEF + Rotation
1802 SFC_PIPE_MODE_UNNAMED2 = 2, //!< HCP-to-SFC AVS
1803 SFC_PIPE_MODE_UNNAMED3 = 3, //!< Reserved
1804 SFC_PIPE_MODE_UNNAMED_4 = 4, //!< VE-to-SFC Integral Image
1805 };
1806
1807 //! \brief SFC_INPUT_CHROMA_SUB_SAMPLING
1808 //! \details
1809 //! This field shall be programmed according to video modes used in VDBOX.
1810 //! NOTE: SFC supports progressive input and output only (Interlaced/MBAFF
1811 //! is not supported).
1812 //! <table border="1">
1813 //! <tbody>
1814 //! <tr>
1815 //! <td>Video Mode</td>
1816 //! <td>Surface Format</td>
1817 //! <td>SFC Input Chroma Sub-Sampling</td>
1818 //! <td>VD/VE Input Ordering Mode</td>
1819 //! </tr>
1820 //! <tr>
1821 //! <td>VC1 w/o LF and w/o OS Note: VC1 LF applies for ILDB</td>
1822 //! <td>420 (NV12)</td>
1823 //! <td>1</td>
1824 //! <td>0</td>
1825 //! </tr>
1826 //! <tr>
1827 //! <td>VC1 w/ LF or w/ OS or w/ both Note: VC1 LF applies for ILDB</td>
1828 //! <td></td>
1829 //! <td>INVALID with SFC</td>
1830 //! <td>INVALID with SFC</td>
1831 //! </tr>
1832 //! <tr>
1833 //! <td>AVC w/o LF</td>
1834 //! <td>Monochrome</td>
1835 //! <td>0</td>
1836 //! <td>0</td>
1837 //! </tr>
1838 //! <tr>
1839 //! <td>AVC w/o LF</td>
1840 //! <td>420 (NV12)</td>
1841 //! <td>1</td>
1842 //! <td>0</td>
1843 //! </tr>
1844 //! <tr>
1845 //! <td>AVC with LF</td>
1846 //! <td>Monochrome</td>
1847 //! <td>0</td>
1848 //! <td>1</td>
1849 //! </tr>
1850 //! <tr>
1851 //! <td>AVC/VP8 with LF </td>
1852 //! <td>420 (NV12)</td>
1853 //! <td>1</td>
1854 //! <td>1</td>
1855 //! </tr>
1856 //! <tr>
1857 //! <td>VP8 w/o LF</td>
1858 //! <td>420 (NV12)</td>
1859 //! <td>1</td>
1860 //! <td>4</td>
1861 //! </tr>
1862 //! <tr>
1863 //! <td>JPEG (YUV Interleaved)</td>
1864 //! <td>Monochrome</td>
1865 //! <td>0</td>
1866 //! <td>2</td>
1867 //! </tr>
1868 //! <tr>
1869 //! <td>JPEG (YUV Interleaved)</td>
1870 //! <td>420</td>
1871 //! <td>1</td>
1872 //! <td>3</td>
1873 //! </tr>
1874 //! <tr>
1875 //! <td>JPEG (YUV Interleaved)</td>
1876 //! <td>422H_2Y</td>
1877 //! <td>2</td>
1878 //! <td>2</td>
1879 //! </tr>
1880 //! <tr>
1881 //! <td>JPEG (YUV Interleaved)</td>
1882 //! <td>422H_4Y</td>
1883 //! <td>2</td>
1884 //! <td>3</td>
1885 //! </tr>
1886 //! <tr>
1887 //! <td>JPEG (YUV Interleaved)</td>
1888 //! <td>444</td>
1889 //! <td>4</td>
1890 //! <td>2</td>
1891 //! </tr>
1892 //! </tbody>
1893 //! </table>
1894 //! This field shall be programmed according to Image enhancement modes used
1895 //! in VEBOX.
1896 //!
1897 //! <table border="1">
1898 //! <tbody>
1899 //! <tr>
1900 //! <td>VEBOX MODE</td>
1901 //! <td>Surface Format</td>
1902 //! <td>SFC Input Chroma Sub Sampling</td>
1903 //! <td>VD/VE Input Ordering Mode</td>
1904 //! </tr>
1905 //! <tr>
1906 //! <td>Legacy DN/DI/IECP features</td>
1907 //! <td>Monochrome</td>
1908 //! <td>0</td>
1909 //! <td>0</td>
1910 //! </tr>
1911 //! <tr>
1912 //! <td>Legacy DN/DI/IECP features</td>
1913 //! <td>420 (NV12)</td>
1914 //! <td>1</td>
1915 //! <td>0</td>
1916 //! </tr>
1917 //! <tr>
1918 //! <td>Legacy DN/DI/IECP features</td>
1919 //! <td>422H</td>
1920 //! <td>2</td>
1921 //! <td>0</td>
1922 //! </tr>
1923 //! <tr>
1924 //! <td>Legacy DN/DI/IECP features</td>
1925 //! <td>444</td>
1926 //! <td>4</td>
1927 //! <td>0</td>
1928 //! </tr>
1929 //! <tr>
1930 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1931 //! <td>Monochrome</td>
1932 //! <td>0</td>
1933 //! <td>1</td>
1934 //! </tr>
1935 //! <tr>
1936 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1937 //! <td>420 (NV12)</td>
1938 //! <td>1</td>
1939 //! <td>1</td>
1940 //! </tr>
1941 //! <tr>
1942 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1943 //! <td>422H</td>
1944 //! <td>2</td>
1945 //! <td>1</td>
1946 //! </tr>
1947 //! <tr>
1948 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1949 //! <td>444</td>
1950 //! <td>4</td>
1951 //! <td>1</td>
1952 //! </tr>
1953 //! </tbody>
1954 //! </table>
1955 enum SFC_INPUT_CHROMA_SUB_SAMPLING
1956 {
1957 SFC_INPUT_CHROMA_SUB_SAMPLING_400 = 0, //!< SFC to insert UV channels
1958 SFC_INPUT_CHROMA_SUB_SAMPLING_420 = 1, //!< No additional details
1959 SFC_INPUT_CHROMA_SUB_SAMPLING_422HORIZONATAL = 2, //!< VD: 2:1:1
1960 SFC_INPUT_CHROMA_SUB_SAMPLING_4_4_4PROGRESSIVEINTERLEAVED = 4, //!< No additional details
1961 };
1962
1963 //! \brief VDVE_INPUT_ORDERING_MODE
1964 //! \details
1965 //! <ul>
1966 //! <li>VD mode: (SFC pipe mode set as "0")</li>
1967 //! <li> VE mode: (pipe mode set as "1 and 4")</li>
1968 //! </ul>
1969 //! For values for each mode, please refer to the table below:
1970 enum VDVE_INPUT_ORDERING_MODE
1971 {
1972 VDVE_INPUT_ORDERING_MODE_UNNAMED0 = 0, //!< 16x16 block z-scan order - no shift
1973 //!< 16x16 block HEVC Decoderrow-scan order -8 pixel shift upward
1974 //!< 8x4 block column order, 64 pixel column
1975 //!< 16x16 block z-scan order - 4 pixels shift upward
1976 VDVE_INPUT_ORDERING_MODE_UNNAMED1 = 1, //!< 32x32block HEVC Decoderrow-scan order -8 pixel shift upward
1977 //!< 4x4 block column order, 64 pixel column
1978 VDVE_INPUT_ORDERING_MODE_UNNAMED2 = 2, //!< 8x8 block jpeg z-scan order
1979 //!< No additional details
1980 //!< 8x4 block column order, 128 pixel column
1981 VDVE_INPUT_ORDERING_MODE_UNNAMED3 = 3, //!< 16x16 block jpeg z-scan order
1982 //!< No additional details
1983 //!< 4x4 block column order, 128 pixel column
1984 VDVE_INPUT_ORDERING_MODE_UNNAMED_4 = 4, //!< 16x16 block VP8 row-scan order - no shift
1985 //!< 64x64 block VP9 Encoderrow-scan order- 8 pixel shift upward
1986 };
1987
1988 //! \brief OUTPUT_SURFACE_FORMAT_TYPE
1989 //! \details
1990 //! SFC output surface format type.
1991 enum OUTPUT_SURFACE_FORMAT_TYPE
1992 {
1993 OUTPUT_SURFACE_FORMAT_TYPE_AYUV = 0, //!< AYUV 4:4:4 (8:8:8:8 MSB-A:Y:U:V)
1994 OUTPUT_SURFACE_FORMAT_TYPE_A8B8G8R8 = 1, //!< RGBA8 4:4:4:4 (8:8:8:8 MSB-A:B:G:R)
1995 OUTPUT_SURFACE_FORMAT_TYPE_A2R10G10B10 = 2, //!< RGBA10 10:10:10:2 (2:10:10:10 MSB-A:R:G:B)
1996 OUTPUT_SURFACE_FORMAT_TYPE_R5G6B5 = 3, //!< RGB 5:6:5 (5:6:5 MSB-R:G:B)
1997 OUTPUT_SURFACE_FORMAT_TYPE_NV12 = 4, //!< Planar NV12 4:2:0 8-bit
1998 OUTPUT_SURFACE_FORMAT_TYPE_YUYV = 5, //!< Packed YUYV 4:2:2 8-bit
1999 OUTPUT_SURFACE_FORMAT_TYPE_UYVY = 6, //!< Packed UYVY 4:2:2 8-bit
2000 OUTPUT_SURFACE_FORMAT_TYPE_INTEGRAL_32 = 7, //!< Packed integral Image 32-bit
2001 OUTPUT_SURFACE_FORMAT_TYPE_INTEGRAL_64 = 8, //!< Packed integral Image 64-bit
2002 OUTPUT_SURFACE_FORMAT_TYPE_P016 = 9, //!< P016 format
2003 OUTPUT_SURFACE_FORMAT_TYPE_Y216 = 10, //!< Y210 / Y216 FormatBitDepth = 0 => Y210BitDepth = 1 => Y216
2004 OUTPUT_SURFACE_FORMAT_TYPE_Y416 = 11, //!< Y410 / Y416 FormatBitDepth = 0 => Y410BitDepth = 1 => Y416
2005 };
2006
2007 //! \brief RGBA_CHANNEL_SWAP_ENABLE
2008 //! \details
2009 //! This bit should only be used with RGB output formats and CSC conversion
2010 //! is turned on. When this bit is set,
2011 //! the R and B channels are swapped into the output RGB channels as
2012 //! shown in the following table:
2013 //! <table>
2014 //! <tr>
2015 //! <th>Name</th>
2016 //! <th>Bits</th>
2017 //! <th>MSB Color Order</th>
2018 //! <th>Swapped</th>
2019 //! </tr>
2020 //! <tr>
2021 //! <td>RGBA8</td>
2022 //! <td>8:8:8:8</td>
2023 //! <td>A:B:G:R</td>
2024 //! <td>A:R:G:B</td>
2025 //! </tr>
2026 //! <tr>
2027 //! <td>RGBA10</td>
2028 //! <td>2:10:10:10</td>
2029 //! <td>A:R:G:B</td>
2030 //! <td>A:B:G:R</td>
2031 //! </tr>
2032 //! <tr>
2033 //! <td>RGB 5:6:5</td>
2034 //! <td>5:6:5</td>
2035 //! <td>R:G:B</td>
2036 //! <td>B:G:R</td>
2037 //! </tr>
2038 //! </table>
2039 enum RGBA_CHANNEL_SWAP_ENABLE
2040 {
2041 RGBA_CHANNEL_SWAP_ENABLE_UNNAMED0 = 0, //!< No additional details
2042 };
2043
2044 //! \brief OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION
2045 //! \details
2046 //! This field specifies the fractional position of the bilinear filter for
2047 //! chroma downsampling. In the Y-axis.
2048 enum OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION
2049 {
2050 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_08_LEFTFULLPIXEL = 0, //!< 0 (fraction_in_integer)
2051 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_18 = 1, //!< 1 (fraction_in_integer)
2052 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_1_4_28 = 2, //!< 2 (fraction_in_integer)
2053 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_38 = 3, //!< 3 (fraction_in_integer)
2054 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_12_48 = 4, //!< 4 (fraction_in_integer)
2055 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_58 = 5, //!< 5 (fraction_in_integer)
2056 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_3_4_68 = 6, //!< 6 (fraction_in_integer)
2057 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_78 = 7, //!< 7 (fraction_in_integer)
2058 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_88 = 8, //!< No additional details
2059 };
2060
2061 //! \brief OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION
2062 //! \details
2063 //! This field specifies the fractional position of the bilinear filter for
2064 //! chroma downsampling. In the X-axis.
2065 enum OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION
2066 {
2067 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_08_LEFTFULLPIXEL = 0, //!< 0 (fraction_in_integer)
2068 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_18 = 1, //!< 1 (fraction_in_integer)
2069 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_1_4_28 = 2, //!< 2 (fraction_in_integer)
2070 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_38 = 3, //!< 3 (fraction_in_integer)
2071 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_12_48 = 4, //!< 4 (fraction_in_integer)
2072 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_58 = 5, //!< 5 (fraction_in_integer)
2073 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_3_4_68 = 6, //!< 6 (fraction_in_integer)
2074 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_78 = 7, //!< 7 (fraction_in_integer)
2075 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_88 = 8, //!< No additional details
2076 };
2077
2078 //! \brief INPUT_COLOR_SPACE__0_YUV1__RGB
2079 //! \details
2080 //! THis specifies the color space of the input format. RGB is valid only
2081 //! with the VE-SFC mode.
2082 enum INPUT_COLOR_SPACE__0_YUV1__RGB
2083 {
2084 INPUT_COLOR_SPACE_0_YUV1_RGB_YUVCOLORSPACE = 0, //!< No additional details
2085 INPUT_COLOR_SPACE_0_YUV1_RGB_RGBCOLORSPACE = 1, //!< No additional details
2086 };
2087
2088 //! \brief IEF_ENABLE
2089 //! \details
2090 //! Restriction : For Integral Image Mode and VD Mode, this field is
2091 //! Reserved and MBZ.
2092 enum IEF_ENABLE
2093 {
2094 IEF_ENABLE_DISABLE = 0, //!< IEF Filter is Disabled
2095 IEF_ENABLE_ENABLE = 1, //!< IEF Filter is Enabled
2096 };
2097
2098 //! \brief IEF4SMOOTH_ENABLE_
2099 //! \details
2100 //! Restriction : For Integral Image Mode, this field is Reserved and MBZ.
2101 enum IEF4SMOOTH_ENABLE_
2102 {
2103 IEF4SMOOTH_ENABLE_UNNAMED0 = 0, //!< IEF is operating as a content adaptive detail filter based on 5x5 region.
2104 IEF4SMOOTH_ENABLE_UNNAMED1 = 1, //!< IEF is operating as a content adaptive smooth filter based on 3x3 region
2105 };
2106
2107 //! \brief AVS_FILTER_MODE
2108 //! \details
2109 //! In VD-to-SFC mode, value of 1 is not allowed.
2110 enum AVS_FILTER_MODE
2111 {
2112 AVS_FILTER_MODE_5X5POLY_PHASEFILTERBILINEAR_ADAPTIVE = 0, //!< No additional details
2113 AVS_FILTER_MODE_8X8POLY_PHASEFILTERBILINEAR_ADAPTIVE = 1, //!< No additional details
2114 AVS_FILTER_MODE_BILINEARFILTERONLY = 2, //!< No additional details
2115 };
2116
2117 //! \brief ADAPTIVE_FILTER_FOR_ALL_CHANNELS
2118 //! \details
2119 //! The field can be enabled if 8-tap Adaptive filter mode is on. Else it
2120 //! should be disabled.
2121 enum ADAPTIVE_FILTER_FOR_ALL_CHANNELS
2122 {
2123 ADAPTIVE_FILTER_FOR_ALL_CHANNELS_DISABLEADAPTIVEFILTERONUVRBCHANNELS = 0, //!< No additional details
2124 ADAPTIVE_FILTER_FOR_ALL_CHANNELS_ENABLEADAPTIVEFILTERONUVRBCHANNELS = 1, //!< 8-tap Adaptive Filter Mode is on
2125 };
2126
2127 enum AVS_SCALING_ENABLE
2128 {
2129 AVS_SCALING_ENABLE_DISABLE = 0, //!< The scaling factor is ignored and a scaling ratio of 1:1 is assumed.
2130 AVS_SCALING_ENABLE_ENABLE = 1, //!< No additional details
2131 };
2132
2133 enum BYPASS_Y_ADAPTIVE_FILTERING
2134 {
2135 BYPASS_Y_ADAPTIVE_FILTERING_ENABLEYADAPTIVEFILTERING = 0, //!< No additional details
2136 BYPASS_Y_ADAPTIVE_FILTERING_DISABLEYADAPTIVEFILTERING = 1, //!< The Y direction will use Default Sharpness Level to blend between the smooth and sharp filters rather than the calculated value.
2137 };
2138
2139 enum BYPASS_X_ADAPTIVE_FILTERING
2140 {
2141 BYPASS_X_ADAPTIVE_FILTERING_ENABLEXADAPTIVEFILTERING = 0, //!< No additional details
2142 BYPASS_X_ADAPTIVE_FILTERING_DISABLEXADAPTIVEFILTERING = 1, //!< The X direction will use Default Sharpness Level to blend between the smooth and sharp filters rather than the calculated value.
2143 };
2144
2145 //! \brief ROTATION_MODE
2146 //! \details
2147 //! <p>SFC rotation (90, 180 and 270) should be set only on VEBox input mode
2148 //! and SFC output set to TileY.</p>
2149 //! Restriction:
2150 //! <ul>
2151 //! <li>For Integral Image Mode, this field is Reserved and MBZ.</li>
2152 //! <li>For VDBox Mode, this field is Reserved and MBZ.</li>
2153 //! <li>For linear or TileX SFC output, this field is Reserved and
2154 //! MBZ.</li>
2155 //! </ul>
2156 enum ROTATION_MODE
2157 {
2158 ROTATION_MODE_0_DEGREES = 0, //!< No additional details
2159 ROTATION_MODE_90CLOCKWISE = 1, //!< No additional details
2160 ROTATION_MODE_180CLOCKWISE = 2, //!< No additional details
2161 ROTATION_MODE_270CLOCKWISE = 3, //!< No additional details
2162 };
2163
2164 //! \brief BITDEPTH
2165 //! \details
2166 //! This field is valid only for output formats P016/Y216/Y416. This field
2167 //! is used to specify how many of the LSB bits have valid data.
2168 enum BITDEPTH
2169 {
2170 BITDEPTH_10BITFORMAT = 0, //!< Higher 10 bits are valid and lower 6 bits are 0
2171 };
2172
2173 //! \brief SCALING_FACTOR_HEIGHT
2174 //! \details
2175 //! <p>This field specifies the scaling ratio of the vertical sizes between
2176 //! the crop/source region and the scaled region.
2177 //! The destination pixel coordinate, y-axis, is multiplied with this
2178 //! scaling factor to mapping back to the source input pixel coordinate.</p>
2179 //! <p>The field specifies the ratio of crop height resolution/ scaled
2180 //! height resolution. This implies 1/<i>sf<sub>u</sub></i> in the
2181 //! equation.</p>
2182 enum SCALING_FACTOR_HEIGHT
2183 {
2184 SCALING_FACTOR_HEIGHT_UNNAMED0 = 0, //!< Reserved
2185 };
2186
2187 //! \brief SCALING_FACTOR_WIDTH
2188 //! \details
2189 //! <p>This field specifies the scaling ratio of the horizontal sizes
2190 //! between the crop/source region and the scaled region.
2191 //! The destination pixel coordinate, x-axis, is multiplied with this
2192 //! scaling factor to mapping back to the source input pixel coordinate.
2193 //! </p>
2194 //! <p>The field specifies the ratio of crop width resolution/ scaled
2195 //! width resolution. This implies 1/<i>sf<sub>u</sub></i> in the equations
2196 //! above.</p>
2197 enum SCALING_FACTOR_WIDTH
2198 {
2199 SCALING_FACTOR_WIDTH_UNNAMED0 = 0, //!< Reserved
2200 };
2201
2202 //! \brief OUTPUT_FRAME_SURFACE_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2203 //! \details
2204 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2205 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2206 //! vertical from horizontal compression. Please refer to vol1a</span><b
2207 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2208 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2209 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2210 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height:
2211 //! normal;">media Memory Compression for more details.</span>
2212 enum OUTPUT_FRAME_SURFACE_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2213 {
2214 OUTPUT_FRAME_SURFACE_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSION = 0, //!< No additional details
2215 OUTPUT_FRAME_SURFACE_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSION = 1, //!< No additional details
2216 };
2217
2218 //! \brief OUTPUT_FRAME_SURFACE_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2219 //! \details
2220 //! This must be set to 0
2221 enum OUTPUT_FRAME_SURFACE_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2222 {
2223 OUTPUT_FRAME_SURFACE_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_DISABLE = 0, //!< This field must be programmed to 0
2224 };
2225
2226 //! \brief OUTPUT_SURFACE_TILED_MODE
2227 //! \details
2228 //! <b>For Media Surfaces:</b>
2229 //! This field specifies the tiled resource mode.
2230 enum OUTPUT_SURFACE_TILED_MODE
2231 {
2232 OUTPUT_SURFACE_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2233 OUTPUT_SURFACE_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2234 OUTPUT_SURFACE_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2235 };
2236
2237 //! \brief AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2238 //! \details
2239 //! This bit control memory compression for this surface
2240 enum AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2241 {
2242 AVS_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2243 };
2244
2245 //! \brief AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2246 //! \details
2247 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2248 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2249 //! vertical from horizontal compression. Please refer to vol1a </span><b
2250 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2251 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2252 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2253 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height:
2254 //! normal;"> media Memory Compression for more details.</span>
2255 enum AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2256 {
2257 AVS_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
2258 };
2259
2260 //! \brief AVS_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2261 //! \details
2262 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2263 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2264 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2265 //! or to LLC.</span>
2266 enum AVS_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2267 {
2268 AVS_LINE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2269 };
2270
2271 //! \brief AVS_LINE_BUFFER_TILED_MODE
2272 //! \details
2273 //! <b>For Media Surfaces:</b>
2274 //! This field specifies the tiled resource mode.
2275 enum AVS_LINE_BUFFER_TILED_MODE
2276 {
2277 AVS_LINE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2278 AVS_LINE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2279 AVS_LINE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2280 };
2281
2282 //! \brief IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2283 //! \details
2284 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2285 //! font-size: 13.3333330154419px; line-height: normal;">Memory compression
2286 //! is not supported for this surface</span></p>
2287 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2288 //! font-size: 13.3333330154419px; line-height: normal;">Must be
2289 //! 0.</span></p>
2290 //! <p></p>
2291 enum IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2292 {
2293 IEF_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2294 };
2295
2296 //! \brief IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2297 //! \details
2298 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2299 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2300 //! vertical from horizontal compression. Please refer to vol1a </span><b
2301 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2302 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2303 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2304 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height:
2305 //! normal;"> media Memory Compression for more details.</span>
2306 enum IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2307 {
2308 IEF_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_UNNAMED0 = 0, //!< No additional details
2309 };
2310
2311 //! \brief IEF_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2312 //! \details
2313 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2314 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2315 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2316 //! or to LLC.</span>
2317 enum IEF_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2318 {
2319 IEF_LINE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2320 };
2321
2322 //! \brief IEF_LINE_BUFFER_TILED_MODE
2323 //! \details
2324 //! <b>For Media Surfaces:</b>
2325 //! This field specifies the tiled resource mode.
2326 enum IEF_LINE_BUFFER_TILED_MODE
2327 {
2328 IEF_LINE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2329 IEF_LINE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2330 IEF_LINE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2331 };
2332
2333 //! \brief SFD_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2334 //! \details
2335 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2336 //! font-size: 13.3333330154419px; line-height: normal;">Memory compression
2337 //! is not supported for this surface</span></p>
2338 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2339 //! font-size: 13.3333330154419px; line-height: normal;">Must be
2340 //! 0.</span></p>
2341 //! <p></p>
2342 enum SFD_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2343 {
2344 SFD_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2345 };
2346
2347 //! \brief SFD_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2348 //! \details
2349 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2350 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2351 //! vertical from horizontal compression. Please refer to vol1a </span><b
2352 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2353 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2354 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2355 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height: normal;">
2356 //! media Memory Compression for more details.</span>
2357 enum SFD_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2358 {
2359 SFD_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_UNNAMED0 = 0, //!< No additional details
2360 };
2361
2362 //! \brief SFD_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2363 //! \details
2364 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2365 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2366 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2367 //! or to LLC.</span>
2368 enum SFD_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2369 {
2370 SFD_LINE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2371 };
2372
2373 //! \brief SFD_LINE_BUFFER_TILED_MODE
2374 //! \details
2375 //! <b>For Media Surfaces:</b>
2376 //! This field specifies the tiled resource mode.
2377 enum SFD_LINE_BUFFER_TILED_MODE
2378 {
2379 SFD_LINE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2380 SFD_LINE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2381 SFD_LINE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2382 };
2383
2384 //! \brief OUTPUT_SURFACE_TILE_WALK
2385 //! \details
2386 //! This field specifies the type of memory tiling (XMajor or YMajor)
2387 //! employed to tile this surface. See <i>Memory Interface Functions</i> for
2388 //! details on memory tiling and restrictions.
2389 enum OUTPUT_SURFACE_TILE_WALK
2390 {
2391 OUTPUT_SURFACE_TILE_WALK_TILEWALKXMAJOR = 0, //!< No additional details
2392 OUTPUT_SURFACE_TILE_WALK_TILEWALKYMAJOR = 1, //!< No additional details
2393 };
2394
2395 //! \brief OUTPUT_SURFACE_TILED
2396 //! \details
2397 //! This field specifies whether the surface is tiled.
2398 enum OUTPUT_SURFACE_TILED
2399 {
2400 OUTPUT_SURFACE_TILED_FALSE = 0, //!< Linear
2401 OUTPUT_SURFACE_TILED_TRUE = 1, //!< Tiled
2402 };
2403
2404 //! \brief AVS_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2405 //! \details
2406 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2407 //! font-size: 13.3333330154419px; line-height: normal;">Memory compression
2408 //! is not supported for this surface</span></p>
2409 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2410 //! font-size: 13.3333330154419px; line-height: normal;">Must be
2411 //! 0.</span></p>
2412 //! <p></p>
2413 enum AVS_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2414 {
2415 AVS_LINE_TILE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2416 };
2417
2418 //! \brief AVS_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2419 //! \details
2420 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2421 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2422 //! vertical from horizontal compression. Please refer to vol1a </span><b
2423 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2424 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2425 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2426 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height: normal;">
2427 //! media Memory Compression for more details.</span>
2428 enum AVS_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2429 {
2430 AVS_LINE_TILE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_UNNAMED0 = 0, //!< No additional details
2431 };
2432
2433 //! \brief AVS_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2434 //! \details
2435 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2436 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2437 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2438 //! or to LLC.</span>
2439 enum AVS_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2440 {
2441 AVS_LINE_TILE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2442 };
2443
2444 //! \brief AVS_LINE_TILE_BUFFER_TILED_MODE
2445 //! \details
2446 //! <b>For Media Surfaces:</b>
2447 //! This field specifies the tiled resource mode.
2448 enum AVS_LINE_TILE_BUFFER_TILED_MODE
2449 {
2450 AVS_LINE_TILE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2451 AVS_LINE_TILE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2452 AVS_LINE_TILE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2453 };
2454
2455 //! \brief IEF_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2456 //! \details
2457 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2458 //! font-size: 13.3333330154419px; line-height: normal;">Memory compression
2459 //! is not supported for this surface</span></p>
2460 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2461 //! font-size: 13.3333330154419px; line-height: normal;">Must be
2462 //! 0.</span></p>
2463 //! <p></p>
2464 enum IEF_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2465 {
2466 IEF_LINE_TILE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2467 };
2468
2469 //! \brief IEF_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2470 //! \details
2471 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2472 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2473 //! vertical from horizontal compression. Please refer to vol1a </span><b
2474 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2475 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2476 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2477 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height: normal;">
2478 //! media Memory Compression for more details.</span>
2479 enum IEF_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2480 {
2481 IEF_LINE_TILE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_UNNAMED0 = 0, //!< No additional details
2482 };
2483
2484 //! \brief IEF_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2485 //! \details
2486 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2487 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2488 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2489 //! or to LLC.</span>
2490 enum IEF_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2491 {
2492 IEF_LINE_TILE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2493 };
2494
2495 //! \brief IEF_LINE_TILE_BUFFER_TILED_MODE
2496 //! \details
2497 //! <b>For Media Surfaces:</b>
2498 //! This field specifies the tiled resource mode.
2499 enum IEF_LINE_TILE_BUFFER_TILED_MODE
2500 {
2501 IEF_LINE_TILE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2502 IEF_LINE_TILE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2503 IEF_LINE_TILE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2504 };
2505
2506 //! \brief SFD_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2507 //! \details
2508 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2509 //! font-size: 13.3333330154419px; line-height: normal;">Memory compression
2510 //! is not supported for this surface</span></p>
2511 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2512 //! font-size: 13.3333330154419px; line-height: normal;">Must be
2513 //! 0.</span></p>
2514 //! <p></p>
2515 enum SFD_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2516 {
2517 SFD_LINE_TILE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2518 };
2519
2520 //! \brief SFD_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2521 //! \details
2522 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2523 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2524 //! vertical from horizontal compression. Please refer to vol1a </span><b
2525 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2526 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2527 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2528 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height: normal;">
2529 //! media Memory Compression for more details.</span>
2530 enum SFD_LINE_TILE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2531 {
2532 SFD_LINE_TILE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_UNNAMED0 = 0, //!< No additional details
2533 };
2534
2535 //! \brief SFD_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2536 //! \details
2537 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2538 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2539 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2540 //! or to LLC.</span>
2541 enum SFD_LINE_TILE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2542 {
2543 SFD_LINE_TILE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2544 };
2545
2546 //! \brief SFD_LINE_TILE_BUFFER_TILED_MODE
2547 //! \details
2548 //! <b>For Media Surfaces:</b>
2549 //! This field specifies the tiled resource mode.
2550 enum SFD_LINE_TILE_BUFFER_TILED_MODE
2551 {
2552 SFD_LINE_TILE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2553 SFD_LINE_TILE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2554 SFD_LINE_TILE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2555 };
2556
2557 //! \name Initializations
2558
2559 //! \brief Explicit member initialization function
2560 SFC_STATE_CMD();
2561
2562 static const size_t dwSize = 50;
2563 static const size_t byteSize = 200;
2564 };
2565
2566 //!
2567 //! \brief SFC_AVS_LUMA_Coeff_Table
2568 //! \details
2569 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
2570 //! each frame once the lock request is granted.
2571 //!
2572 struct SFC_AVS_LUMA_Coeff_Table_CMD
2573 {
2574 union
2575 {
2576 //!< DWORD 0
2577 struct
2578 {
2579 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2580 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2581 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
2582 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
2583 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
2584 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2585 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2586 };
2587 uint32_t Value;
2588 } DW0;
2589 union
2590 {
2591 //!< DWORD 1
2592 struct
2593 {
2594 uint32_t Table0XFilterCoefficientN0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],0]
2595 uint32_t Table0YFilterCoefficientN0 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],0]
2596 uint32_t Table0XFilterCoefficientN1 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],1]
2597 uint32_t Table0YFilterCoefficientN1 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],1]
2598 };
2599 uint32_t Value;
2600 } DW1;
2601 union
2602 {
2603 //!< DWORD 2
2604 struct
2605 {
2606 uint32_t Table0XFilterCoefficientN2 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],2]
2607 uint32_t Table0YFilterCoefficientN2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],2]
2608 uint32_t Table0XFilterCoefficientN3 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],3]
2609 uint32_t Table0YFilterCoefficientN3 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],3]
2610 };
2611 uint32_t Value;
2612 } DW2;
2613 union
2614 {
2615 //!< DWORD 3
2616 struct
2617 {
2618 uint32_t Table0XFilterCoefficientN4 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],4]
2619 uint32_t Table0YFilterCoefficientN4 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],4]
2620 uint32_t Table0XFilterCoefficientN5 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],5]
2621 uint32_t Table0YFilterCoefficientN5 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],5]
2622 };
2623 uint32_t Value;
2624 } DW3;
2625 union
2626 {
2627 //!< DWORD 4
2628 struct
2629 {
2630 uint32_t Table0XFilterCoefficientN6 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],6]
2631 uint32_t Table0YFilterCoefficientN6 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],6]
2632 uint32_t Table0XFilterCoefficientN7 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],7]
2633 uint32_t Table0YFilterCoefficientN7 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],7]
2634 };
2635 uint32_t Value;
2636 } DW4;
2637
2638 uint32_t FilterCoefficients[124]; //!< Filter Coefficients
2639
2640
2641 //! \name Local enumerations
2642
2643 enum SUBOPCODEB
2644 {
2645 SUBOPCODEB_SFCAVSLUMACOEFFTABLE = 5, //!< No additional details
2646 };
2647
2648 enum SUBOPCODEA
2649 {
2650 SUBOPCODEA_COMMON = 0, //!< No additional details
2651 };
2652
2653 enum MEDIA_COMMAND_OPCODE
2654 {
2655 MEDIA_COMMAND_OPCODE_MEDIAHEVCSFCMODE = 9, //!< No additional details
2656 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
2657 };
2658
2659 enum PIPELINE
2660 {
2661 PIPELINE_MEDIA = 2, //!< No additional details
2662 };
2663
2664 enum COMMAND_TYPE
2665 {
2666 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2667 };
2668
2669 //! \name Initializations
2670
2671 //! \brief Explicit member initialization function
2672 SFC_AVS_LUMA_Coeff_Table_CMD();
2673
2674 static const size_t dwSize = 129;
2675 static const size_t byteSize = 516;
2676 };
2677
2678 //!
2679 //! \brief SFC_AVS_CHROMA_Coeff_Table
2680 //! \details
2681 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
2682 //! each frame once the lock request is granted.
2683 //!
2684 struct SFC_AVS_CHROMA_Coeff_Table_CMD
2685 {
2686 union
2687 {
2688 //!< DWORD 0
2689 struct
2690 {
2691 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2692 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2693 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
2694 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
2695 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
2696 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2697 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2698 };
2699 uint32_t Value;
2700 } DW0;
2701 union
2702 {
2703 //!< DWORD 1
2704 struct
2705 {
2706 uint32_t Table1XFilterCoefficientN2 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 1X Filter Coefficient[[n],2]
2707 uint32_t Table1YFilterCoefficientN2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 1Y Filter Coefficient[[n],2]
2708 uint32_t Table1XFilterCoefficientN3 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 1X Filter Coefficient[[n],3]
2709 uint32_t Table1YFilterCoefficientN3 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 1Y Filter Coefficient[[n],3]
2710 };
2711 uint32_t Value;
2712 } DW1;
2713 union
2714 {
2715 //!< DWORD 2
2716 struct
2717 {
2718 uint32_t Table1XFilterCoefficientN4 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 1X Filter Coefficient[[n],4]
2719 uint32_t Table1YFilterCoefficientN4 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 1Y Filter Coefficient[[n],4]
2720 uint32_t Table1XFilterCoefficientN5 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 1X Filter Coefficient[[n],5]
2721 uint32_t Table1YFilterCoefficientN5 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 1Y Filter Coefficient[[n],5]
2722 };
2723 uint32_t Value;
2724 } DW2;
2725
2726 uint32_t FilterCoefficients[62]; //!< Filter Coefficients
2727
2728
2729 //! \name Local enumerations
2730
2731 enum SUBOPCODEB
2732 {
2733 SUBOPCODEB_SFCAVSCHROMACOEFFTABLE = 6, //!< No additional details
2734 };
2735
2736 enum SUBOPCODEA
2737 {
2738 SUBOPCODEA_COMMON = 0, //!< No additional details
2739 };
2740
2741 enum MEDIA_COMMAND_OPCODE
2742 {
2743 MEDIA_COMMAND_OPCODE_MEDIAHEVCSFCMODE = 9, //!< No additional details
2744 MEDIA_COMMAND_OPCODE_MEDIAMFXVEBOXSFCMODE = 10, //!< No additional details
2745 };
2746
2747 enum PIPELINE
2748 {
2749 PIPELINE_MEDIA = 2, //!< No additional details
2750 };
2751
2752 enum COMMAND_TYPE
2753 {
2754 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2755 };
2756
2757 //! \name Initializations
2758
2759 //! \brief Explicit member initialization function
2760 SFC_AVS_CHROMA_Coeff_Table_CMD();
2761
2762 static const size_t dwSize = 65;
2763 static const size_t byteSize = 260;
2764 };
2765
2766 };
2767
2768 #pragma pack()
2769
2770 #endif // __MHW_SFC_HWCMD_G12_X_H__