Debian Codegraph @

media_driver/agnostic/gen9/hw/mhw_sfc_hwcmd_g9_X.h

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