Debian Codegraph @

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