Debian Codegraph @

media_driver/agnostic/gen8/hw/mhw_vebox_hwcmd_g8_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_vebox_hwcmd_g8_X.h
24 //! \brief Auto-generated constructors for MHW and states.
25 //! \details This file may not be included outside of g8_X as other components
26 //! should use MHW interface to interact with MHW commands and states.
27 //!
28 #ifndef __MHW_VEBOX_HWCMD_G8_X_H__
29 #define __MHW_VEBOX_HWCMD_G8_X_H__
30
31 #pragma once
32
33 #include <cstdint>
34 #include <cstddef>
35
36 #pragma pack(1)
37
38 class mhw_vebox_g8_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 VEBOX_ACE_LACE_STATE
51 //! \details
52 //! This state structure contains the IECP State Table Contents for ACE
53 //! state.
54 //!
55 struct VEBOX_ACE_LACE_STATE_CMD
56 {
57 union
58 {
59 //!< DWORD 0
60 struct
61 {
62 uint32_t AceEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< ACE Enable
63 uint32_t FullImageHistogram : __CODEGEN_BITFIELD( 1, 1) ; //!< FULL_IMAGE_HISTOGRAM
64 uint32_t SkinThreshold : __CODEGEN_BITFIELD( 2, 6) ; //!< SKIN_THRESHOLD
65 uint32_t Reserved7 : __CODEGEN_BITFIELD( 7, 31) ; //!< Reserved
66 };
67 uint32_t Value;
68 } DW0;
69 union
70 {
71 //!< DWORD 1
72 struct
73 {
74 uint32_t Ymin : __CODEGEN_BITFIELD( 0, 7) ; //!< YMIN
75 uint32_t Y1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Y1
76 uint32_t Y2 : __CODEGEN_BITFIELD(16, 23) ; //!< Y2
77 uint32_t Y3 : __CODEGEN_BITFIELD(24, 31) ; //!< Y3
78 };
79 uint32_t Value;
80 } DW1;
81 union
82 {
83 //!< DWORD 2
84 struct
85 {
86 uint32_t Y4 : __CODEGEN_BITFIELD( 0, 7) ; //!< Y4
87 uint32_t Y5 : __CODEGEN_BITFIELD( 8, 15) ; //!< Y5
88 uint32_t Y6 : __CODEGEN_BITFIELD(16, 23) ; //!< Y6
89 uint32_t Y7 : __CODEGEN_BITFIELD(24, 31) ; //!< Y7
90 };
91 uint32_t Value;
92 } DW2;
93 union
94 {
95 //!< DWORD 3
96 struct
97 {
98 uint32_t Y8 : __CODEGEN_BITFIELD( 0, 7) ; //!< Y8
99 uint32_t Y9 : __CODEGEN_BITFIELD( 8, 15) ; //!< Y9
100 uint32_t Y10 : __CODEGEN_BITFIELD(16, 23) ; //!< Y10
101 uint32_t Ymax : __CODEGEN_BITFIELD(24, 31) ; //!< YMAX
102 };
103 uint32_t Value;
104 } DW3;
105 union
106 {
107 //!< DWORD 4
108 struct
109 {
110 uint32_t B1 : __CODEGEN_BITFIELD( 0, 7) ; //!< B1
111 uint32_t B2 : __CODEGEN_BITFIELD( 8, 15) ; //!< B2
112 uint32_t B3 : __CODEGEN_BITFIELD(16, 23) ; //!< B3
113 uint32_t B4 : __CODEGEN_BITFIELD(24, 31) ; //!< B4
114 };
115 uint32_t Value;
116 } DW4;
117 union
118 {
119 //!< DWORD 5
120 struct
121 {
122 uint32_t B5 : __CODEGEN_BITFIELD( 0, 7) ; //!< B5
123 uint32_t B6 : __CODEGEN_BITFIELD( 8, 15) ; //!< B6
124 uint32_t B7 : __CODEGEN_BITFIELD(16, 23) ; //!< B7
125 uint32_t B8 : __CODEGEN_BITFIELD(24, 31) ; //!< B8
126 };
127 uint32_t Value;
128 } DW5;
129 union
130 {
131 //!< DWORD 6
132 struct
133 {
134 uint32_t B9 : __CODEGEN_BITFIELD( 0, 7) ; //!< B9
135 uint32_t B10 : __CODEGEN_BITFIELD( 8, 15) ; //!< B10
136 uint32_t Reserved208 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
137 };
138 uint32_t Value;
139 } DW6;
140 union
141 {
142 //!< DWORD 7
143 struct
144 {
145 uint32_t S0 : __CODEGEN_BITFIELD( 0, 10) ; //!< S0
146 uint32_t Reserved235 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
147 uint32_t S1 : __CODEGEN_BITFIELD(16, 26) ; //!< S1
148 uint32_t Reserved251 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
149 };
150 uint32_t Value;
151 } DW7;
152 union
153 {
154 //!< DWORD 8
155 struct
156 {
157 uint32_t S2 : __CODEGEN_BITFIELD( 0, 10) ; //!< S2
158 uint32_t Reserved267 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
159 uint32_t S3 : __CODEGEN_BITFIELD(16, 26) ; //!< S3
160 uint32_t Reserved283 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
161 };
162 uint32_t Value;
163 } DW8;
164 union
165 {
166 //!< DWORD 9
167 struct
168 {
169 uint32_t S4 : __CODEGEN_BITFIELD( 0, 10) ; //!< S4
170 uint32_t Reserved299 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
171 uint32_t S5 : __CODEGEN_BITFIELD(16, 26) ; //!< S5
172 uint32_t Reserved315 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
173 };
174 uint32_t Value;
175 } DW9;
176 union
177 {
178 //!< DWORD 10
179 struct
180 {
181 uint32_t S6 : __CODEGEN_BITFIELD( 0, 10) ; //!< S6
182 uint32_t Reserved331 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
183 uint32_t S7 : __CODEGEN_BITFIELD(16, 26) ; //!< S7
184 uint32_t Reserved347 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
185 };
186 uint32_t Value;
187 } DW10;
188 union
189 {
190 //!< DWORD 11
191 struct
192 {
193 uint32_t S8 : __CODEGEN_BITFIELD( 0, 10) ; //!< S8
194 uint32_t Reserved363 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
195 uint32_t S9 : __CODEGEN_BITFIELD(16, 26) ; //!< S9
196 uint32_t Reserved379 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
197 };
198 uint32_t Value;
199 } DW11;
200 union
201 {
202 //!< DWORD 12
203 struct
204 {
205 uint32_t S10 : __CODEGEN_BITFIELD( 0, 10) ; //!< S10
206 uint32_t Reserved395 : __CODEGEN_BITFIELD(11, 31) ; //!< Reserved
207 };
208 uint32_t Value;
209 } DW12;
210
211 //! \name Local enumerations
212
213 //! \brief FULL_IMAGE_HISTOGRAM
214 //! \details
215 //! Used to ignore the area of interest for full image histogram. This
216 //! applies to all statistics that are affected by AOI (Area of Interest).
217 enum FULL_IMAGE_HISTOGRAM
218 {
219 FULL_IMAGE_HISTOGRAM_UNNAMED0 = 0, //!< No additional details
220 };
221
222 //! \brief SKIN_THRESHOLD
223 //! \details
224 //! Used for Y analysis (min/max) for pixels which are higher than skin
225 //! threshold.
226 enum SKIN_THRESHOLD
227 {
228 SKIN_THRESHOLD_UNNAMED26 = 26, //!< No additional details
229 };
230
231 //! \brief YMIN
232 //! \details
233 //! The value of the y_pixel for point 0 in PWL.
234 enum YMIN
235 {
236 YMIN_UNNAMED16 = 16, //!< No additional details
237 };
238
239 //! \brief Y1
240 //! \details
241 //! The value of the y_pixel for point 1 in PWL.
242 enum Y1
243 {
244 Y1_UNNAMED36 = 36, //!< No additional details
245 };
246
247 //! \brief Y2
248 //! \details
249 //! The value of the y_pixel for point 2 in PWL.
250 enum Y2
251 {
252 Y2_UNNAMED56 = 56, //!< No additional details
253 };
254
255 //! \brief Y3
256 //! \details
257 //! The value of the y_pixel for point 3 in PWL.
258 enum Y3
259 {
260 Y3_UNNAMED76 = 76, //!< No additional details
261 };
262
263 //! \brief Y4
264 //! \details
265 //! The value of the y_pixel for point 4 in PWL.
266 enum Y4
267 {
268 Y4_UNNAMED96 = 96, //!< No additional details
269 };
270
271 //! \brief Y5
272 //! \details
273 //! The value of the y_pixel for point 5 in PWL.
274 enum Y5
275 {
276 Y5_UNNAMED116 = 116, //!< No additional details
277 };
278
279 //! \brief Y6
280 //! \details
281 //! The value of the y_pixel for point 6 in PWL.
282 enum Y6
283 {
284 Y6_UNNAMED136 = 136, //!< No additional details
285 };
286
287 //! \brief Y7
288 //! \details
289 //! The value of the y_pixel for point 7 in PWL.
290 enum Y7
291 {
292 Y7_UNNAMED156 = 156, //!< No additional details
293 };
294
295 //! \brief Y8
296 //! \details
297 //! The value of the y_pixel for point 8 in PWL.
298 enum Y8
299 {
300 Y8_UNNAMED176 = 176, //!< No additional details
301 };
302
303 //! \brief Y9
304 //! \details
305 //! The value of the y_pixel for point 9 in PWL.
306 enum Y9
307 {
308 Y9_UNNAMED196 = 196, //!< No additional details
309 };
310
311 //! \brief Y10
312 //! \details
313 //! The value of the y_pixel for point 10 in PWL.
314 enum Y10
315 {
316 Y10_UNNAMED216 = 216, //!< No additional details
317 };
318
319 //! \brief YMAX
320 //! \details
321 //! The value of the y_pixel for point 11 in PWL.
322 enum YMAX
323 {
324 YMAX_UNNAMED235 = 235, //!< No additional details
325 };
326
327 //! \brief B1
328 //! \details
329 //! The value of the bias for point 1 in PWL.
330 enum B1
331 {
332 B1_UNNAMED36 = 36, //!< No additional details
333 };
334
335 //! \brief B2
336 //! \details
337 //! The value of the bias for point 2 in PWL.
338 enum B2
339 {
340 B2_UNNAMED56 = 56, //!< No additional details
341 };
342
343 //! \brief B3
344 //! \details
345 //! The value of the bias for point 3 in PWL.
346 enum B3
347 {
348 B3_UNNAMED76 = 76, //!< No additional details
349 };
350
351 //! \brief B4
352 //! \details
353 //! The value of the bias for point 4 in PWL.
354 enum B4
355 {
356 B4_UNNAMED96 = 96, //!< No additional details
357 };
358
359 //! \brief B5
360 //! \details
361 //! The value of the bias for point 5 in PWL.
362 enum B5
363 {
364 B5_UNNAMED116 = 116, //!< No additional details
365 };
366
367 //! \brief B6
368 //! \details
369 //! The value of the bias for point 6 in PWL.
370 enum B6
371 {
372 B6_UNNAMED136 = 136, //!< No additional details
373 };
374
375 //! \brief B7
376 //! \details
377 //! The value of the bias for point 7 in PWL.
378 enum B7
379 {
380 B7_UNNAMED156 = 156, //!< No additional details
381 };
382
383 //! \brief B8
384 //! \details
385 //! The value of the bias for point 8 in PWL.
386 enum B8
387 {
388 B8_UNNAMED176 = 176, //!< No additional details
389 };
390
391 //! \brief B9
392 //! \details
393 //! The value of the bias for point 9 in PWL.
394 enum B9
395 {
396 B9_UNNAMED196 = 196, //!< No additional details
397 };
398
399 //! \brief B10
400 //! \details
401 //! The value of the bias for point 10 in PWL.
402 enum B10
403 {
404 B10_UNNAMED216 = 216, //!< No additional details
405 };
406
407 //! \brief S0
408 //! \details
409 //! The value of the slope for point 0 in PWL
410 enum S0
411 {
412 S0_UNNAMED1024 = 1024, //!< No additional details
413 };
414
415 //! \brief S1
416 //! \details
417 //! The value of the slope for point 1 in PWL
418 enum S1
419 {
420 S1_UNNAMED1024 = 1024, //!< No additional details
421 };
422
423 //! \brief S2
424 //! \details
425 //! The value of the slope for point 2 in PWL
426 enum S2
427 {
428 S2_UNNAMED1024 = 1024, //!< No additional details
429 };
430
431 //! \brief S3
432 //! \details
433 //! The value of the slope for point 3 in PWL
434 enum S3
435 {
436 S3_UNNAMED1024 = 1024, //!< No additional details
437 };
438
439 //! \brief S4
440 //! \details
441 //! The value of the slope for point 4 in PWL
442 enum S4
443 {
444 S4_UNNAMED1024 = 1024, //!< No additional details
445 };
446
447 //! \brief S5
448 //! \details
449 //! The value of the slope for point 5 in PWL
450 enum S5
451 {
452 S5_UNNAMED1024 = 1024, //!< No additional details
453 };
454
455 //! \brief S6
456 //! \details
457 //! The default is 1024/1024
458 enum S6
459 {
460 S6_UNNAMED1024 = 1024, //!< No additional details
461 };
462
463 //! \brief S7
464 //! \details
465 //! The value of the slope for point 7 in PWL
466 enum S7
467 {
468 S7_UNNAMED1024 = 1024, //!< No additional details
469 };
470
471 //! \brief S8
472 //! \details
473 //! The value of the slope for point 8 in PWL
474 enum S8
475 {
476 S8_UNNAMED1024 = 1024, //!< No additional details
477 };
478
479 //! \brief S9
480 //! \details
481 //! The value of the slope for point 9 in PWL
482 enum S9
483 {
484 S9_UNNAMED1024 = 1024, //!< No additional details
485 };
486
487 //! \brief S10
488 //! \details
489 //! The value of the slope for point 10 in PWL.
490 enum S10
491 {
492 S10_UNNAMED1024 = 1024, //!< No additional details
493 };
494
495 //! \name Initializations
496
497 //! \brief Explicit member initialization function
498 VEBOX_ACE_LACE_STATE_CMD();
499
500 static const size_t dwSize = 13;
501 static const size_t byteSize = 52;
502 };
503
504 //!
505 //! \brief VEBOX_ALPHA_AOI_STATE
506 //! \details
507 //! This state structure contains the IECP State Table Contents for Fixed
508 //! Alpha and Area of Interest state.
509 //!
510 struct VEBOX_ALPHA_AOI_STATE_CMD
511 {
512 union
513 {
514 //!< DWORD 0
515 struct
516 {
517 uint32_t ColorPipeAlpha : __CODEGEN_BITFIELD( 0, 11) ; //!< Color Pipe Alpha
518 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
519 uint32_t AlphaFromStateSelect : __CODEGEN_BITFIELD(16, 16) ; //!< ALPHA_FROM_STATE_SELECT
520 uint32_t Reserved17 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved
521 };
522 uint32_t Value;
523 } DW0;
524 union
525 {
526 //!< DWORD 1
527 struct
528 {
529 uint32_t AoiMinX : __CODEGEN_BITFIELD( 0, 13) ; //!< AOI_MIN_X
530 uint32_t Reserved46 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
531 uint32_t AoiMaxX : __CODEGEN_BITFIELD(16, 29) ; //!< AOI_MAX_X
532 uint32_t Reserved62 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
533 };
534 uint32_t Value;
535 } DW1;
536 union
537 {
538 //!< DWORD 2
539 struct
540 {
541 uint32_t AoiMinY : __CODEGEN_BITFIELD( 0, 13) ; //!< AOI_MIN_Y
542 uint32_t Reserved78 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
543 uint32_t AoiMaxY : __CODEGEN_BITFIELD(16, 29) ; //!< AOI_MAX_Y
544 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
545 };
546 uint32_t Value;
547 } DW2;
548
549 //! \name Local enumerations
550
551 //! \brief ALPHA_FROM_STATE_SELECT
552 //! \details
553 //! If the input format does not have alpha available and the output format
554 //! provides alpha, this bit should be set to 1. This should be 0 when Alpha
555 //! Plane Enable is 1.
556 enum ALPHA_FROM_STATE_SELECT
557 {
558 ALPHA_FROM_STATE_SELECT_ALPHAISTAKENFROMMESSAGE = 0, //!< No additional details
559 ALPHA_FROM_STATE_SELECT_ALPHAISTAKENFROMSTATE = 1, //!< No additional details
560 };
561
562 //! \brief AOI_MIN_X
563 //! \details
564 //! This value must be a multiple of 4.
565 enum AOI_MIN_X
566 {
567 AOI_MIN_X_UNNAMED0 = 0, //!< No additional details
568 };
569
570 //! \brief AOI_MAX_X
571 //! \details
572 //! Area of Interest Minimum X - The ACE histogram and Skin Tone Detection
573 //! statistic gathering will occur within the MinX/MinY to MaxX/MaxY area
574 //! (inclusive).
575 //! This value must be a multiple of 4 minus 1.
576 enum AOI_MAX_X
577 {
578 AOI_MAX_X_UNNAMED3 = 3, //!< No additional details
579 };
580
581 //! \brief AOI_MIN_Y
582 //! \details
583 //! This value must be a multiple of 4.
584 enum AOI_MIN_Y
585 {
586 AOI_MIN_Y_UNNAMED0 = 0, //!< No additional details
587 };
588
589 //! \brief AOI_MAX_Y
590 //! \details
591 //! This value must be a multiple of 4 minus 1.
592 enum AOI_MAX_Y
593 {
594 AOI_MAX_Y_UNNAMED3 = 3, //!< No additional details
595 };
596
597 //! \name Initializations
598
599 //! \brief Explicit member initialization function
600 VEBOX_ALPHA_AOI_STATE_CMD();
601
602 static const size_t dwSize = 3;
603 static const size_t byteSize = 12;
604 };
605
606 //!
607 //! \brief VEBOX_CAPTURE_PIPE_STATE
608 //! \details
609 //! This command contains variables for controlling Demosaic and the White
610 //! Balance Statistics.
611 //!
612 struct VEBOX_CAPTURE_PIPE_STATE_CMD
613 {
614 union
615 {
616 //!< DWORD 0
617 struct
618 {
619 uint32_t AverageMinCostThreshold : __CODEGEN_BITFIELD( 0, 7) ; //!< AVERAGE_MIN_COST_THRESHOLD
620 uint32_t AverageColorThreshold : __CODEGEN_BITFIELD( 8, 15) ; //!< AVERAGE_COLOR_THRESHOLD
621 uint32_t ScaleForAverageMinCost : __CODEGEN_BITFIELD(16, 19) ; //!< SCALE_FOR_AVERAGE_MIN_COST
622 uint32_t ShiftMinCost : __CODEGEN_BITFIELD(20, 22) ; //!< SHIFT_MIN_COST
623 uint32_t Reserved23 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
624 uint32_t GoodPixelThreshold : __CODEGEN_BITFIELD(24, 29) ; //!< GOOD_PIXEL_THRESHOLD
625 uint32_t Reserved30 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
626 };
627 uint32_t Value;
628 } DW0;
629 union
630 {
631 //!< DWORD 1
632 struct
633 {
634 uint32_t BadColorThreshold3 : __CODEGEN_BITFIELD( 0, 3) ; //!< BAD_COLOR_THRESHOLD_3
635 uint32_t Reserved36 : __CODEGEN_BITFIELD( 4, 7) ; //!< Reserved
636 uint32_t BadColorThreshold2 : __CODEGEN_BITFIELD( 8, 15) ; //!< BAD_COLOR_THRESHOLD_2
637 uint32_t BadColorThreshold1 : __CODEGEN_BITFIELD(16, 23) ; //!< BAD_COLOR_THRESHOLD_1
638 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 27) ; //!< Reserved
639 uint32_t ScaleForMinCost : __CODEGEN_BITFIELD(28, 31) ; //!< SCALE_FOR_MIN_COST
640 };
641 uint32_t Value;
642 } DW1;
643 union
644 {
645 //!< DWORD 2
646 struct
647 {
648 uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved
649 uint32_t UvThresholdValue : __CODEGEN_BITFIELD( 8, 15) ; //!< UV_THRESHOLD_VALUE
650 uint32_t YOutlierValue : __CODEGEN_BITFIELD(16, 23) ; //!< Y_OUTLIER_VALUE
651 uint32_t YBrightValue : __CODEGEN_BITFIELD(24, 31) ; //!< Y_BRIGHT_VALUE
652 };
653 uint32_t Value;
654 } DW2;
655
656 //! \name Local enumerations
657
658 //! \brief AVERAGE_MIN_COST_THRESHOLD
659 //! \details
660 //! The threshold for the H and V Min_cost beyond which the Avg
661 //! interpolation will be used.
662 enum AVERAGE_MIN_COST_THRESHOLD
663 {
664 AVERAGE_MIN_COST_THRESHOLD_UNNAMED75 = 75, //!< No additional details
665 };
666
667 //! \brief AVERAGE_COLOR_THRESHOLD
668 //! \details
669 //! The threshold between two colors in a pixel for the Avg interpolation to
670 //! be considered.
671 enum AVERAGE_COLOR_THRESHOLD
672 {
673 AVERAGE_COLOR_THRESHOLD_UNNAMED100 = 100, //!< No additional details
674 };
675
676 //! \brief SCALE_FOR_AVERAGE_MIN_COST
677 //! \details
678 //! The amount to scale the min_cost difference during the Avg interpolation
679 //! decision
680 enum SCALE_FOR_AVERAGE_MIN_COST
681 {
682 SCALE_FOR_AVERAGE_MIN_COST_UNNAMED2 = 2, //!< No additional details
683 };
684
685 //! \brief SHIFT_MIN_COST
686 //! \details
687 //! The amount to shift the H2/V2 versions of min_cost.
688 enum SHIFT_MIN_COST
689 {
690 SHIFT_MIN_COST_UNNAMED1 = 1, //!< No additional details
691 };
692
693 //! \brief GOOD_PIXEL_THRESHOLD
694 //! \details
695 //! The difference threshold between adjacent pixels for a pixel to be
696 //! considered "good".
697 enum GOOD_PIXEL_THRESHOLD
698 {
699 GOOD_PIXEL_THRESHOLD_UNNAMED15 = 15, //!< No additional details
700 };
701
702 //! \brief BAD_COLOR_THRESHOLD_3
703 //! \details
704 //! Color value threshold used during the bad pixel check.
705 enum BAD_COLOR_THRESHOLD_3
706 {
707 BAD_COLOR_THRESHOLD_3_UNNAMED10 = 10, //!< No additional details
708 };
709
710 //! \brief BAD_COLOR_THRESHOLD_2
711 //! \details
712 //! Color value threshold used during the bad pixel check.
713 enum BAD_COLOR_THRESHOLD_2
714 {
715 BAD_COLOR_THRESHOLD_2_UNNAMED175 = 175, //!< No additional details
716 };
717
718 //! \brief BAD_COLOR_THRESHOLD_1
719 //! \details
720 //! Color value threshold used during the bad pixel check.
721 enum BAD_COLOR_THRESHOLD_1
722 {
723 BAD_COLOR_THRESHOLD_1_UNNAMED100 = 100, //!< No additional details
724 };
725
726 //! \brief SCALE_FOR_MIN_COST
727 //! \details
728 //! The amount to scale the min_cost difference during the confidence check.
729 enum SCALE_FOR_MIN_COST
730 {
731 SCALE_FOR_MIN_COST_UNNAMED10 = 10, //!< No additional details
732 };
733
734 //! \brief UV_THRESHOLD_VALUE
735 //! \details
736 //! The value denotes the maximum threshold of the ratio between U+V to Y
737 //! can have to be considered a gray point.
738 enum UV_THRESHOLD_VALUE
739 {
740 UV_THRESHOLD_VALUE_UNNAMED64 = 64, //!< 0.25 * 255 = 64
741 };
742
743 //! \brief Y_OUTLIER_VALUE
744 //! \details
745 //! The outlier threshold percentile in the Y histogram. Any pixel with Y
746 //! value above this either clipped or an outlier in the image. These points
747 //! will not be included in the white patch calculation.
748 enum Y_OUTLIER_VALUE
749 {
750 Y_OUTLIER_VALUE_UNNAMED253 = 253, //!< No additional details
751 };
752
753 //! \brief Y_BRIGHT_VALUE
754 //! \details
755 //! The whitepoint threshold percentile in the Y histogram. Any pixel with Y
756 //! value above this could be a whitepoint.
757 //! This is the larger of the calculated Ybright value
758 //! and the Ythreshold value, which is the minimum Y required to be
759 //! considered a white point.
760 enum Y_BRIGHT_VALUE
761 {
762 Y_BRIGHT_VALUE_UNNAMED230 = 230, //!< No additional details
763 };
764
765 //! \name Initializations
766
767 //! \brief Explicit member initialization function
768 VEBOX_CAPTURE_PIPE_STATE_CMD();
769
770 static const size_t dwSize = 3;
771 static const size_t byteSize = 12;
772 };
773
774 //!
775 //! \brief VEBOX_CCM_STATE
776 //! \details
777 //! This state structure contains the IECP State Table Contents for Color
778 //! Correction Matrix State.
779 //!
780 struct VEBOX_CCM_STATE_CMD
781 {
782 union
783 {
784 //!< DWORD 0
785 struct
786 {
787 uint32_t C1CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C1_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
788 uint32_t Reserved21 : __CODEGEN_BITFIELD(21, 29) ; //!< Reserved
789 uint32_t VignetteCorrectionFormat : __CODEGEN_BITFIELD(30, 30) ; //!< VIGNETTE_CORRECTION_FORMAT
790 uint32_t ColorCorrectionMatrixEnable : __CODEGEN_BITFIELD(31, 31) ; //!< Color Correction Matrix Enable
791 };
792 uint32_t Value;
793 } DW0;
794 union
795 {
796 //!< DWORD 1
797 struct
798 {
799 uint32_t C0CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C0_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
800 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
801 };
802 uint32_t Value;
803 } DW1;
804 union
805 {
806 //!< DWORD 2
807 struct
808 {
809 uint32_t C3CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C3_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
810 uint32_t Reserved85 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
811 };
812 uint32_t Value;
813 } DW2;
814 union
815 {
816 //!< DWORD 3
817 struct
818 {
819 uint32_t C2CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C2_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
820 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
821 };
822 uint32_t Value;
823 } DW3;
824 union
825 {
826 //!< DWORD 4
827 struct
828 {
829 uint32_t C5CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C5_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
830 uint32_t Reserved149 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
831 };
832 uint32_t Value;
833 } DW4;
834 union
835 {
836 //!< DWORD 5
837 struct
838 {
839 uint32_t C4CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C4_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
840 uint32_t Reserved181 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
841 };
842 uint32_t Value;
843 } DW5;
844 union
845 {
846 //!< DWORD 6
847 struct
848 {
849 uint32_t C7CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C7_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
850 uint32_t Reserved213 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
851 };
852 uint32_t Value;
853 } DW6;
854 union
855 {
856 //!< DWORD 7
857 struct
858 {
859 uint32_t C6CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C6_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
860 uint32_t Reserved245 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
861 };
862 uint32_t Value;
863 } DW7;
864 union
865 {
866 //!< DWORD 8
867 struct
868 {
869 uint32_t C8CoefficientOf3X3TransformMatrix : __CODEGEN_BITFIELD( 0, 20) ; //!< C8_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
870 uint32_t Reserved277 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
871 };
872 uint32_t Value;
873 } DW8;
874
875 //! \name Local enumerations
876
877 enum C1_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
878 {
879 C1_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_11414096 = 1141, //!< No additional details
880 };
881
882 //! \brief VIGNETTE_CORRECTION_FORMAT
883 //! \details
884 //! Defines what shift should be assumed for the Vignette.
885 enum VIGNETTE_CORRECTION_FORMAT
886 {
887 VIGNETTE_CORRECTION_FORMAT_U88 = 0, //!< No additional details
888 VIGNETTE_CORRECTION_FORMAT_U412 = 1, //!< No additional details
889 };
890
891 enum C0_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
892 {
893 C0_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_27924096 = 2792, //!< No additional details
894 };
895
896 enum C3_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
897 {
898 C3_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_714096 = 71, //!< No additional details
899 };
900
901 enum C2_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
902 {
903 C2_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_344096 = 34, //!< No additional details
904 };
905
906 enum C5_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
907 {
908 C5_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_524096 = 2097100, //!< No additional details
909 };
910
911 enum C4_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
912 {
913 C4_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_33634096 = 3363, //!< No additional details
914 };
915
916 enum C7_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
917 {
918 C7_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_1684096 = 168, //!< No additional details
919 };
920
921 enum C6_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
922 {
923 C6_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_124096 = 2097140, //!< No additional details
924 };
925
926 enum C8_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX
927 {
928 C8_COEFFICIENT_OF_3X3_TRANSFORM_MATRIX_34344096 = 3434, //!< No additional details
929 };
930
931 //! \name Initializations
932
933 //! \brief Explicit member initialization function
934 VEBOX_CCM_STATE_CMD();
935
936 static const size_t dwSize = 9;
937 static const size_t byteSize = 36;
938 };
939
940 //!
941 //! \brief VEBOX_CSC_STATE
942 //! \details
943 //! This state structure contains the IECP State Table Contents for CSC
944 //! state.
945 //!
946 struct VEBOX_CSC_STATE_CMD
947 {
948 union
949 {
950 //!< DWORD 0
951 struct
952 {
953 uint32_t TransformEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Transform Enable
954 uint32_t YuvChannelSwap : __CODEGEN_BITFIELD( 1, 1) ; //!< YUV_CHANNEL_SWAP
955 uint32_t Reserved2 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
956 uint32_t C0 : __CODEGEN_BITFIELD( 3, 15) ; //!< C0
957 uint32_t C1 : __CODEGEN_BITFIELD(16, 28) ; //!< C1
958 uint32_t Reserved29 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
959 };
960 uint32_t Value;
961 } DW0;
962 union
963 {
964 //!< DWORD 1
965 struct
966 {
967 uint32_t C2 : __CODEGEN_BITFIELD( 0, 12) ; //!< C2
968 uint32_t C3 : __CODEGEN_BITFIELD(13, 25) ; //!< C3
969 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
970 };
971 uint32_t Value;
972 } DW1;
973 union
974 {
975 //!< DWORD 2
976 struct
977 {
978 uint32_t C4 : __CODEGEN_BITFIELD( 0, 12) ; //!< C4
979 uint32_t C5 : __CODEGEN_BITFIELD(13, 25) ; //!< C5
980 uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
981 };
982 uint32_t Value;
983 } DW2;
984 union
985 {
986 //!< DWORD 3
987 struct
988 {
989 uint32_t C6 : __CODEGEN_BITFIELD( 0, 12) ; //!< C6
990 uint32_t C7 : __CODEGEN_BITFIELD(13, 25) ; //!< C7
991 uint32_t Reserved122 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
992 };
993 uint32_t Value;
994 } DW3;
995 union
996 {
997 //!< DWORD 4
998 struct
999 {
1000 uint32_t C8 : __CODEGEN_BITFIELD( 0, 12) ; //!< C8
1001 uint32_t Reserved141 : __CODEGEN_BITFIELD(13, 31) ; //!< Reserved
1002 };
1003 uint32_t Value;
1004 } DW4;
1005 union
1006 {
1007 //!< DWORD 5
1008 struct
1009 {
1010 uint32_t OffsetIn1 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_1
1011 uint32_t OffsetOut1 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_1
1012 uint32_t Reserved182 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1013 };
1014 uint32_t Value;
1015 } DW5;
1016 union
1017 {
1018 //!< DWORD 6
1019 struct
1020 {
1021 uint32_t OffsetIn2 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_2
1022 uint32_t OffsetOut2 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_2
1023 uint32_t Reserved214 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1024 };
1025 uint32_t Value;
1026 } DW6;
1027 union
1028 {
1029 //!< DWORD 7
1030 struct
1031 {
1032 uint32_t OffsetIn3 : __CODEGEN_BITFIELD( 0, 10) ; //!< OFFSET_IN_3
1033 uint32_t OffsetOut3 : __CODEGEN_BITFIELD(11, 21) ; //!< OFFSET_OUT_3
1034 uint32_t Reserved246 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1035 };
1036 uint32_t Value;
1037 } DW7;
1038
1039 //! \name Local enumerations
1040
1041 //! \brief YUV_CHANNEL_SWAP
1042 //! \details
1043 //! This bit should only be used with RGB output formats. When this bit is
1044 //! set, the YUV channels are swapped into the output RGB channels as shown
1045 //! in the following table:
1046 //!
1047 //! <table style="border: black solid 1px;">
1048 //! <tr>
1049 //! <td> </td>
1050 //! <td colspan="2">YUV_Channel_Swap</td>
1051 //! </tr>
1052 //! <tr>
1053 //! <td> </td>
1054 //! <td style="border: black solid 1px;">0</td>
1055 //! <td style="border: black solid 1px;">1</td>
1056 //! </tr>
1057 //! <tr>
1058 //! <td style="border: black solid 1px;">Y</td>
1059 //! <td style="border: black solid 1px;">R</td>
1060 //! <td style="border: black solid 1px;">G</td>
1061 //! </tr>
1062 //! <tr>
1063 //! <td style="border: black solid 1px;">U</td>
1064 //! <td style="border: black solid 1px;">G</td>
1065 //! <td style="border: black solid 1px;">B</td>
1066 //! </tr>
1067 //! <tr>
1068 //! <td style="border: black solid 1px;">V</td>
1069 //! <td style="border: black solid 1px;">B</td>
1070 //! <td style="border: black solid 1px;">R</td>
1071 //! </tr>
1072 //! </table>
1073 enum YUV_CHANNEL_SWAP
1074 {
1075 YUV_CHANNEL_SWAP_UNNAMED0 = 0, //!< No additional details
1076 };
1077
1078 //! \brief C0
1079 //! \details
1080 //! Transform coefficient.
1081 enum C0
1082 {
1083 C0_UNNAMED1024 = 1024, //!< No additional details
1084 };
1085
1086 //! \brief C1
1087 //! \details
1088 //! Transform coefficient.
1089 enum C1
1090 {
1091 C1_UNNAMED0 = 0, //!< No additional details
1092 };
1093
1094 //! \brief C2
1095 //! \details
1096 //! Transform coefficient.
1097 enum C2
1098 {
1099 C2_UNNAMED0 = 0, //!< No additional details
1100 };
1101
1102 //! \brief C3
1103 //! \details
1104 //! Transform coefficient.
1105 enum C3
1106 {
1107 C3_UNNAMED0 = 0, //!< No additional details
1108 };
1109
1110 //! \brief C4
1111 //! \details
1112 //! Transform coefficient.
1113 enum C4
1114 {
1115 C4_UNNAMED1024 = 1024, //!< No additional details
1116 };
1117
1118 //! \brief C5
1119 //! \details
1120 //! Transform coefficient.
1121 enum C5
1122 {
1123 C5_UNNAMED0 = 0, //!< No additional details
1124 };
1125
1126 //! \brief C6
1127 //! \details
1128 //! Transform coefficient.
1129 enum C6
1130 {
1131 C6_UNNAMED0 = 0, //!< No additional details
1132 };
1133
1134 //! \brief C7
1135 //! \details
1136 //! Transform coefficient.
1137 enum C7
1138 {
1139 C7_UNNAMED0 = 0, //!< No additional details
1140 };
1141
1142 //! \brief C8
1143 //! \details
1144 //! Transform coefficient.
1145 enum C8
1146 {
1147 C8_UNNAMED1024 = 1024, //!< No additional details
1148 };
1149
1150 //! \brief OFFSET_IN_1
1151 //! \details
1152 //! Offset in for Y/R.
1153 enum OFFSET_IN_1
1154 {
1155 OFFSET_IN_1_UNNAMED0 = 0, //!< No additional details
1156 };
1157
1158 //! \brief OFFSET_OUT_1
1159 //! \details
1160 //! Offset out for Y/R.
1161 enum OFFSET_OUT_1
1162 {
1163 OFFSET_OUT_1_UNNAMED0 = 0, //!< No additional details
1164 };
1165
1166 //! \brief OFFSET_IN_2
1167 //! \details
1168 //! Offset in for U/G.
1169 enum OFFSET_IN_2
1170 {
1171 OFFSET_IN_2_UNNAMED0 = 0, //!< No additional details
1172 };
1173
1174 //! \brief OFFSET_OUT_2
1175 //! \details
1176 //! Offset out for U/G.
1177 enum OFFSET_OUT_2
1178 {
1179 OFFSET_OUT_2_UNNAMED0 = 0, //!< No additional details
1180 };
1181
1182 //! \brief OFFSET_IN_3
1183 //! \details
1184 //! Offset in for V/B.
1185 enum OFFSET_IN_3
1186 {
1187 OFFSET_IN_3_UNNAMED0 = 0, //!< No additional details
1188 };
1189
1190 //! \brief OFFSET_OUT_3
1191 //! \details
1192 //! Offset out for V/B.
1193 enum OFFSET_OUT_3
1194 {
1195 OFFSET_OUT_3_UNNAMED0 = 0, //!< No additional details
1196 };
1197
1198 //! \name Initializations
1199
1200 //! \brief Explicit member initialization function
1201 VEBOX_CSC_STATE_CMD();
1202
1203 static const size_t dwSize = 8;
1204 static const size_t byteSize = 32;
1205 };
1206
1207 //!
1208 //! \brief VEBOX_DNDI_STATE
1209 //! \details
1210 //! This state table is used by the Denoise and Deinterlacer Functions.
1211 //! When DN is used in 12-bit mode with the Capture Pipe all the DN pixel
1212 //! thresholds (temporal_diff_th, temp_diff_low, good_neighbor_th) are
1213 //! compared with the 8 MSBs of the 12-bit pixels.
1214 //!
1215 struct VEBOX_DNDI_STATE_CMD
1216 {
1217 union
1218 {
1219 //!< DWORD 0
1220 struct
1221 {
1222 uint32_t DenoiseAsdThreshold : __CODEGEN_BITFIELD( 0, 7) ; //!< Denoise ASD Threshold
1223 uint32_t DenoiseHistoryIncrease : __CODEGEN_BITFIELD( 8, 11) ; //!< DENOISE_HISTORY_INCREASE
1224 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1225 uint32_t DenoiseMaximumHistory : __CODEGEN_BITFIELD(16, 23) ; //!< Denoise Maximum History
1226 uint32_t DenoiseStadThreshold : __CODEGEN_BITFIELD(24, 31) ; //!< Denoise STAD Threshold
1227 };
1228 uint32_t Value;
1229 } DW0;
1230 union
1231 {
1232 //!< DWORD 1
1233 struct
1234 {
1235 uint32_t DenoiseThresholdForSumOfComplexityMeasure : __CODEGEN_BITFIELD( 0, 7) ; //!< Denoise Threshold for Sum of Complexity Measure
1236 uint32_t DenoiseMovingPixelThreshold : __CODEGEN_BITFIELD( 8, 12) ; //!< Denoise Moving Pixel Threshold
1237 uint32_t StmmC2 : __CODEGEN_BITFIELD(13, 15) ; //!< STMM C2
1238 uint32_t LowTemporalDifferenceThreshold : __CODEGEN_BITFIELD(16, 21) ; //!< Low Temporal Difference Threshold
1239 uint32_t Reserved54 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
1240 uint32_t TemporalDifferenceThreshold : __CODEGEN_BITFIELD(24, 29) ; //!< Temporal Difference Threshold
1241 uint32_t Reserved62 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1242 };
1243 uint32_t Value;
1244 } DW1;
1245 union
1246 {
1247 //!< DWORD 2
1248 struct
1249 {
1250 uint32_t BlockNoiseEstimateNoiseThreshold : __CODEGEN_BITFIELD( 0, 7) ; //!< Block Noise Estimate Noise Threshold
1251 uint32_t BlockNoiseEstimateEdgeThreshold : __CODEGEN_BITFIELD( 8, 11) ; //!< BLOCK_NOISE_ESTIMATE_EDGE_THRESHOLD
1252 uint32_t Reserved76 : __CODEGEN_BITFIELD(12, 13) ; //!< Reserved
1253 uint32_t SmoothMvThreshold : __CODEGEN_BITFIELD(14, 15) ; //!< Smooth MV Threshold
1254 uint32_t SadTightThreshold : __CODEGEN_BITFIELD(16, 19) ; //!< SAD_TIGHT_THRESHOLD
1255 uint32_t ContentAdaptiveThresholdSlope : __CODEGEN_BITFIELD(20, 23) ; //!< CONTENT_ADAPTIVE_THRESHOLD_SLOPE
1256 uint32_t GoodNeighborThreshold : __CODEGEN_BITFIELD(24, 29) ; //!< GOOD_NEIGHBOR_THRESHOLD
1257 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1258 };
1259 uint32_t Value;
1260 } DW2;
1261 union
1262 {
1263 //!< DWORD 3
1264 struct
1265 {
1266 uint32_t MaximumStmm : __CODEGEN_BITFIELD( 0, 7) ; //!< Maximum STMM
1267 uint32_t MultiplierForVecm : __CODEGEN_BITFIELD( 8, 13) ; //!< Multiplier for VECM
1268 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1269 uint32_t BlendingConstantAcrossTimeForSmallValuesOfStmm : __CODEGEN_BITFIELD(16, 23) ; //!< BLENDING_CONSTANT_ACROSS_TIME_FOR_SMALL_VALUES_OF_STMM
1270 uint32_t BlendingConstantAcrossTimeForLargeValuesOfStmm : __CODEGEN_BITFIELD(24, 30) ; //!< BLENDING_CONSTANT_ACROSS_TIME_FOR_LARGE_VALUES_OF_STMM
1271 uint32_t StmmBlendingConstantSelect : __CODEGEN_BITFIELD(31, 31) ; //!< STMM_BLENDING_CONSTANT_SELECT
1272 };
1273 uint32_t Value;
1274 } DW3;
1275 union
1276 {
1277 //!< DWORD 4
1278 struct
1279 {
1280 uint32_t SdiDelta : __CODEGEN_BITFIELD( 0, 7) ; //!< SDI Delta
1281 uint32_t SdiThreshold : __CODEGEN_BITFIELD( 8, 15) ; //!< SDI Threshold
1282 uint32_t StmmOutputShift : __CODEGEN_BITFIELD(16, 19) ; //!< STMM Output Shift
1283 uint32_t StmmShiftUp : __CODEGEN_BITFIELD(20, 21) ; //!< STMM_SHIFT_UP
1284 uint32_t StmmShiftDown : __CODEGEN_BITFIELD(22, 23) ; //!< STMM_SHIFT_DOWN
1285 uint32_t MinimumStmm : __CODEGEN_BITFIELD(24, 31) ; //!< Minimum STMM
1286 };
1287 uint32_t Value;
1288 } DW4;
1289 union
1290 {
1291 //!< DWORD 5
1292 struct
1293 {
1294 uint32_t FmdTemporalDifferenceThreshold : __CODEGEN_BITFIELD( 0, 7) ; //!< FMD Temporal Difference Threshold
1295 uint32_t SdiFallbackMode2ConstantAngle2X1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SDI Fallback Mode 2 Constant (Angle2x1)
1296 uint32_t SdiFallbackMode1T2Constant : __CODEGEN_BITFIELD(16, 23) ; //!< SDI Fallback Mode 1 T2 Constant
1297 uint32_t SdiFallbackMode1T1Constant : __CODEGEN_BITFIELD(24, 31) ; //!< SDI Fallback Mode 1 T1 Constant
1298 };
1299 uint32_t Value;
1300 } DW5;
1301 union
1302 {
1303 //!< DWORD 6
1304 struct
1305 {
1306 uint32_t Reserved192 : __CODEGEN_BITFIELD( 0, 2) ; //!< Reserved
1307 uint32_t DnDiTopFirst : __CODEGEN_BITFIELD( 3, 3) ; //!< DNDI_TOP_FIRST
1308 uint32_t Reserved196 : __CODEGEN_BITFIELD( 4, 5) ; //!< Reserved
1309 uint32_t ProgressiveDn : __CODEGEN_BITFIELD( 6, 6) ; //!< PROGRESSIVE_DN
1310 uint32_t McdiEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< MCDI Enable
1311 uint32_t FmdTearThreshold : __CODEGEN_BITFIELD( 8, 13) ; //!< FMD Tear Threshold
1312 uint32_t CatThreshold : __CODEGEN_BITFIELD(14, 15) ; //!< CAT_THRESHOLD
1313 uint32_t Fmd2VerticalDifferenceThreshold : __CODEGEN_BITFIELD(16, 23) ; //!< FMD #2 Vertical Difference Threshold
1314 uint32_t Fmd1VerticalDifferenceThreshold : __CODEGEN_BITFIELD(24, 31) ; //!< FMD #1 Vertical Difference Threshold
1315 };
1316 uint32_t Value;
1317 } DW6;
1318 union
1319 {
1320 //!< DWORD 7
1321 struct
1322 {
1323 uint32_t SadTha : __CODEGEN_BITFIELD( 0, 3) ; //!< SAD_THA
1324 uint32_t SadThb : __CODEGEN_BITFIELD( 4, 7) ; //!< SAD_THB
1325 uint32_t ProgressiveCadenceReconstructionFor1StFieldOfCurrentFrame : __CODEGEN_BITFIELD( 8, 9) ; //!< PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_1ST_FIELD_OF_CURRENT_FRAME
1326 uint32_t McPixelConsistencyThreshold : __CODEGEN_BITFIELD(10, 15) ; //!< MC_PIXEL_CONSISTENCY_THRESHOLD
1327 uint32_t ProgressiveCadenceReconstructionFor2NdFieldOfPreviousFrame : __CODEGEN_BITFIELD(16, 17) ; //!< PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_2ND_FIELD_OF_PREVIOUS_FRAME
1328 uint32_t Reserved242 : __CODEGEN_BITFIELD(18, 18) ; //!< Reserved
1329 uint32_t NeighborPixelThreshold : __CODEGEN_BITFIELD(19, 22) ; //!< NEIGHBOR_PIXEL_THRESHOLD
1330 uint32_t InitialDenoiseHistory : __CODEGEN_BITFIELD(23, 28) ; //!< INITIAL_DENOISE_HISTORY
1331 uint32_t Reserved253 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1332 };
1333 uint32_t Value;
1334 } DW7;
1335 union
1336 {
1337 //!< DWORD 8
1338 struct
1339 {
1340 uint32_t ChromaLowTemporalDifferenceThreshold : __CODEGEN_BITFIELD( 0, 5) ; //!< Chroma Low Temporal Difference Threshold
1341 uint32_t ChromaTemporalDifferenceThreshold : __CODEGEN_BITFIELD( 6, 11) ; //!< Chroma Temporal Difference Threshold
1342 uint32_t ChromaDenoiseEnable : __CODEGEN_BITFIELD(12, 12) ; //!< CHROMA_DENOISE_ENABLE
1343 uint32_t Reserved269 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
1344 uint32_t ChromaDenoiseStadThreshold : __CODEGEN_BITFIELD(16, 23) ; //!< Chroma Denoise STAD Threshold
1345 uint32_t Reserved280 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1346 };
1347 uint32_t Value;
1348 } DW8;
1349 union
1350 {
1351 //!< DWORD 9
1352 struct
1353 {
1354 uint32_t HotPixelThreshold : __CODEGEN_BITFIELD( 0, 7) ; //!< Hot Pixel Threshold
1355 uint32_t HotPixelCount : __CODEGEN_BITFIELD( 8, 11) ; //!< Hot Pixel Count
1356 uint32_t Reserved300 : __CODEGEN_BITFIELD(12, 31) ; //!< Reserved
1357 };
1358 uint32_t Value;
1359 } DW9;
1360
1361 //! \name Local enumerations
1362
1363 //! \brief DENOISE_HISTORY_INCREASE
1364 //! \details
1365 //! Amount that denoise_history is increased
1366 //! MAX:15
1367 enum DENOISE_HISTORY_INCREASE
1368 {
1369 DENOISE_HISTORY_INCREASE_UNNAMED8 = 8, //!< No additional details
1370 };
1371
1372 //! \brief BLOCK_NOISE_ESTIMATE_EDGE_THRESHOLD
1373 //! \details
1374 //! Threshold for detecting an edge in block noise estimate.
1375 //! MAX:15
1376 enum BLOCK_NOISE_ESTIMATE_EDGE_THRESHOLD
1377 {
1378 BLOCK_NOISE_ESTIMATE_EDGE_THRESHOLD_UNNAMED1 = 1, //!< No additional details
1379 };
1380
1381 enum SAD_TIGHT_THRESHOLD
1382 {
1383 SAD_TIGHT_THRESHOLD_UNNAMED5 = 5, //!< No additional details
1384 };
1385
1386 //! \brief CONTENT_ADAPTIVE_THRESHOLD_SLOPE
1387 //! \details
1388 //! Determines the slope of the Content Adaptive Threshold. +1 added
1389 //! internally to get CAT_slope.
1390 enum CONTENT_ADAPTIVE_THRESHOLD_SLOPE
1391 {
1392 CONTENT_ADAPTIVE_THRESHOLD_SLOPE_UNNAMED9 = 9, //!< CAT_slope value = 10
1393 };
1394
1395 //! \brief GOOD_NEIGHBOR_THRESHOLD
1396 //! \details
1397 //! Difference from current pixel for neighboring pixels to be considered a
1398 //! good neighbor.
1399 //! MAX:63
1400 enum GOOD_NEIGHBOR_THRESHOLD
1401 {
1402 GOOD_NEIGHBOR_THRESHOLD_UNNAMED4 = 4, //!< Depending on GNE of previous frame
1403 };
1404
1405 enum BLENDING_CONSTANT_ACROSS_TIME_FOR_SMALL_VALUES_OF_STMM
1406 {
1407 BLENDING_CONSTANT_ACROSS_TIME_FOR_SMALL_VALUES_OF_STMM_UNNAMED125 = 125, //!< No additional details
1408 };
1409
1410 enum BLENDING_CONSTANT_ACROSS_TIME_FOR_LARGE_VALUES_OF_STMM
1411 {
1412 BLENDING_CONSTANT_ACROSS_TIME_FOR_LARGE_VALUES_OF_STMM_UNNAMED64 = 64, //!< No additional details
1413 };
1414
1415 enum STMM_BLENDING_CONSTANT_SELECT
1416 {
1417 STMM_BLENDING_CONSTANT_SELECT_USETHEBLENDINGCONSTANTFORSMALLVALUESOFSTMMFORSTMMMDTH = 0, //!< No additional details
1418 STMM_BLENDING_CONSTANT_SELECT_USETHEBLENDINGCONSTANTFORLARGEVALUESOFSTMMFORSTMMMDTH = 1, //!< No additional details
1419 };
1420
1421 //! \brief STMM_SHIFT_UP
1422 //! \details
1423 //! Amount to shift STMM up (set range).
1424 enum STMM_SHIFT_UP
1425 {
1426 STMM_SHIFT_UP_SHIFTBY6 = 0, //!< No additional details
1427 STMM_SHIFT_UP_SHIFTBY7 = 1, //!< No additional details
1428 STMM_SHIFT_UP_SHIFTBY8 = 2, //!< No additional details
1429 };
1430
1431 //! \brief STMM_SHIFT_DOWN
1432 //! \details
1433 //! Amount to shift STMM down (quantize to fewer bits)
1434 enum STMM_SHIFT_DOWN
1435 {
1436 STMM_SHIFT_DOWN_SHIFTBY4 = 0, //!< No additional details
1437 STMM_SHIFT_DOWN_SHIFTBY5 = 1, //!< No additional details
1438 STMM_SHIFT_DOWN_SHIFTBY6 = 2, //!< No additional details
1439 };
1440
1441 //! \brief DNDI_TOP_FIRST
1442 //! \details
1443 //! Indicates the top field is first in sequence, otherwise bottom is first
1444 enum DNDI_TOP_FIRST
1445 {
1446 DNDI_TOP_FIRST_BOTTOMFIELDOCCURSFIRSTINSEQUENCE = 0, //!< No additional details
1447 DNDI_TOP_FIRST_TOPFIELDOCCURSFIRSTINSEQUENCE = 1, //!< No additional details
1448 };
1449
1450 //! \brief PROGRESSIVE_DN
1451 //! \details
1452 //! Indicates that the denoise algorithm should assume progressive input
1453 //! when filtering neighboring pixels. <b>DI Enable</b> must be disabled
1454 //! when this field is enabled
1455 enum PROGRESSIVE_DN
1456 {
1457 PROGRESSIVE_DN_DNASSUMESINTERLACEDVIDEOANDFILTERSALTERNATELINESTOGETHER = 0, //!< No additional details
1458 PROGRESSIVE_DN_DNASSUMESPROGRESSIVEVIDEOANDFILTERSNEIGHBORINGLINESTOGETHER = 1, //!< No additional details
1459 };
1460
1461 enum CAT_THRESHOLD
1462 {
1463 CAT_THRESHOLD_UNNAMED0 = 0, //!< No additional details
1464 };
1465
1466 enum SAD_THA
1467 {
1468 SAD_THA_UNNAMED5 = 5, //!< No additional details
1469 };
1470
1471 enum SAD_THB
1472 {
1473 SAD_THB_UNNAMED10 = 10, //!< No additional details
1474 };
1475
1476 enum PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_1ST_FIELD_OF_CURRENT_FRAME
1477 {
1478 PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_1ST_FIELD_OF_CURRENT_FRAME_DEINTERLACE = 0, //!< No additional details
1479 PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_1ST_FIELD_OF_CURRENT_FRAME_PUTTOGETHERWITHPREVIOUSFIELDINSEQUENCE = 1, //!< 2nd field of previous frame
1480 PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_1ST_FIELD_OF_CURRENT_FRAME_PUTTOGETHERWITHNEXTFIELDINSEQUENCE = 2, //!< 2nd field of current frame
1481 };
1482
1483 enum MC_PIXEL_CONSISTENCY_THRESHOLD
1484 {
1485 MC_PIXEL_CONSISTENCY_THRESHOLD_UNNAMED25 = 25, //!< No additional details
1486 };
1487
1488 enum PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_2ND_FIELD_OF_PREVIOUS_FRAME
1489 {
1490 PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_2ND_FIELD_OF_PREVIOUS_FRAME_DEINTERLACE = 0, //!< No additional details
1491 PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_2ND_FIELD_OF_PREVIOUS_FRAME_PUTTOGETHERWITHPREVIOUSFIELDINSEQUENCE = 1, //!< 1st field of previous frame
1492 PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_2ND_FIELD_OF_PREVIOUS_FRAME_PUTTOGETHERWITHNEXTFIELDINSEQUENCE = 2, //!< 1st field of current frame
1493 };
1494
1495 enum NEIGHBOR_PIXEL_THRESHOLD
1496 {
1497 NEIGHBOR_PIXEL_THRESHOLD_UNNAMED10 = 10, //!< No additional details
1498 };
1499
1500 //! \brief INITIAL_DENOISE_HISTORY
1501 //! \details
1502 //! Initial value for Denoise history for both Luma and Chroma.
1503 enum INITIAL_DENOISE_HISTORY
1504 {
1505 INITIAL_DENOISE_HISTORY_UNNAMED32 = 32, //!< No additional details
1506 };
1507
1508 enum CHROMA_DENOISE_ENABLE
1509 {
1510 CHROMA_DENOISE_ENABLE_THEUANDVCHANNELSWILLBEPASSEDTOTHENEXTSTAGEAFTERDNUNCHANGED = 0, //!< No additional details
1511 CHROMA_DENOISE_ENABLE_THEUANDVCHROMACHANNELSWILLBEDENOISEFILTERED = 1, //!< No additional details
1512 };
1513
1514 //! \name Initializations
1515
1516 //! \brief Explicit member initialization function
1517 VEBOX_DNDI_STATE_CMD();
1518
1519 static const size_t dwSize = 10;
1520 static const size_t byteSize = 40;
1521 };
1522
1523 //!
1524 //! \brief VEBOX_FRONT_END_CSC_STATE
1525 //! \details
1526 //! This state structure contains the IECP State Table Contents for
1527 //! Front-end CSC state.
1528 //!
1529 struct VEBOX_FRONT_END_CSC_STATE_CMD
1530 {
1531 union
1532 {
1533 //!< DWORD 0
1534 struct
1535 {
1536 uint32_t FfrontEndCScTransformEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< FFront End C SC Transform Enable
1537 uint32_t Reserved1 : __CODEGEN_BITFIELD( 1, 2) ; //!< Reserved
1538 uint32_t FecscC0TransformCoefficient : __CODEGEN_BITFIELD( 3, 15) ; //!< FECSC_C0_TRANSFORM_COEFFICIENT
1539 uint32_t FecscC1TransformCoefficient : __CODEGEN_BITFIELD(16, 28) ; //!< FECSC_C1_TRANSFORM_COEFFICIENT
1540 uint32_t Reserved29 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1541 };
1542 uint32_t Value;
1543 } DW0;
1544 union
1545 {
1546 //!< DWORD 1
1547 struct
1548 {
1549 uint32_t FecScC2TransformCoefficient : __CODEGEN_BITFIELD( 0, 12) ; //!< FEC_SC_C2_TRANSFORM_COEFFICIENT
1550 uint32_t FecScC3TransformCoefficient : __CODEGEN_BITFIELD(13, 25) ; //!< FEC_SC_C3_TRANSFORM_COEFFICIENT
1551 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1552 };
1553 uint32_t Value;
1554 } DW1;
1555 union
1556 {
1557 //!< DWORD 2
1558 struct
1559 {
1560 uint32_t FecScC4TransformCoefficient : __CODEGEN_BITFIELD( 0, 12) ; //!< FEC_SC_C4_TRANSFORM_COEFFICIENT
1561 uint32_t FecScC5TransformCoefficient : __CODEGEN_BITFIELD(13, 25) ; //!< FEC_SC_C5_TRANSFORM_COEFFICIENT
1562 uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1563 };
1564 uint32_t Value;
1565 } DW2;
1566 union
1567 {
1568 //!< DWORD 3
1569 struct
1570 {
1571 uint32_t FecScC6TransformCoefficient : __CODEGEN_BITFIELD( 0, 12) ; //!< FEC_SC_C6_TRANSFORM_COEFFICIENT
1572 uint32_t FecScC7TransformCoefficient : __CODEGEN_BITFIELD(13, 25) ; //!< FEC_SC_C7_TRANSFORM_COEFFICIENT
1573 uint32_t Reserved122 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1574 };
1575 uint32_t Value;
1576 } DW3;
1577 union
1578 {
1579 //!< DWORD 4
1580 struct
1581 {
1582 uint32_t FecScC8TransformCoefficient : __CODEGEN_BITFIELD( 0, 12) ; //!< FEC_SC_C8_TRANSFORM_COEFFICIENT
1583 uint32_t Reserved141 : __CODEGEN_BITFIELD(13, 31) ; //!< Reserved
1584 };
1585 uint32_t Value;
1586 } DW4;
1587 union
1588 {
1589 //!< DWORD 5
1590 struct
1591 {
1592 uint32_t FecScOffsetIn1OffsetInForYR : __CODEGEN_BITFIELD( 0, 10) ; //!< FEC_SC_OFFSET_IN_1_OFFSET_IN_FOR_YR
1593 uint32_t FecScOffsetOut1OffsetOutForYR : __CODEGEN_BITFIELD(11, 21) ; //!< FEC_SC_OFFSET_OUT_1_OFFSET_OUT_FOR_YR
1594 uint32_t Reserved182 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1595 };
1596 uint32_t Value;
1597 } DW5;
1598 union
1599 {
1600 //!< DWORD 6
1601 struct
1602 {
1603 uint32_t FecScOffsetIn2OffsetInForUG : __CODEGEN_BITFIELD( 0, 10) ; //!< FEC_SC_OFFSET_IN_2_OFFSET_IN_FOR_UG
1604 uint32_t FecScOffsetOut2OffsetOutForUG : __CODEGEN_BITFIELD(11, 21) ; //!< FEC_SC_OFFSET_OUT_2_OFFSET_OUT_FOR_UG
1605 uint32_t Reserved214 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1606 };
1607 uint32_t Value;
1608 } DW6;
1609 union
1610 {
1611 //!< DWORD 7
1612 struct
1613 {
1614 uint32_t FecScOffsetIn3OffsetInForVB : __CODEGEN_BITFIELD( 0, 10) ; //!< FEC_SC_OFFSET_IN_3_OFFSET_IN_FOR_VB
1615 uint32_t FecScOffsetOut3OffsetOutForVB : __CODEGEN_BITFIELD(11, 21) ; //!< FEC_SC_OFFSET_OUT_3_OFFSET_OUT_FOR_VB
1616 uint32_t Reserved246 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
1617 };
1618 uint32_t Value;
1619 } DW7;
1620
1621 //! \name Local enumerations
1622
1623 enum FECSC_C0_TRANSFORM_COEFFICIENT
1624 {
1625 FECSC_C0_TRANSFORM_COEFFICIENT_1024 = 1024, //!< No additional details
1626 };
1627
1628 enum FECSC_C1_TRANSFORM_COEFFICIENT
1629 {
1630 FECSC_C1_TRANSFORM_COEFFICIENT_0 = 0, //!< No additional details
1631 };
1632
1633 enum FEC_SC_C2_TRANSFORM_COEFFICIENT
1634 {
1635 FEC_SC_C2_TRANSFORM_COEFFICIENT_UNNAMED0 = 0, //!< No additional details
1636 };
1637
1638 enum FEC_SC_C3_TRANSFORM_COEFFICIENT
1639 {
1640 FEC_SC_C3_TRANSFORM_COEFFICIENT_UNNAMED0 = 0, //!< No additional details
1641 };
1642
1643 enum FEC_SC_C4_TRANSFORM_COEFFICIENT
1644 {
1645 FEC_SC_C4_TRANSFORM_COEFFICIENT_1024 = 1024, //!< No additional details
1646 };
1647
1648 enum FEC_SC_C5_TRANSFORM_COEFFICIENT
1649 {
1650 FEC_SC_C5_TRANSFORM_COEFFICIENT_UNNAMED0 = 0, //!< No additional details
1651 };
1652
1653 enum FEC_SC_C6_TRANSFORM_COEFFICIENT
1654 {
1655 FEC_SC_C6_TRANSFORM_COEFFICIENT_UNNAMED0 = 0, //!< No additional details
1656 };
1657
1658 enum FEC_SC_C7_TRANSFORM_COEFFICIENT
1659 {
1660 FEC_SC_C7_TRANSFORM_COEFFICIENT_UNNAMED0 = 0, //!< No additional details
1661 };
1662
1663 enum FEC_SC_C8_TRANSFORM_COEFFICIENT
1664 {
1665 FEC_SC_C8_TRANSFORM_COEFFICIENT_1024 = 1024, //!< No additional details
1666 };
1667
1668 enum FEC_SC_OFFSET_IN_1_OFFSET_IN_FOR_YR
1669 {
1670 FEC_SC_OFFSET_IN_1_OFFSET_IN_FOR_YR_UNNAMED0 = 0, //!< No additional details
1671 };
1672
1673 enum FEC_SC_OFFSET_OUT_1_OFFSET_OUT_FOR_YR
1674 {
1675 FEC_SC_OFFSET_OUT_1_OFFSET_OUT_FOR_YR_UNNAMED0 = 0, //!< No additional details
1676 };
1677
1678 enum FEC_SC_OFFSET_IN_2_OFFSET_IN_FOR_UG
1679 {
1680 FEC_SC_OFFSET_IN_2_OFFSET_IN_FOR_UG_UNNAMED0 = 0, //!< No additional details
1681 };
1682
1683 enum FEC_SC_OFFSET_OUT_2_OFFSET_OUT_FOR_UG
1684 {
1685 FEC_SC_OFFSET_OUT_2_OFFSET_OUT_FOR_UG_UNNAMED0 = 0, //!< No additional details
1686 };
1687
1688 enum FEC_SC_OFFSET_IN_3_OFFSET_IN_FOR_VB
1689 {
1690 FEC_SC_OFFSET_IN_3_OFFSET_IN_FOR_VB_UNNAMED0 = 0, //!< No additional details
1691 };
1692
1693 enum FEC_SC_OFFSET_OUT_3_OFFSET_OUT_FOR_VB
1694 {
1695 FEC_SC_OFFSET_OUT_3_OFFSET_OUT_FOR_VB_UNNAMED0 = 0, //!< No additional details
1696 };
1697
1698 //! \name Initializations
1699
1700 //! \brief Explicit member initialization function
1701 VEBOX_FRONT_END_CSC_STATE_CMD();
1702
1703 static const size_t dwSize = 8;
1704 static const size_t byteSize = 32;
1705 };
1706
1707 //!
1708 //! \brief VEBOX_GAMUT_STATE
1709 //! \details
1710 //!
1711 //!
1712 struct VEBOX_GAMUT_STATE_CMD
1713 {
1714 union
1715 {
1716 //!< DWORD 0
1717 struct
1718 {
1719 uint32_t CmW : __CODEGEN_BITFIELD( 0, 9) ; //!< CM(w)
1720 uint32_t Reserved10 : __CODEGEN_BITFIELD(10, 14) ; //!< Reserved
1721 uint32_t GlobalModeEnable : __CODEGEN_BITFIELD(15, 15) ; //!< GLOBAL_MODE_ENABLE
1722 uint32_t AR : __CODEGEN_BITFIELD(16, 24) ; //!< AR
1723 uint32_t Reserved25 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
1724 };
1725 uint32_t Value;
1726 } DW0;
1727 union
1728 {
1729 //!< DWORD 1
1730 struct
1731 {
1732 uint32_t AB : __CODEGEN_BITFIELD( 0, 6) ; //!< A(b)
1733 uint32_t Reserved39 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
1734 uint32_t AG : __CODEGEN_BITFIELD( 8, 14) ; //!< A(g)
1735 uint32_t Reserved47 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1736 uint32_t CmS : __CODEGEN_BITFIELD(16, 25) ; //!< CM(s)
1737 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1738 };
1739 uint32_t Value;
1740 } DW1;
1741 union
1742 {
1743 //!< DWORD 2
1744 struct
1745 {
1746 uint32_t RI : __CODEGEN_BITFIELD( 0, 7) ; //!< R(i)
1747 uint32_t CmI : __CODEGEN_BITFIELD( 8, 15) ; //!< CM(i)
1748 uint32_t RS : __CODEGEN_BITFIELD(16, 25) ; //!< R(s)
1749 uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
1750 };
1751 uint32_t Value;
1752 } DW2;
1753 union
1754 {
1755 //!< DWORD 3
1756 struct
1757 {
1758 uint32_t C0 : __CODEGEN_BITFIELD( 0, 14) ; //!< C0
1759 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1760 uint32_t C1 : __CODEGEN_BITFIELD(16, 30) ; //!< C1
1761 uint32_t Reserved127 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
1762 };
1763 uint32_t Value;
1764 } DW3;
1765 union
1766 {
1767 //!< DWORD 4
1768 struct
1769 {
1770 uint32_t C2 : __CODEGEN_BITFIELD( 0, 14) ; //!< C2
1771 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1772 uint32_t C3 : __CODEGEN_BITFIELD(16, 30) ; //!< C3
1773 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
1774 };
1775 uint32_t Value;
1776 } DW4;
1777 union
1778 {
1779 //!< DWORD 5
1780 struct
1781 {
1782 uint32_t C4 : __CODEGEN_BITFIELD( 0, 14) ; //!< C4
1783 uint32_t Reserved175 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1784 uint32_t C5 : __CODEGEN_BITFIELD(16, 30) ; //!< C5
1785 uint32_t Reserved191 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
1786 };
1787 uint32_t Value;
1788 } DW5;
1789 union
1790 {
1791 //!< DWORD 6
1792 struct
1793 {
1794 uint32_t C6 : __CODEGEN_BITFIELD( 0, 14) ; //!< C6
1795 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1796 uint32_t C7 : __CODEGEN_BITFIELD(16, 30) ; //!< C7
1797 uint32_t Reserved223 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
1798 };
1799 uint32_t Value;
1800 } DW6;
1801 union
1802 {
1803 //!< DWORD 7
1804 struct
1805 {
1806 uint32_t C8 : __CODEGEN_BITFIELD( 0, 14) ; //!< C8
1807 uint32_t Reserved239 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1808 };
1809 uint32_t Value;
1810 } DW7;
1811 union
1812 {
1813 //!< DWORD 8
1814 struct
1815 {
1816 uint32_t PwlGammaPoint1 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_GAMMA_POINT_1
1817 uint32_t PwlGammaPoint2 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_GAMMA_POINT_2
1818 uint32_t PwlGammaPoint3 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_GAMMA_POINT_3
1819 uint32_t PwlGammaPoint4 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_GAMMA_POINT_4
1820 };
1821 uint32_t Value;
1822 } DW8;
1823 union
1824 {
1825 //!< DWORD 9
1826 struct
1827 {
1828 uint32_t PwlGammaPoint5 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_GAMMA_POINT_5
1829 uint32_t PwlGammaPoint6 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_GAMMA_POINT_6
1830 uint32_t PwlGammaPoint7 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_GAMMA_POINT_7
1831 uint32_t PwlGammaPoint8 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_GAMMA_POINT_8
1832 };
1833 uint32_t Value;
1834 } DW9;
1835 union
1836 {
1837 //!< DWORD 10
1838 struct
1839 {
1840 uint32_t PwlGammaPoint9 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_GAMMA_POINT_9
1841 uint32_t PwlGammaPoint10 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_GAMMA_POINT_10
1842 uint32_t PwlGammaPoint11 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_GAMMA_POINT_11
1843 uint32_t Reserved344 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1844 };
1845 uint32_t Value;
1846 } DW10;
1847 union
1848 {
1849 //!< DWORD 11
1850 struct
1851 {
1852 uint32_t PwlGammaBias1 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_GAMMA_BIAS_1
1853 uint32_t PwlGammaBias2 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_GAMMA_BIAS_2
1854 uint32_t PwlGammaBias3 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_GAMMA_BIAS_3
1855 uint32_t PwlGammaBias4 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_GAMMA_BIAS_4
1856 };
1857 uint32_t Value;
1858 } DW11;
1859 union
1860 {
1861 //!< DWORD 12
1862 struct
1863 {
1864 uint32_t PwlGammaBias5 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_GAMMA_BIAS_5
1865 uint32_t PwlGammaBias6 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_GAMMA_BIAS_6
1866 uint32_t PwlGammaBias7 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_GAMMA_BIAS_7
1867 uint32_t PwlGammaBias8 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_GAMMA_BIAS_8
1868 };
1869 uint32_t Value;
1870 } DW12;
1871 union
1872 {
1873 //!< DWORD 13
1874 struct
1875 {
1876 uint32_t PwlGammaBias9 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_GAMMA_BIAS_9
1877 uint32_t PwlGammaBias10 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_GAMMA_BIAS_10
1878 uint32_t PwlGammaBias11 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_GAMMA_BIAS_11
1879 uint32_t Reserved440 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1880 };
1881 uint32_t Value;
1882 } DW13;
1883 union
1884 {
1885 //!< DWORD 14
1886 struct
1887 {
1888 uint32_t PwlGammaSlope0 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_Gamma_ Slope_0
1889 uint32_t Reserved460 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1890 uint32_t PwlGammaSlope1 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_Gamma_ Slope_1
1891 uint32_t Reserved476 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1892 };
1893 uint32_t Value;
1894 } DW14;
1895 union
1896 {
1897 //!< DWORD 15
1898 struct
1899 {
1900 uint32_t PwlGammaSlope2 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_Gamma_ Slope_2
1901 uint32_t Reserved492 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1902 uint32_t PwlGammaSlope3 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_Gamma_ Slope_3
1903 uint32_t Reserved508 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1904 };
1905 uint32_t Value;
1906 } DW15;
1907 union
1908 {
1909 //!< DWORD 16
1910 struct
1911 {
1912 uint32_t PwlGammaSlope4 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_Gamma_ Slope_4
1913 uint32_t Reserved524 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1914 uint32_t PwlGammaSlope5 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_Gamma_ Slope_5
1915 uint32_t Reserved540 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1916 };
1917 uint32_t Value;
1918 } DW16;
1919 union
1920 {
1921 //!< DWORD 17
1922 struct
1923 {
1924 uint32_t PwlGammaSlope6 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_Gamma_ Slope_6
1925 uint32_t Reserved556 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1926 uint32_t PwlGammaSlope7 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_Gamma_ Slope_7
1927 uint32_t Reserved572 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1928 };
1929 uint32_t Value;
1930 } DW17;
1931 union
1932 {
1933 //!< DWORD 18
1934 struct
1935 {
1936 uint32_t PwlGammaSlope8 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_Gamma_ Slope_8
1937 uint32_t Reserved588 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1938 uint32_t PwlGammaSlope9 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_Gamma_ Slope_9
1939 uint32_t Reserved604 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1940 };
1941 uint32_t Value;
1942 } DW18;
1943 union
1944 {
1945 //!< DWORD 19
1946 struct
1947 {
1948 uint32_t PwlGammaSlope10 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_Gamma_ Slope_10
1949 uint32_t Reserved620 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1950 uint32_t PwlGammaSlope11 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_Gamma_ Slope_11
1951 uint32_t Reserved636 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1952 };
1953 uint32_t Value;
1954 } DW19;
1955 union
1956 {
1957 //!< DWORD 20
1958 struct
1959 {
1960 uint32_t PwlInvGammaPoint1 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_INV_GAMMA_POINT_1
1961 uint32_t PwlInvGammaPoint2 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_INV_GAMMA_POINT_2
1962 uint32_t PwlInvGammaPoint3 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_INV_GAMMA_POINT_3
1963 uint32_t PwlInvGammaPoint4 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_INV_GAMMA_POINT_4
1964 };
1965 uint32_t Value;
1966 } DW20;
1967 union
1968 {
1969 //!< DWORD 21
1970 struct
1971 {
1972 uint32_t PwlInvGammaPoint5 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_INV_GAMMA_POINT_5
1973 uint32_t PwlInvGammaPoint6 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_INV_GAMMA_POINT_6
1974 uint32_t PwlInvGammaPoint7 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_INV_GAMMA_POINT_7
1975 uint32_t PwlInvGammaPoint8 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_INV_GAMMA_POINT_8
1976 };
1977 uint32_t Value;
1978 } DW21;
1979 union
1980 {
1981 //!< DWORD 22
1982 struct
1983 {
1984 uint32_t PwlInvGammaPoint9 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_INV_GAMMA_POINT_9
1985 uint32_t PwlInvGammaPoint10 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_INV_GAMMA_POINT_10
1986 uint32_t PwlInvGammaPoint11 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_INV_GAMMA_POINT_11
1987 uint32_t Reserved728 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1988 };
1989 uint32_t Value;
1990 } DW22;
1991 union
1992 {
1993 //!< DWORD 23
1994 struct
1995 {
1996 uint32_t PwlInvGammaBias1 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_INV_GAMMA_BIAS_1
1997 uint32_t PwlInvGammaBias2 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_INV_GAMMA_BIAS_2
1998 uint32_t PwlInvGammaBias3 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_INV_GAMMA_BIAS_3
1999 uint32_t PwlInvGammaBias4 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_INV_GAMMA_BIAS_4
2000 };
2001 uint32_t Value;
2002 } DW23;
2003 union
2004 {
2005 //!< DWORD 24
2006 struct
2007 {
2008 uint32_t PwlInvGammaBias5 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_INV_GAMMA_BIAS_5
2009 uint32_t PwlInvGammaBias6 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_INV_GAMMA_BIAS_6
2010 uint32_t PwlInvGammaBias7 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_INV_GAMMA_BIAS_7
2011 uint32_t PwlInvGammaBias8 : __CODEGEN_BITFIELD(24, 31) ; //!< PWL_INV_GAMMA_BIAS_8
2012 };
2013 uint32_t Value;
2014 } DW24;
2015 union
2016 {
2017 //!< DWORD 25
2018 struct
2019 {
2020 uint32_t PwlInvGammaBias9 : __CODEGEN_BITFIELD( 0, 7) ; //!< PWL_INV_GAMMA_BIAS_9
2021 uint32_t PwlInvGammaBias10 : __CODEGEN_BITFIELD( 8, 15) ; //!< PWL_INV_GAMMA_BIAS_10
2022 uint32_t PwlInvGammaBias11 : __CODEGEN_BITFIELD(16, 23) ; //!< PWL_INV_GAMMA_BIAS_11
2023 uint32_t Reserved824 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
2024 };
2025 uint32_t Value;
2026 } DW25;
2027 union
2028 {
2029 //!< DWORD 26
2030 struct
2031 {
2032 uint32_t PwlInvGammaSlope0 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_INV_GAMMA_ Slope_0
2033 uint32_t Reserved844 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2034 uint32_t PwlInvGammaSlope1 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_INV_GAMMA_ Slope_1
2035 uint32_t Reserved860 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2036 };
2037 uint32_t Value;
2038 } DW26;
2039 union
2040 {
2041 //!< DWORD 27
2042 struct
2043 {
2044 uint32_t PwlInvGammaSlope2 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_INV_GAMMA_ Slope_2
2045 uint32_t Reserved876 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2046 uint32_t PwlInvGammaSlope3 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_INV_GAMMA_ Slope_3
2047 uint32_t Reserved892 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2048 };
2049 uint32_t Value;
2050 } DW27;
2051 union
2052 {
2053 //!< DWORD 28
2054 struct
2055 {
2056 uint32_t PwlInvGammaSlope4 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_INV_GAMMA_ Slope_4
2057 uint32_t Reserved908 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2058 uint32_t PwlInvGammaSlope5 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_INV_GAMMA_ Slope_5
2059 uint32_t Reserved924 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2060 };
2061 uint32_t Value;
2062 } DW28;
2063 union
2064 {
2065 //!< DWORD 29
2066 struct
2067 {
2068 uint32_t PwlInvGammaSlope6 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_INV_GAMMA_ Slope_6
2069 uint32_t Reserved940 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2070 uint32_t PwlInvGammaSlope7 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_INV_GAMMA_ Slope_7
2071 uint32_t Reserved956 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2072 };
2073 uint32_t Value;
2074 } DW29;
2075 union
2076 {
2077 //!< DWORD 30
2078 struct
2079 {
2080 uint32_t PwlInvGammaSlope8 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_INV_GAMMA_ Slope_8
2081 uint32_t Reserved972 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2082 uint32_t PwlInvGammaSlope9 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_INV_GAMMA_ Slope_9
2083 uint32_t Reserved988 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2084 };
2085 uint32_t Value;
2086 } DW30;
2087 union
2088 {
2089 //!< DWORD 31
2090 struct
2091 {
2092 uint32_t PwlInvGammaSlope10 : __CODEGEN_BITFIELD( 0, 11) ; //!< PWL_INV_GAMMA_ Slope_10
2093 uint32_t Reserved1004 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2094 uint32_t PwlInvGammaSlope11 : __CODEGEN_BITFIELD(16, 27) ; //!< PWL_INV_GAMMA_ Slope_11
2095 uint32_t Reserved1020 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2096 };
2097 uint32_t Value;
2098 } DW31;
2099 union
2100 {
2101 //!< DWORD 32
2102 struct
2103 {
2104 uint32_t OffsetInR : __CODEGEN_BITFIELD( 0, 14) ; //!< OFFSET_IN_R
2105 uint32_t Reserved1039 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
2106 uint32_t OffsetInG : __CODEGEN_BITFIELD(16, 30) ; //!< OFFSET_IN_G
2107 uint32_t Reserved1055 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2108 };
2109 uint32_t Value;
2110 } DW32;
2111 union
2112 {
2113 //!< DWORD 33
2114 struct
2115 {
2116 uint32_t OffsetInB : __CODEGEN_BITFIELD( 0, 14) ; //!< OFFSET_IN_B
2117 uint32_t Reserved1071 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
2118 uint32_t OffsetOutB : __CODEGEN_BITFIELD(16, 30) ; //!< Offset_out_B
2119 uint32_t Reserved1087 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2120 };
2121 uint32_t Value;
2122 } DW33;
2123 union
2124 {
2125 //!< DWORD 34
2126 struct
2127 {
2128 uint32_t OffsetOutR : __CODEGEN_BITFIELD( 0, 14) ; //!< Offset_out_R
2129 uint32_t Reserved1103 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
2130 uint32_t OffsetOutG : __CODEGEN_BITFIELD(16, 30) ; //!< Offset_out_G
2131 uint32_t Reserved1119 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2132 };
2133 uint32_t Value;
2134 } DW34;
2135 union
2136 {
2137 //!< DWORD 35
2138 struct
2139 {
2140 uint32_t D1Out : __CODEGEN_BITFIELD( 0, 9) ; //!< D1OUT
2141 uint32_t DOutDefault : __CODEGEN_BITFIELD(10, 19) ; //!< DOUT_DEFAULT
2142 uint32_t DInDefault : __CODEGEN_BITFIELD(20, 29) ; //!< DINDEFAULT
2143 uint32_t Fullrangemappingenable : __CODEGEN_BITFIELD(30, 30) ; //!< FULLRANGEMAPPINGENABLE
2144 uint32_t Reserved1151 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2145 };
2146 uint32_t Value;
2147 } DW35;
2148 union
2149 {
2150 //!< DWORD 36
2151 struct
2152 {
2153 uint32_t D1In : __CODEGEN_BITFIELD( 0, 9) ; //!< D1IN
2154 uint32_t Reserved1162 : __CODEGEN_BITFIELD(10, 27) ; //!< Reserved
2155 uint32_t Compressionlineshift : __CODEGEN_BITFIELD(28, 30) ; //!< COMPRESSIONLINESHIFT
2156 uint32_t Xvyccdecencenable : __CODEGEN_BITFIELD(31, 31) ; //!< XVYCCDECENCENABLE
2157 };
2158 uint32_t Value;
2159 } DW36;
2160 union
2161 {
2162 //!< DWORD 37
2163 struct
2164 {
2165 uint32_t CpiOverride : __CODEGEN_BITFIELD( 0, 0) ; //!< CPI_OVERRIDE
2166 uint32_t Reserved1185 : __CODEGEN_BITFIELD( 1, 10) ; //!< Reserved
2167 uint32_t Basicmodescalingfactor : __CODEGEN_BITFIELD(11, 24) ; //!< BasicModeScalingFactor
2168 uint32_t Reserved1209 : __CODEGEN_BITFIELD(25, 28) ; //!< Reserved
2169 uint32_t Lumachormaonlycorrection : __CODEGEN_BITFIELD(29, 29) ; //!< LUMACHORMAONLYCORRECTION
2170 uint32_t GccBasicmodeselection : __CODEGEN_BITFIELD(30, 31) ; //!< GCC_BASICMODESELECTION
2171 };
2172 uint32_t Value;
2173 } DW37;
2174
2175 //! \name Local enumerations
2176
2177 //! \brief GLOBAL_MODE_ENABLE
2178 //! \details
2179 //! The gain factor derived from state CM(w)
2180 enum GLOBAL_MODE_ENABLE
2181 {
2182 GLOBAL_MODE_ENABLE_ADVANCEMODE = 0, //!< No additional details
2183 GLOBAL_MODE_ENABLE_BASICMODE = 1, //!< No additional details
2184 };
2185
2186 //! \brief AR
2187 //! \details
2188 //! Gain_factor_R (default: 436, preferred range: 256-511)
2189 enum AR
2190 {
2191 AR_UNNAMED436 = 436, //!< No additional details
2192 };
2193
2194 //! \brief PWL_GAMMA_POINT_1
2195 //! \details
2196 //! Point 1 for PWL for gamma correction
2197 enum PWL_GAMMA_POINT_1
2198 {
2199 PWL_GAMMA_POINT_1_UNNAMED1 = 1, //!< No additional details
2200 };
2201
2202 //! \brief PWL_GAMMA_POINT_2
2203 //! \details
2204 //! Point 2 for PWL for gamma correction
2205 enum PWL_GAMMA_POINT_2
2206 {
2207 PWL_GAMMA_POINT_2_UNNAMED2 = 2, //!< No additional details
2208 };
2209
2210 //! \brief PWL_GAMMA_POINT_3
2211 //! \details
2212 //! Point 3 for PWL for gamma correction
2213 enum PWL_GAMMA_POINT_3
2214 {
2215 PWL_GAMMA_POINT_3_UNNAMED5 = 5, //!< No additional details
2216 };
2217
2218 //! \brief PWL_GAMMA_POINT_4
2219 //! \details
2220 //! Point 4 for PWL for gamma correction
2221 enum PWL_GAMMA_POINT_4
2222 {
2223 PWL_GAMMA_POINT_4_UNNAMED9 = 9, //!< No additional details
2224 };
2225
2226 //! \brief PWL_GAMMA_POINT_5
2227 //! \details
2228 //! Point 5 for PWL for gamma correction
2229 enum PWL_GAMMA_POINT_5
2230 {
2231 PWL_GAMMA_POINT_5_UNNAMED16 = 16, //!< No additional details
2232 };
2233
2234 //! \brief PWL_GAMMA_POINT_6
2235 //! \details
2236 //! Point 6 for PWL for gamma correction
2237 enum PWL_GAMMA_POINT_6
2238 {
2239 PWL_GAMMA_POINT_6_UNNAMED26 = 26, //!< No additional details
2240 };
2241
2242 //! \brief PWL_GAMMA_POINT_7
2243 //! \details
2244 //! Point 7 for PWL for gamma correction
2245 enum PWL_GAMMA_POINT_7
2246 {
2247 PWL_GAMMA_POINT_7_UNNAMED42 = 42, //!< No additional details
2248 };
2249
2250 //! \brief PWL_GAMMA_POINT_8
2251 //! \details
2252 //! Point 8 for PWL for gamma correction
2253 enum PWL_GAMMA_POINT_8
2254 {
2255 PWL_GAMMA_POINT_8_UNNAMED65 = 65, //!< No additional details
2256 };
2257
2258 //! \brief PWL_GAMMA_POINT_9
2259 //! \details
2260 //! Point 9 for PWL for gamma correction
2261 enum PWL_GAMMA_POINT_9
2262 {
2263 PWL_GAMMA_POINT_9_UNNAMED96 = 96, //!< No additional details
2264 };
2265
2266 //! \brief PWL_GAMMA_POINT_10
2267 //! \details
2268 //! Point 10 for PWL for gamma correction
2269 enum PWL_GAMMA_POINT_10
2270 {
2271 PWL_GAMMA_POINT_10_UNNAMED136 = 136, //!< No additional details
2272 };
2273
2274 //! \brief PWL_GAMMA_POINT_11
2275 //! \details
2276 //! Point 11 for PWL for gamma correction
2277 enum PWL_GAMMA_POINT_11
2278 {
2279 PWL_GAMMA_POINT_11_UNNAMED187 = 187, //!< No additional details
2280 };
2281
2282 //! \brief PWL_GAMMA_BIAS_1
2283 //! \details
2284 //! Bias 1 for PWL for gamma correction
2285 enum PWL_GAMMA_BIAS_1
2286 {
2287 PWL_GAMMA_BIAS_1_UNNAMED13 = 13, //!< No additional details
2288 };
2289
2290 //! \brief PWL_GAMMA_BIAS_2
2291 //! \details
2292 //! Bias 2 for PWL for gamma correction
2293 enum PWL_GAMMA_BIAS_2
2294 {
2295 PWL_GAMMA_BIAS_2_UNNAMED23 = 23, //!< No additional details
2296 };
2297
2298 //! \brief PWL_GAMMA_BIAS_3
2299 //! \details
2300 //! Bias 3 for PWL for gamma correction
2301 enum PWL_GAMMA_BIAS_3
2302 {
2303 PWL_GAMMA_BIAS_3_UNNAMED38 = 38, //!< No additional details
2304 };
2305
2306 //! \brief PWL_GAMMA_BIAS_4
2307 //! \details
2308 //! Bias 4 for PWL for gamma correction
2309 enum PWL_GAMMA_BIAS_4
2310 {
2311 PWL_GAMMA_BIAS_4_UNNAMED53 = 53, //!< No additional details
2312 };
2313
2314 //! \brief PWL_GAMMA_BIAS_5
2315 //! \details
2316 //! Bias 5 for PWL for gamma correction
2317 enum PWL_GAMMA_BIAS_5
2318 {
2319 PWL_GAMMA_BIAS_5_UNNAMED71 = 71, //!< No additional details
2320 };
2321
2322 //! \brief PWL_GAMMA_BIAS_6
2323 //! \details
2324 //! Bias 6 for PWL for gamma correction
2325 enum PWL_GAMMA_BIAS_6
2326 {
2327 PWL_GAMMA_BIAS_6_UNNAMED91 = 91, //!< No additional details
2328 };
2329
2330 //! \brief PWL_GAMMA_BIAS_7
2331 //! \details
2332 //! Bias 7 for PWL for gamma correction
2333 enum PWL_GAMMA_BIAS_7
2334 {
2335 PWL_GAMMA_BIAS_7_UNNAMED114 = 114, //!< No additional details
2336 };
2337
2338 //! \brief PWL_GAMMA_BIAS_8
2339 //! \details
2340 //! Bias 8 for PWL for gamma correction
2341 enum PWL_GAMMA_BIAS_8
2342 {
2343 PWL_GAMMA_BIAS_8_UNNAMED139 = 139, //!< No additional details
2344 };
2345
2346 //! \brief PWL_GAMMA_BIAS_9
2347 //! \details
2348 //! Bias 9 for PWL for gamma correction
2349 enum PWL_GAMMA_BIAS_9
2350 {
2351 PWL_GAMMA_BIAS_9_UNNAMED165 = 165, //!< No additional details
2352 };
2353
2354 //! \brief PWL_GAMMA_BIAS_10
2355 //! \details
2356 //! Bias 10 for PWL for gamma correction
2357 enum PWL_GAMMA_BIAS_10
2358 {
2359 PWL_GAMMA_BIAS_10_UNNAMED193 = 193, //!< No additional details
2360 };
2361
2362 //! \brief PWL_GAMMA_BIAS_11
2363 //! \details
2364 //! Bias 11 for PWL for gamma correction
2365 enum PWL_GAMMA_BIAS_11
2366 {
2367 PWL_GAMMA_BIAS_11_UNNAMED223 = 223, //!< No additional details
2368 };
2369
2370 //! \brief PWL_INV_GAMMA_POINT_1
2371 //! \details
2372 //! Point 1 for PWL for inverse gamma correction
2373 enum PWL_INV_GAMMA_POINT_1
2374 {
2375 PWL_INV_GAMMA_POINT_1_UNNAMED30 = 30, //!< No additional details
2376 };
2377
2378 //! \brief PWL_INV_GAMMA_POINT_2
2379 //! \details
2380 //! Point 2 for PWL for inverse gamma correction
2381 enum PWL_INV_GAMMA_POINT_2
2382 {
2383 PWL_INV_GAMMA_POINT_2_UNNAMED55 = 55, //!< No additional details
2384 };
2385
2386 //! \brief PWL_INV_GAMMA_POINT_3
2387 //! \details
2388 //! Point 3 for PWL for inverse gamma correction
2389 enum PWL_INV_GAMMA_POINT_3
2390 {
2391 PWL_INV_GAMMA_POINT_3_UNNAMED79 = 79, //!< No additional details
2392 };
2393
2394 //! \brief PWL_INV_GAMMA_POINT_4
2395 //! \details
2396 //! Point 4 for PWL for inverse gamma correction
2397 enum PWL_INV_GAMMA_POINT_4
2398 {
2399 PWL_INV_GAMMA_POINT_4_UNNAMED101 = 101, //!< No additional details
2400 };
2401
2402 //! \brief PWL_INV_GAMMA_POINT_5
2403 //! \details
2404 //! Point 5 for PWL for inverse gamma correction
2405 enum PWL_INV_GAMMA_POINT_5
2406 {
2407 PWL_INV_GAMMA_POINT_5_UNNAMED122 = 122, //!< No additional details
2408 };
2409
2410 //! \brief PWL_INV_GAMMA_POINT_6
2411 //! \details
2412 //! Point 6 for PWL for inverse gamma correction
2413 enum PWL_INV_GAMMA_POINT_6
2414 {
2415 PWL_INV_GAMMA_POINT_6_UNNAMED141 = 141, //!< No additional details
2416 };
2417
2418 //! \brief PWL_INV_GAMMA_POINT_7
2419 //! \details
2420 //! Point 7 for PWL for inverse gamma correction
2421 enum PWL_INV_GAMMA_POINT_7
2422 {
2423 PWL_INV_GAMMA_POINT_7_UNNAMED162 = 162, //!< No additional details
2424 };
2425
2426 //! \brief PWL_INV_GAMMA_POINT_8
2427 //! \details
2428 //! Point 8 for PWL for inverse gamma correction
2429 enum PWL_INV_GAMMA_POINT_8
2430 {
2431 PWL_INV_GAMMA_POINT_8_UNNAMED181 = 181, //!< No additional details
2432 };
2433
2434 //! \brief PWL_INV_GAMMA_POINT_9
2435 //! \details
2436 //! Point 9 for PWL for inverse gamma correction
2437 enum PWL_INV_GAMMA_POINT_9
2438 {
2439 PWL_INV_GAMMA_POINT_9_UNNAMED200 = 200, //!< No additional details
2440 };
2441
2442 //! \brief PWL_INV_GAMMA_POINT_10
2443 //! \details
2444 //! Point 10 for PWL for inverse gamma correction
2445 enum PWL_INV_GAMMA_POINT_10
2446 {
2447 PWL_INV_GAMMA_POINT_10_UNNAMED219 = 219, //!< No additional details
2448 };
2449
2450 //! \brief PWL_INV_GAMMA_POINT_11
2451 //! \details
2452 //! Point 11 for PWL for inverse gamma correction
2453 enum PWL_INV_GAMMA_POINT_11
2454 {
2455 PWL_INV_GAMMA_POINT_11_UNNAMED237 = 237, //!< No additional details
2456 };
2457
2458 //! \brief PWL_INV_GAMMA_BIAS_1
2459 //! \details
2460 //! Bias 1 for PWL for inverse gamma correction
2461 enum PWL_INV_GAMMA_BIAS_1
2462 {
2463 PWL_INV_GAMMA_BIAS_1_UNNAMED3 = 3, //!< No additional details
2464 };
2465
2466 //! \brief PWL_INV_GAMMA_BIAS_2
2467 //! \details
2468 //! Bias 2 for PWL for inverse gamma correction
2469 enum PWL_INV_GAMMA_BIAS_2
2470 {
2471 PWL_INV_GAMMA_BIAS_2_UNNAMED10 = 10, //!< No additional details
2472 };
2473
2474 //! \brief PWL_INV_GAMMA_BIAS_3
2475 //! \details
2476 //! Bias 3 for PWL for inverse gamma correction
2477 enum PWL_INV_GAMMA_BIAS_3
2478 {
2479 PWL_INV_GAMMA_BIAS_3_UNNAMED20 = 20, //!< No additional details
2480 };
2481
2482 //! \brief PWL_INV_GAMMA_BIAS_4
2483 //! \details
2484 //! Bias 4 for PWL for inverse gamma correction
2485 enum PWL_INV_GAMMA_BIAS_4
2486 {
2487 PWL_INV_GAMMA_BIAS_4_UNNAMED33 = 33, //!< No additional details
2488 };
2489
2490 //! \brief PWL_INV_GAMMA_BIAS_5
2491 //! \details
2492 //! Bias 5 for PWL for inverse gamma correction
2493 enum PWL_INV_GAMMA_BIAS_5
2494 {
2495 PWL_INV_GAMMA_BIAS_5_UNNAMED49 = 49, //!< No additional details
2496 };
2497
2498 //! \brief PWL_INV_GAMMA_BIAS_6
2499 //! \details
2500 //! Bias 6 for PWL for inverse gamma correction
2501 enum PWL_INV_GAMMA_BIAS_6
2502 {
2503 PWL_INV_GAMMA_BIAS_6_UNNAMED67 = 67, //!< No additional details
2504 };
2505
2506 //! \brief PWL_INV_GAMMA_BIAS_7
2507 //! \details
2508 //! Bias 7 for PWL for inverse gamma correction
2509 enum PWL_INV_GAMMA_BIAS_7
2510 {
2511 PWL_INV_GAMMA_BIAS_7_UNNAMED92 = 92, //!< No additional details
2512 };
2513
2514 //! \brief PWL_INV_GAMMA_BIAS_8
2515 //! \details
2516 //! Bias 8 for PWL for inverse gamma correction
2517 enum PWL_INV_GAMMA_BIAS_8
2518 {
2519 PWL_INV_GAMMA_BIAS_8_UNNAMED117 = 117, //!< No additional details
2520 };
2521
2522 //! \brief PWL_INV_GAMMA_BIAS_9
2523 //! \details
2524 //! Bias 9 for PWL for inverse gamma correction
2525 enum PWL_INV_GAMMA_BIAS_9
2526 {
2527 PWL_INV_GAMMA_BIAS_9_UNNAMED147 = 147, //!< No additional details
2528 };
2529
2530 //! \brief PWL_INV_GAMMA_BIAS_10
2531 //! \details
2532 //! Bias 10 for PWL for inverse gamma correction
2533 enum PWL_INV_GAMMA_BIAS_10
2534 {
2535 PWL_INV_GAMMA_BIAS_10_UNNAMED180 = 180, //!< No additional details
2536 };
2537
2538 //! \brief PWL_INV_GAMMA_BIAS_11
2539 //! \details
2540 //! Bias 11 for PWL for inverse gamma correction
2541 enum PWL_INV_GAMMA_BIAS_11
2542 {
2543 PWL_INV_GAMMA_BIAS_11_UNNAMED215 = 215, //!< No additional details
2544 };
2545
2546 //! \brief OFFSET_IN_R
2547 //! \details
2548 //! The input offset for red component
2549 enum OFFSET_IN_R
2550 {
2551 OFFSET_IN_R_UNNAMED0 = 0, //!< No additional details
2552 };
2553
2554 //! \brief OFFSET_IN_G
2555 //! \details
2556 //! The input offset for green component
2557 enum OFFSET_IN_G
2558 {
2559 OFFSET_IN_G_UNNAMED0 = 0, //!< No additional details
2560 };
2561
2562 //! \brief OFFSET_IN_B
2563 //! \details
2564 //! The input offset for red component
2565 enum OFFSET_IN_B
2566 {
2567 OFFSET_IN_B_UNNAMED0 = 0, //!< No additional details
2568 };
2569
2570 //! \brief D1OUT
2571 //! \details
2572 //! OuterTriangleMappingLengthBelow
2573 enum D1OUT
2574 {
2575 D1OUT_UNNAMED287 = 287, //!< No additional details
2576 };
2577
2578 //! \brief DOUT_DEFAULT
2579 //! \details
2580 //! OuterTriangleMappingLength
2581 enum DOUT_DEFAULT
2582 {
2583 DOUT_DEFAULT_UNNAMED164 = 164, //!< No additional details
2584 };
2585
2586 //! \brief DINDEFAULT
2587 //! \details
2588 //! InnerTriangleMappingLength
2589 enum DINDEFAULT
2590 {
2591 DINDEFAULT_UNNAMED205 = 205, //!< No additional details
2592 };
2593
2594 enum FULLRANGEMAPPINGENABLE
2595 {
2596 FULLRANGEMAPPINGENABLE_BASICMODE = 0, //!< No additional details
2597 FULLRANGEMAPPINGENABLE_ADVANCEMODE = 1, //!< No additional details
2598 };
2599
2600 //! \brief D1IN
2601 //! \details
2602 //! InnerTriangleMappingLengthBelow
2603 enum D1IN
2604 {
2605 D1IN_UNNAMED820 = 820, //!< No additional details
2606 };
2607
2608 enum COMPRESSIONLINESHIFT
2609 {
2610 COMPRESSIONLINESHIFT_UNNAMED3 = 3, //!< No additional details
2611 };
2612
2613 //! \brief XVYCCDECENCENABLE
2614 //! \details
2615 //! This bit is valid only when ColorGamutCompressionnEnable is on.
2616 enum XVYCCDECENCENABLE
2617 {
2618 XVYCCDECENCENABLE_TODISABLEBOTHXVYCCDECODEANDXVYCCENCODE = 0, //!< No additional details
2619 XVYCCDECENCENABLE_BOTHXVYCCDECODEANDXVYCCENCODEAREENABLED = 1, //!< No additional details
2620 };
2621
2622 enum CPI_OVERRIDE
2623 {
2624 CPI_OVERRIDE_UNNAMED0 = 0, //!< No additional details
2625 CPI_OVERRIDE_OVERRIDECPICALCULATION = 1, //!< No additional details
2626 };
2627
2628 enum LUMACHORMAONLYCORRECTION
2629 {
2630 LUMACHORMAONLYCORRECTION_LUMAONLYCORRECTION = 0, //!< No additional details
2631 LUMACHORMAONLYCORRECTION_CHORMAONLYCORRECTION = 1, //!< No additional details
2632 };
2633
2634 enum GCC_BASICMODESELECTION
2635 {
2636 GCC_BASICMODESELECTION_DEFAULT = 0, //!< No additional details
2637 GCC_BASICMODESELECTION_SCALINGFACTOR = 1, //!< Used along with Dword66 Bits 28:11
2638 GCC_BASICMODESELECTION_SINGLEAXISGAMMACORRECTION = 2, //!< Used along with Dword67 Bit 29
2639 GCC_BASICMODESELECTION_SCALINGFACTORWITHFIXEDLUMA = 3, //!< Used along with Dword37 Bits 28:11
2640 };
2641
2642 //! \name Initializations
2643
2644 //! \brief Explicit member initialization function
2645 VEBOX_GAMUT_STATE_CMD();
2646
2647 static const size_t dwSize = 38;
2648 static const size_t byteSize = 152;
2649 };
2650
2651 //!
2652 //! \brief VEBOX_STD_STE_STATE
2653 //! \details
2654 //! This state structure contains the state used by the STD/STE function.
2655 //!
2656 struct VEBOX_STD_STE_STATE_CMD
2657 {
2658 union
2659 {
2660 struct
2661 {
2662 uint32_t StdEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< STD Enable
2663 uint32_t SteEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< STE Enable
2664 uint32_t OutputControl : __CODEGEN_BITFIELD( 2, 2) ; //!< OUTPUT_CONTROL
2665 uint32_t Reserved3 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
2666 uint32_t SatMax : __CODEGEN_BITFIELD( 4, 9) ; //!< SAT_MAX
2667 uint32_t HueMax : __CODEGEN_BITFIELD(10, 15) ; //!< HUE_MAX
2668 uint32_t UMid : __CODEGEN_BITFIELD(16, 23) ; //!< U_MID
2669 uint32_t VMid : __CODEGEN_BITFIELD(24, 31) ; //!< V_MID
2670 };
2671 uint32_t Value;
2672 } DW0;
2673 union
2674 {
2675 struct
2676 {
2677 uint32_t Sin : __CODEGEN_BITFIELD( 0, 7) ; //!< SIN
2678 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 9) ; //!< Reserved
2679 uint32_t Cos : __CODEGEN_BITFIELD(10, 17) ; //!< COS
2680 uint32_t HsMargin : __CODEGEN_BITFIELD(18, 20) ; //!< HS_MARGIN
2681 uint32_t DiamondDu : __CODEGEN_BITFIELD(21, 27) ; //!< DIAMOND_DU
2682 uint32_t DiamondMargin : __CODEGEN_BITFIELD(28, 30) ; //!< DIAMOND_MARGIN
2683 uint32_t Reserved63 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2684 };
2685 uint32_t Value;
2686 } DW1;
2687 union
2688 {
2689 struct
2690 {
2691 uint32_t DiamondDv : __CODEGEN_BITFIELD( 0, 6) ; //!< DIAMOND_DV
2692 uint32_t DiamondTh : __CODEGEN_BITFIELD( 7, 12) ; //!< DIAMOND_TH
2693 uint32_t DiamondAlpha : __CODEGEN_BITFIELD(13, 20) ; //!< DIAMOND_ALPHA
2694 uint32_t Reserved85 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
2695 };
2696 uint32_t Value;
2697 } DW2;
2698 union
2699 {
2700 struct
2701 {
2702 uint32_t Reserved96 : __CODEGEN_BITFIELD( 0, 6) ; //!< Reserved
2703 uint32_t VyStdEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< VY_STD_Enable
2704 uint32_t YPoint1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Y_POINT_1
2705 uint32_t YPoint2 : __CODEGEN_BITFIELD(16, 23) ; //!< Y_POINT_2
2706 uint32_t YPoint3 : __CODEGEN_BITFIELD(24, 31) ; //!< Y_POINT_3
2707 };
2708 uint32_t Value;
2709 } DW3;
2710 union
2711 {
2712 struct
2713 {
2714 uint32_t YPoint4 : __CODEGEN_BITFIELD( 0, 7) ; //!< Y_POINT_4
2715 uint32_t YSlope1 : __CODEGEN_BITFIELD( 8, 12) ; //!< Y_SLOPE_1
2716 uint32_t YSlope2 : __CODEGEN_BITFIELD(13, 17) ; //!< Y_SLOPE_2
2717 uint32_t Reserved146 : __CODEGEN_BITFIELD(18, 31) ; //!< Reserved
2718 };
2719 uint32_t Value;
2720 } DW4;
2721 union
2722 {
2723 struct
2724 {
2725 uint32_t InvMarginVyl : __CODEGEN_BITFIELD( 0, 15) ; //!< INV_Margin_VYL
2726 uint32_t InvSkinTypesMargin : __CODEGEN_BITFIELD(16, 31) ; //!< INV_SKIN_TYPES_MARGIN
2727 };
2728 uint32_t Value;
2729 } DW5;
2730 union
2731 {
2732 struct
2733 {
2734 uint32_t InvMarginVyu : __CODEGEN_BITFIELD( 0, 15) ; //!< INV_MARGIN_VYU
2735 uint32_t P0L : __CODEGEN_BITFIELD(16, 23) ; //!< P0L
2736 uint32_t P1L : __CODEGEN_BITFIELD(24, 31) ; //!< P1L
2737 };
2738 uint32_t Value;
2739 } DW6;
2740 union
2741 {
2742 struct
2743 {
2744 uint32_t P2L : __CODEGEN_BITFIELD( 0, 7) ; //!< P2L
2745 uint32_t P3L : __CODEGEN_BITFIELD( 8, 15) ; //!< P3L
2746 uint32_t B0L : __CODEGEN_BITFIELD(16, 23) ; //!< B0L
2747 uint32_t B1L : __CODEGEN_BITFIELD(24, 31) ; //!< B1L
2748 };
2749 uint32_t Value;
2750 } DW7;
2751 union
2752 {
2753 struct
2754 {
2755 uint32_t B2L : __CODEGEN_BITFIELD( 0, 7) ; //!< B2L
2756 uint32_t B3L : __CODEGEN_BITFIELD( 8, 15) ; //!< B3L
2757 uint32_t S0L : __CODEGEN_BITFIELD(16, 26) ; //!< S0L
2758 uint32_t Reserved283 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
2759 };
2760 uint32_t Value;
2761 } DW8;
2762 union
2763 {
2764 struct
2765 {
2766 uint32_t S1L : __CODEGEN_BITFIELD( 0, 10) ; //!< S1L
2767 uint32_t S2L : __CODEGEN_BITFIELD(11, 21) ; //!< S2L
2768 uint32_t Reserved310 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2769 };
2770 uint32_t Value;
2771 } DW9;
2772 union
2773 {
2774 struct
2775 {
2776 uint32_t S3L : __CODEGEN_BITFIELD( 0, 10) ; //!< S3L
2777 uint32_t P0U : __CODEGEN_BITFIELD(11, 18) ; //!< P0U
2778 uint32_t P1U : __CODEGEN_BITFIELD(19, 26) ; //!< P1U
2779 uint32_t Reserved347 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
2780 };
2781 uint32_t Value;
2782 } DW10;
2783 union
2784 {
2785 struct
2786 {
2787 uint32_t P2U : __CODEGEN_BITFIELD( 0, 7) ; //!< P2U
2788 uint32_t P3U : __CODEGEN_BITFIELD( 8, 15) ; //!< P3U
2789 uint32_t B0U : __CODEGEN_BITFIELD(16, 23) ; //!< B0U
2790 uint32_t B1U : __CODEGEN_BITFIELD(24, 31) ; //!< B1U
2791 };
2792 uint32_t Value;
2793 } DW11;
2794 union
2795 {
2796 struct
2797 {
2798 uint32_t B2U : __CODEGEN_BITFIELD( 0, 7) ; //!< B2U
2799 uint32_t B3U : __CODEGEN_BITFIELD( 8, 15) ; //!< B3U
2800 uint32_t S0U : __CODEGEN_BITFIELD(16, 26) ; //!< S0U
2801 uint32_t Reserved411 : __CODEGEN_BITFIELD(27, 31) ; //!< Reserved
2802 };
2803 uint32_t Value;
2804 } DW12;
2805 union
2806 {
2807 struct
2808 {
2809 uint32_t S1U : __CODEGEN_BITFIELD( 0, 10) ; //!< S1U
2810 uint32_t S2U : __CODEGEN_BITFIELD(11, 21) ; //!< S2U
2811 uint32_t Reserved438 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2812 };
2813 uint32_t Value;
2814 } DW13;
2815 union
2816 {
2817 struct
2818 {
2819 uint32_t S3U : __CODEGEN_BITFIELD( 0, 10) ; //!< S3U
2820 uint32_t SkinTypesEnable : __CODEGEN_BITFIELD(11, 11) ; //!< SKIN_TYPES_ENABLE
2821 uint32_t SkinTypesThresh : __CODEGEN_BITFIELD(12, 19) ; //!< SKIN_TYPES_THRESH
2822 uint32_t SkinTypesMargin : __CODEGEN_BITFIELD(20, 27) ; //!< SKIN_TYPES_MARGIN
2823 uint32_t Reserved476 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
2824 };
2825 uint32_t Value;
2826 } DW14;
2827 union
2828 {
2829 struct
2830 {
2831 uint32_t Satp1 : __CODEGEN_BITFIELD( 0, 6) ; //!< SATP1
2832 uint32_t Satp2 : __CODEGEN_BITFIELD( 7, 13) ; //!< SATP2
2833 uint32_t Satp3 : __CODEGEN_BITFIELD(14, 20) ; //!< SATP3
2834 uint32_t Satb1 : __CODEGEN_BITFIELD(21, 30) ; //!< SATB1
2835 uint32_t Reserved511 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2836 };
2837 uint32_t Value;
2838 } DW15;
2839 union
2840 {
2841 struct
2842 {
2843 uint32_t Satb2 : __CODEGEN_BITFIELD( 0, 9) ; //!< SATB2
2844 uint32_t Satb3 : __CODEGEN_BITFIELD(10, 19) ; //!< SATB3
2845 uint32_t Sats0 : __CODEGEN_BITFIELD(20, 30) ; //!< SATS0
2846 uint32_t Reserved543 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2847 };
2848 uint32_t Value;
2849 } DW16;
2850 union
2851 {
2852 struct
2853 {
2854 uint32_t Sats1 : __CODEGEN_BITFIELD( 0, 10) ; //!< SATS1
2855 uint32_t Sats2 : __CODEGEN_BITFIELD(11, 21) ; //!< SATS2
2856 uint32_t Reserved566 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2857 };
2858 uint32_t Value;
2859 } DW17;
2860 union
2861 {
2862 struct
2863 {
2864 uint32_t Sats3 : __CODEGEN_BITFIELD( 0, 10) ; //!< SATS3
2865 uint32_t Huep1 : __CODEGEN_BITFIELD(11, 17) ; //!< HUEP1
2866 uint32_t Huep2 : __CODEGEN_BITFIELD(18, 24) ; //!< HUEP2
2867 uint32_t Huep3 : __CODEGEN_BITFIELD(25, 31) ; //!< HUEP3
2868 };
2869 uint32_t Value;
2870 } DW18;
2871 union
2872 {
2873 struct
2874 {
2875 uint32_t Hueb1 : __CODEGEN_BITFIELD( 0, 9) ; //!< HUEB1
2876 uint32_t Hueb2 : __CODEGEN_BITFIELD(10, 19) ; //!< HUEB2
2877 uint32_t Hueb3 : __CODEGEN_BITFIELD(20, 29) ; //!< HUEB3
2878 uint32_t Reserved638 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
2879 };
2880 uint32_t Value;
2881 } DW19;
2882 union
2883 {
2884 struct
2885 {
2886 uint32_t Hues0 : __CODEGEN_BITFIELD( 0, 10) ; //!< HUES0
2887 uint32_t Hues1 : __CODEGEN_BITFIELD(11, 21) ; //!< HUES1
2888 uint32_t Reserved662 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2889 };
2890 uint32_t Value;
2891 } DW20;
2892 union
2893 {
2894 struct
2895 {
2896 uint32_t Hues2 : __CODEGEN_BITFIELD( 0, 10) ; //!< HUES2
2897 uint32_t Hues3 : __CODEGEN_BITFIELD(11, 21) ; //!< HUES3
2898 uint32_t Reserved694 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2899 };
2900 uint32_t Value;
2901 } DW21;
2902 union
2903 {
2904 struct
2905 {
2906 uint32_t Satp1Dark : __CODEGEN_BITFIELD( 0, 6) ; //!< SATP1_DARK
2907 uint32_t Satp2Dark : __CODEGEN_BITFIELD( 7, 13) ; //!< SATP2_DARK
2908 uint32_t Satp3Dark : __CODEGEN_BITFIELD(14, 20) ; //!< SATP3_DARK
2909 uint32_t Satb1Dark : __CODEGEN_BITFIELD(21, 30) ; //!< SATB1_DARK
2910 uint32_t Reserved735 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2911 };
2912 uint32_t Value;
2913 } DW22;
2914 union
2915 {
2916 struct
2917 {
2918 uint32_t Satb2Dark : __CODEGEN_BITFIELD( 0, 9) ; //!< SATB2_DARK
2919 uint32_t Satb3Dark : __CODEGEN_BITFIELD(10, 19) ; //!< SATB3_DARK
2920 uint32_t Sats0Dark : __CODEGEN_BITFIELD(20, 30) ; //!< SATS0_DARK
2921 uint32_t Reserved767 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
2922 };
2923 uint32_t Value;
2924 } DW23;
2925 union
2926 {
2927 struct
2928 {
2929 uint32_t Sats1Dark : __CODEGEN_BITFIELD( 0, 10) ; //!< SATS1_DARK
2930 uint32_t Sats2Dark : __CODEGEN_BITFIELD(11, 21) ; //!< SATS2_DARK
2931 uint32_t Reserved790 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2932 };
2933 uint32_t Value;
2934 } DW24;
2935 union
2936 {
2937 struct
2938 {
2939 uint32_t Sats3Dark : __CODEGEN_BITFIELD( 0, 10) ; //!< SATS3_DARK
2940 uint32_t Huep1Dark : __CODEGEN_BITFIELD(11, 17) ; //!< HUEP1_DARK
2941 uint32_t Huep2Dark : __CODEGEN_BITFIELD(18, 24) ; //!< HUEP2_DARK
2942 uint32_t Huep3Dark : __CODEGEN_BITFIELD(25, 31) ; //!< HUEP3_DARK
2943 };
2944 uint32_t Value;
2945 } DW25;
2946 union
2947 {
2948 struct
2949 {
2950 uint32_t Hueb1Dark : __CODEGEN_BITFIELD( 0, 9) ; //!< HUEB1_DARK
2951 uint32_t Hueb2Dark : __CODEGEN_BITFIELD(10, 19) ; //!< HUEB2_DARK
2952 uint32_t Hueb3Dark : __CODEGEN_BITFIELD(20, 29) ; //!< HUEB3_DARK
2953 uint32_t Reserved862 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
2954 };
2955 uint32_t Value;
2956 } DW26;
2957 union
2958 {
2959 struct
2960 {
2961 uint32_t Hues0Dark : __CODEGEN_BITFIELD( 0, 10) ; //!< HUES0_DARK
2962 uint32_t Hues1Dark : __CODEGEN_BITFIELD(11, 21) ; //!< HUES1_DARK
2963 uint32_t Reserved886 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2964 };
2965 uint32_t Value;
2966 } DW27;
2967 union
2968 {
2969 struct
2970 {
2971 uint32_t Hues2Dark : __CODEGEN_BITFIELD( 0, 10) ; //!< HUES2_DARK
2972 uint32_t Hues3Dark : __CODEGEN_BITFIELD(11, 21) ; //!< HUES3_DARK
2973 uint32_t Reserved918 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2974 };
2975 uint32_t Value;
2976 } DW28;
2977
2978 //! \name Local enumerations
2979
2980 enum OUTPUT_CONTROL
2981 {
2982 OUTPUT_CONTROL_OUTPUTPIXELS = 0, //!< No additional details
2983 OUTPUT_CONTROL_OUTPUTSTDDECISIONS = 1, //!< No additional details
2984 };
2985
2986 //! \brief SAT_MAX
2987 //! \details
2988 //! Rectangle half length.
2989 enum SAT_MAX
2990 {
2991 SAT_MAX_UNNAMED31 = 31, //!< No additional details
2992 };
2993
2994 //! \brief HUE_MAX
2995 //! \details
2996 //! Rectangle half width.
2997 enum HUE_MAX
2998 {
2999 HUE_MAX_UNNAMED14 = 14, //!< No additional details
3000 };
3001
3002 //! \brief U_MID
3003 //! \details
3004 //! Rectangle middle-point U coordinate.
3005 enum U_MID
3006 {
3007 U_MID_UNNAMED110 = 110, //!< No additional details
3008 };
3009
3010 //! \brief V_MID
3011 //! \details
3012 //! Rectangle middle-point V coordinate.
3013 enum V_MID
3014 {
3015 V_MID_UNNAMED154 = 154, //!< No additional details
3016 };
3017
3018 //! \brief SIN
3019 //! \details
3020 //! The default is 101/128
3021 enum SIN
3022 {
3023 SIN_UNNAMED101 = 101, //!< No additional details
3024 };
3025
3026 //! \brief COS
3027 //! \details
3028 //! The default is 79/128
3029 enum COS
3030 {
3031 COS_UNNAMED79 = 79, //!< No additional details
3032 };
3033
3034 //! \brief HS_MARGIN
3035 //! \details
3036 //! Defines rectangle margin.
3037 enum HS_MARGIN
3038 {
3039 HS_MARGIN_UNNAMED3 = 3, //!< No additional details
3040 };
3041
3042 //! \brief DIAMOND_DU
3043 //! \details
3044 //! Rhombus center shift in the sat-direction, relative to the rectangle
3045 //! center.
3046 enum DIAMOND_DU
3047 {
3048 DIAMOND_DU_UNNAMED0 = 0, //!< No additional details
3049 };
3050
3051 enum DIAMOND_MARGIN
3052 {
3053 DIAMOND_MARGIN_UNNAMED4 = 4, //!< No additional details
3054 };
3055
3056 //! \brief DIAMOND_DV
3057 //! \details
3058 //! Rhombus center shift in the hue-direction, relative to the rectangle
3059 //! center.
3060 enum DIAMOND_DV
3061 {
3062 DIAMOND_DV_UNNAMED0 = 0, //!< No additional details
3063 };
3064
3065 //! \brief DIAMOND_TH
3066 //! \details
3067 //! Half length of the rhombus axis in the sat-direction.
3068 enum DIAMOND_TH
3069 {
3070 DIAMOND_TH_UNNAMED35 = 35, //!< No additional details
3071 };
3072
3073 //! \brief DIAMOND_ALPHA
3074 //! \details
3075 //! 1/tan(β)
3076 //! The default is 100/64
3077 enum DIAMOND_ALPHA
3078 {
3079 DIAMOND_ALPHA_UNNAMED100 = 100, //!< No additional details
3080 };
3081
3082 //! \brief Y_POINT_1
3083 //! \details
3084 //! First point of the Y piecewise linear membership function.
3085 enum Y_POINT_1
3086 {
3087 Y_POINT_1_UNNAMED46 = 46, //!< No additional details
3088 };
3089
3090 //! \brief Y_POINT_2
3091 //! \details
3092 //! Second point of the Y piecewise linear membership function.
3093 enum Y_POINT_2
3094 {
3095 Y_POINT_2_UNNAMED47 = 47, //!< No additional details
3096 };
3097
3098 //! \brief Y_POINT_3
3099 //! \details
3100 //! Third point of the Y piecewise linear membership function.
3101 enum Y_POINT_3
3102 {
3103 Y_POINT_3_UNNAMED254 = 254, //!< No additional details
3104 };
3105
3106 //! \brief Y_POINT_4
3107 //! \details
3108 //! Fourth point of the Y piecewise linear membership function.
3109 enum Y_POINT_4
3110 {
3111 Y_POINT_4_UNNAMED255 = 255, //!< No additional details
3112 };
3113
3114 //! \brief Y_SLOPE_1
3115 //! \details
3116 //! Slope between points Y1 and Y2.
3117 enum Y_SLOPE_1
3118 {
3119 Y_SLOPE_1_UNNAMED31 = 31, //!< No additional details
3120 };
3121
3122 //! \brief Y_SLOPE_2
3123 //! \details
3124 //! Slope between points Y3 and Y4.
3125 enum Y_SLOPE_2
3126 {
3127 Y_SLOPE_2_UNNAMED31 = 31, //!< No additional details
3128 };
3129
3130 //! \brief INV_SKIN_TYPES_MARGIN
3131 //! \details
3132 //! 1/(2* Skin_types_margin)
3133 enum INV_SKIN_TYPES_MARGIN
3134 {
3135 INV_SKIN_TYPES_MARGIN_SKINTYPEMARGIN = 20, //!< No additional details
3136 };
3137
3138 //! \brief INV_MARGIN_VYU
3139 //! \details
3140 //! 1 / Margin_VYU = 1600/65536
3141 enum INV_MARGIN_VYU
3142 {
3143 INV_MARGIN_VYU_UNNAMED1600 = 1600, //!< No additional details
3144 };
3145
3146 //! \brief P0L
3147 //! \details
3148 //! Y Point 0 of the lower part of the detection PWLF.
3149 enum P0L
3150 {
3151 P0L_UNNAMED46 = 46, //!< No additional details
3152 };
3153
3154 //! \brief P1L
3155 //! \details
3156 //! Y Point 1 of the lower part of the detection PWLF.
3157 enum P1L
3158 {
3159 P1L_UNNAMED216 = 216, //!< No additional details
3160 };
3161
3162 //! \brief P2L
3163 //! \details
3164 //! Y Point 2 of the lower part of the detection PWLF.
3165 enum P2L
3166 {
3167 P2L_UNNAMED236 = 236, //!< No additional details
3168 };
3169
3170 //! \brief P3L
3171 //! \details
3172 //! Y Point 3 of the lower part of the detection PWLF.
3173 enum P3L
3174 {
3175 P3L_UNNAMED236 = 236, //!< No additional details
3176 };
3177
3178 //! \brief B0L
3179 //! \details
3180 //! V Bias 0 of the lower part of the detection PWLF.
3181 enum B0L
3182 {
3183 B0L_UNNAMED133 = 133, //!< No additional details
3184 };
3185
3186 //! \brief B1L
3187 //! \details
3188 //! V Bias 1 of the lower part of the detection PWLF.
3189 enum B1L
3190 {
3191 B1L_UNNAMED130 = 130, //!< No additional details
3192 };
3193
3194 //! \brief B2L
3195 //! \details
3196 //! V Bias 2 of the lower part of the detection PWLF.
3197 enum B2L
3198 {
3199 B2L_UNNAMED130 = 130, //!< No additional details
3200 };
3201
3202 //! \brief B3L
3203 //! \details
3204 //! V Bias 3 of the lower part of the detection PWLF.
3205 enum B3L
3206 {
3207 B3L_UNNAMED130 = 130, //!< No additional details
3208 };
3209
3210 //! \brief S0L
3211 //! \details
3212 //! Slope 0 of the lower part of the detection PWLF.
3213 enum S0L
3214 {
3215 S0L_UNNAMED2043 = 2043, //!< No additional details
3216 };
3217
3218 //! \brief S1L
3219 //! \details
3220 //! Slope 1 of the lower part of the detection PWLF.
3221 enum S1L
3222 {
3223 S1L_UNNAMED0 = 0, //!< No additional details
3224 };
3225
3226 //! \brief S2L
3227 //! \details
3228 //! The default is 0/256
3229 enum S2L
3230 {
3231 S2L_UNNAMED0 = 0, //!< No additional details
3232 };
3233
3234 //! \brief S3L
3235 //! \details
3236 //! Slope 3 of the lower part of the detection PWLF.
3237 enum S3L
3238 {
3239 S3L_UNNAMED0 = 0, //!< No additional details
3240 };
3241
3242 //! \brief P0U
3243 //! \details
3244 //! Y Point 0 of the upper part of the detection PWLF.
3245 enum P0U
3246 {
3247 P0U_UNNAMED46 = 46, //!< No additional details
3248 };
3249
3250 //! \brief P1U
3251 //! \details
3252 //! Y Point 1 of the upper part of the detection PWLF.
3253 enum P1U
3254 {
3255 P1U_UNNAMED66 = 66, //!< No additional details
3256 };
3257
3258 //! \brief P2U
3259 //! \details
3260 //! Y Point 2 of the upper part of the detection PWLF.
3261 enum P2U
3262 {
3263 P2U_UNNAMED150 = 150, //!< No additional details
3264 };
3265
3266 //! \brief P3U
3267 //! \details
3268 //! Y Point 3 of the upper part of the detection PWLF.
3269 enum P3U
3270 {
3271 P3U_UNNAMED236 = 236, //!< No additional details
3272 };
3273
3274 //! \brief B0U
3275 //! \details
3276 //! V Bias 0 of the upper part of the detection PWLF.
3277 enum B0U
3278 {
3279 B0U_UNNAMED143 = 143, //!< No additional details
3280 };
3281
3282 //! \brief B1U
3283 //! \details
3284 //! V Bias 1 of the upper part of the detection PWLF.
3285 enum B1U
3286 {
3287 B1U_UNNAMED163 = 163, //!< No additional details
3288 };
3289
3290 //! \brief B2U
3291 //! \details
3292 //! V Bias 2 of the upper part of the detection PWLF.
3293 enum B2U
3294 {
3295 B2U_UNNAMED200 = 200, //!< No additional details
3296 };
3297
3298 //! \brief B3U
3299 //! \details
3300 //! V Bias 3 of the upper part of the detection PWLF.
3301 enum B3U
3302 {
3303 B3U_UNNAMED200 = 200, //!< No additional details
3304 };
3305
3306 //! \brief S0U
3307 //! \details
3308 //! Slope 0 of the upper part of the detection PWLF.
3309 enum S0U
3310 {
3311 S0U_UNNAMED256 = 256, //!< No additional details
3312 };
3313
3314 //! \brief S1U
3315 //! \details
3316 //! Slope 1 of the upper part of the detection PWLF.
3317 enum S1U
3318 {
3319 S1U_UNNAMED113 = 113, //!< No additional details
3320 };
3321
3322 //! \brief S2U
3323 //! \details
3324 //! Slope 2 of the upper part of the detection PWLF.
3325 enum S2U
3326 {
3327 S2U_UNNAMED1869 = 1869, //!< No additional details
3328 };
3329
3330 //! \brief S3U
3331 //! \details
3332 //! Slope 3 of the upper part of the detection PWLF.
3333 enum S3U
3334 {
3335 S3U_UNNAMED0 = 0, //!< No additional details
3336 };
3337
3338 //! \brief SKIN_TYPES_ENABLE
3339 //! \details
3340 //! Treat differently bright and dark skin types
3341 enum SKIN_TYPES_ENABLE
3342 {
3343 SKIN_TYPES_ENABLE_DISABLE = 0, //!< No additional details
3344 };
3345
3346 //! \brief SKIN_TYPES_THRESH
3347 //! \details
3348 //! Skin types Y margin
3349 //! Restrict Skin_types_thresh >= Skin_types_margin > 0
3350 //! Restrict (Skin_types_thresh + Skin_types_margin) <= 255
3351 enum SKIN_TYPES_THRESH
3352 {
3353 SKIN_TYPES_THRESH_UNNAMED120 = 120, //!< No additional details
3354 };
3355
3356 //! \brief SKIN_TYPES_MARGIN
3357 //! \details
3358 //! Skin types Y margin
3359 //! Restrict Skin_types_thresh >= Skin_types_margin > 0
3360 //! Restrict (Skin_types_thresh + Skin_types_margin) <= 255
3361 enum SKIN_TYPES_MARGIN
3362 {
3363 SKIN_TYPES_MARGIN_UNNAMED20 = 20, //!< No additional details
3364 };
3365
3366 //! \brief SATP1
3367 //! \details
3368 //! First point for the saturation PWLF (bright skin).
3369 enum SATP1
3370 {
3371 SATP1_UNNAMED6 = 6, //!< No additional details
3372 };
3373
3374 //! \brief SATP2
3375 //! \details
3376 //! Second point for the saturation PWLF (bright skin).
3377 enum SATP2
3378 {
3379 SATP2_UNNAMED6 = 6, //!< No additional details
3380 };
3381
3382 //! \brief SATP3
3383 //! \details
3384 //! Third point for the saturation PWLF (bright skin).
3385 enum SATP3
3386 {
3387 SATP3_UNNAMED31 = 31, //!< No additional details
3388 };
3389
3390 //! \brief SATB1
3391 //! \details
3392 //! First bias for the saturation PWLF (bright skin).
3393 enum SATB1
3394 {
3395 SATB1_UNNAMED8 = 8, //!< No additional details
3396 };
3397
3398 //! \brief SATB2
3399 //! \details
3400 //! Second bias for the saturation PWLF (bright skin)
3401 enum SATB2
3402 {
3403 SATB2_UNNAMED8 = 8, //!< No additional details
3404 };
3405
3406 //! \brief SATB3
3407 //! \details
3408 //! Third bias for the saturation PWLF (bright skin)
3409 enum SATB3
3410 {
3411 SATB3_UNNAMED124 = 124, //!< No additional details
3412 };
3413
3414 //! \brief SATS0
3415 //! \details
3416 //! Zeroth slope for the saturation PWLF (bright skin)
3417 enum SATS0
3418 {
3419 SATS0_UNNAMED297 = 297, //!< No additional details
3420 };
3421
3422 //! \brief SATS1
3423 //! \details
3424 //! First slope for the saturation PWLF (bright skin)
3425 enum SATS1
3426 {
3427 SATS1_UNNAMED85 = 85, //!< No additional details
3428 };
3429
3430 //! \brief SATS2
3431 //! \details
3432 //! Second slope for the saturation PWLF (bright skin)
3433 enum SATS2
3434 {
3435 SATS2_UNNAMED297 = 297, //!< No additional details
3436 };
3437
3438 //! \brief SATS3
3439 //! \details
3440 //! Third slope for the saturation PWLF (bright skin)
3441 enum SATS3
3442 {
3443 SATS3_UNNAMED256 = 256, //!< No additional details
3444 };
3445
3446 //! \brief HUEP1
3447 //! \details
3448 //! First point for the hue PWLF (bright skin)
3449 enum HUEP1
3450 {
3451 HUEP1_6 = 122, //!< No additional details
3452 };
3453
3454 //! \brief HUEP2
3455 //! \details
3456 //! Second point for the hue PWLF (bright skin)
3457 enum HUEP2
3458 {
3459 HUEP2_UNNAMED6 = 6, //!< No additional details
3460 };
3461
3462 //! \brief HUEP3
3463 //! \details
3464 //! Third point for the hue PWLF (bright skin)
3465 enum HUEP3
3466 {
3467 HUEP3_UNNAMED14 = 14, //!< No additional details
3468 };
3469
3470 //! \brief HUEB1
3471 //! \details
3472 //! First bias for the hue PWLF (bright skin)
3473 enum HUEB1
3474 {
3475 HUEB1_UNNAMED8 = 8, //!< No additional details
3476 };
3477
3478 //! \brief HUEB2
3479 //! \details
3480 //! Second bias for the hue PWLF (bright skin)
3481 enum HUEB2
3482 {
3483 HUEB2_UNNAMED8 = 8, //!< No additional details
3484 };
3485
3486 //! \brief HUEB3
3487 //! \details
3488 //! Third bias for the hue PWLF (bright skin)
3489 enum HUEB3
3490 {
3491 HUEB3_UNNAMED56 = 56, //!< No additional details
3492 };
3493
3494 //! \brief HUES0
3495 //! \details
3496 //! Zeroth slope for the hue PWLF (bright skin)
3497 enum HUES0
3498 {
3499 HUES0_UNNAMED384 = 384, //!< No additional details
3500 };
3501
3502 //! \brief HUES1
3503 //! \details
3504 //! First slope for the hue PWLF (bright skin)
3505 enum HUES1
3506 {
3507 HUES1_UNNAMED85 = 85, //!< No additional details
3508 };
3509
3510 //! \brief HUES2
3511 //! \details
3512 //! Second slope for the hue PWLF (bright skin)
3513 enum HUES2
3514 {
3515 HUES2_UNNAMED384 = 384, //!< No additional details
3516 };
3517
3518 //! \brief HUES3
3519 //! \details
3520 //! Third slope for the hue PWLF (bright skin)
3521 enum HUES3
3522 {
3523 HUES3_UNNAMED256 = 256, //!< No additional details
3524 };
3525
3526 //! \brief SATP1_DARK
3527 //! \details
3528 //! First point for the saturation PWLF (dark skin) Default Value: -5
3529 enum SATP1_DARK
3530 {
3531 SATP1_DARK_UNNAMED123 = 123, //!< No additional details
3532 };
3533
3534 //! \brief SATP2_DARK
3535 //! \details
3536 //! Second point for the saturation PWLF (dark skin)
3537 enum SATP2_DARK
3538 {
3539 SATP2_DARK_UNNAMED31 = 31, //!< No additional details
3540 };
3541
3542 //! \brief SATP3_DARK
3543 //! \details
3544 //! Third point for the saturation PWLF (dark skin)
3545 enum SATP3_DARK
3546 {
3547 SATP3_DARK_UNNAMED31 = 31, //!< No additional details
3548 };
3549
3550 //! \brief SATB1_DARK
3551 //! \details
3552 //! First bias for the saturation PWLF (dark skin)
3553 enum SATB1_DARK
3554 {
3555 SATB1_DARK_UNNAMED0 = 0, //!< No additional details
3556 };
3557
3558 //! \brief SATB2_DARK
3559 //! \details
3560 //! Second bias for the saturation PWLF (dark skin)
3561 enum SATB2_DARK
3562 {
3563 SATB2_DARK_UNNAMED124 = 124, //!< No additional details
3564 };
3565
3566 //! \brief SATB3_DARK
3567 //! \details
3568 //! Third bias for the saturation PWLF (dark skin)
3569 enum SATB3_DARK
3570 {
3571 SATB3_DARK_UNNAMED124 = 124, //!< No additional details
3572 };
3573
3574 //! \brief SATS0_DARK
3575 //! \details
3576 //! Zeroth slope for the saturation PWLF (dark skin)
3577 enum SATS0_DARK
3578 {
3579 SATS0_DARK_UNNAMED397 = 397, //!< No additional details
3580 };
3581
3582 //! \brief SATS1_DARK
3583 //! \details
3584 //! First slope for the saturation PWLF (dark skin)
3585 enum SATS1_DARK
3586 {
3587 SATS1_DARK_UNNAMED189 = 189, //!< No additional details
3588 };
3589
3590 //! \brief SATS2_DARK
3591 //! \details
3592 //! Second slope for the saturation PWLF (dark skin)
3593 enum SATS2_DARK
3594 {
3595 SATS2_DARK_UNNAMED256 = 256, //!< No additional details
3596 };
3597
3598 //! \brief SATS3_DARK
3599 //! \details
3600 //! Third slope for the saturation PWLF (dark skin)
3601 enum SATS3_DARK
3602 {
3603 SATS3_DARK_UNNAMED256 = 256, //!< No additional details
3604 };
3605
3606 //! \brief HUEP1_DARK
3607 //! \details
3608 //! First point for the hue PWLF (dark skin).
3609 enum HUEP1_DARK
3610 {
3611 HUEP1_DARK_UNNAMED0 = 0, //!< No additional details
3612 };
3613
3614 //! \brief HUEP2_DARK
3615 //! \details
3616 //! Second point for the hue PWLF (dark skin).
3617 enum HUEP2_DARK
3618 {
3619 HUEP2_DARK_UNNAMED2 = 2, //!< No additional details
3620 };
3621
3622 //! \brief HUEP3_DARK
3623 //! \details
3624 //! Third point for the hue PWLF (dark skin).
3625 enum HUEP3_DARK
3626 {
3627 HUEP3_DARK_UNNAMED14 = 14, //!< No additional details
3628 };
3629
3630 //! \brief HUEB1_DARK
3631 //! \details
3632 //! First bias for the hue PWLF (dark skin).
3633 enum HUEB1_DARK
3634 {
3635 HUEB1_DARK_UNNAMED0 = 0, //!< No additional details
3636 };
3637
3638 //! \brief HUEB2_DARK
3639 //! \details
3640 //! Second bias for the hue PWLF (dark skin).
3641 enum HUEB2_DARK
3642 {
3643 HUEB2_DARK_UNNAMED0 = 0, //!< No additional details
3644 };
3645
3646 //! \brief HUEB3_DARK
3647 //! \details
3648 //! Third bias for the hue PWLF (dark skin).
3649 enum HUEB3_DARK
3650 {
3651 HUEB3_DARK_UNNAMED56 = 56, //!< No additional details
3652 };
3653
3654 //! \brief HUES0_DARK
3655 //! \details
3656 //! Zeroth slope for the hue PWLF (dark skin).
3657 enum HUES0_DARK
3658 {
3659 HUES0_DARK_UNNAMED299 = 299, //!< No additional details
3660 };
3661
3662 //! \brief HUES1_DARK
3663 //! \details
3664 //! First slope for the hue PWLF (dark skin).
3665 enum HUES1_DARK
3666 {
3667 HUES1_DARK_UNNAMED256 = 256, //!< No additional details
3668 };
3669
3670 //! \brief HUES2_DARK
3671 //! \details
3672 //! Second slope for the hue PWLF (dark skin).
3673 enum HUES2_DARK
3674 {
3675 HUES2_DARK_UNNAMED299 = 299, //!< No additional details
3676 };
3677
3678 //! \brief HUES3_DARK
3679 //! \details
3680 //! Third slope for the hue PWLF (dark skin).
3681 enum HUES3_DARK
3682 {
3683 HUES3_DARK_UNNAMED256 = 256, //!< No additional details
3684 };
3685
3686 //! \name Initializations
3687
3688 //! \brief Explicit member initialization function
3689 VEBOX_STD_STE_STATE_CMD();
3690
3691 static const size_t dwSize = 29;
3692 static const size_t byteSize = 116;
3693 };
3694
3695 //!
3696 //! \brief VEBOX_TCC_STATE
3697 //! \details
3698 //! This state structure contains the IECP State Table Contents for TCC
3699 //! state.
3700 //!
3701 struct VEBOX_TCC_STATE_CMD
3702 {
3703 union
3704 {
3705 //!< DWORD 0
3706 struct
3707 {
3708 uint32_t Reserved0 : __CODEGEN_BITFIELD( 0, 6) ; //!< Reserved
3709 uint32_t TccEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< TCC Enable
3710 uint32_t Satfactor1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SATFACTOR1
3711 uint32_t Satfactor2 : __CODEGEN_BITFIELD(16, 23) ; //!< SATFACTOR2
3712 uint32_t Satfactor3 : __CODEGEN_BITFIELD(24, 31) ; //!< SATFACTOR3
3713 };
3714 uint32_t Value;
3715 } DW0;
3716 union
3717 {
3718 //!< DWORD 1
3719 struct
3720 {
3721 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved
3722 uint32_t Satfactor4 : __CODEGEN_BITFIELD( 8, 15) ; //!< SATFACTOR4
3723 uint32_t Satfactor5 : __CODEGEN_BITFIELD(16, 23) ; //!< SATFACTOR5
3724 uint32_t Satfactor6 : __CODEGEN_BITFIELD(24, 31) ; //!< SATFACTOR6
3725 };
3726 uint32_t Value;
3727 } DW1;
3728 union
3729 {
3730 //!< DWORD 2
3731 struct
3732 {
3733 uint32_t Basecolor1 : __CODEGEN_BITFIELD( 0, 9) ; //!< BASECOLOR1
3734 uint32_t Basecolor2 : __CODEGEN_BITFIELD(10, 19) ; //!< BASECOLOR2
3735 uint32_t Basecolor3 : __CODEGEN_BITFIELD(20, 29) ; //!< BASECOLOR3
3736 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
3737 };
3738 uint32_t Value;
3739 } DW2;
3740 union
3741 {
3742 //!< DWORD 3
3743 struct
3744 {
3745 uint32_t Basecolo4 : __CODEGEN_BITFIELD( 0, 9) ; //!< BASECOLO4
3746 uint32_t Basecolor5 : __CODEGEN_BITFIELD(10, 19) ; //!< BASECOLOR5
3747 uint32_t Basecolor6 : __CODEGEN_BITFIELD(20, 29) ; //!< BASECOLOR6
3748 uint32_t Reserved126 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
3749 };
3750 uint32_t Value;
3751 } DW3;
3752 union
3753 {
3754 //!< DWORD 4
3755 struct
3756 {
3757 uint32_t Colortransitslope2 : __CODEGEN_BITFIELD( 0, 15) ; //!< COLORTRANSITSLOPE2
3758 uint32_t Colortransitslope23 : __CODEGEN_BITFIELD(16, 31) ; //!< COLORTRANSITSLOPE23
3759 };
3760 uint32_t Value;
3761 } DW4;
3762 union
3763 {
3764 //!< DWORD 5
3765 struct
3766 {
3767 uint32_t Colortransitslope34 : __CODEGEN_BITFIELD( 0, 15) ; //!< COLORTRANSITSLOPE34
3768 uint32_t Colortransitslope45 : __CODEGEN_BITFIELD(16, 31) ; //!< COLORTRANSITSLOPE45
3769 };
3770 uint32_t Value;
3771 } DW5;
3772 union
3773 {
3774 //!< DWORD 6
3775 struct
3776 {
3777 uint32_t Colortransitslope56 : __CODEGEN_BITFIELD( 0, 15) ; //!< COLORTRANSITSLOPE56
3778 uint32_t Colortransitslope61 : __CODEGEN_BITFIELD(16, 31) ; //!< COLORTRANSITSLOPE61
3779 };
3780 uint32_t Value;
3781 } DW6;
3782 union
3783 {
3784 //!< DWORD 7
3785 struct
3786 {
3787 uint32_t Reserved224 : __CODEGEN_BITFIELD( 0, 1) ; //!< Reserved
3788 uint32_t Colorbias1 : __CODEGEN_BITFIELD( 2, 11) ; //!< COLORBIAS1
3789 uint32_t Colorbias2 : __CODEGEN_BITFIELD(12, 21) ; //!< COLORBIAS2
3790 uint32_t Colorbias3 : __CODEGEN_BITFIELD(22, 31) ; //!< COLORBIAS3
3791 };
3792 uint32_t Value;
3793 } DW7;
3794 union
3795 {
3796 //!< DWORD 8
3797 struct
3798 {
3799 uint32_t Reserved256 : __CODEGEN_BITFIELD( 0, 1) ; //!< Reserved
3800 uint32_t Colorbias4 : __CODEGEN_BITFIELD( 2, 11) ; //!< COLORBIAS4
3801 uint32_t Colorbias5 : __CODEGEN_BITFIELD(12, 21) ; //!< COLORBIAS5
3802 uint32_t Colorbias6 : __CODEGEN_BITFIELD(22, 31) ; //!< COLORBIAS6
3803 };
3804 uint32_t Value;
3805 } DW8;
3806 union
3807 {
3808 //!< DWORD 9
3809 struct
3810 {
3811 uint32_t SteSlopeBits : __CODEGEN_BITFIELD( 0, 2) ; //!< STE_SLOPE_BITS
3812 uint32_t Reserved291 : __CODEGEN_BITFIELD( 3, 7) ; //!< Reserved
3813 uint32_t SteThreshold : __CODEGEN_BITFIELD( 8, 12) ; //!< STE_THRESHOLD
3814 uint32_t Reserved301 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
3815 uint32_t UvThresholdBits : __CODEGEN_BITFIELD(16, 18) ; //!< UV_THRESHOLD_BITS
3816 uint32_t Reserved307 : __CODEGEN_BITFIELD(19, 23) ; //!< Reserved
3817 uint32_t UvThreshold : __CODEGEN_BITFIELD(24, 30) ; //!< UV_THRESHOLD
3818 uint32_t Reserved319 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
3819 };
3820 uint32_t Value;
3821 } DW9;
3822 union
3823 {
3824 //!< DWORD 10
3825 struct
3826 {
3827 uint32_t Uvmaxcolor : __CODEGEN_BITFIELD( 0, 8) ; //!< UVMAXCOLOR
3828 uint32_t Reserved329 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
3829 uint32_t InvUvmaxcolor : __CODEGEN_BITFIELD(16, 31) ; //!< INV_UVMAXCOLOR
3830 };
3831 uint32_t Value;
3832 } DW10;
3833
3834 //! \name Local enumerations
3835
3836 //! \brief SATFACTOR1
3837 //! \details
3838 //! The saturation factor for magenta.
3839 enum SATFACTOR1
3840 {
3841 SATFACTOR1_UNNAMED220 = 220, //!< No additional details
3842 };
3843
3844 //! \brief SATFACTOR2
3845 //! \details
3846 //! The saturation factor for red.
3847 enum SATFACTOR2
3848 {
3849 SATFACTOR2_UNNAMED220 = 220, //!< No additional details
3850 };
3851
3852 //! \brief SATFACTOR3
3853 //! \details
3854 //! The saturation factor for yellow.
3855 enum SATFACTOR3
3856 {
3857 SATFACTOR3_UNNAMED220 = 220, //!< No additional details
3858 };
3859
3860 //! \brief SATFACTOR4
3861 //! \details
3862 //! The saturation factor for green.
3863 enum SATFACTOR4
3864 {
3865 SATFACTOR4_UNNAMED220 = 220, //!< No additional details
3866 };
3867
3868 //! \brief SATFACTOR5
3869 //! \details
3870 //! The saturation factor for cyan.
3871 enum SATFACTOR5
3872 {
3873 SATFACTOR5_UNNAMED220 = 220, //!< No additional details
3874 };
3875
3876 //! \brief SATFACTOR6
3877 //! \details
3878 //! The saturation factor for blue.
3879 enum SATFACTOR6
3880 {
3881 SATFACTOR6_UNNAMED220 = 220, //!< No additional details
3882 };
3883
3884 //! \brief BASECOLOR1
3885 //! \details
3886 //! Base Color 1
3887 enum BASECOLOR1
3888 {
3889 BASECOLOR1_UNNAMED145 = 145, //!< No additional details
3890 };
3891
3892 //! \brief BASECOLOR2
3893 //! \details
3894 //! Base Color 2 - this value must be greater than BaseColor1
3895 enum BASECOLOR2
3896 {
3897 BASECOLOR2_UNNAMED307 = 307, //!< No additional details
3898 };
3899
3900 //! \brief BASECOLOR3
3901 //! \details
3902 //! Base Color 3 - this value must be greater than BaseColor2
3903 enum BASECOLOR3
3904 {
3905 BASECOLOR3_UNNAMED483 = 483, //!< No additional details
3906 };
3907
3908 //! \brief BASECOLO4
3909 //! \details
3910 //! Base Color 4 - this value must be greater than BaseColor3
3911 enum BASECOLO4
3912 {
3913 BASECOLO4_UNNAMED657 = 657, //!< No additional details
3914 };
3915
3916 //! \brief BASECOLOR5
3917 //! \details
3918 //! Base Color 5 - this value must be greater than BaseColor4
3919 enum BASECOLOR5
3920 {
3921 BASECOLOR5_UNNAMED819 = 819, //!< No additional details
3922 };
3923
3924 //! \brief BASECOLOR6
3925 //! \details
3926 //! Base Color 6 - this value must be greater than BaseColor5
3927 enum BASECOLOR6
3928 {
3929 BASECOLOR6_UNNAMED995 = 995, //!< No additional details
3930 };
3931
3932 //! \brief COLORTRANSITSLOPE2
3933 //! \details
3934 //! The calculation result of 1 / (BC2 - BC1) [1/57]
3935 enum COLORTRANSITSLOPE2
3936 {
3937 COLORTRANSITSLOPE2_UNNAMED405 = 405, //!< No additional details
3938 };
3939
3940 //! \brief COLORTRANSITSLOPE23
3941 //! \details
3942 //! The calculation result of 1 / (BC3 - BC2) [1/62]
3943 enum COLORTRANSITSLOPE23
3944 {
3945 COLORTRANSITSLOPE23_UNNAMED744 = 744, //!< No additional details
3946 };
3947
3948 //! \brief COLORTRANSITSLOPE34
3949 //! \details
3950 //! The calculation result of 1 / (BC4 - BC3) [1/61]
3951 enum COLORTRANSITSLOPE34
3952 {
3953 COLORTRANSITSLOPE34_UNNAMED1131 = 1131, //!< No additional details
3954 };
3955
3956 //! \brief COLORTRANSITSLOPE45
3957 //! \details
3958 //! The calculation result of 1 / (BC5 - BC4) [1/57]
3959 enum COLORTRANSITSLOPE45
3960 {
3961 COLORTRANSITSLOPE45_UNNAMED407 = 407, //!< No additional details
3962 };
3963
3964 //! \brief COLORTRANSITSLOPE56
3965 //! \details
3966 //! The calculation result of 1 / (BC6 - BC5) [1/62]
3967 enum COLORTRANSITSLOPE56
3968 {
3969 COLORTRANSITSLOPE56_UNNAMED372 = 372, //!< No additional details
3970 };
3971
3972 //! \brief COLORTRANSITSLOPE61
3973 //! \details
3974 //! The calculation result of 1 / (BC1 - BC6) [1/62]
3975 enum COLORTRANSITSLOPE61
3976 {
3977 COLORTRANSITSLOPE61_UNNAMED377 = 377, //!< No additional details
3978 };
3979
3980 //! \brief COLORBIAS1
3981 //! \details
3982 //! Color bias for BaseColor1.
3983 enum COLORBIAS1
3984 {
3985 COLORBIAS1_UNNAMED0 = 0, //!< No additional details
3986 };
3987
3988 //! \brief COLORBIAS2
3989 //! \details
3990 //! Color bias for BaseColor2.
3991 enum COLORBIAS2
3992 {
3993 COLORBIAS2_UNNAMED150 = 150, //!< No additional details
3994 };
3995
3996 //! \brief COLORBIAS3
3997 //! \details
3998 //! Color bias for BaseColor3.
3999 enum COLORBIAS3
4000 {
4001 COLORBIAS3_UNNAMED0 = 0, //!< No additional details
4002 };
4003
4004 //! \brief COLORBIAS4
4005 //! \details
4006 //! Color bias for BaseColor4.
4007 enum COLORBIAS4
4008 {
4009 COLORBIAS4_UNNAMED0 = 0, //!< No additional details
4010 };
4011
4012 //! \brief COLORBIAS5
4013 //! \details
4014 //! Color bias for BaseColor5.
4015 enum COLORBIAS5
4016 {
4017 COLORBIAS5_UNNAMED0 = 0, //!< No additional details
4018 };
4019
4020 //! \brief COLORBIAS6
4021 //! \details
4022 //! Color bias for BaseColor6.
4023 enum COLORBIAS6
4024 {
4025 COLORBIAS6_UNNAMED0 = 0, //!< No additional details
4026 };
4027
4028 //! \brief STE_SLOPE_BITS
4029 //! \details
4030 //! Skin tone pixels enhancement slope bits.
4031 enum STE_SLOPE_BITS
4032 {
4033 STE_SLOPE_BITS_UNNAMED0 = 0, //!< No additional details
4034 };
4035
4036 //! \brief STE_THRESHOLD
4037 //! \details
4038 //! Skin tone pixels enhancement threshold.
4039 enum STE_THRESHOLD
4040 {
4041 STE_THRESHOLD_UNNAMED0 = 0, //!< No additional details
4042 };
4043
4044 //! \brief UV_THRESHOLD_BITS
4045 //! \details
4046 //! Low UV transition width bits.
4047 enum UV_THRESHOLD_BITS
4048 {
4049 UV_THRESHOLD_BITS_UNNAMED3 = 3, //!< No additional details
4050 };
4051
4052 //! \brief UV_THRESHOLD
4053 //! \details
4054 //! Low UV threshold.
4055 enum UV_THRESHOLD
4056 {
4057 UV_THRESHOLD_UNNAMED3 = 3, //!< No additional details
4058 };
4059
4060 //! \brief UVMAXCOLOR
4061 //! \details
4062 //! The maximum absolute value of the legal UV pixels. Used for the SFs2
4063 //! calculation.
4064 enum UVMAXCOLOR
4065 {
4066 UVMAXCOLOR_UNNAMED448 = 448, //!< No additional details
4067 };
4068
4069 //! \brief INV_UVMAXCOLOR
4070 //! \details
4071 //! 1 / UVMaxColor. Used for the SFs2 calculation.
4072 enum INV_UVMAXCOLOR
4073 {
4074 INV_UVMAXCOLOR_UNNAMED146 = 146, //!< No additional details
4075 };
4076
4077 //! \name Initializations
4078
4079 //! \brief Explicit member initialization function
4080 VEBOX_TCC_STATE_CMD();
4081
4082 static const size_t dwSize = 11;
4083 static const size_t byteSize = 44;
4084 };
4085
4086 //!
4087 //! \brief VEBOX_PROCAMP_STATE
4088 //! \details
4089 //! This state structure contains the IECP State Table Contents for ProcAmp
4090 //! state.
4091 //!
4092 struct VEBOX_PROCAMP_STATE_CMD
4093 {
4094 union
4095 {
4096 //!< DWORD 0
4097 struct
4098 {
4099 uint32_t ProcampEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< PROCAMP_ENABLE
4100 uint32_t Brightness : __CODEGEN_BITFIELD( 1, 12) ; //!< BRIGHTNESS
4101 uint32_t Reserved13 : __CODEGEN_BITFIELD(13, 16) ; //!< Reserved
4102 uint32_t Contrast : __CODEGEN_BITFIELD(17, 27) ; //!< CONTRAST
4103 uint32_t Reserved28 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
4104 };
4105 uint32_t Value;
4106 } DW0;
4107 union
4108 {
4109 //!< DWORD 1
4110 struct
4111 {
4112 uint32_t SinCS : __CODEGEN_BITFIELD( 0, 15) ; //!< SIN_C_S
4113 uint32_t CosCS : __CODEGEN_BITFIELD(16, 31) ; //!< COS_C_S
4114 };
4115 uint32_t Value;
4116 } DW1;
4117
4118 //! \name Local enumerations
4119
4120 enum PROCAMP_ENABLE
4121 {
4122 PROCAMP_ENABLE_UNNAMED1 = 1, //!< No additional details
4123 };
4124
4125 //! \brief BRIGHTNESS
4126 //! \details
4127 //! Brightness magnitude.
4128 enum BRIGHTNESS
4129 {
4130 BRIGHTNESS_OR00 = 0, //!< No additional details
4131 };
4132
4133 //! \brief CONTRAST
4134 //! \details
4135 //! Contrast magnitude.
4136 enum CONTRAST
4137 {
4138 CONTRAST_10INFIXEDPOINTU47 = 128, //!< No additional details
4139 };
4140
4141 //! \brief SIN_C_S
4142 //! \details
4143 //! UV multiplication sine factor.
4144 enum SIN_C_S
4145 {
4146 SIN_C_S_UNNAMED0 = 0, //!< No additional details
4147 };
4148
4149 //! \brief COS_C_S
4150 //! \details
4151 //! UV multiplication cosine factor.
4152 enum COS_C_S
4153 {
4154 COS_C_S_UNNAMED256 = 256, //!< No additional details
4155 };
4156
4157 //! \name Initializations
4158
4159 //! \brief Explicit member initialization function
4160 VEBOX_PROCAMP_STATE_CMD();
4161
4162 static const size_t dwSize = 2;
4163 static const size_t byteSize = 8;
4164 };
4165
4166 //!
4167 //! \brief BLACKLEVELCORRECTIONSTATE_DW75_76
4168 //! \details
4169 //! This state structure contains the IECP State Table Contents for the
4170 //! Black Point State.
4171 //!
4172 struct BLACKLEVELCORRECTIONSTATE_DW75_76_CMD
4173 {
4174 union
4175 {
4176 struct
4177 {
4178 /// DWORD 0
4179 uint32_t BlackPointOffsetR : __CODEGEN_BITFIELD( 0, 12) ; ///< S13
4180 uint32_t Reserved13 : __CODEGEN_BITFIELD(13, 31) ; ///< U19
4181 };
4182 uint32_t Value;
4183 } DW0;
4184 union
4185 {
4186 struct
4187 {
4188 /// DWORD 1
4189 uint32_t BlackPointOffsetB : __CODEGEN_BITFIELD( 0, 12) ; ///< S13
4190 uint32_t BlackPointOffsetG : __CODEGEN_BITFIELD(13, 25) ; ///< S13
4191 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31) ; ///< U6
4192 };
4193 uint32_t Value;
4194 } DW1;
4195
4196 //! \name Local enumerations
4197
4198 enum BLACK_POINT_OFFSET_R
4199 {
4200 BLACK_POINT_OFFSET_R_UNNAMED0 = 0, ///<
4201 };
4202 enum BLACK_POINT_OFFSET_B
4203 {
4204 BLACK_POINT_OFFSET_B_UNNAMED0 = 0, ///<
4205 };
4206 enum BLACK_POINT_OFFSET_G
4207 {
4208 BLACK_POINT_OFFSET_G_UNNAMED0 = 0, ///<
4209 };
4210
4211 //! \name Initializations
4212
4213 //! \brief Explicit member initialization function
4214 BLACKLEVELCORRECTIONSTATE_DW75_76_CMD();
4215
4216 static const size_t DW_SIZE = 2;
4217 static const size_t BYTE_SIZE = 8;
4218 };
4219
4220 //!
4221 //! \brief VEBOX_FORWARD_GAMMA_CORRECTION_STATE
4222 //! \details
4223 //! This state structure contains the Forward Gamma Correction state.
4224 //!
4225 struct VEBOX_FORWARD_GAMMA_CORRECTION_STATE_CMD
4226 {
4227 union
4228 {
4229 struct
4230 {
4231 /// DWORD 0
4232 uint32_t ForwardGammaCorrectionEnable : __CODEGEN_BITFIELD( 0, 0) ; ///< U1
4233 uint32_t Reserved1 : __CODEGEN_BITFIELD( 1, 7) ; ///< U7
4234 uint32_t PwlFwdGammaPoint1 : __CODEGEN_BITFIELD( 8, 15) ; ///< U8
4235 uint32_t PwlFwdGammaPoint2 : __CODEGEN_BITFIELD(16, 23) ; ///< U8
4236 uint32_t PwlFwdGammaPoint3 : __CODEGEN_BITFIELD(24, 31) ; ///< U8
4237 };
4238 uint32_t Value;
4239 } DW0;
4240 union
4241 {
4242 struct
4243 {
4244 /// DWORD 1
4245 uint32_t PwlFwdGammaPoint4 : __CODEGEN_BITFIELD( 0, 7) ; ///< U8
4246 uint32_t PwlFwdGammaPoint5 : __CODEGEN_BITFIELD( 8, 15) ; ///< U8
4247 uint32_t PwlFwdGammaPoint6 : __CODEGEN_BITFIELD(16, 23) ; ///< U8
4248 uint32_t PwlFwdGammaPoint7 : __CODEGEN_BITFIELD(24, 31) ; ///< U8
4249 };
4250 uint32_t Value;
4251 } DW1;
4252 union
4253 {
4254 struct
4255 {
4256 /// DWORD 2
4257 uint32_t PwlFwdGammaPoint8 : __CODEGEN_BITFIELD( 0, 7) ; ///< U8
4258 uint32_t PwlFwdGammaPoint9 : __CODEGEN_BITFIELD( 8, 15) ; ///< U8
4259 uint32_t PwlFwdGammaPoint10 : __CODEGEN_BITFIELD(16, 23) ; ///< U8
4260 uint32_t PwlFwdGammaPoint11 : __CODEGEN_BITFIELD(24, 31) ; ///< U8
4261 };
4262 uint32_t Value;
4263 } DW2;
4264 union
4265 {
4266 struct
4267 {
4268 /// DWORD 3
4269 uint32_t PwlFwdGammaBias1 : __CODEGEN_BITFIELD( 0, 7) ; ///< U8
4270 uint32_t PwlFwdGammaBias2 : __CODEGEN_BITFIELD( 8, 15) ; ///< U8
4271 uint32_t PwlFwdGammaBias3 : __CODEGEN_BITFIELD(16, 23) ; ///< U8
4272 uint32_t PwlFwdGammaBias4 : __CODEGEN_BITFIELD(24, 31) ; ///< U8
4273 };
4274 uint32_t Value;
4275 } DW3;
4276 union
4277 {
4278 struct
4279 {
4280 /// DWORD 4
4281 uint32_t PwlFwdGammaBias5 : __CODEGEN_BITFIELD( 0, 7) ; ///< U8
4282 uint32_t PwlFwdGammaBias6 : __CODEGEN_BITFIELD( 8, 15) ; ///< U8
4283 uint32_t PwlFwdGammaBias7 : __CODEGEN_BITFIELD(16, 23) ; ///< U8
4284 uint32_t PwlFwdGammaBias8 : __CODEGEN_BITFIELD(24, 31) ; ///< U8
4285 };
4286 uint32_t Value;
4287 } DW4;
4288 union
4289 {
4290 struct
4291 {
4292 /// DWORD 5
4293 uint32_t PwlFwdGammaBias9 : __CODEGEN_BITFIELD( 0, 7) ; ///< U8
4294 uint32_t PwlFwdGammaBias10 : __CODEGEN_BITFIELD( 8, 15) ; ///< U8
4295 uint32_t PwlFwdGammaBias11 : __CODEGEN_BITFIELD(16, 23) ; ///< U8
4296 uint32_t Reserved184 : __CODEGEN_BITFIELD(24, 31) ; ///< U8
4297 };
4298 uint32_t Value;
4299 } DW5;
4300 union
4301 {
4302 struct
4303 {
4304 /// DWORD 6
4305 uint32_t PwlFwdGammaSlope0 : __CODEGEN_BITFIELD( 0, 11) ; ///< U48
4306 uint32_t Reserved204 : __CODEGEN_BITFIELD(12, 15) ; ///< U4
4307 uint32_t PwlFwdGammaSlope1 : __CODEGEN_BITFIELD(16, 27) ; ///< U48
4308 uint32_t Reserved220 : __CODEGEN_BITFIELD(28, 31) ; ///< U4
4309 };
4310 uint32_t Value;
4311 } DW6;
4312 union
4313 {
4314 struct
4315 {
4316 /// DWORD 7
4317 uint32_t PwlFwdGammaSlope2 : __CODEGEN_BITFIELD( 0, 11) ; ///< U48
4318 uint32_t Reserved236 : __CODEGEN_BITFIELD(12, 15) ; ///< U4
4319 uint32_t PwlFwdGammaSlope3 : __CODEGEN_BITFIELD(16, 27) ; ///< U48
4320 uint32_t Reserved252 : __CODEGEN_BITFIELD(28, 31) ; ///< U4
4321 };
4322 uint32_t Value;
4323 } DW7;
4324 union
4325 {
4326 struct
4327 {
4328 /// DWORD 8
4329 uint32_t PwlFwdGammaSlope4 : __CODEGEN_BITFIELD( 0, 11) ; ///< U48
4330 uint32_t Reserved268 : __CODEGEN_BITFIELD(12, 15) ; ///< U4
4331 uint32_t PwlFwdGammaSlope5 : __CODEGEN_BITFIELD(16, 27) ; ///< U48
4332 uint32_t Reserved284 : __CODEGEN_BITFIELD(28, 31) ; ///< U4
4333 };
4334 uint32_t Value;
4335 } DW8;
4336 union
4337 {
4338 struct
4339 {
4340 /// DWORD 9
4341 uint32_t PwlFwdGammaSlope6 : __CODEGEN_BITFIELD( 0, 11) ; ///< U48
4342 uint32_t Reserved300 : __CODEGEN_BITFIELD(12, 15) ; ///< U4
4343 uint32_t PwlFwdGammaSlope7 : __CODEGEN_BITFIELD(16, 27) ; ///< U48
4344 uint32_t Reserved316 : __CODEGEN_BITFIELD(28, 31) ; ///< U4
4345 };
4346 uint32_t Value;
4347 } DW9;
4348 union
4349 {
4350 struct
4351 {
4352 /// DWORD 10
4353 uint32_t PwlFwdGammaSlope8 : __CODEGEN_BITFIELD( 0, 11) ; ///< U48
4354 uint32_t Reserved332 : __CODEGEN_BITFIELD(12, 15) ; ///< U4
4355 uint32_t PwlFwdGammaSlope9 : __CODEGEN_BITFIELD(16, 27) ; ///< U48
4356 uint32_t Reserved348 : __CODEGEN_BITFIELD(28, 31) ; ///< U4
4357 };
4358 uint32_t Value;
4359 } DW10;
4360 union
4361 {
4362 struct
4363 {
4364 /// DWORD 11
4365 uint32_t PwlFwdGammaSlope10 : __CODEGEN_BITFIELD( 0, 11) ; ///< U48
4366 uint32_t Reserved364 : __CODEGEN_BITFIELD(12, 15) ; ///< U4
4367 uint32_t PwlFwdGammaSlope11 : __CODEGEN_BITFIELD(16, 27) ; ///< U48
4368 uint32_t Reserved380 : __CODEGEN_BITFIELD(28, 31) ; ///< U4
4369 };
4370 uint32_t Value;
4371 } DW11;
4372
4373 //! \name Local enumerations
4374
4375 enum PWL_FWD_GAMMA_POINT_1
4376 {
4377 PWL_FWD_GAMMA_POINT_1_UNNAMED30 = 30, ///<
4378 };
4379 enum PWL_FWD_GAMMA_POINT_2
4380 {
4381 PWL_FWD_GAMMA_POINT_2_UNNAMED55 = 55, ///<
4382 };
4383 enum PWL_FWD_GAMMA_POINT_3
4384 {
4385 PWL_FWD_GAMMA_POINT_3_UNNAMED79 = 79, ///<
4386 };
4387 enum PWL_FWD_GAMMA_POINT_4
4388 {
4389 PWL_FWD_GAMMA_POINT_4_UNNAMED101 = 101, ///<
4390 };
4391 enum PWL_FWD_GAMMA_POINT_5
4392 {
4393 PWL_FWD_GAMMA_POINT_5_UNNAMED122 = 122, ///<
4394 };
4395 enum PWL_FWD_GAMMA_POINT_6
4396 {
4397 PWL_FWD_GAMMA_POINT_6_UNNAMED141 = 141, ///<
4398 };
4399 enum PWL_FWD_GAMMA_POINT_7
4400 {
4401 PWL_FWD_GAMMA_POINT_7_UNNAMED162 = 162, ///<
4402 };
4403 enum PWL_FWD_GAMMA_POINT_8
4404 {
4405 PWL_FWD_GAMMA_POINT_8_UNNAMED181 = 181, ///<
4406 };
4407 enum PWL_FWD_GAMMA_POINT_9
4408 {
4409 PWL_FWD_GAMMA_POINT_9_UNNAMED200 = 200, ///<
4410 };
4411 enum PWL_FWD_GAMMA_POINT_10
4412 {
4413 PWL_FWD_GAMMA_POINT_10_UNNAMED219 = 219, ///<
4414 };
4415 enum PWL_FWD_GAMMA_POINT_11
4416 {
4417 PWL_FWD_GAMMA_POINT_11_UNNAMED237 = 237, ///<
4418 };
4419 enum PWL_FWD_GAMMA_BIAS_1
4420 {
4421 PWL_FWD_GAMMA_BIAS_1_UNNAMED3 = 3, ///<
4422 };
4423 enum PWL_FWD_GAMMA_BIAS_2
4424 {
4425 PWL_FWD_GAMMA_BIAS_2_UNNAMED10 = 10, ///<
4426 };
4427 enum PWL_FWD_GAMMA_BIAS_3
4428 {
4429 PWL_FWD_GAMMA_BIAS_3_UNNAMED20 = 20, ///<
4430 };
4431 enum PWL_FWD_GAMMA_BIAS_4
4432 {
4433 PWL_FWD_GAMMA_BIAS_4_UNNAMED33 = 33, ///<
4434 };
4435 enum PWL_FWD_GAMMA_BIAS_5
4436 {
4437 PWL_FWD_GAMMA_BIAS_5_UNNAMED49 = 49, ///<
4438 };
4439 enum PWL_FWD_GAMMA_BIAS_6
4440 {
4441 PWL_FWD_GAMMA_BIAS_6_UNNAMED67 = 67, ///<
4442 };
4443 enum PWL_FWD_GAMMA_BIAS_7
4444 {
4445 PWL_FWD_GAMMA_BIAS_7_UNNAMED92 = 92, ///<
4446 };
4447 enum PWL_FWD_GAMMA_BIAS_8
4448 {
4449 PWL_FWD_GAMMA_BIAS_8_UNNAMED117 = 117, ///<
4450 };
4451 enum PWL_FWD_GAMMA_BIAS_9
4452 {
4453 PWL_FWD_GAMMA_BIAS_9_UNNAMED147 = 147, ///<
4454 };
4455 enum PWL_FWD_GAMMA_BIAS_10
4456 {
4457 PWL_FWD_GAMMA_BIAS_10_UNNAMED180 = 180, ///<
4458 };
4459 enum PWL_FWD_GAMMA_BIAS_11
4460 {
4461 PWL_FWD_GAMMA_BIAS_11_UNNAMED215 = 215, ///<
4462 };
4463 enum PWL_FWD_GAMMA_SLOPE_0
4464 {
4465 PWL_FWD_GAMMA_SLOPE_0_26256 = 26, ///<
4466 };
4467 enum PWL_FWD_GAMMA_SLOPE_1
4468 {
4469 PWL_FWD_GAMMA_SLOPE_1_72256 = 72, ///<
4470 };
4471 enum PWL_FWD_GAMMA_SLOPE_2
4472 {
4473 PWL_FWD_GAMMA_SLOPE_2_107256 = 107, ///<
4474 };
4475 enum PWL_FWD_GAMMA_SLOPE_3
4476 {
4477 PWL_FWD_GAMMA_SLOPE_3_151256 = 151, ///<
4478 };
4479 enum PWL_FWD_GAMMA_SLOPE_4
4480 {
4481 PWL_FWD_GAMMA_SLOPE_4_195256 = 195, ///<
4482 };
4483 enum PWL_FWD_GAMMA_SLOPE_5
4484 {
4485 PWL_FWD_GAMMA_SLOPE_5_243256 = 243, ///<
4486 };
4487 enum PWL_FWD_GAMMA_SLOPE_6
4488 {
4489 PWL_FWD_GAMMA_SLOPE_6_305256 = 305, ///<
4490 };
4491 enum PWL_FWD_GAMMA_SLOPE_7
4492 {
4493 PWL_FWD_GAMMA_SLOPE_7_337256 = 337, ///<
4494 };
4495 enum PWL_FWD_GAMMA_SLOPE_8
4496 {
4497 PWL_FWD_GAMMA_SLOPE_8_404256 = 404, ///<
4498 };
4499 enum PWL_FWD_GAMMA_SLOPE_9
4500 {
4501 PWL_FWD_GAMMA_SLOPE_9_445256 = 445, ///<
4502 };
4503 enum PWL_FWD_GAMMA_SLOPE_10
4504 {
4505 PWL_FWD_GAMMA_SLOPE_10_498256 = 498, ///<
4506 };
4507 enum PWL_FWD_GAMMA_SLOPE_11
4508 {
4509 PWL_FWD_GAMMA_SLOPE_11_555256 = 555, ///<
4510 };
4511
4512 //! \name Initializations
4513
4514 //! \brief Explicit member initialization function
4515 VEBOX_FORWARD_GAMMA_CORRECTION_STATE_CMD();
4516
4517 static const size_t DW_SIZE = 12;
4518 static const size_t BYTE_SIZE = 48;
4519 };
4520
4521 //!
4522 //! \brief VEBOX_IECP_STATE
4523 //! \details
4524 //!
4525 //!
4526 struct VEBOX_IECP_STATE_CMD
4527 {
4528 VEBOX_STD_STE_STATE_CMD StdSteState ; ///< VEBOX_STD_STE_STATE
4529 VEBOX_ACE_LACE_STATE_CMD AceState ; ///< VEBOX_ACE_LACE_STATE
4530 VEBOX_TCC_STATE_CMD TccState ; ///< VEBOX_TCC_STATE
4531 VEBOX_PROCAMP_STATE_CMD ProcampState ; ///< VEBOX_PROCAMP_STATE
4532 VEBOX_CSC_STATE_CMD CscState ; ///< VEBOX_CSC_STATE
4533 VEBOX_ALPHA_AOI_STATE_CMD AlphaAoiState ; ///< VEBOX_ALPHA_AOI_STATE
4534 VEBOX_CCM_STATE_CMD CcmState ; ///< VEBOX_CCM_STATE
4535 BLACKLEVELCORRECTIONSTATE_DW75_76_CMD BlackLevelCorrectionState ; ///< Black Level Correction State - DW75..76
4536 VEBOX_FORWARD_GAMMA_CORRECTION_STATE_CMD ForwardGammaCorrection ; ///< VEBOX_FORWARD_GAMMA_CORRECTION_STATE
4537 VEBOX_FRONT_END_CSC_STATE_CMD FrontEndCsc ; ///< VEBOX_FRONT_END_CSC_STATE
4538
4539 //! \name Local enumerations
4540
4541 //! \name Initializations
4542
4543 //! \brief Explicit member initialization function
4544 VEBOX_IECP_STATE_CMD();
4545
4546 static const size_t DW_SIZE = 97;
4547 static const size_t BYTE_SIZE = 388;
4548 };
4549
4550 //!
4551 //! \brief VEBOX_STATE
4552 //! \details
4553 //! This command controls the internal functions of the VEBOX. This command
4554 //! has a set of indirect state buffers: DN/DI state
4555 //! IECP general state
4556 //! IECP Gamut Expansion/Compression state
4557 //! IECP Gamut Vertex Table state
4558 //! Capture Pipe state
4559 //!
4560 //!
4561 struct VEBOX_STATE_CMD
4562 {
4563 union
4564 {
4565 //!< DWORD 0
4566 struct
4567 {
4568 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
4569 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4570 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
4571 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
4572 uint32_t CommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMAND_OPCODE
4573 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
4574 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
4575 };
4576 uint32_t Value;
4577 } DW0;
4578 union
4579 {
4580 //!< DWORD 1
4581 struct
4582 {
4583 uint32_t ColorGamutExpansionEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Color Gamut Expansion Enable
4584 uint32_t ColorGamutCompressionEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Color Gamut Compression Enable
4585 uint32_t GlobalIecpEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< Global IECP Enable
4586 uint32_t DnEnable : __CODEGEN_BITFIELD( 3, 3) ; //!< DN_ENABLE
4587 uint32_t DiEnable : __CODEGEN_BITFIELD( 4, 4) ; //!< DI_ENABLE
4588 uint32_t DnDiFirstFrame : __CODEGEN_BITFIELD( 5, 5) ; //!< DNDI_FIRST_FRAME
4589 uint32_t DownsampleMethod422to420 : __CODEGEN_BITFIELD( 6, 6) ; //!< _422__420_DOWNSAMPLE_METHOD
4590 uint32_t DownsampleMethod444to422 : __CODEGEN_BITFIELD( 7, 7) ; //!< _444__422_DOWNSAMPLE_METHOD
4591 uint32_t DiOutputFrames : __CODEGEN_BITFIELD( 8, 9) ; //!< DI_OUTPUT_FRAMES
4592 uint32_t DemosaicEnable : __CODEGEN_BITFIELD(10, 10) ; //!< Demosaic Enable
4593 uint32_t VignetteEnable : __CODEGEN_BITFIELD(11, 11) ; //!< Vignette Enable
4594 uint32_t AlphaPlaneEnable : __CODEGEN_BITFIELD(12, 12) ; //!< Alpha Plane Enable
4595 uint32_t HotPixelFilteringEnable : __CODEGEN_BITFIELD(13, 13) ; //!< Hot Pixel Filtering Enable
4596 uint32_t SingleSliceVeboxEnable : __CODEGEN_BITFIELD(14, 14) ; //!< Single Slice VEBOX Enable
4597 uint32_t Reserved47 : __CODEGEN_BITFIELD(15, 24) ; //!< Reserved
4598 uint32_t StateSurfaceControlBits : __CODEGEN_BITFIELD(25, 31) ; //!< State Surface Control Bits
4599 };
4600 uint32_t Value;
4601 } DW1;
4602 union
4603 {
4604 //!< DWORD 2
4605 struct
4606 {
4607 uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
4608 uint32_t DnDiStatePointerLow : __CODEGEN_BITFIELD(12, 31) ; //!< DN/DI State Pointer Low
4609 };
4610 uint32_t Value;
4611 } DW2;
4612 union
4613 {
4614 //!< DWORD 3
4615 struct
4616 {
4617 uint32_t DnDiStatePointerHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< DN/DI State Pointer High
4618 uint32_t Reserved112 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
4619 };
4620 uint32_t Value;
4621 } DW3;
4622 union
4623 {
4624 //!< DWORD 4
4625 struct
4626 {
4627 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
4628 uint32_t IecpStatePointerLow : __CODEGEN_BITFIELD(12, 31) ; //!< IECP State Pointer Low
4629 };
4630 uint32_t Value;
4631 } DW4;
4632 union
4633 {
4634 //!< DWORD 5
4635 struct
4636 {
4637 uint32_t IecpStatePointerHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< IECP State Pointer High
4638 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
4639 };
4640 uint32_t Value;
4641 } DW5;
4642 union
4643 {
4644 //!< DWORD 6
4645 struct
4646 {
4647 uint32_t Reserved192 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
4648 uint32_t GamutStatePointerLow : __CODEGEN_BITFIELD(12, 31) ; //!< Gamut State Pointer Low
4649 };
4650 uint32_t Value;
4651 } DW6;
4652 union
4653 {
4654 //!< DWORD 7
4655 struct
4656 {
4657 uint32_t GamutStatePointerHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Gamut State Pointer High
4658 uint32_t Reserved240 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
4659 };
4660 uint32_t Value;
4661 } DW7;
4662 union
4663 {
4664 //!< DWORD 8
4665 struct
4666 {
4667 uint32_t Reserved256 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
4668 uint32_t VertexTableStatePointerLow : __CODEGEN_BITFIELD(12, 31) ; //!< Vertex Table State Pointer Low
4669 };
4670 uint32_t Value;
4671 } DW8;
4672 union
4673 {
4674 //!< DWORD 9
4675 struct
4676 {
4677 uint32_t VertexTableStatePointerHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Vertex Table State Pointer High
4678 uint32_t Reserved304 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
4679 };
4680 uint32_t Value;
4681 } DW9;
4682 union
4683 {
4684 //!< DWORD 10
4685 struct
4686 {
4687 uint32_t Reserved320 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
4688 uint32_t CapturePipeStatePointerLow : __CODEGEN_BITFIELD(12, 31) ; //!< Capture Pipe State Pointer Low
4689 };
4690 uint32_t Value;
4691 } DW10;
4692 union
4693 {
4694 //!< DWORD 11
4695 struct
4696 {
4697 uint32_t CapturePipeStatePointerHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Capture Pipe State Pointer High
4698 uint32_t Reserved368 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
4699 };
4700 uint32_t Value;
4701 } DW11;
4702
4703 //! \name Local enumerations
4704
4705 enum SUBOPCODE_B
4706 {
4707 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
4708 };
4709
4710 enum SUBOPCODE_A
4711 {
4712 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
4713 };
4714
4715 enum COMMAND_OPCODE
4716 {
4717 COMMAND_OPCODE_VEBOX = 4, //!< No additional details
4718 };
4719
4720 enum PIPELINE
4721 {
4722 PIPELINE_MEDIA = 2, //!< No additional details
4723 };
4724
4725 enum COMMAND_TYPE
4726 {
4727 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
4728 };
4729
4730 //! \brief DN_ENABLE
4731 //! \details
4732 //! Denoise is bypassed if this is low - BNE is still calculated and output,
4733 //! but the denoised fields are not. VDI does not read in the denoised
4734 //! previous frame but uses the pointer for the original previous frame.
4735 enum DN_ENABLE
4736 {
4737 DN_ENABLE_DONOTDENOISEFRAME = 0, //!< No additional details
4738 DN_ENABLE_DENOISEFRAME = 1, //!< No additional details
4739 };
4740
4741 //! \brief DI_ENABLE
4742 //! \details
4743 //! Deinterlacer is bypassed if this is disabled: the output is the same as
4744 //! the input (same as a 2:2 cadence).
4745 //! FMD and STMM are not calculated and the values in the response
4746 //! message are 0.
4747 enum DI_ENABLE
4748 {
4749 DI_ENABLE_DONOTCALCULATEDI = 0, //!< No additional details
4750 DI_ENABLE_CALCULATEDI = 1, //!< No additional details
4751 };
4752
4753 //! \brief DNDI_FIRST_FRAME
4754 //! \details
4755 //! Indicates that this is the first frame of the stream, so previous clean
4756 //! is not available.
4757 enum DNDI_FIRST_FRAME
4758 {
4759 DNDI_FIRST_FRAME_NOTFIRSTFIELD_PREVIOUSCLEANSURFACESTATEISVALID = 0, //!< No additional details
4760 DNDI_FIRST_FRAME_FIRSTFIELD_PREVIOUSCLEANSURFACESTATEISINVALID = 1, //!< No additional details
4761 };
4762
4763 //! \brief _422__420_DOWNSAMPLE_METHOD
4764 //! \details
4765 //! To enable averaging in case of 420 (NV12/P016) output formats,
4766 //! 444-&gt;422 and 422-&gt;420 should be set.
4767 enum _422__420_DOWNSAMPLE_METHOD
4768 {
4769 _422_420_DOWNSAMPLE_METHOD_DROPLOWERCHROMAOFTHEPAIR = 0, //!< No additional details
4770 _422_420_DOWNSAMPLE_METHOD_AVERAGEVERTICALLYALIGNEDCHROMAS = 1, //!< No additional details
4771 };
4772
4773 //! \brief _444__422_DOWNSAMPLE_METHOD
4774 //! \details
4775 //! <table border="1">
4776 //! <tr>
4777 //! <td>444-&gt;422</td>
4778 //! <td>422-&gt;420</td>
4779 //! <td>Description</td>
4780 //! </tr>
4781 //! <tr>
4782 //! <td>0</td>
4783 //! <td>0</td>
4784 //! <td>No averaging, only down sampling</td>
4785 //! </tr>
4786 //! <tr>
4787 //! <td>0</td>
4788 //! <td>1</td>
4789 //! <td>Not Supported</td>
4790 //! </tr>
4791 //! <tr>
4792 //! <td>1</td>
4793 //! <td>0</td>
4794 //! <td>Only Horizontal averaging</td>
4795 //! </tr>
4796 //! <tr>
4797 //! <td>1</td>
4798 //! <td>1</td>
4799 //! <td>Horizontal and Vertical averaging</td>
4800 //! </tr>
4801 //! </table>
4802 enum _444__422_DOWNSAMPLE_METHOD
4803 {
4804 _444_422_DOWNSAMPLE_METHOD_DROPRIGHTCHROMAOFTHEPAIR = 0, //!< No additional details
4805 _444_422_DOWNSAMPLE_METHOD_AVERAGEHORIZONTALLYALIGNEDCHROMAS = 1, //!< No additional details
4806 };
4807
4808 //! \brief DI_OUTPUT_FRAMES
4809 //! \details
4810 //! Indicates which frames to output in DI mode.
4811 enum DI_OUTPUT_FRAMES
4812 {
4813 DI_OUTPUT_FRAMES_OUTPUTBOTHFRAMES = 0, //!< No additional details
4814 DI_OUTPUT_FRAMES_OUTPUTPREVIOUSFRAMEONLY = 1, //!< No additional details
4815 DI_OUTPUT_FRAMES_OUTPUTCURRENTFRAMEONLY = 2, //!< No additional details
4816 };
4817
4818 //! \name Initializations
4819
4820 //! \brief Explicit member initialization function
4821 VEBOX_STATE_CMD();
4822
4823 static const size_t dwSize = 12;
4824 static const size_t byteSize = 48;
4825 };
4826
4827 //!
4828 //! \brief VEBOX_SURFACE_STATE
4829 //! \details
4830 //! The input and output data containers accessed are called "surfaces".
4831 //! Surface state is sent to VEBOX via an inline state command rather than
4832 //! using binding tables. SURFACE_STATE contains the parameters defining
4833 //! each surface to be accessed, including its size, format, and offsets to
4834 //! its subsurfaces. The surface's base address is in the execution command.
4835 //! Despite having multiple input and output surfaces, we limit the number
4836 //! of surface states to one for input surfaces and one for output surfaces.
4837 //! The other surfaces are derived from the input/output surface states.
4838 //!
4839 //! The Current Frame Input surface uses the Input SURFACE_STATE
4840 //!
4841 //! The Previous Denoised Input surface uses the Input SURFACE_STATE. (For
4842 //! 12-bit Bayer pattern inputs this will be 8-bit.)
4843 //!
4844 //! The Current Denoised Output surface uses the Input SURFACE_STATE. (For
4845 //! 12-bit Bayer pattern inputs this will be 8-bit.)
4846 //!
4847 //! The STMM/Noise History Input surface uses the Input SURFACE_STATE with
4848 //! Tile-Y and Width/Height a multiple of 4.
4849 //!
4850 //! The STMM/Noise History Output surface uses the Input SURFACE_STATE with
4851 //! Tile-Y and Width/Height a multiple of 4.
4852 //!
4853 //! The Current Deinterlaced/IECP Frame Output surface uses the Output
4854 //! SURFACE_STATE.
4855 //!
4856 //! The Previous Deinterlaced/IECP Frame Output surface uses the Output
4857 //! SURFACE_STATE.
4858 //!
4859 //! The FMD per block output / per Frame Output surface uses the Linear
4860 //! SURFACE_STATE (see note below).
4861 //!
4862 //! The Alpha surface uses the Linear A8 SURFACE_STATE with Width/Height
4863 //! equal to Input Surface. Pitch is width rounded to next 64.
4864 //!
4865 //! The Vignette Correction surface uses the Linear 16-bit SURFACE_STATE
4866 //! with:
4867 //! Width = 4 * ((Input Width 3)/4)
4868 //! Height = ((Input Height 3)/4)
4869 //! Pitch in bytes is (vignette width*2) rounded to next 64.
4870 //!
4871 //! The STMM height is the same as the Input Surface height except when the
4872 //! input Surface Format is Bayer Pattern and the Bayer Pattern Offset is 10
4873 //! or 11, in which case the height is the input height + 4. For Bayer
4874 //! pattern inputs when the Bayer Pattern Offset is 10 or 11, the Current
4875 //! Denoised Output/Previous Denoised Input will also have a height which is
4876 //! the input height + 4. For Bayer pattern inputs only the Current Denoised
4877 //! Output/Previous Denoised Input are in Tile-Y.
4878 //!
4879 //! The linear surface for FMD statistics is linear (not tiled). The height
4880 //! of the per block statistics is (Input Height +3)/4 - the Input Surface
4881 //! height in pixels is rounded up to the next even 4 and divided by 4. The
4882 //! width of the per block section in bytes is equal to the width of the
4883 //! Input Surface in pixels rounded up to the next 16 bytes. The pitch of
4884 //! the per block section in bytes is equal to the width of the Input
4885 //! Surface in pixels rounded up to the next 64 bytes.
4886 //!
4887 //! The STMM surfaces must be identical to the Input surface except for the
4888 //! tiling mode must be Tile-Y and the pitch must be legal for Tile-Y
4889 //! (increased to the next larger legal pitch). If the input surface is
4890 //! packed (Surface Format from 0 to 3 for DN/DI) or 12/10-bit Bayer Pattern
4891 //! then the pitch for the STMM surface is 1/2 the pitch of the input
4892 //! surface (rounded up to the next larger legal Tile-Y pitch). The width
4893 //! and height must be a multiple of 4 rounded up from the input height.
4894 //!
4895 //! VEBOX may write to memory between the surface width and the surface
4896 //! pitch for output surfaces.
4897 //!
4898 //! For 8bit Alpha input, when converting to 16bit output it is padded with
4899 //! 8bit zeros in the LSB.
4900 //!
4901 struct VEBOX_SURFACE_STATE_CMD
4902 {
4903 union
4904 {
4905 //!< DWORD 0
4906 struct
4907 {
4908 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
4909 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4910 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
4911 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
4912 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
4913 uint32_t MediaCommandPipeline : __CODEGEN_BITFIELD(27, 28) ; //!< MEDIA_COMMAND_PIPELINE
4914 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
4915 };
4916 uint32_t Value;
4917 } DW0;
4918 union
4919 {
4920 //!< DWORD 1
4921 struct
4922 {
4923 uint32_t SurfaceIdentification : __CODEGEN_BITFIELD( 0, 0) ; //!< SURFACE_IDENTIFICATION
4924 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
4925 };
4926 uint32_t Value;
4927 } DW1;
4928 union
4929 {
4930 //!< DWORD 2
4931 struct
4932 {
4933 uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 3) ; //!< Reserved
4934 uint32_t Width : __CODEGEN_BITFIELD( 4, 17) ; //!< Width
4935 uint32_t Height : __CODEGEN_BITFIELD(18, 31) ; //!< Height
4936 };
4937 uint32_t Value;
4938 } DW2;
4939 union
4940 {
4941 //!< DWORD 3
4942 struct
4943 {
4944 uint32_t TileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< TILE_WALK
4945 uint32_t TiledSurface : __CODEGEN_BITFIELD( 1, 1) ; //!< TILED_SURFACE
4946 uint32_t HalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< Half Pitch for Chroma
4947 uint32_t SurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Surface Pitch
4948 uint32_t Reserved116 : __CODEGEN_BITFIELD(20, 23) ; //!< Reserved
4949 uint32_t BayerPatternFormat : __CODEGEN_BITFIELD(24, 24) ; //!< BAYER_PATTERN_FORMAT
4950 uint32_t BayerPatternOffset : __CODEGEN_BITFIELD(25, 26) ; //!< BAYER_PATTERN_OFFSET
4951 uint32_t InterleaveChroma : __CODEGEN_BITFIELD(27, 27) ; //!< Interleave Chroma
4952 uint32_t SurfaceFormat : __CODEGEN_BITFIELD(28, 31) ; //!< SURFACE_FORMAT
4953 };
4954 uint32_t Value;
4955 } DW3;
4956 union
4957 {
4958 //!< DWORD 4
4959 struct
4960 {
4961 uint32_t YOffsetForU : __CODEGEN_BITFIELD( 0, 14) ; //!< Y Offset for U
4962 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
4963 uint32_t XOffsetForU : __CODEGEN_BITFIELD(16, 28) ; //!< X Offset for U
4964 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
4965 };
4966 uint32_t Value;
4967 } DW4;
4968 union
4969 {
4970 //!< DWORD 5
4971 struct
4972 {
4973 uint32_t YOffsetForV : __CODEGEN_BITFIELD( 0, 14) ; //!< Y Offset for V
4974 uint32_t Reserved175 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
4975 uint32_t XOffsetForV : __CODEGEN_BITFIELD(16, 28) ; //!< X Offset for V
4976 uint32_t Reserved189 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
4977 };
4978 uint32_t Value;
4979 } DW5;
4980 union
4981 {
4982 //!< DWORD 6
4983 struct
4984 {
4985 uint32_t Dword67 ; //!< DWORD6..7
4986 };
4987 uint32_t Value;
4988 } DW6;
4989
4990 //! \name Local enumerations
4991
4992 enum SUBOPCODE_B
4993 {
4994 SUBOPCODE_B_VEBOX = 0, //!< No additional details
4995 };
4996
4997 enum SUBOPCODE_A
4998 {
4999 SUBOPCODE_A_VEBOX = 0, //!< No additional details
5000 };
5001
5002 enum MEDIA_COMMAND_OPCODE
5003 {
5004 MEDIA_COMMAND_OPCODE_VEBOX = 4, //!< No additional details
5005 };
5006
5007 enum MEDIA_COMMAND_PIPELINE
5008 {
5009 MEDIA_COMMAND_PIPELINE_MEDIA = 2, //!< No additional details
5010 };
5011
5012 enum COMMAND_TYPE
5013 {
5014 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5015 };
5016
5017 //! \brief SURFACE_IDENTIFICATION
5018 //! \details
5019 //! Specifies which set of surfaces this command refers to:
5020 enum SURFACE_IDENTIFICATION
5021 {
5022 SURFACE_IDENTIFICATION_INPUTSURFACEANDDENOISEDCURRENTOUTPUTSURFACE = 0, //!< No additional details
5023 SURFACE_IDENTIFICATION_OUTPUTSURFACE_ALLEXCEPTTHEDENOISEDCURRENTOUTPUTSURFACE = 1, //!< No additional details
5024 };
5025
5026 //! \brief TILE_WALK
5027 //! \details
5028 //! This field specifies the type of memory tiling (XMajor or YMajor)
5029 //! employed to tile this surface. See <em>Memory Interface Functions</em>
5030 //! for details on memory tiling and restrictions.
5031 //! This field is ignored when the surface is linear.
5032 enum TILE_WALK
5033 {
5034 TILE_WALK_TILEWALKXMAJOR = 0, //!< No additional details
5035 TILE_WALK_TILEWALKYMAJOR = 1, //!< No additional details
5036 };
5037
5038 //! \brief TILED_SURFACE
5039 //! \details
5040 //! This field specifies whether the surface is tiled.
5041 enum TILED_SURFACE
5042 {
5043 TILED_SURFACE_FALSE = 0, //!< Linear
5044 TILED_SURFACE_TRUE = 1, //!< Tiled
5045 };
5046
5047 //! \brief BAYER_PATTERN_FORMAT
5048 //! \details
5049 //! Specifies the format of the Bayer Pattern:
5050 enum BAYER_PATTERN_FORMAT
5051 {
5052 BAYER_PATTERN_FORMAT_8_BITINPUTATA8_BITSTRIDE = 0, //!< No additional details
5053 BAYER_PATTERN_FORMAT_12OR10_BITINPUTATA16_BITSTRIDEVALIDDATAISINTHEMSBS = 1, //!< No additional details
5054 };
5055
5056 //! \brief BAYER_PATTERN_OFFSET
5057 //! \details
5058 //! Specifies the starting pixel offset for the Bayer pattern used for
5059 //! Capture Pipe.
5060 enum BAYER_PATTERN_OFFSET
5061 {
5062 BAYER_PATTERN_OFFSET_PIXELATX0_Y0ISBLUE = 0, //!< No additional details
5063 BAYER_PATTERN_OFFSET_PIXELATX0_Y0ISRED = 1, //!< No additional details
5064 BAYER_PATTERN_OFFSET_PIXELATX0_Y0ISGREEN_PIXELATX1_Y0ISRED = 2, //!< No additional details
5065 BAYER_PATTERN_OFFSET_PIXELATX0_Y0ISGREEN_PIXELATX1_Y0ISBLUE = 3, //!< No additional details
5066 };
5067
5068 //! \brief SURFACE_FORMAT
5069 //! \details
5070 //! Specifies the format of the surface. All of the Y and G channels will
5071 //! use table 0 and all of the Cr/Cb/R/B channels will use table 1.
5072 enum SURFACE_FORMAT
5073 {
5074 SURFACE_FORMAT_YCRCBNORMAL = 0, //!< No additional details
5075 SURFACE_FORMAT_YCRCBSWAPUVY = 1, //!< No additional details
5076 SURFACE_FORMAT_YCRCBSWAPUV = 2, //!< No additional details
5077 SURFACE_FORMAT_YCRCBSWAPY = 3, //!< No additional details
5078 SURFACE_FORMAT_PLANAR4208 = 4, //!< NV12 with Interleave Chroma set
5079 SURFACE_FORMAT_PACKED444A8 = 5, //!< IECP input/output only
5080 SURFACE_FORMAT_PACKED42216 = 6, //!< IECP input/output only
5081 SURFACE_FORMAT_R10G10B10A2UNORMR10G10B10A2UNORMSRGB = 7, //!< IECP output only
5082 SURFACE_FORMAT_R8G8B8A8UNORMR8G8B8A8UNORMSRGB = 8, //!< IECP input/output only
5083 SURFACE_FORMAT_PACKED44416 = 9, //!< IECP input/output only
5084 SURFACE_FORMAT_PLANAR42216 = 10, //!< IECP input/output only
5085 SURFACE_FORMAT_Y8UNORM = 11, //!< No additional details
5086 SURFACE_FORMAT_PLANAR42016 = 12, //!< IECP input/output only
5087 SURFACE_FORMAT_R16G16B16A16 = 13, //!< IECP input/output only
5088 SURFACE_FORMAT_BAYERPATTERN = 14, //!< Demosaic input only
5089 };
5090
5091 //! \name Initializations
5092
5093 //! \brief Explicit member initialization function
5094 VEBOX_SURFACE_STATE_CMD();
5095
5096 static const size_t dwSize = 7;
5097 static const size_t byteSize = 28;
5098 };
5099
5100 //!
5101 //! \brief VEB_DI_IECP
5102 //! \details
5103 //! The VEB_DI_IECP command causes the VEBOX to start processing the frames
5104 //! specified by VEB_SURFACE_STATE using the parameters specified by
5105 //! VEB_DI_STATE and VEB_IECP_STATE. The processing can start and end at
5106 //! any 64 pixel column in the frame. If Starting X and Ending X are used to
5107 //! split the frame into sections, it should not be split into more than 4
5108 //! sections.
5109 //! Each VEB_DI_IECP command should be preceded by a VEB_STATE command and
5110 //! the input/output VEB_SURFACE_STATE commands.
5111 //!
5112 struct VEB_DI_IECP_CMD
5113 {
5114 union
5115 {
5116 //!< DWORD 0
5117 struct
5118 {
5119 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5120 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5121 uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB
5122 uint32_t Subopa : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPA
5123 uint32_t Opcode : __CODEGEN_BITFIELD(24, 26) ; //!< OPCODE
5124 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5125 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5126 };
5127 uint32_t Value;
5128 } DW0;
5129 union
5130 {
5131 //!< DWORD 1
5132 struct
5133 {
5134 uint32_t EndingX : __CODEGEN_BITFIELD( 0, 13) ; //!< Ending X
5135 uint32_t Reserved46 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5136 uint32_t StartingX : __CODEGEN_BITFIELD(16, 29) ; //!< Starting X
5137 uint32_t Reserved62 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5138 };
5139 uint32_t Value;
5140 } DW1;
5141 union
5142 {
5143 //!< DWORD 2
5144 struct
5145 {
5146 uint32_t CurrentFrameSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5147 uint32_t CurrentFrameSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5148 uint32_t CurrentFrameSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5149 uint32_t CurrentFrameSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5150 uint32_t CurrentFrameSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5151 uint32_t Reserved73 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5152 uint32_t CurrentFrameInputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5153 };
5154 uint32_t Value;
5155 } DW2;
5156 union
5157 {
5158 //!< DWORD 3
5159 struct
5160 {
5161 uint32_t CurrentFrameInputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Current Frame Input Address High
5162 uint32_t Reserved112 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5163 };
5164 uint32_t Value;
5165 } DW3;
5166 union
5167 {
5168 //!< DWORD 4
5169 struct
5170 {
5171 uint32_t PreviousFrameSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5172 uint32_t PreviousFrameSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5173 uint32_t PreviousFrameSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5174 uint32_t PreviousFrameSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5175 uint32_t PreviousFrameSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5176 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5177 uint32_t PreviousFrameInputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5178 };
5179 uint32_t Value;
5180 } DW4;
5181 union
5182 {
5183 //!< DWORD 5
5184 struct
5185 {
5186 uint32_t PreviousFrameInputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; ///< GraphicsAddress
5187 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; ///< U14
5188 };
5189 uint32_t Value;
5190 } DW5;
5191 union
5192 {
5193 //!< DWORD 6
5194 struct
5195 {
5196 uint32_t StmmInputSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5197 uint32_t StmmInputSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5198 uint32_t StmmInputSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5199 uint32_t StmmInputSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5200 uint32_t StmmInputSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5201 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5202 uint32_t StmmInputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5203 };
5204 uint32_t Value;
5205 } DW6;
5206 union
5207 {
5208 //!< DWORD 7
5209 struct
5210 {
5211 uint32_t StmmInputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; ///< GraphicsAddress
5212 uint32_t Reserved240 : __CODEGEN_BITFIELD(16, 31) ; ///< U14
5213 };
5214 uint32_t Value;
5215 } DW7;
5216 union
5217 {
5218 //!< DWORD 8
5219 struct
5220 {
5221 uint32_t StmmOutputSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5222 uint32_t StmmOutputSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5223 uint32_t StmmOutputSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5224 uint32_t StmmOutputSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5225 uint32_t StmmOutputSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5226 uint32_t Reserved265 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5227 uint32_t StmmOutputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5228 };
5229 uint32_t Value;
5230 } DW8;
5231 union
5232 {
5233 //!< DWORD 9
5234 struct
5235 {
5236 uint32_t StmmOutputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< STMM Output Address High
5237 uint32_t Reserved304 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5238 };
5239 uint32_t Value;
5240 } DW9;
5241 union
5242 {
5243 //!< DWORD 10
5244 struct
5245 {
5246 uint32_t DenoisedCurrentOutputSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5247 uint32_t DenoisedCurrentOutputSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5248 uint32_t DenoisedCurrentOutputSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5249 uint32_t DenoisedCurrentOutputSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5250 uint32_t DenoisedCurrentOutputSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5251 uint32_t Reserved329 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5252 uint32_t DenoisedCurrentFrameOutputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5253 };
5254 uint32_t Value;
5255 } DW10;
5256 union
5257 {
5258 //!< DWORD 11
5259 struct
5260 {
5261 uint32_t DenoisedCurrentFrameOutputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Denoised Current Frame Output Address High
5262 uint32_t Reserved368 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5263 };
5264 uint32_t Value;
5265 } DW11;
5266 union
5267 {
5268 //!< DWORD 12
5269 struct
5270 {
5271 uint32_t CurrentFrameOutputSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5272 uint32_t CurrentFrameOutputSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5273 uint32_t CurrentFrameOutputSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5274 uint32_t CurrentFrameOutputSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5275 uint32_t CurrentFrameOutputSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5276 uint32_t Reserved393 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5277 uint32_t CurrentFrameOutputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5278 };
5279 uint32_t Value;
5280 } DW12;
5281 union
5282 {
5283 //!< DWORD 13
5284 struct
5285 {
5286 uint32_t CurrentFrameOutputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Current Frame Output Address High
5287 uint32_t Reserved432 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5288 };
5289 uint32_t Value;
5290 } DW13;
5291 union
5292 {
5293 //!< DWORD 14
5294 struct
5295 {
5296 uint32_t PreviousFrameOutputSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5297 uint32_t PreviousFrameOutputSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5298 uint32_t PreviousFrameOutputSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5299 uint32_t PreviousFrameOutputSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5300 uint32_t PreviousFrameOutputSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5301 uint32_t Reserved457 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5302 uint32_t PreviousFrameOutputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5303 };
5304 uint32_t Value;
5305 } DW14;
5306 union
5307 {
5308 //!< DWORD 15
5309 struct
5310 {
5311 uint32_t PreviousFrameOutputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Previous Frame Output Address High
5312 uint32_t Reserved496 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5313 };
5314 uint32_t Value;
5315 } DW15;
5316 union
5317 {
5318 //!< DWORD 16
5319 struct
5320 {
5321 uint32_t StatisticsOutputSurfaceControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5322 uint32_t StatisticsOutputSurfaceControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5323 uint32_t StatisticsOutputSurfaceControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5324 uint32_t StatisticsOutputSurfaceControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5325 uint32_t StatisticsOutputSurfaceControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5326 uint32_t Reserved521 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5327 uint32_t StatisticsOutputAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5328 };
5329 uint32_t Value;
5330 } DW16;
5331 union
5332 {
5333 //!< DWORD 17
5334 struct
5335 {
5336 uint32_t StatisticsOutputAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Statistics Output Address High
5337 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5338 };
5339 uint32_t Value;
5340 } DW17;
5341 union
5342 {
5343 //!< DWORD 18
5344 struct
5345 {
5346 uint32_t AlphaVignetteControlBitsAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; ///< Sub-structure
5347 uint32_t AlphaVignetteControlBitsReserved2 : __CODEGEN_BITFIELD( 2, 2) ; ///< Sub-structure
5348 uint32_t AlphaVignetteControlBitsTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; ///< Sub-structure
5349 uint32_t AlphaVignetteControlBitsMemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; ///< Sub-structure
5350 uint32_t AlphaVignetteControlBitsReserved : __CODEGEN_BITFIELD( 7, 8) ; ///< Sub-structure
5351 uint32_t Reserved585 : __CODEGEN_BITFIELD( 9, 11) ; ///< U2
5352 uint32_t AlphaVignetteCorrectionAddress : __CODEGEN_BITFIELD(12, 31) ; ///< GraphicsAddress
5353 };
5354 uint32_t Value;
5355 } DW18;
5356 union
5357 {
5358 //!< DWORD 19
5359 struct
5360 {
5361 uint32_t AlphaVignetteCorrectionAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Alpha/Vignette Correction Address High
5362 uint32_t Reserved624 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5363 };
5364 uint32_t Value;
5365 } DW19;
5366
5367 //! \name Local enumerations
5368
5369 enum SUBOPB
5370 {
5371 SUBOPB_VEBDIIECP = 3, //!< No additional details
5372 };
5373
5374 enum SUBOPA
5375 {
5376 SUBOPA_VEBDIIECP = 0, //!< No additional details
5377 };
5378
5379 enum OPCODE
5380 {
5381 OPCODE_VEBOX = 4, //!< No additional details
5382 };
5383
5384 enum PIPELINE
5385 {
5386 PIPELINE_MEDIA = 2, //!< No additional details
5387 };
5388
5389 enum COMMAND_TYPE
5390 {
5391 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5392 };
5393
5394 //! \name Initializations
5395
5396 //! \brief Explicit member initialization function
5397 VEB_DI_IECP_CMD();
5398
5399 static const size_t dwSize = 20;
5400 static const size_t byteSize = 80;
5401 };
5402
5403 //!
5404 //! \brief VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS
5405 //! \details
5406 //!
5407 //!
5408 struct VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_CMD
5409 {
5410 union
5411 {
5412 //!< DWORD 0
5413 struct
5414 {
5415 uint32_t AgeForQuadlruAge : __CODEGEN_BITFIELD(0, 1); //!< AGE_FOR_QUADLRU_AGE
5416 uint32_t Reserved2 : __CODEGEN_BITFIELD(2, 2); //!< Protected Data
5417 uint32_t TargetCacheTc : __CODEGEN_BITFIELD(3, 4); //!< TARGET_CACHE_TC
5418 uint32_t MemoryTypeLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD(5, 6); //!< MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC
5419 uint32_t Reserved7 : __CODEGEN_BITFIELD(7, 31); //!< Reserved
5420 };
5421 uint32_t Value;
5422 } DW0;
5423 //! \name Local enumerations
5424
5425 //! \brief AGE_FOR_QUADLRU_AGE
5426 //! \details
5427 //! <p style="margin-left:3.0pt;">This field allows the selection of AGE
5428 //! parameter for a given surface in LLC or eLLC. If a particular allocation
5429 //! is done at youngest age (("0,1,2") it tends to stay longer in the cache.
5430 //! This option is given to GFX software to be able to decide which surfaces
5431 //! are more likely to generate HITs, hence need to be replaced least often
5432 //! in caches.</p>
5433 enum AGE_FOR_QUADLRU_AGE
5434 {
5435 AGE_FOR_QUADLRU_AGE_BESTCHANCE = 0, //!< Best chance of generating cache hits.
5436 AGE_FOR_QUADLRU_AGE_BETTERCHANCE = 1, //!< Better chance of generating cache hits.
5437 AGE_FOR_QUADLRU_AGE_NORMALCHANCE = 2, //!< Normal chance of generating cache hits.
5438 AGE_FOR_QUADLRU_AGE_POORCHANCE = 3, //!< Poor chance of generating cache hits.
5439 };
5440
5441 //! \brief TARGET_CACHE_TC
5442 //! \details
5443 //! <p style="margin-left:3.0pt;">This field controls the L3$, LLC and eLLC
5444 //! (eDRAM) cacheability for a given surface. Setting of "00" points to PTE
5445 //! settings which defaults to eDRAM (when present). If no eDRAM, the access
5446 //! will be allocated to LLC. Setting of "01", allocates into LLC and
5447 //! victimizes the line to eDRAM. Setting of "10" allows the line to be
5448 //! allocated in either LLC or eDRAM. Setting of "11" is the only option for
5449 //! a memory access to be allocated in L3$ as well as LLC/eLLC</p>
5450 //! <p style="margin-left:3.0pt;">00b: eLLC Only <i>("00" setting points TC
5451 //! selection to PTE which defaults to eLLC)</i></p>
5452 //! <p style="margin-left:3.0pt;">01b: LLC Only (W<i>orks at the allocation
5453 //! time, later victimization from LLC downgrades the line to eLLC if
5454 //! present</i>).</p>
5455 //! <p style="margin-left:3.0pt;">10b: LLC/eLLC Allowed.</p>
5456 //! <p style="margin-left:3.0pt;">11b: L3, LLC, eLLC Allowed.</p>
5457 //! <p style="margin-left:3.0pt;"><b>Errata BDW:A-E (FIXED BY:G0
5458 //! Stepping):</b></p>
5459 //! <p style="margin-left:3.0pt;"></p>
5460 //! <p style="margin-left:3.0pt;">For all system that does NOT use SVM (i.e.
5461 //! coherent L3$ surfaces), back snoops from LLC has to be disabled
5462 //! (<b>Dis_GtCvUpdtOnRd = "1"</b>). Than target Cache settings can be
5463 //! programmed as POR requirements of L3/LLC/eDRAM caching.</p>
5464 //! <p style="margin-left:3.0pt;"></p>
5465 //! <p style="margin-left:3.0pt;">For all systems that does use SVM (i.e.
5466 //! coherent L3$ surfaces), the recomended setting would be "00" in target
5467 //! cache settings. In case of L3 surfaces, the performance has to be tuned
5468 //! between "00" and "11" setting based on the benefits of L3 caching
5469 //! outweighting the degradation of backsnoops.</p>
5470 //! <p style="margin-left:3.0pt;"></p>Post G0-stepping, the above w/a for
5471 //! coherent L3$ surfaces is not needed.
5472 enum TARGET_CACHE_TC
5473 {
5474 TARGET_CACHE_TC_ELLCONLY = 0, //!< No additional details
5475 TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
5476 TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
5477 TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
5478 };
5479
5480 //! \brief MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC
5481 //! \details
5482 //! This is the field used in GT interface block to determine what type of
5483 //! access need to be generated to uncore. For the cases where the LeLLCCC
5484 //! is set, cacheable transaction are generated to enable LLC usage for
5485 //! particular stream.
5486 enum MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC
5487 {
5488 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_USECACHEABILITYCONTROLSFROMPAGETABLEUCWITHFENCE_IFCOHERENTCYCLE = 0, //!< No additional details
5489 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UNCACHEABLE_UC_NON_CACHEABLE = 1, //!< No additional details
5490 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WRITETHROUGH_WT = 2, //!< No additional details
5491 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WRITEBACK_WB = 3, //!< No additional details
5492 };
5493
5494 //! \name Initializations
5495
5496 //! \brief Explicit member initialization function
5497 VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_CMD();
5498
5499 static const size_t dwSize = 1;
5500 static const size_t byteSize = 4;
5501 };
5502
5503 //!
5504 //! \brief VEBOX_VERTEX_TABLE_ENTRY
5505 //! \details
5506 //!
5507 //!
5508 struct VEBOX_VERTEX_TABLE_ENTRY
5509 {
5510 union
5511 {
5512 //!< DWORD 0
5513 struct
5514 {
5515 uint32_t Vertextableentry0_Cv : __CODEGEN_BITFIELD(0, 11); //!< Vertex table entry 0 - Cv(12 bits)
5516 uint32_t : __CODEGEN_BITFIELD(12, 15); //!< Reserved
5517 uint32_t Vertextableentry0_Lv : __CODEGEN_BITFIELD(16, 27); //!< Vertex table entry 0 - Lv(12 bits)
5518 uint32_t : __CODEGEN_BITFIELD(28, 31); //!< Reserved
5519 };
5520 uint32_t Value;
5521 } DW0;
5522
5523 static const size_t dwSize = 1;
5524 static const size_t byteSize = 4;
5525
5526 };
5527
5528 //!
5529 //! \brief VEBOX_VERTEX_TABLE
5530 //! \details
5531 //!
5532 //!
5533 struct VEBOX_VERTEX_TABLE_CMD
5534 {
5535 VEBOX_VERTEX_TABLE_ENTRY VertexTableEntry[512];
5536
5537 static const size_t dwSize = 512;
5538 static const size_t byteSize = 2048;
5539 };
5540
5541 };
5542
5543 #pragma pack()
5544
5545 #endif // __MHW_VEBOX_HWCMD_G8_X_H__