Debian Codegraph @

media_driver/agnostic/gen11/hw/mhw_sfc_hwcmd_g11_X.h

raw
1 /*
2 * Copyright (c) 2018, 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_g11_X.h
24 //! \brief Auto-generated constructors for MHW and states.
25 //! \details This file may not be included outside of g11_X as other components
26 //! should use MHW interface to interact with MHW commands and states.
27 //!
28 #ifndef __MHW_SFC_HWCMD_G11_X_H__
29 #define __MHW_SFC_HWCMD_G11_X_H__
30
31 #pragma once
32
33 #include <cstdint>
34 #include <cstddef>
35
36 #pragma pack(1)
37
38 class mhw_sfc_g11_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_MEDIAMISC = 10, //!< No additional details
125 };
126
127 enum PIPELINE
128 {
129 PIPELINE_MEDIA = 2, //!< No additional details
130 };
131
132 enum COMMAND_TYPE
133 {
134 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
135 };
136
137 //! \brief SHARPNESS_LEVEL
138 //! \details
139 //! When adaptive scaling is off, determines the balance between sharp and
140 //! smooth scalers.
141 enum SHARPNESS_LEVEL
142 {
143 SHARPNESS_LEVEL_UNNAMED0 = 0, //!< Contribute 1 from the smooth scalar
144 SHARPNESS_LEVEL_UNNAMED255 = 255, //!< Contribute 1 from the sharp scalar
145 };
146
147 //! \brief INPUT_VERTICAL_SITING__SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT
148 //! \details
149 //! For 444 and 422 format, vertical chroma siting should be programmed to
150 //! zero.
151 enum INPUT_VERTICAL_SITING__SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT
152 {
153 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_0 = 0, //!< No additional details
154 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_18 = 1, //!< No additional details
155 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_28 = 2, //!< No additional details
156 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_38 = 3, //!< No additional details
157 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_48 = 4, //!< No additional details
158 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_58 = 5, //!< No additional details
159 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_68 = 6, //!< No additional details
160 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_78 = 7, //!< No additional details
161 INPUT_VERTICAL_SITING_SPECIFIES_THE_VERTICAL_SITING_OF_THE_INPUT_88 = 8, //!< No additional details
162 };
163
164 //! \brief INPUT_HORIZONTAL_SITING_VALUE__SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT
165 //! \details
166 //! For 444 format, horizontal chroma siting should be programmed to zero.
167 enum INPUT_HORIZONTAL_SITING_VALUE__SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT
168 {
169 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_0_FRACTIONININTEGER = 0, //!< No additional details
170 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_18 = 1, //!< No additional details
171 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_28 = 2, //!< No additional details
172 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_38 = 3, //!< No additional details
173 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_48 = 4, //!< No additional details
174 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_58 = 5, //!< No additional details
175 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_68 = 6, //!< No additional details
176 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_78 = 7, //!< No additional details
177 INPUT_HORIZONTAL_SITING_VALUE_SPECIFIES_THE_HORIZONTAL_SITING_OF_THE_INPUT_88 = 8, //!< No additional details
178 };
179
180 //! \name Initializations
181
182 //! \brief Explicit member initialization function
183 SFC_AVS_STATE_CMD();
184
185 static const size_t dwSize = 4;
186 static const size_t byteSize = 16;
187 };
188
189 //!
190 //! \brief SFC_IEF_STATE
191 //! \details
192 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
193 //! each frame once the lock request is granted.
194 //!
195 struct SFC_IEF_STATE_CMD
196 {
197 union
198 {
199 //!< DWORD 0
200 struct
201 {
202 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
203 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
204 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
205 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
206 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
207 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
208 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
209 };
210 uint32_t Value;
211 } DW0;
212 union
213 {
214 //!< DWORD 1
215 struct
216 {
217 uint32_t GainFactor : __CODEGEN_BITFIELD( 0, 5) ; //!< GAIN_FACTOR
218 uint32_t WeakEdgeThreshold : __CODEGEN_BITFIELD( 6, 11) ; //!< WEAK_EDGE_THRESHOLD
219 uint32_t StrongEdgeThreshold : __CODEGEN_BITFIELD(12, 17) ; //!< STRONG_EDGE_THRESHOLD
220 uint32_t R3XCoefficient : __CODEGEN_BITFIELD(18, 22) ; //!< R3X_COEFFICIENT
221 uint32_t R3CCoefficient : __CODEGEN_BITFIELD(23, 27) ; //!< R3C_COEFFICIENT
222 uint32_t Reserved60 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
223 };
224 uint32_t Value;
225 } DW1;
226 union
227 {
228 //!< DWORD 2
229 struct
230 {
231 uint32_t GlobalNoiseEstimation : __CODEGEN_BITFIELD( 0, 7) ; //!< GLOBAL_NOISE_ESTIMATION
232 uint32_t NonEdgeWeight : __CODEGEN_BITFIELD( 8, 10) ; //!< NON_EDGE_WEIGHT
233 uint32_t RegularWeight : __CODEGEN_BITFIELD(11, 13) ; //!< REGULAR_WEIGHT
234 uint32_t StrongEdgeWeight : __CODEGEN_BITFIELD(14, 16) ; //!< STRONG_EDGE_WEIGHT
235 uint32_t R5XCoefficient : __CODEGEN_BITFIELD(17, 21) ; //!< R5X_COEFFICIENT
236 uint32_t R5CxCoefficient : __CODEGEN_BITFIELD(22, 26) ; //!< R5CX_COEFFICIENT
237 uint32_t R5CCoefficient : __CODEGEN_BITFIELD(27, 31) ; //!< R5C_COEFFICIENT
238 };
239 uint32_t Value;
240 } DW2;
241 union
242 {
243 //!< DWORD 3
244 struct
245 {
246 uint32_t StdSinAlpha : __CODEGEN_BITFIELD( 0, 7) ; //!< STD Sin(alpha)
247 uint32_t StdCosAlpha : __CODEGEN_BITFIELD( 8, 15) ; //!< STD Cos(alpha)
248 uint32_t SatMax : __CODEGEN_BITFIELD(16, 21) ; //!< SAT_MAX
249 uint32_t HueMax : __CODEGEN_BITFIELD(22, 27) ; //!< HUE_MAX
250 uint32_t Reserved124 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
251 };
252 uint32_t Value;
253 } DW3;
254 union
255 {
256 //!< DWORD 4
257 struct
258 {
259 uint32_t S3U : __CODEGEN_BITFIELD( 0, 10) ; //!< S3U
260 uint32_t Reserved139 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
261 uint32_t DiamondMargin : __CODEGEN_BITFIELD(12, 14) ; //!< DIAMOND_MARGIN
262 uint32_t VyStdEnable : __CODEGEN_BITFIELD(15, 15) ; //!< VY_STD_Enable
263 uint32_t UMid : __CODEGEN_BITFIELD(16, 23) ; //!< U_MID
264 uint32_t VMid : __CODEGEN_BITFIELD(24, 31) ; //!< V_MID
265 };
266 uint32_t Value;
267 } DW4;
268 union
269 {
270 //!< DWORD 5
271 struct
272 {
273 uint32_t DiamondDv : __CODEGEN_BITFIELD( 0, 6) ; //!< DIAMOND_DV
274 uint32_t DiamondTh : __CODEGEN_BITFIELD( 7, 12) ; //!< DIAMOND_TH
275 uint32_t DiamondAlpha : __CODEGEN_BITFIELD(13, 20) ; //!< Diamond_alpha
276 uint32_t HsMargin : __CODEGEN_BITFIELD(21, 23) ; //!< HS_MARGIN
277 uint32_t DiamondDu : __CODEGEN_BITFIELD(24, 30) ; //!< DIAMOND_DU
278 uint32_t SkinDetailFactor : __CODEGEN_BITFIELD(31, 31) ; //!< SKIN_DETAIL_FACTOR
279 };
280 uint32_t Value;
281 } DW5;
282 union
283 {
284 //!< DWORD 6
285 struct
286 {
287 uint32_t YPoint1 : __CODEGEN_BITFIELD( 0, 7) ; //!< Y_POINT_1
288 uint32_t YPoint2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Y_POINT_2
289 uint32_t YPoint3 : __CODEGEN_BITFIELD(16, 23) ; //!< Y_POINT_3
290 uint32_t YPoint4 : __CODEGEN_BITFIELD(24, 31) ; //!< Y_POINT_4
291 };
292 uint32_t Value;
293 } DW6;
294 union
295 {
296 //!< DWORD 7
297 struct
298 {
299 uint32_t InvMarginVyl : __CODEGEN_BITFIELD( 0, 15) ; //!< INV_Margin_VYL
300 uint32_t Reserved240 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
301 };
302 uint32_t Value;
303 } DW7;
304 union
305 {
306 //!< DWORD 8
307 struct
308 {
309 uint32_t InvMarginVyu : __CODEGEN_BITFIELD( 0, 15) ; //!< INV_Margin_VYU
310 uint32_t P0L : __CODEGEN_BITFIELD(16, 23) ; //!< P0L
311 uint32_t P1L : __CODEGEN_BITFIELD(24, 31) ; //!< P1L
312 };
313 uint32_t Value;
314 } DW8;
315 union
316 {
317 //!< DWORD 9
318 struct
319 {
320 uint32_t P2L : __CODEGEN_BITFIELD( 0, 7) ; //!< P2L
321 uint32_t P3L : __CODEGEN_BITFIELD( 8, 15) ; //!< P3L
322 uint32_t B0L : __CODEGEN_BITFIELD(16, 23) ; //!< B0L
323 uint32_t B1L : __CODEGEN_BITFIELD(24, 31) ; //!< B1L
324 };
325 uint32_t Value;
326 } DW9;
327 union
328 {
329 //!< DWORD 10
330 struct
331 {
332 uint32_t B2L : __CODEGEN_BITFIELD( 0, 7) ; //!< B2L
333 uint32_t B3L : __CODEGEN_BITFIELD( 8, 15) ; //!< B3L
334 uint32_t S0L : __CODEGEN_BITFIELD(16, 26) ; //!< S0L
335 uint32_t YSlope2 : __CODEGEN_BITFIELD(27, 31) ; //!< Y_Slope_2
336 };
337 uint32_t Value;
338 } DW10;
339 union
340 {
341 //!< DWORD 11
342 struct
343 {
344 uint32_t S1L : __CODEGEN_BITFIELD( 0, 10) ; //!< S1L
345 uint32_t S2L : __CODEGEN_BITFIELD(11, 21) ; //!< S2L
346 uint32_t Reserved374 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
347 };
348 uint32_t Value;
349 } DW11;
350 union
351 {
352 //!< DWORD 12
353 struct
354 {
355 uint32_t S3L : __CODEGEN_BITFIELD( 0, 10) ; //!< S3L
356 uint32_t P0U : __CODEGEN_BITFIELD(11, 18) ; //!< P0U
357 uint32_t P1U : __CODEGEN_BITFIELD(19, 26) ; //!< P1U
358 uint32_t YSlope1 : __CODEGEN_BITFIELD(27, 31) ; //!< Y_Slope1
359 };
360 uint32_t Value;
361 } DW12;
362 union
363 {
364 //!< DWORD 13
365 struct
366 {
367 uint32_t P2U : __CODEGEN_BITFIELD( 0, 7) ; //!< P2U
368 uint32_t P3U : __CODEGEN_BITFIELD( 8, 15) ; //!< P3U
369 uint32_t B0U : __CODEGEN_BITFIELD(16, 23) ; //!< B0U
370 uint32_t B1U : __CODEGEN_BITFIELD(24, 31) ; //!< B1U
371 };
372 uint32_t Value;
373 } DW13;
374 union
375 {
376 //!< DWORD 14
377 struct
378 {
379 uint32_t B2U : __CODEGEN_BITFIELD( 0, 7) ; //!< B2U
380 uint32_t B3U : __CODEGEN_BITFIELD( 8, 15) ; //!< B3U
381 uint32_t S0U : __CODEGEN_BITFIELD(16, 26) ; //!< S0U
382 uint32_t Reserved475 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
383 };
384 uint32_t Value;
385 } DW14;
386 union
387 {
388 //!< DWORD 15
389 struct
390 {
391 uint32_t S1U : __CODEGEN_BITFIELD( 0, 10) ; //!< S1U
392 uint32_t S2U : __CODEGEN_BITFIELD(11, 21) ; //!< S2U
393 uint32_t Reserved502 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
394 };
395 uint32_t Value;
396 } DW15;
397 union
398 {
399 //!< DWORD 16
400 struct
401 {
402 uint32_t TransformEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Transform Enable
403 uint32_t YuvChannelSwap : __CODEGEN_BITFIELD( 1, 1) ; //!< YUV Channel Swap
404 uint32_t Reserved514 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
405 uint32_t C0 : __CODEGEN_BITFIELD( 3, 15) ; //!< C0
406 uint32_t C1 : __CODEGEN_BITFIELD(16, 28) ; //!< C1
407 uint32_t Reserved541 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
408 };
409 uint32_t Value;
410 } DW16;
411 union
412 {
413 //!< DWORD 17
414 struct
415 {
416 uint32_t C2 : __CODEGEN_BITFIELD( 0, 12) ; //!< C2
417 uint32_t C3 : __CODEGEN_BITFIELD(13, 25) ; //!< C3
418 uint32_t Reserved570 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
419 };
420 uint32_t Value;
421 } DW17;
422 union
423 {
424 //!< DWORD 18
425 struct
426 {
427 uint32_t C4 : __CODEGEN_BITFIELD( 0, 12) ; //!< C4
428 uint32_t C5 : __CODEGEN_BITFIELD(13, 25) ; //!< C5
429 uint32_t Reserved602 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
430 };
431 uint32_t Value;
432 } DW18;
433 union
434 {
435 //!< DWORD 19
436 struct
437 {
438 uint32_t C6 : __CODEGEN_BITFIELD( 0, 12) ; //!< C6
439 uint32_t C7 : __CODEGEN_BITFIELD(13, 25) ; //!< C7
440 uint32_t Reserved634 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
441 };
442 uint32_t Value;
443 } DW19;
444 union
445 {
446 //!< DWORD 20
447 struct
448 {
449 uint32_t C8 : __CODEGEN_BITFIELD( 0, 12) ; //!< C8
450 uint32_t Reserved653 : __CODEGEN_BITFIELD(13, 31) ; //!< Reserved
451 };
452 uint32_t Value;
453 } DW20;
454 union
455 {
456 //!< DWORD 21
457 struct
458 {
459 uint32_t OffsetIn1 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_1
460 uint32_t OffsetOut1 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_1
461 uint32_t Reserved694 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
462 };
463 uint32_t Value;
464 } DW21;
465 union
466 {
467 //!< DWORD 22
468 struct
469 {
470 uint32_t OffsetIn2 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_2
471 uint32_t OffsetOut2 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_2
472 uint32_t Reserved726 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
473 };
474 uint32_t Value;
475 } DW22;
476 union
477 {
478 //!< DWORD 23
479 struct
480 {
481 uint32_t OffsetIn3 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_3
482 uint32_t OffsetOut3 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_3
483 uint32_t Reserved758 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
484 };
485 uint32_t Value;
486 } DW23;
487
488 //! \name Local enumerations
489
490 enum SUBOPCODEB
491 {
492 SUBOPCODEB_SFCIEFSTATE = 3, //!< No additional details
493 };
494
495 enum SUBOPCODEA
496 {
497 SUBOPCODEA_COMMON = 0, //!< No additional details
498 };
499
500 enum MEDIA_COMMAND_OPCODE
501 {
502 MEDIA_COMMAND_OPCODE_MEDIAMISC = 10, //!< No additional details
503 };
504
505 enum PIPELINE
506 {
507 PIPELINE_MEDIA = 2, //!< No additional details
508 };
509
510 enum COMMAND_TYPE
511 {
512 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
513 };
514
515 //! \brief GAIN_FACTOR
516 //! \details
517 //! User control sharpening strength.
518 enum GAIN_FACTOR
519 {
520 GAIN_FACTOR_UNNAMED_4_4 = 44, //!< No additional details
521 };
522
523 //! \brief WEAK_EDGE_THRESHOLD
524 //! \details
525 //! If Strong Edge Threshold &gt; EM &gt; Weak Edge Threshold ? the basic
526 //! VSA detects a weak edge.
527 enum WEAK_EDGE_THRESHOLD
528 {
529 WEAK_EDGE_THRESHOLD_UNNAMED1 = 1, //!< No additional details
530 };
531
532 //! \brief STRONG_EDGE_THRESHOLD
533 //! \details
534 //! If EM &gt; Strong Edge Threshold ? the basic VSA detects a strong edge.
535 enum STRONG_EDGE_THRESHOLD
536 {
537 STRONG_EDGE_THRESHOLD_UNNAMED8 = 8, //!< No additional details
538 };
539
540 //! \brief R3X_COEFFICIENT
541 //! \details
542 //! IEF smoothing coefficient, <i>see IEF map.</i>
543 enum R3X_COEFFICIENT
544 {
545 R3X_COEFFICIENT_UNNAMED5 = 5, //!< No additional details
546 };
547
548 //! \brief R3C_COEFFICIENT
549 //! \details
550 //! IEF smoothing coefficient, <i>see IEF map.</i>
551 enum R3C_COEFFICIENT
552 {
553 R3C_COEFFICIENT_UNNAMED5 = 5, //!< No additional details
554 };
555
556 //! \brief GLOBAL_NOISE_ESTIMATION
557 //! \details
558 //! Global noise estimation of previous frame.
559 enum GLOBAL_NOISE_ESTIMATION
560 {
561 GLOBAL_NOISE_ESTIMATION_UNNAMED255 = 255, //!< No additional details
562 };
563
564 //! \brief NON_EDGE_WEIGHT
565 //! \details
566 //! . Sharpening strength when <u>NO EDGE</u> is found in basic VSA.
567 enum NON_EDGE_WEIGHT
568 {
569 NON_EDGE_WEIGHT_UNNAMED1 = 1, //!< No additional details
570 };
571
572 //! \brief REGULAR_WEIGHT
573 //! \details
574 //! Sharpening strength when a <u>WEAK</u> edge is found in basic VSA.
575 enum REGULAR_WEIGHT
576 {
577 REGULAR_WEIGHT_UNNAMED2 = 2, //!< No additional details
578 };
579
580 //! \brief STRONG_EDGE_WEIGHT
581 //! \details
582 //! Sharpening strength when a <u>STRONG</u> edge is found in basic VSA.
583 enum STRONG_EDGE_WEIGHT
584 {
585 STRONG_EDGE_WEIGHT_UNNAMED7 = 7, //!< No additional details
586 };
587
588 //! \brief R5X_COEFFICIENT
589 //! \details
590 //! IEF smoothing coefficient, <i>see IEF map.</i>
591 enum R5X_COEFFICIENT
592 {
593 R5X_COEFFICIENT_UNNAMED7 = 7, //!< No additional details
594 };
595
596 //! \brief R5CX_COEFFICIENT
597 //! \details
598 //! IEF smoothing coefficient, <i>see IEF map.</i>
599 enum R5CX_COEFFICIENT
600 {
601 R5CX_COEFFICIENT_UNNAMED7 = 7, //!< No additional details
602 };
603
604 //! \brief R5C_COEFFICIENT
605 //! \details
606 //! IEF smoothing coefficient, <i>see IEF map.</i>
607 enum R5C_COEFFICIENT
608 {
609 R5C_COEFFICIENT_UNNAMED7 = 7, //!< No additional details
610 };
611
612 //! \brief SAT_MAX
613 //! \details
614 //! Rectangle half length.
615 enum SAT_MAX
616 {
617 SAT_MAX_UNNAMED31 = 31, //!< No additional details
618 };
619
620 //! \brief HUE_MAX
621 //! \details
622 //! Rectangle half width.
623 enum HUE_MAX
624 {
625 HUE_MAX_UNNAMED1_4 = 14, //!< No additional details
626 };
627
628 enum DIAMOND_MARGIN
629 {
630 DIAMOND_MARGIN_UNNAMED_4 = 4, //!< No additional details
631 };
632
633 //! \brief U_MID
634 //! \details
635 //! Rectangle middle-point U coordinate.
636 enum U_MID
637 {
638 U_MID_UNNAMED110 = 110, //!< No additional details
639 };
640
641 //! \brief V_MID
642 //! \details
643 //! Rectangle middle-point V coordinate.
644 enum V_MID
645 {
646 V_MID_UNNAMED15_4 = 154, //!< No additional details
647 };
648
649 //! \brief DIAMOND_DV
650 //! \details
651 //! Rhombus center shift in the hue-direction, relative to the rectangle
652 //! center.
653 enum DIAMOND_DV
654 {
655 DIAMOND_DV_UNNAMED0 = 0, //!< No additional details
656 };
657
658 //! \brief DIAMOND_TH
659 //! \details
660 //! Half length of the rhombus axis in the sat-direction.
661 enum DIAMOND_TH
662 {
663 DIAMOND_TH_UNNAMED35 = 35, //!< No additional details
664 };
665
666 //! \brief HS_MARGIN
667 //! \details
668 //! Defines rectangle margin.
669 enum HS_MARGIN
670 {
671 HS_MARGIN_UNNAMED3 = 3, //!< No additional details
672 };
673
674 //! \brief DIAMOND_DU
675 //! \details
676 //! Rhombus center shift in the sat-direction, relative to the rectangle
677 //! center.
678 enum DIAMOND_DU
679 {
680 DIAMOND_DU_UNNAMED0 = 0, //!< No additional details
681 };
682
683 //! \brief SKIN_DETAIL_FACTOR
684 //! \details
685 //! This flag bit is in operation only when one of the following conditions
686 //! exists:
687 //! <ul>
688 //! <li>when the control bit <b>SkinToneTunedIEF_Enable</b> is on.
689 //! </li>
690 //! <Li>When <b>SkinDetailFactor</b> is equal to 0,
691 //! sign(<b>SkinDetailFactor</b>) is equal to +1, and the content of the
692 //! detected skin tone area is detail revealed.</Li>
693 //! <li>When <b>SkinDetailFactor</b> is equal to 1,
694 //! sign(<b>SkinDetailFactor</b>) is equal to -1, and the content of the
695 //! detected skin tone area is not detail revealed.</li>
696 //! </ul>
697 enum SKIN_DETAIL_FACTOR
698 {
699 SKIN_DETAIL_FACTOR_DETAILREVEALED = 0, //!< No additional details
700 SKIN_DETAIL_FACTOR_NOTDETAILREVEALED = 1, //!< No additional details
701 };
702
703 //! \brief Y_POINT_1
704 //! \details
705 //! First point of the Y piecewise linear membership function.
706 enum Y_POINT_1
707 {
708 Y_POINT_1_UNNAMED_46 = 46, //!< No additional details
709 };
710
711 //! \brief Y_POINT_2
712 //! \details
713 //! Second point of the Y piecewise linear membership function.
714 enum Y_POINT_2
715 {
716 Y_POINT_2_UNNAMED_47 = 47, //!< No additional details
717 };
718
719 //! \brief Y_POINT_3
720 //! \details
721 //! Third point of the Y piecewise linear membership function.
722 enum Y_POINT_3
723 {
724 Y_POINT_3_UNNAMED25_4 = 254, //!< No additional details
725 };
726
727 //! \brief Y_POINT_4
728 //! \details
729 //! Fourth point of the Y piecewise linear membership function.
730 enum Y_POINT_4
731 {
732 Y_POINT_4_UNNAMED255 = 255, //!< No additional details
733 };
734
735 //! \brief P0L
736 //! \details
737 //! Y Point 0 of the lower part of the detection PWLF.
738 enum P0L
739 {
740 P0L_UNNAMED_46 = 46, //!< No additional details
741 };
742
743 //! \brief P1L
744 //! \details
745 //! Y Point 1 of the lower part of the detection PWLF.
746 enum P1L
747 {
748 P1L_UNNAMED216 = 216, //!< No additional details
749 };
750
751 //! \brief P2L
752 //! \details
753 //! Y Point 2 of the lower part of the detection PWLF.
754 enum P2L
755 {
756 P2L_UNNAMED236 = 236, //!< No additional details
757 };
758
759 //! \brief P3L
760 //! \details
761 //! Y Point 3 of the lower part of the detection PWLF.
762 enum P3L
763 {
764 P3L_UNNAMED236 = 236, //!< No additional details
765 };
766
767 //! \brief B0L
768 //! \details
769 //! V Bias 0 of the lower part of the detection PWLF.
770 enum B0L
771 {
772 B0L_UNNAMED133 = 133, //!< No additional details
773 };
774
775 //! \brief B1L
776 //! \details
777 //! V Bias 1 of the lower part of the detection PWLF.
778 enum B1L
779 {
780 B1L_UNNAMED130 = 130, //!< No additional details
781 };
782
783 //! \brief B2L
784 //! \details
785 //! V Bias 2 of the lower part of the detection PWLF.
786 enum B2L
787 {
788 B2L_UNNAMED130 = 130, //!< No additional details
789 };
790
791 //! \brief B3L
792 //! \details
793 //! V Bias 3 of the lower part of the detection PWLF.
794 enum B3L
795 {
796 B3L_UNNAMED130 = 130, //!< No additional details
797 };
798
799 //! \brief P0U
800 //! \details
801 //! Y Point 0 of the upper part of the detection PWLF.
802 enum P0U
803 {
804 P0U_UNNAMED_46 = 46, //!< No additional details
805 };
806
807 //! \brief P1U
808 //! \details
809 //! Y Point 1 of the upper part of the detection PWLF.
810 enum P1U
811 {
812 P1U_UNNAMED66 = 66, //!< No additional details
813 };
814
815 //! \brief P2U
816 //! \details
817 //! Y Point 2 of the upper part of the detection PWLF.
818 enum P2U
819 {
820 P2U_UNNAMED150 = 150, //!< No additional details
821 };
822
823 //! \brief P3U
824 //! \details
825 //! Y Point 3 of the upper part of the detection PWLF.
826 enum P3U
827 {
828 P3U_UNNAMED236 = 236, //!< No additional details
829 };
830
831 //! \brief B0U
832 //! \details
833 //! V Bias 0 of the upper part of the detection PWLF.
834 enum B0U
835 {
836 B0U_UNNAMED1_43 = 143, //!< No additional details
837 };
838
839 //! \brief B1U
840 //! \details
841 //! V Bias 1 of the upper part of the detection PWLF.
842 enum B1U
843 {
844 B1U_UNNAMED163 = 163, //!< No additional details
845 };
846
847 //! \brief B2U
848 //! \details
849 //! V Bias 2 of the upper part of the detection PWLF.
850 enum B2U
851 {
852 B2U_UNNAMED200 = 200, //!< No additional details
853 };
854
855 //! \brief B3U
856 //! \details
857 //! V Bias 3 of the upper part of the detection PWLF.
858 enum B3U
859 {
860 B3U_UNNAMED1_40 = 140, //!< No additional details
861 };
862
863 //! \brief C0
864 //! \details
865 //! Transform coefficient
866 enum C0
867 {
868 C0_UNNAMED102_4 = 1024, //!< No additional details
869 };
870
871 //! \brief C1
872 //! \details
873 //! Transform coefficient
874 enum C1
875 {
876 C1_UNNAMED0 = 0, //!< No additional details
877 };
878
879 //! \brief C2
880 //! \details
881 //! Transform coefficient
882 enum C2
883 {
884 C2_UNNAMED0 = 0, //!< No additional details
885 };
886
887 //! \brief C3
888 //! \details
889 //! Transform coefficient
890 enum C3
891 {
892 C3_UNNAMED0 = 0, //!< No additional details
893 };
894
895 //! \brief C4
896 //! \details
897 //! Transform coefficient
898 enum C4
899 {
900 C4_UNNAMED102_4 = 1024, //!< No additional details
901 };
902
903 //! \brief C5
904 //! \details
905 //! Transform coefficient
906 enum C5
907 {
908 C5_UNNAMED0 = 0, //!< No additional details
909 };
910
911 //! \brief C6
912 //! \details
913 //! Transform coefficient
914 enum C6
915 {
916 C6_UNNAMED0 = 0, //!< No additional details
917 };
918
919 //! \brief C7
920 //! \details
921 //! Transform coefficient
922 enum C7
923 {
924 C7_UNNAMED0 = 0, //!< No additional details
925 };
926
927 //! \brief C8
928 //! \details
929 //! Transform coefficient
930 enum C8
931 {
932 C8_UNNAMED102_4 = 1024, //!< No additional details
933 };
934
935 //! \brief OFFSET_IN_1
936 //! \details
937 //! Offset in for Y/R.
938 enum OFFSET_IN_1
939 {
940 OFFSET_IN_1_UNNAMED0 = 0, //!< No additional details
941 };
942
943 //! \brief OFFSET_OUT_1
944 //! \details
945 //! Offset out for Y/R.
946 enum OFFSET_OUT_1
947 {
948 OFFSET_OUT_1_UNNAMED0 = 0, //!< No additional details
949 };
950
951 //! \brief OFFSET_IN_2
952 //! \details
953 //! Offset in for U/G.
954 enum OFFSET_IN_2
955 {
956 OFFSET_IN_2_UNNAMED0 = 0, //!< No additional details
957 };
958
959 //! \brief OFFSET_OUT_2
960 //! \details
961 //! Offset out for U/G.
962 enum OFFSET_OUT_2
963 {
964 OFFSET_OUT_2_UNNAMED0 = 0, //!< No additional details
965 };
966
967 //! \brief OFFSET_IN_3
968 //! \details
969 //! Offset in for V/B.
970 enum OFFSET_IN_3
971 {
972 OFFSET_IN_3_UNNAMED0 = 0, //!< No additional details
973 };
974
975 //! \brief OFFSET_OUT_3
976 //! \details
977 //! Offset out for V/B.
978 enum OFFSET_OUT_3
979 {
980 OFFSET_OUT_3_UNNAMED0 = 0, //!< No additional details
981 };
982
983 //! \name Initializations
984
985 //! \brief Explicit member initialization function
986 SFC_IEF_STATE_CMD();
987
988 static const size_t dwSize = 24;
989 static const size_t byteSize = 96;
990 };
991
992 //!
993 //! \brief SFC_FRAME_START
994 //! \details
995 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
996 //! each frame once the lock request is granted.
997 //!
998 struct SFC_FRAME_START_CMD
999 {
1000 union
1001 {
1002 //!< DWORD 0
1003 struct
1004 {
1005 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1006 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1007 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1008 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
1009 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
1010 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1011 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1012 };
1013 uint32_t Value;
1014 } DW0;
1015 union
1016 {
1017 //!< DWORD 1
1018 struct
1019 {
1020 uint32_t Reserved32 ; //!< Reserved
1021 };
1022 uint32_t Value;
1023 } DW1;
1024
1025 //! \name Local enumerations
1026
1027 enum SUBOPCODEB
1028 {
1029 SUBOPCODEB_SFCFRAMESTART = 4, //!< No additional details
1030 };
1031
1032 enum SUBOPCODEA
1033 {
1034 SUBOPCODEA_COMMON = 0, //!< No additional details
1035 };
1036
1037 enum MEDIA_COMMAND_OPCODE
1038 {
1039 MEDIA_COMMAND_OPCODE_MEDIAMISC = 10, //!< No additional details
1040 };
1041
1042 enum PIPELINE
1043 {
1044 PIPELINE_MEDIA = 2, //!< No additional details
1045 };
1046
1047 enum COMMAND_TYPE
1048 {
1049 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1050 };
1051
1052 //! \name Initializations
1053
1054 //! \brief Explicit member initialization function
1055 SFC_FRAME_START_CMD();
1056
1057 static const size_t dwSize = 2;
1058 static const size_t byteSize = 8;
1059 };
1060
1061 //!
1062 //! \brief SFC_LOCK
1063 //! \details
1064 //!
1065 //!
1066 struct SFC_LOCK_CMD
1067 {
1068 union
1069 {
1070 //!< DWORD 0
1071 struct
1072 {
1073 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1074 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1075 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1076 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
1077 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
1078 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1079 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1080 };
1081 uint32_t Value;
1082 } DW0;
1083 union
1084 {
1085 //!< DWORD 1
1086 struct
1087 {
1088 uint32_t VeSfcPipeSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< VE-SFC Pipe Select
1089 uint32_t PreScaledOutputSurfaceOutputEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Pre-Scaled Output Surface Output Enable
1090 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved
1091 };
1092 uint32_t Value;
1093 } DW1;
1094
1095 //! \name Local enumerations
1096
1097 enum SUBOPCODEB
1098 {
1099 SUBOPCODEB_SFCLOCK = 0, //!< No additional details
1100 };
1101
1102 enum SUBOPCODEA
1103 {
1104 SUBOPCODEA_COMMON = 0, //!< No additional details
1105 };
1106
1107 enum MEDIA_COMMAND_OPCODE
1108 {
1109 MEDIA_COMMAND_OPCODE_MEDIAMISC = 10, //!< No additional details
1110 };
1111
1112 enum PIPELINE
1113 {
1114 PIPELINE_MEDIA = 2, //!< No additional details
1115 };
1116
1117 enum COMMAND_TYPE
1118 {
1119 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1120 };
1121
1122 //! \name Initializations
1123
1124 //! \brief Explicit member initialization function
1125 SFC_LOCK_CMD();
1126
1127 static const size_t dwSize = 2;
1128 static const size_t byteSize = 8;
1129 };
1130
1131 //!
1132 //! \brief SFC_STATE
1133 //! \details
1134 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
1135 //! each frame once the lock request is granted.
1136 //!
1137 struct SFC_STATE_CMD
1138 {
1139 union
1140 {
1141 //!< DWORD 0
1142 struct
1143 {
1144 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1145 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1146 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1147 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
1148 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
1149 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1150 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1151 };
1152 uint32_t Value;
1153 } DW0;
1154 union
1155 {
1156 //!< DWORD 1
1157 struct
1158 {
1159 uint32_t SfcPipeMode : __CODEGEN_BITFIELD( 0, 3) ; //!< SFC_PIPE_MODE
1160 uint32_t SfcInputChromaSubSampling : __CODEGEN_BITFIELD( 4, 7) ; //!< SFC_INPUT_CHROMA_SUB_SAMPLING
1161 uint32_t VdVeInputOrderingMode : __CODEGEN_BITFIELD( 8, 10) ; //!< VDVE_INPUT_ORDERING_MODE
1162 uint32_t Reserved43 : __CODEGEN_BITFIELD(11, 31) ; //!< Reserved
1163 };
1164 uint32_t Value;
1165 } DW1;
1166 union
1167 {
1168 //!< DWORD 2
1169 struct
1170 {
1171 uint32_t InputFrameResolutionWidth : __CODEGEN_BITFIELD( 0, 11) ; //!< Input Frame Resolution Width
1172 uint32_t Reserved76 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1173 uint32_t InputFrameResolutionHeight : __CODEGEN_BITFIELD(16, 27) ; //!< Input Frame Resolution Height
1174 uint32_t Reserved92 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1175 };
1176 uint32_t Value;
1177 } DW2;
1178 union
1179 {
1180 //!< DWORD 3
1181 struct
1182 {
1183 uint32_t OutputSurfaceFormatType : __CODEGEN_BITFIELD( 0, 3) ; //!< OUTPUT_SURFACE_FORMAT_TYPE
1184 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 4) ; //!< Reserved
1185 uint32_t RgbaChannelSwapEnable : __CODEGEN_BITFIELD( 5, 5) ; //!< RGBA_CHANNEL_SWAP_ENABLE
1186 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
1187 uint32_t OutputChromaDownsamplingCoSitingPositionVerticalDirection : __CODEGEN_BITFIELD( 8, 11) ; //!< OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION
1188 uint32_t OutputChromaDownsamplingCoSitingPositionHorizontalDirection : __CODEGEN_BITFIELD(12, 15) ; //!< OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION
1189 uint32_t Reserved112 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1190 };
1191 uint32_t Value;
1192 } DW3;
1193 union
1194 {
1195 //!< DWORD 4
1196 struct
1197 {
1198 uint32_t IefEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< IEF_ENABLE
1199 uint32_t SkinToneTunedIefEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Skin Tone Tuned IEF_Enable
1200 uint32_t Ief4SmoothEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< IEF4SMOOTH_ENABLE_
1201 uint32_t Reserved131 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
1202 uint32_t AvsFilterMode : __CODEGEN_BITFIELD( 4, 5) ; //!< AVS_FILTER_MODE
1203 uint32_t AdaptiveFilterForAllChannels : __CODEGEN_BITFIELD( 6, 6) ; //!< ADAPTIVE_FILTER_FOR_ALL_CHANNELS
1204 uint32_t AvsScalingEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< AVS_SCALING_ENABLE
1205 uint32_t BypassYAdaptiveFiltering : __CODEGEN_BITFIELD( 8, 8) ; //!< BYPASS_Y_ADAPTIVE_FILTERING
1206 uint32_t BypassXAdaptiveFiltering : __CODEGEN_BITFIELD( 9, 9) ; //!< BYPASS_X_ADAPTIVE_FILTERING
1207 uint32_t Reserved138 : __CODEGEN_BITFIELD(10, 11) ; //!< Reserved
1208 uint32_t ChromaUpsamplingEnable : __CODEGEN_BITFIELD(12, 12) ; //!< Chroma Upsampling Enable
1209 uint32_t Reserved141 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
1210 uint32_t RotationMode : __CODEGEN_BITFIELD(16, 17) ; //!< ROTATION_MODE
1211 uint32_t ColorFillEnable : __CODEGEN_BITFIELD(18, 18) ; //!< Color Fill Enable
1212 uint32_t CscEnable : __CODEGEN_BITFIELD(19, 19) ; //!< CSC Enable
1213 uint32_t Bitdepth : __CODEGEN_BITFIELD(20, 21) ; //!< BITDEPTH
1214 uint32_t Reserved150 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1215 };
1216 uint32_t Value;
1217 } DW4;
1218 union
1219 {
1220 //!< DWORD 5
1221 struct
1222 {
1223 uint32_t SourceRegionWidth : __CODEGEN_BITFIELD( 0, 11) ; //!< Source Region Width
1224 uint32_t Reserved172 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1225 uint32_t SourceRegionHeight : __CODEGEN_BITFIELD(16, 27) ; //!< Source Region Height
1226 uint32_t Reserved188 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1227 };
1228 uint32_t Value;
1229 } DW5;
1230 union
1231 {
1232 //!< DWORD 6
1233 struct
1234 {
1235 uint32_t SourceRegionHorizontalOffset : __CODEGEN_BITFIELD( 0, 11) ; //!< Source Region Horizontal Offset
1236 uint32_t Reserved204 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1237 uint32_t SourceRegionVerticalOffset : __CODEGEN_BITFIELD(16, 27) ; //!< Source Region Vertical Offset
1238 uint32_t Reserved220 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1239 };
1240 uint32_t Value;
1241 } DW6;
1242 union
1243 {
1244 //!< DWORD 7
1245 struct
1246 {
1247 uint32_t OutputFrameWidth : __CODEGEN_BITFIELD( 0, 11) ; //!< Output Frame Width
1248 uint32_t Reserved236 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1249 uint32_t OutputFrameHeight : __CODEGEN_BITFIELD(16, 27) ; //!< Output Frame Height
1250 uint32_t Reserved252 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1251 };
1252 uint32_t Value;
1253 } DW7;
1254 union
1255 {
1256 //!< DWORD 8
1257 struct
1258 {
1259 uint32_t ScaledRegionSizeWidth : __CODEGEN_BITFIELD( 0, 11) ; //!< Scaled Region Size Width
1260 uint32_t Reserved268 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1261 uint32_t ScaledRegionSizeHeight : __CODEGEN_BITFIELD(16, 27) ; //!< Scaled Region Size Height
1262 uint32_t Reserved284 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1263 };
1264 uint32_t Value;
1265 } DW8;
1266 union
1267 {
1268 //!< DWORD 9
1269 struct
1270 {
1271 uint32_t ScaledRegionHorizontalOffset : __CODEGEN_BITFIELD( 0, 12) ; //!< Scaled Region Horizontal Offset
1272 uint32_t Reserved301 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
1273 uint32_t ScaledRegionVerticalOffset : __CODEGEN_BITFIELD(16, 28) ; //!< Scaled Region Vertical Offset
1274 uint32_t Reserved317 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1275 };
1276 uint32_t Value;
1277 } DW9;
1278 union
1279 {
1280 //!< DWORD 10
1281 struct
1282 {
1283 uint32_t GrayBarPixelUG : __CODEGEN_BITFIELD( 0, 9) ; //!< Gray Bar Pixel - U/G
1284 uint32_t Reserved330 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved
1285 uint32_t GrayBarPixelYR : __CODEGEN_BITFIELD(16, 25) ; //!< Gray Bar Pixel - Y/R
1286 uint32_t Reserved346 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1287 };
1288 uint32_t Value;
1289 } DW10;
1290 union
1291 {
1292 //!< DWORD 11
1293 struct
1294 {
1295 uint32_t GrayBarPixelA : __CODEGEN_BITFIELD( 0, 9) ; //!< Gray Bar Pixel - A
1296 uint32_t Reserved362 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved
1297 uint32_t GrayBarPixelVB : __CODEGEN_BITFIELD(16, 25) ; //!< Gray Bar Pixel - V/B
1298 uint32_t Reserved378 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1299 };
1300 uint32_t Value;
1301 } DW11;
1302 union
1303 {
1304 //!< DWORD 12
1305 struct
1306 {
1307 uint32_t UvDefaultValueForUChannelForMonoInputSupport : __CODEGEN_BITFIELD( 0, 9) ; //!< UV Default value for U channel (For Mono Input Support)
1308 uint32_t Reserved394 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved
1309 uint32_t UvDefaultValueForVChannelForMonoInputSupport : __CODEGEN_BITFIELD(16, 25) ; //!< UV Default value for V channel (For Mono Input Support)
1310 uint32_t Reserved410 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1311 };
1312 uint32_t Value;
1313 } DW12;
1314 union
1315 {
1316 //!< DWORD 13
1317 struct
1318 {
1319 uint32_t AlphaDefaultValue : __CODEGEN_BITFIELD( 0, 9) ; //!< Alpha Default Value
1320 uint32_t Reserved426 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved
1321 };
1322 uint32_t Value;
1323 } DW13;
1324 union
1325 {
1326 //!< DWORD 14
1327 struct
1328 {
1329 uint32_t ScalingFactorHeight : __CODEGEN_BITFIELD( 0, 20) ; //!< SCALING_FACTOR_HEIGHT
1330 uint32_t Reserved469 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
1331 };
1332 uint32_t Value;
1333 } DW14;
1334 union
1335 {
1336 //!< DWORD 15
1337 struct
1338 {
1339 uint32_t ScalingFactorWidth : __CODEGEN_BITFIELD( 0, 20) ; //!< SCALING_FACTOR_WIDTH
1340 uint32_t Reserved501 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
1341 };
1342 uint32_t Value;
1343 } DW15;
1344 union
1345 {
1346 //!< DWORD 16
1347 struct
1348 {
1349 uint32_t Reserved512 ; //!< Reserved
1350 };
1351 uint32_t Value;
1352 } DW16;
1353 union
1354 {
1355 //!< DWORD 17
1356 struct
1357 {
1358 uint32_t Reserved544 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1359 uint32_t OutputFrameSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< Output Frame Surface Base Address
1360 };
1361 uint32_t Value;
1362 } DW17;
1363 union
1364 {
1365 //!< DWORD 18
1366 struct
1367 {
1368 uint32_t OutputFrameSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Output Frame Surface Base Address High
1369 uint32_t Reserved592 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1370 };
1371 uint32_t Value;
1372 } DW18;
1373 union
1374 {
1375 //!< DWORD 19
1376 struct
1377 {
1378 uint32_t Reserved608 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1379 uint32_t OutputFrameSurfaceBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< Output Frame Surface Base Address - Index to Memory Object Control State (MOCS) Tables
1380 uint32_t OutputFrameSurfaceBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< Output Frame Surface Base Address - Arbitration Priority Control
1381 uint32_t OutputFrameSurfaceBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Output Frame Surface Base Address - Memory Compression Enable
1382 uint32_t OutputFrameSurfaceBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< OUTPUT_FRAME_SURFACE_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1383 uint32_t Reserved619 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1384 uint32_t OutputFrameSurfaceBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< OUTPUT_FRAME_SURFACE_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1385 uint32_t OutputSurfaceTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< OUTPUT_SURFACE_TILED_MODE
1386 uint32_t Reserved623 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1387 };
1388 uint32_t Value;
1389 } DW19;
1390 union
1391 {
1392 //!< DWORD 20
1393 struct
1394 {
1395 uint32_t Reserved640 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1396 uint32_t AvsLineBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< AVS Line Buffer Surface Base Address
1397 };
1398 uint32_t Value;
1399 } DW20;
1400 union
1401 {
1402 //!< DWORD 21
1403 struct
1404 {
1405 uint32_t AvsLineBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< AVS Line Buffer Surface Base Address High
1406 uint32_t Reserved688 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1407 };
1408 uint32_t Value;
1409 } DW21;
1410 union
1411 {
1412 //!< DWORD 22
1413 struct
1414 {
1415 uint32_t Reserved704 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1416 uint32_t AvsLineBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< AVS Line Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1417 uint32_t AvsLineBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< AVS Line Buffer Base Address - Arbitration Priority Control
1418 uint32_t AvsLineBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1419 uint32_t AvsLineBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1420 uint32_t Reserved715 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1421 uint32_t AvsLineBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< AVS_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1422 uint32_t AvsLineBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< AVS_LINE_BUFFER_TILED_MODE
1423 uint32_t Reserved719 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1424 };
1425 uint32_t Value;
1426 } DW22;
1427 union
1428 {
1429 //!< DWORD 23
1430 struct
1431 {
1432 uint32_t Reserved736 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1433 uint32_t IefLineBufferSurfaceBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< IEF Line Buffer Surface Base Address
1434 };
1435 uint32_t Value;
1436 } DW23;
1437 union
1438 {
1439 //!< DWORD 24
1440 struct
1441 {
1442 uint32_t IefLineBufferSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< IEF Line Buffer Surface Base Address High
1443 uint32_t Reserved784 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1444 };
1445 uint32_t Value;
1446 } DW24;
1447 union
1448 {
1449 //!< DWORD 25
1450 struct
1451 {
1452 uint32_t Reserved800 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
1453 uint32_t IefLineBufferBaseAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< IEF Line Buffer Base Address - Index to Memory Object Control State (MOCS) Tables
1454 uint32_t IefLineBufferBaseAddressArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< IEF Line Buffer Base Address - Arbitration Priority Control
1455 uint32_t IefLineBufferBaseAddressMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1456 uint32_t IefLineBufferBaseAddressMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1457 uint32_t Reserved811 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
1458 uint32_t IefLineBufferBaseAddressRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< IEF_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1459 uint32_t IefLineBufferTiledMode : __CODEGEN_BITFIELD(13, 14) ; //!< IEF_LINE_BUFFER_TILED_MODE
1460 uint32_t Reserved815 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1461 };
1462 uint32_t Value;
1463 } DW25;
1464 union
1465 {
1466 //!< DWORD 26
1467 struct
1468 {
1469 uint32_t Reserved832 ; //!< Reserved
1470 };
1471 uint32_t Value;
1472 } DW26;
1473 union
1474 {
1475 //!< DWORD 27
1476 struct
1477 {
1478 uint32_t Reserved864 ; //!< Reserved
1479 };
1480 uint32_t Value;
1481 } DW27;
1482 union
1483 {
1484 //!< DWORD 28
1485 struct
1486 {
1487 uint32_t Reserved896 ; //!< Reserved
1488 };
1489 uint32_t Value;
1490 } DW28;
1491 union
1492 {
1493 //!< DWORD 29
1494 struct
1495 {
1496 uint32_t OutputSurfaceTileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< OUTPUT_SURFACE_TILE_WALK
1497 uint32_t OutputSurfaceTiled : __CODEGEN_BITFIELD( 1, 1) ; //!< OUTPUT_SURFACE_TILED
1498 uint32_t OutputSurfaceHalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< Output Surface Half Pitch For Chroma
1499 uint32_t OutputSurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Output Surface Pitch
1500 uint32_t Reserved948 : __CODEGEN_BITFIELD(20, 26) ; //!< Reserved
1501 uint32_t OutputSurfaceInterleaveChromaEnable : __CODEGEN_BITFIELD(27, 27) ; //!< Output Surface Interleave Chroma Enable
1502 uint32_t OutputSurfaceFormat : __CODEGEN_BITFIELD(28, 31) ; //!< Output Surface Format
1503 };
1504 uint32_t Value;
1505 } DW29;
1506 union
1507 {
1508 //!< DWORD 30
1509 struct
1510 {
1511 uint32_t OutputSurfaceYOffsetForU : __CODEGEN_BITFIELD( 0, 13) ; //!< Output Surface Y Offset For U
1512 uint32_t Reserved974 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1513 uint32_t OutputSurfaceXOffsetForU : __CODEGEN_BITFIELD(16, 29) ; //!< Output Surface X Offset For U
1514 uint32_t Reserved990 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1515 };
1516 uint32_t Value;
1517 } DW30;
1518 union
1519 {
1520 //!< DWORD 31
1521 struct
1522 {
1523 uint32_t OutputSurfaceYOffsetForV : __CODEGEN_BITFIELD( 0, 13) ; //!< Output Surface Y Offset For V
1524 uint32_t Reserved1006 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1525 uint32_t OutputSurfaceXOffsetForV : __CODEGEN_BITFIELD(16, 29) ; //!< Output Surface X Offset For V
1526 uint32_t Reserved1022 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1527 };
1528 uint32_t Value;
1529 } DW31;
1530 union
1531 {
1532 //!< DWORD 32
1533 struct
1534 {
1535 uint32_t Reserved1024 ; //!< Reserved
1536 };
1537 uint32_t Value;
1538 } DW32;
1539 union
1540 {
1541 //!< DWORD 33
1542 struct
1543 {
1544 uint32_t Reserved1056 ; //!< Reserved
1545 };
1546 uint32_t Value;
1547 } DW33;
1548
1549 //! \name Local enumerations
1550
1551 enum SUBOPCODEB
1552 {
1553 SUBOPCODEB_SFCSTATE = 1, //!< No additional details
1554 };
1555
1556 enum SUBOPCODEA
1557 {
1558 SUBOPCODEA_COMMON = 0, //!< No additional details
1559 };
1560
1561 enum MEDIA_COMMAND_OPCODE
1562 {
1563 MEDIA_COMMAND_OPCODE_MEDIAMISC = 10, //!< No additional details
1564 };
1565
1566 enum PIPELINE
1567 {
1568 PIPELINE_MEDIA = 2, //!< No additional details
1569 };
1570
1571 enum COMMAND_TYPE
1572 {
1573 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1574 };
1575
1576 //! \brief SFC_PIPE_MODE
1577 //! \details
1578 //! Note: for SFC Pipe mode set to VE-to-SFC AVS mode.
1579 //! IECP pipeline mode MUST be enabled.
1580 //! However, each sub-IECP feature can be turned on/off independently.
1581 enum SFC_PIPE_MODE
1582 {
1583 SFC_PIPE_MODE_UNNAMED0 = 0, //!< VD-to-SFC AVS
1584 SFC_PIPE_MODE_UNNAMED1 = 1, //!< VE-to-SFC AVS + IEF + Rotation
1585 SFC_PIPE_MODE_UNNAMED_4 = 4, //!< VE-to-SFC Integral Image
1586 };
1587
1588 //! \brief SFC_INPUT_CHROMA_SUB_SAMPLING
1589 //! \details
1590 //! This field shall be programmed according to video modes used in VDBOX.
1591 //! NOTE: SFC supports progressive input and output only (Interlaced/MBAFF
1592 //! is not supported).
1593 //! <table border="1">
1594 //! <tbody>
1595 //! <tr>
1596 //! <td>Video Mode</td>
1597 //! <td>Surface Format</td>
1598 //! <td>SFC Input Chroma Sub-Sampling</td>
1599 //! <td>VD/VE Input Ordering Mode</td>
1600 //! </tr>
1601 //! <tr>
1602 //! <td>VC1 w/o LF and w/o OS Note: VC1 LF applies for ILDB</td>
1603 //! <td>420 (NV12)</td>
1604 //! <td>1</td>
1605 //! <td>0</td>
1606 //! </tr>
1607 //! <tr>
1608 //! <td>VC1 w/ LF or w/ OS or w/ both Note: VC1 LF applies for ILDB</td>
1609 //! <td></td>
1610 //! <td>INVALID with SFC</td>
1611 //! <td>INVALID with SFC</td>
1612 //! </tr>
1613 //! <tr>
1614 //! <td>AVC w/o LF</td>
1615 //! <td>Monochrome</td>
1616 //! <td>0</td>
1617 //! <td>0</td>
1618 //! </tr>
1619 //! <tr>
1620 //! <td>AVC w/o LF</td>
1621 //! <td>420 (NV12)</td>
1622 //! <td>1</td>
1623 //! <td>0</td>
1624 //! </tr>
1625 //! <tr>
1626 //! <td>AVC with LF</td>
1627 //! <td>Monochrome</td>
1628 //! <td>0</td>
1629 //! <td>1</td>
1630 //! </tr>
1631 //! <tr>
1632 //! <td>AVC/VP8 with LF</td>
1633 //! <td>420 (NV12)</td>
1634 //! <td>1</td>
1635 //! <td>1</td>
1636 //! </tr>
1637 //! <tr>
1638 //! <td>VP8 w/o LF</td>
1639 //! <td>420 (NV12)</td>
1640 //! <td>1</td>
1641 //! <td>4</td>
1642 //! </tr>
1643 //! <tr>
1644 //! <td>JPEG (YUV Interleaved)</td>
1645 //! <td>Monochrome</td>
1646 //! <td>0</td>
1647 //! <td>2</td>
1648 //! </tr>
1649 //! <tr>
1650 //! <td>JPEG (YUV Interleaved)</td>
1651 //! <td>420</td>
1652 //! <td>1</td>
1653 //! <td>3</td>
1654 //! </tr>
1655 //! <tr>
1656 //! <td>JPEG (YUV Interleaved)</td>
1657 //! <td>422H_2Y</td>
1658 //! <td>2</td>
1659 //! <td>2</td>
1660 //! </tr>
1661 //! <tr>
1662 //! <td>JPEG (YUV Interleaved)</td>
1663 //! <td>422H_4Y</td>
1664 //! <td>2</td>
1665 //! <td>3</td>
1666 //! </tr>
1667 //! <tr>
1668 //! <td>JPEG (YUV Interleaved)</td>
1669 //! <td>444</td>
1670 //! <td>4</td>
1671 //! <td>2</td>
1672 //! </tr>
1673 //! </tbody>
1674 //! </table>
1675 //! This field shall be programmed according to Image enhancement modes used
1676 //! in VEBOX.
1677 //!
1678 //! <table border="1">
1679 //! <tbody>
1680 //! <tr>
1681 //! <td>VEBOX MODE</td>
1682 //! <td>Surface Format</td>
1683 //! <td>SFC Input Chroma Sub Sampling</td>
1684 //! <td>VD/VE Input Ordering Mode</td>
1685 //! </tr>
1686 //! <tr>
1687 //! <td>Legacy DN/DI/IECP features</td>
1688 //! <td>Monochrome</td>
1689 //! <td>0</td>
1690 //! <td>0</td>
1691 //! </tr>
1692 //! <tr>
1693 //! <td>Legacy DN/DI/IECP features</td>
1694 //! <td>420 (NV12)</td>
1695 //! <td>1</td>
1696 //! <td>0</td>
1697 //! </tr>
1698 //! <tr>
1699 //! <td>Legacy DN/DI/IECP features</td>
1700 //! <td>422H</td>
1701 //! <td>2</td>
1702 //! <td>0</td>
1703 //! </tr>
1704 //! <tr>
1705 //! <td>Legacy DN/DI/IECP features</td>
1706 //! <td>444</td>
1707 //! <td>4</td>
1708 //! <td>0</td>
1709 //! </tr>
1710 //! <tr>
1711 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1712 //! <td>Monochrome</td>
1713 //! <td>0</td>
1714 //! <td>1</td>
1715 //! </tr>
1716 //! <tr>
1717 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1718 //! <td>420 (NV12)</td>
1719 //! <td>1</td>
1720 //! <td>1</td>
1721 //! </tr>
1722 //! <tr>
1723 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1724 //! <td>422H</td>
1725 //! <td>2</td>
1726 //! <td>1</td>
1727 //! </tr>
1728 //! <tr>
1729 //! <td>Capture/Camera pipe enabled(Demosaic)</td>
1730 //! <td>444</td>
1731 //! <td>4</td>
1732 //! <td>1</td>
1733 //! </tr>
1734 //! </tbody>
1735 //! </table>
1736 enum SFC_INPUT_CHROMA_SUB_SAMPLING
1737 {
1738 SFC_INPUT_CHROMA_SUB_SAMPLING_400 = 0, //!< SFC to insert UV channels
1739 SFC_INPUT_CHROMA_SUB_SAMPLING_420 = 1, //!< No additional details
1740 SFC_INPUT_CHROMA_SUB_SAMPLING_422HORIZONATAL = 2, //!< VD: 2:1:1
1741 SFC_INPUT_CHROMA_SUB_SAMPLING_4_4_4PROGRESSIVEINTERLEAVED = 4, //!< No additional details
1742 };
1743
1744 //! \brief VDVE_INPUT_ORDERING_MODE
1745 //! \details
1746 //! <ul>
1747 //! <li>VD mode: (SFC pipe mode set as "0")</li>
1748 //! <li> VE mode: (pipe mode set as "1 and 4")</li>
1749 //! </ul>
1750 //! For values for each mode, please refer to the table below:
1751 enum VDVE_INPUT_ORDERING_MODE
1752 {
1753 VDVE_INPUT_ORDERING_MODE_UNNAMED0 = 0, //!< 16x16 block z-scan order - no shift
1754 //!< 8x4 block column order, 64 pixel column
1755 VDVE_INPUT_ORDERING_MODE_UNNAMED1 = 1, //!< 16x16 block z-scan order - 4 pixels shift upward
1756 //!< 4x4 block column order, 64 pixel column
1757 VDVE_INPUT_ORDERING_MODE_UNNAMED2 = 2, //!< 8x8 block jpeg z-scan order
1758 //!< 8x4 block column order, 128 pixel column
1759 VDVE_INPUT_ORDERING_MODE_UNNAMED3 = 3, //!< 16x16 block jpeg z-scan order
1760 //!< 4x4 block column order, 128 pixel column
1761 VDVE_INPUT_ORDERING_MODE_UNNAMED_4 = 4, //!< 16x16 block VP8 row-scan order - no shift
1762 };
1763
1764 //! \brief OUTPUT_SURFACE_FORMAT_TYPE
1765 //! \details
1766 //! SFC output surface format type.
1767 enum OUTPUT_SURFACE_FORMAT_TYPE
1768 {
1769 OUTPUT_SURFACE_FORMAT_TYPE_AYUV = 0, //!< AYUV 4:4:4 (8:8:8:8 MSB-A:Y:U:V)
1770 OUTPUT_SURFACE_FORMAT_TYPE_A8B8G8R8 = 1, //!< RGBA8 4:4:4:4 (8:8:8:8 MSB-A:B:G:R)
1771 OUTPUT_SURFACE_FORMAT_TYPE_A2R10G10B10 = 2, //!< RGBA10 10:10:10:2 (2:10:10:10 MSB-A:R:G:B)
1772 OUTPUT_SURFACE_FORMAT_TYPE_R5G6B5 = 3, //!< RGB 5:6:5 (5:6:5 MSB-R:G:B)
1773 OUTPUT_SURFACE_FORMAT_TYPE_NV12 = 4, //!< Planar NV12 4:2:0 8-bit
1774 OUTPUT_SURFACE_FORMAT_TYPE_YUYV = 5, //!< Packed YUYV 4:2:2 8-bit
1775 OUTPUT_SURFACE_FORMAT_TYPE_UYVY = 6, //!< Packed UYVY 4:2:2 8-bit
1776 OUTPUT_SURFACE_FORMAT_TYPE_INTEGRAL_32 = 7, //!< Packed integral Image 32-bit
1777 OUTPUT_SURFACE_FORMAT_TYPE_INTEGRAL_64 = 8, //!< Packed integral Image 64-bit
1778 OUTPUT_SURFACE_FORMAT_TYPE_P016 = 9, //!< P016 format
1779 };
1780
1781 //! \brief RGBA_CHANNEL_SWAP_ENABLE
1782 //! \details
1783 //! This bit should only be used with RGB output formats and CSC conversion
1784 //! is turned on. When this bit is set,
1785 //! the R and B channels are swapped into the output RGB channels as
1786 //! shown in the following table:
1787 //! <table>
1788 //! <tr>
1789 //! <th>Name</th>
1790 //! <th>Bits</th>
1791 //! <th>MSB Color Order</th>
1792 //! <th>Swapped</th>
1793 //! </tr>
1794 //! <tr>
1795 //! <td>RGBA8</td>
1796 //! <td>8:8:8:8</td>
1797 //! <td>A:B:G:R</td>
1798 //! <td>A:R:G:B</td>
1799 //! </tr>
1800 //! <tr>
1801 //! <td>RGBA10</td>
1802 //! <td>2:10:10:10</td>
1803 //! <td>A:R:G:B</td>
1804 //! <td>A:B:G:R</td>
1805 //! </tr>
1806 //! <tr>
1807 //! <td>RGB 5:6:5</td>
1808 //! <td>5:6:5</td>
1809 //! <td>R:G:B</td>
1810 //! <td>B:G:R</td>
1811 //! </tr>
1812 //! </table>
1813 enum RGBA_CHANNEL_SWAP_ENABLE
1814 {
1815 RGBA_CHANNEL_SWAP_ENABLE_UNNAMED0 = 0, //!< No additional details
1816 };
1817
1818 //! \brief OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION
1819 //! \details
1820 //! This field specifies the fractional position of the bilinear filter for
1821 //! chroma downsampling. In the Y-axis.
1822 enum OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION
1823 {
1824 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_08_LEFTFULLPIXEL = 0, //!< 0 (fraction_in_integer)
1825 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_18 = 1, //!< 1 (fraction_in_integer)
1826 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_1_4_28 = 2, //!< 2 (fraction_in_integer)
1827 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_38 = 3, //!< 3 (fraction_in_integer)
1828 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_12_48 = 4, //!< 4 (fraction_in_integer)
1829 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_58 = 5, //!< 5 (fraction_in_integer)
1830 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_3_4_68 = 6, //!< 6 (fraction_in_integer)
1831 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_78 = 7, //!< 7 (fraction_in_integer)
1832 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_VERTICAL_DIRECTION_88 = 8, //!< No additional details
1833 };
1834
1835 //! \brief OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION
1836 //! \details
1837 //! This field specifies the fractional position of the bilinear filter for
1838 //! chroma downsampling. In the X-axis.
1839 enum OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION
1840 {
1841 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_08_LEFTFULLPIXEL = 0, //!< 0 (fraction_in_integer)
1842 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_18 = 1, //!< 1 (fraction_in_integer)
1843 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_1_4_28 = 2, //!< 2 (fraction_in_integer)
1844 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_38 = 3, //!< 3 (fraction_in_integer)
1845 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_12_48 = 4, //!< 4 (fraction_in_integer)
1846 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_58 = 5, //!< 5 (fraction_in_integer)
1847 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_3_4_68 = 6, //!< 6 (fraction_in_integer)
1848 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_78 = 7, //!< 7 (fraction_in_integer)
1849 OUTPUT_CHROMA_DOWNSAMPLING_CO_SITING_POSITION_HORIZONTAL_DIRECTION_88 = 8, //!< No additional details
1850 };
1851
1852 //! \brief IEF_ENABLE
1853 //! \details
1854 //! Restriction : For Integral Image Mode and VD Mode, this field is
1855 //! Reserved and MBZ.
1856 enum IEF_ENABLE
1857 {
1858 IEF_ENABLE_DISABLE = 0, //!< IEF Filter is Disabled
1859 IEF_ENABLE_ENABLE = 1, //!< IEF Filter is Enabled
1860 };
1861
1862 //! \brief IEF4SMOOTH_ENABLE_
1863 //! \details
1864 //! Restriction : For Integral Image Mode, this field is Reserved and MBZ.
1865 enum IEF4SMOOTH_ENABLE_
1866 {
1867 IEF4SMOOTH_ENABLE_UNNAMED0 = 0, //!< IEF is operating as a content adaptive detail filter based on 5x5 region.
1868 IEF4SMOOTH_ENABLE_UNNAMED1 = 1, //!< IEF is operating as a content adaptive smooth filter based on 3x3 region
1869 };
1870
1871 //! \brief AVS_FILTER_MODE
1872 //! \details
1873 //! In VD-to-SFC mode, value of 1 is not allowed.
1874 enum AVS_FILTER_MODE
1875 {
1876 AVS_FILTER_MODE_5X5POLY_PHASEFILTERBILINEAR_ADAPTIVE = 0, //!< No additional details
1877 AVS_FILTER_MODE_8X8POLY_PHASEFILTERBILINEAR_ADAPTIVE = 1, //!< No additional details
1878 AVS_FILTER_MODE_BILINEARFILTERONLY = 2, //!< No additional details
1879 };
1880
1881 enum ADAPTIVE_FILTER_FOR_ALL_CHANNELS
1882 {
1883 ADAPTIVE_FILTER_FOR_ALL_CHANNELS_DISABLEADAPTIVEFILTERONUVRBCHANNELS = 0, //!< No additional details
1884 ADAPTIVE_FILTER_FOR_ALL_CHANNELS_ENABLEADAPTIVEFILTERONUVRBCHANNELS = 1, //!< 8-tap Adaptive Filter Mode is on
1885 };
1886
1887 enum AVS_SCALING_ENABLE
1888 {
1889 AVS_SCALING_ENABLE_DISABLE = 0, //!< The scaling factor is ignored and a scaling ratio of 1:1 is assumed.
1890 AVS_SCALING_ENABLE_ENABLE = 1, //!< No additional details
1891 };
1892
1893 enum BYPASS_Y_ADAPTIVE_FILTERING
1894 {
1895 BYPASS_Y_ADAPTIVE_FILTERING_ENABLEYADAPTIVEFILTERING = 0, //!< No additional details
1896 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.
1897 };
1898
1899 enum BYPASS_X_ADAPTIVE_FILTERING
1900 {
1901 BYPASS_X_ADAPTIVE_FILTERING_ENABLEXADAPTIVEFILTERING = 0, //!< No additional details
1902 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.
1903 };
1904
1905 //! \brief ROTATION_MODE
1906 //! \details
1907 //! <p>SFC rotation (90, 180 and 270) should be set only on VEBox input mode
1908 //! and SFC output set to TileY.</p>
1909 //! Restriction:
1910 //! <ul>
1911 //! <li>For Integral Image Mode, this field is Reserved and MBZ.</li>
1912 //! <li>For VDBox Mode, this field is Reserved and MBZ.</li>
1913 //! <li>For linear or TileX SFC output, this field is Reserved and
1914 //! MBZ.</li>
1915 //! </ul>
1916 enum ROTATION_MODE
1917 {
1918 ROTATION_MODE_0_DEGREES = 0, //!< No additional details
1919 ROTATION_MODE_90CLOCKWISE = 1, //!< No additional details
1920 ROTATION_MODE_180CLOCKWISE = 2, //!< No additional details
1921 ROTATION_MODE_270CLOCKWISE = 3, //!< No additional details
1922 };
1923
1924 //! \brief BITDEPTH
1925 //! \details
1926 //! This field is valid only for output formats P016. This field is used to
1927 //! specify how many of the LSB bits have valid data.
1928 enum BITDEPTH
1929 {
1930 BITDEPTH_10BITFORMAT = 0, //!< Higher 10 bits are valid and lower 6 bits are 0
1931 };
1932
1933 //! \brief SCALING_FACTOR_HEIGHT
1934 //! \details
1935 //! <p>This field specifies the scaling ratio of the vertical sizes between
1936 //! the crop/source region and the scaled region.
1937 //! The destination pixel coordinate, y-axis, is multiplied with this
1938 //! scaling factor to mapping back to the source input pixel coordinate.</p>
1939 //! <p>The field specifies the ratio of crop height resolution/ scaled
1940 //! height resolution. This implies 1/<i>sf<sub>u</sub></i> in the
1941 //! equation.</p>
1942 enum SCALING_FACTOR_HEIGHT
1943 {
1944 SCALING_FACTOR_HEIGHT_UNNAMED0 = 0, //!< Reserved
1945 };
1946
1947 //! \brief SCALING_FACTOR_WIDTH
1948 //! \details
1949 //! <p>This field specifies the scaling ratio of the horizontal sizes
1950 //! between the crop/source region and the scaled region.
1951 //! The destination pixel coordinate, x-axis, is multiplied with this
1952 //! scaling factor to mapping back to the source input pixel coordinate.
1953 //! </p>
1954 //! <p>The field specifies the ratio of crop width resolution/ scaled
1955 //! width resolution. This implies 1/<i>sf<sub>u</sub></i> in the equations
1956 //! above.</p>
1957 enum SCALING_FACTOR_WIDTH
1958 {
1959 SCALING_FACTOR_WIDTH_UNNAMED0 = 0, //!< Reserved
1960 };
1961
1962 //! \brief OUTPUT_FRAME_SURFACE_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1963 //! \details
1964 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
1965 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
1966 //! vertical from horizontal compression. Please refer to vol1a</span><b
1967 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
1968 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
1969 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
1970 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height:
1971 //! normal;">media Memory Compression for more details.</span>
1972 enum OUTPUT_FRAME_SURFACE_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
1973 {
1974 OUTPUT_FRAME_SURFACE_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSION = 0, //!< No additional details
1975 OUTPUT_FRAME_SURFACE_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSION = 1, //!< No additional details
1976 };
1977
1978 //! \brief OUTPUT_FRAME_SURFACE_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1979 //! \details
1980 //! This must be set to 0
1981 enum OUTPUT_FRAME_SURFACE_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1982 {
1983 OUTPUT_FRAME_SURFACE_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_DISABLE = 0, //!< This field must be programmed to 0
1984 };
1985
1986 //! \brief OUTPUT_SURFACE_TILED_MODE
1987 //! \details
1988 //! <b>For Media Surfaces:</b>
1989 //! This field specifies the tiled resource mode.
1990 enum OUTPUT_SURFACE_TILED_MODE
1991 {
1992 OUTPUT_SURFACE_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
1993 OUTPUT_SURFACE_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1994 OUTPUT_SURFACE_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1995 };
1996
1997 //! \brief AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
1998 //! \details
1999 //! This bit control memory compression for this surface
2000 enum AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2001 {
2002 AVS_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2003 };
2004
2005 //! \brief AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2006 //! \details
2007 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2008 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2009 //! vertical from horizontal compression. Please refer to vol1a </span><b
2010 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2011 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2012 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2013 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height:
2014 //! normal;"> media Memory Compression for more details.</span>
2015 enum AVS_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2016 {
2017 AVS_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
2018 };
2019
2020 //! \brief AVS_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2021 //! \details
2022 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2023 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2024 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2025 //! or to LLC.</span>
2026 enum AVS_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2027 {
2028 AVS_LINE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2029 };
2030
2031 //! \brief AVS_LINE_BUFFER_TILED_MODE
2032 //! \details
2033 //! <b>For Media Surfaces:</b>
2034 //! This field specifies the tiled resource mode.
2035 enum AVS_LINE_BUFFER_TILED_MODE
2036 {
2037 AVS_LINE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2038 AVS_LINE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2039 AVS_LINE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2040 };
2041
2042 //! \brief IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2043 //! \details
2044 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2045 //! font-size: 13.3333330154419px; line-height: normal;">Memory compression
2046 //! is not supported for this surface</span></p>
2047 //! <p><span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2048 //! font-size: 13.3333330154419px; line-height: normal;">Must be
2049 //! 0.</span></p>
2050 //! <p></p>
2051 enum IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_ENABLE
2052 {
2053 IEF_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details
2054 };
2055
2056 //! \brief IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2057 //! \details
2058 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2059 //! font-size: 13.3333330154419px; line-height: normal;">Distinguishes
2060 //! vertical from horizontal compression. Please refer to vol1a </span><b
2061 //! style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2062 //! font-size: 13.3333330154419px; line-height: normal;">Memory Data Formats
2063 //! chapter - section</b><span style="color: rgb(35, 35, 35); font-family:
2064 //! Arial, sans-serif; font-size: 13.3333330154419px; line-height:
2065 //! normal;"> media Memory Compression for more details.</span>
2066 enum IEF_LINE_BUFFER_BASE_ADDRESS__MEMORY_COMPRESSION_MODE
2067 {
2068 IEF_LINE_BUFFER_BASE_ADDRESS_MEMORY_COMPRESSION_MODE_UNNAMED0 = 0, //!< No additional details
2069 };
2070
2071 //! \brief IEF_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2072 //! \details
2073 //! <span style="color: rgb(35, 35, 35); font-family: Arial, sans-serif;
2074 //! font-size: 13.3333330154419px; line-height: normal;">This field controls
2075 //! if the Row Store is going to store inside Media Cache (rowstore cache)
2076 //! or to LLC.</span>
2077 enum IEF_LINE_BUFFER_BASE_ADDRESS__ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
2078 {
2079 IEF_LINE_BUFFER_BASE_ADDRESS_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_LLC = 0, //!< Buffer going to LLC
2080 };
2081
2082 //! \brief IEF_LINE_BUFFER_TILED_MODE
2083 //! \details
2084 //! <b>For Media Surfaces:</b>
2085 //! This field specifies the tiled resource mode.
2086 enum IEF_LINE_BUFFER_TILED_MODE
2087 {
2088 IEF_LINE_BUFFER_TILED_MODE_TRMODENONE = 0, //!< No tiled resource
2089 IEF_LINE_BUFFER_TILED_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
2090 IEF_LINE_BUFFER_TILED_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
2091 };
2092
2093 //! \brief OUTPUT_SURFACE_TILE_WALK
2094 //! \details
2095 //! This field specifies the type of memory tiling (XMajor or YMajor)
2096 //! employed to tile this surface. See <i>Memory Interface Functions</i> for
2097 //! details on memory tiling and restrictions.
2098 enum OUTPUT_SURFACE_TILE_WALK
2099 {
2100 OUTPUT_SURFACE_TILE_WALK_TILEWALKXMAJOR = 0, //!< No additional details
2101 OUTPUT_SURFACE_TILE_WALK_TILEWALKYMAJOR = 1, //!< No additional details
2102 };
2103
2104 //! \brief OUTPUT_SURFACE_TILED
2105 //! \details
2106 //! This field specifies whether the surface is tiled.
2107 enum OUTPUT_SURFACE_TILED
2108 {
2109 OUTPUT_SURFACE_TILED_FALSE = 0, //!< Linear
2110 OUTPUT_SURFACE_TILED_TRUE = 1, //!< Tiled
2111 };
2112
2113 //! \name Initializations
2114
2115 //! \brief Explicit member initialization function
2116 SFC_STATE_CMD();
2117
2118 static const size_t dwSize = 34;
2119 static const size_t byteSize = 136;
2120 };
2121
2122 //!
2123 //! \brief SFC_AVS_LUMA_Coeff_Table
2124 //! \details
2125 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
2126 //! each frame once the lock request is granted.
2127 //!
2128 struct SFC_AVS_LUMA_Coeff_Table_CMD
2129 {
2130 union
2131 {
2132 //!< DWORD 0
2133 struct
2134 {
2135 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2136 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2137 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
2138 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
2139 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
2140 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2141 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2142 };
2143 uint32_t Value;
2144 } DW0;
2145 union
2146 {
2147 //!< DWORD 1
2148 struct
2149 {
2150 uint32_t Table0XFilterCoefficientN0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],0]
2151 uint32_t Table0YFilterCoefficientN0 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],0]
2152 uint32_t Table0XFilterCoefficientN1 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],1]
2153 uint32_t Table0YFilterCoefficientN1 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],1]
2154 };
2155 uint32_t Value;
2156 } DW1;
2157 union
2158 {
2159 //!< DWORD 2
2160 struct
2161 {
2162 uint32_t Table0XFilterCoefficientN2 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],2]
2163 uint32_t Table0YFilterCoefficientN2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],2]
2164 uint32_t Table0XFilterCoefficientN3 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],3]
2165 uint32_t Table0YFilterCoefficientN3 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],3]
2166 };
2167 uint32_t Value;
2168 } DW2;
2169 union
2170 {
2171 //!< DWORD 3
2172 struct
2173 {
2174 uint32_t Table0XFilterCoefficientN4 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],4]
2175 uint32_t Table0YFilterCoefficientN4 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],4]
2176 uint32_t Table0XFilterCoefficientN5 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],5]
2177 uint32_t Table0YFilterCoefficientN5 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],5]
2178 };
2179 uint32_t Value;
2180 } DW3;
2181 union
2182 {
2183 //!< DWORD 4
2184 struct
2185 {
2186 uint32_t Table0XFilterCoefficientN6 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 0X Filter Coefficient[[n],6]
2187 uint32_t Table0YFilterCoefficientN6 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 0Y Filter Coefficient[[n],6]
2188 uint32_t Table0XFilterCoefficientN7 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 0X Filter Coefficient[[n],7]
2189 uint32_t Table0YFilterCoefficientN7 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 0Y Filter Coefficient[[n],7]
2190 };
2191 uint32_t Value;
2192 } DW4;
2193
2194 uint32_t FilterCoefficients[124]; //!< Filter Coefficients
2195
2196 //! \name Local enumerations
2197
2198 enum SUBOPCODEB
2199 {
2200 SUBOPCODEB_SFCAVSLUMACOEFFTABLE = 5, //!< No additional details
2201 };
2202
2203 enum SUBOPCODEA
2204 {
2205 SUBOPCODEA_COMMON = 0, //!< No additional details
2206 };
2207
2208 enum MEDIA_COMMAND_OPCODE
2209 {
2210 MEDIA_COMMAND_OPCODE_MEDIAMISC = 10, //!< No additional details
2211 };
2212
2213 enum PIPELINE
2214 {
2215 PIPELINE_MEDIA = 2, //!< No additional details
2216 };
2217
2218 enum COMMAND_TYPE
2219 {
2220 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2221 };
2222
2223 //! \name Initializations
2224
2225 //! \brief Explicit member initialization function
2226 SFC_AVS_LUMA_Coeff_Table_CMD();
2227
2228 static const size_t dwSize = 129;
2229 static const size_t byteSize = 516;
2230 };
2231
2232 //!
2233 //! \brief SFC_AVS_CHROMA_Coeff_Table
2234 //! \details
2235 //! This command is sent from VDBOX/VEBOX to SFC pipeline at the start of
2236 //! each frame once the lock request is granted.
2237 //!
2238 struct SFC_AVS_CHROMA_Coeff_Table_CMD
2239 {
2240 union
2241 {
2242 //!< DWORD 0
2243 struct
2244 {
2245 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2246 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2247 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
2248 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA
2249 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE
2250 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2251 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2252 };
2253 uint32_t Value;
2254 } DW0;
2255 union
2256 {
2257 //!< DWORD 1
2258 struct
2259 {
2260 uint32_t Table1XFilterCoefficientN2 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 1X Filter Coefficient[[n],2]
2261 uint32_t Table1YFilterCoefficientN2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 1Y Filter Coefficient[[n],2]
2262 uint32_t Table1XFilterCoefficientN3 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 1X Filter Coefficient[[n],3]
2263 uint32_t Table1YFilterCoefficientN3 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 1Y Filter Coefficient[[n],3]
2264 };
2265 uint32_t Value;
2266 } DW1;
2267 union
2268 {
2269 //!< DWORD 2
2270 struct
2271 {
2272 uint32_t Table1XFilterCoefficientN4 : __CODEGEN_BITFIELD( 0, 7) ; //!< Table 1X Filter Coefficient[[n],4]
2273 uint32_t Table1YFilterCoefficientN4 : __CODEGEN_BITFIELD( 8, 15) ; //!< Table 1Y Filter Coefficient[[n],4]
2274 uint32_t Table1XFilterCoefficientN5 : __CODEGEN_BITFIELD(16, 23) ; //!< Table 1X Filter Coefficient[[n],5]
2275 uint32_t Table1YFilterCoefficientN5 : __CODEGEN_BITFIELD(24, 31) ; //!< Table 1Y Filter Coefficient[[n],5]
2276 };
2277 uint32_t Value;
2278 } DW2;
2279
2280 uint32_t FilterCoefficients[62]; //!< Filter Coefficients
2281
2282 //! \name Local enumerations
2283
2284 enum SUBOPCODEB
2285 {
2286 SUBOPCODEB_SFCAVSCHROMACOEFFTABLE = 6, //!< No additional details
2287 };
2288
2289 enum SUBOPCODEA
2290 {
2291 SUBOPCODEA_COMMON = 0, //!< No additional details
2292 };
2293
2294 enum MEDIA_COMMAND_OPCODE
2295 {
2296 MEDIA_COMMAND_OPCODE_MEDIAMISC = 10, //!< No additional details
2297 };
2298
2299 enum PIPELINE
2300 {
2301 PIPELINE_MEDIA = 2, //!< No additional details
2302 };
2303
2304 enum COMMAND_TYPE
2305 {
2306 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2307 };
2308
2309 //! \name Initializations
2310
2311 //! \brief Explicit member initialization function
2312 SFC_AVS_CHROMA_Coeff_Table_CMD();
2313
2314 static const size_t dwSize = 65;
2315 static const size_t byteSize = 260;
2316 };
2317
2318 };
2319
2320 #pragma pack()
2321
2322 #endif // __MHW_SFC_HWCMD_G11_X_H__