xref: /aosp_15_r20/external/intel-media-driver/media_driver/agnostic/common/hw/mhw_vebox_hwcmd_g9_X.cpp (revision ba62d9d3abf0e404f2022b4cd7a85e107f48596f)
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.cpp
24 //! \brief  Auto-generated definitions for MHW commands and states.
25 //!
26 
27 #include "mhw_vebox_hwcmd_g9_X.h"
28 #include "mos_utilities.h"
29 
VEBOX_ACE_LACE_STATE_CMD()30 mhw_vebox_g9_X::VEBOX_ACE_LACE_STATE_CMD::VEBOX_ACE_LACE_STATE_CMD()
31 {
32     DW0.Value                                        = 0;
33     DW0.SkinThreshold                                = SKIN_THRESHOLD_UNNAMED26;
34     DW0.LaceHistogramEnable                          = LACE_HISTOGRAM_ENABLE_UNNAMED0;
35     DW0.LaceHistogramSize                            = LACE_HISTOGRAM_SIZE_128_BINHISTOGRAM;
36     DW0.LaceSingleHistogramSet                       = LACE_SINGLE_HISTOGRAM_SET_CURRENT;
37 
38     DW1.Value                                        = 0;
39     DW1.Ymin                                         = YMIN_UNNAMED16;
40     DW1.Y1                                           = Y1_UNNAMED36;
41     DW1.Y2                                           = Y2_UNNAMED56;
42     DW1.Y3                                           = Y3_UNNAMED76;
43 
44     DW2.Value                                        = 0;
45     DW2.Y4                                           = Y4_UNNAMED96;
46     DW2.Y5                                           = Y5_UNNAMED116;
47     DW2.Y6                                           = Y6_UNNAMED136;
48     DW2.Y7                                           = Y7_UNNAMED156;
49 
50     DW3.Value                                        = 0;
51     DW3.Y8                                           = Y8_UNNAMED176;
52     DW3.Y9                                           = Y9_UNNAMED196;
53     DW3.Y10                                          = Y10_UNNAMED216;
54     DW3.Ymax                                         = YMAX_UNNAMED235;
55 
56     DW4.Value                                        = 0;
57     DW4.B1                                           = B1_UNNAMED36;
58     DW4.B2                                           = B2_UNNAMED56;
59     DW4.B3                                           = B3_UNNAMED76;
60     DW4.B4                                           = B4_UNNAMED96;
61 
62     DW5.Value                                        = 0;
63     DW5.B5                                           = B5_UNNAMED116;
64     DW5.B6                                           = B6_UNNAMED136;
65     DW5.B7                                           = B7_UNNAMED156;
66     DW5.B8                                           = B8_UNNAMED176;
67 
68     DW6.Value                                        = 0;
69     DW6.B9                                           = B9_UNNAMED196;
70     DW6.B10                                          = B10_UNNAMED216;
71 
72     DW7.Value                                        = 0;
73     DW7.S0                                           = S0_UNNAMED1024;
74     DW7.S1                                           = S1_UNNAMED1024;
75 
76     DW8.Value                                        = 0;
77     DW8.S2                                           = S2_UNNAMED1024;
78     DW8.S3                                           = S3_UNNAMED1024;
79 
80     DW9.Value                                        = 0;
81     DW9.S4                                           = S4_UNNAMED1024;
82     DW9.S5                                           = S5_UNNAMED1024;
83 
84     DW10.Value                                       = 0;
85     DW10.S6                                          = S6_UNNAMED1024;
86     DW10.S7                                          = S7_UNNAMED1024;
87 
88     DW11.Value                                       = 0;
89     DW11.S8                                          = S8_UNNAMED1024;
90     DW11.S9                                          = S9_UNNAMED1024;
91 
92     DW12.Value                                       = 0;
93     DW12.S10                                         = S10_UNNAMED1024;
94 
95 }
96 
VEBOX_ALPHA_AOI_STATE_CMD()97 mhw_vebox_g9_X::VEBOX_ALPHA_AOI_STATE_CMD::VEBOX_ALPHA_AOI_STATE_CMD()
98 {
99     DW0.Value                                        = 0;
100     DW0.AlphaFromStateSelect                         = ALPHA_FROM_STATE_SELECT_ALPHAISTAKENFROMMESSAGE;
101     DW0.FullImageHistogram                           = FULL_IMAGE_HISTOGRAM_UNNAMED0;
102 
103     DW1.Value                                        = 0;
104     DW1.AoiMinX                                      = AOI_MIN_X_UNNAMED0;
105     DW1.AoiMaxX                                      = AOI_MAX_X_UNNAMED3;
106 
107     DW2.Value                                        = 0;
108     DW2.AoiMinY                                      = AOI_MIN_Y_UNNAMED0;
109     DW2.AoiMaxY                                      = AOI_MAX_Y_UNNAMED3;
110 
111 }
112 
VEBOX_CAPTURE_PIPE_STATE_CMD()113 mhw_vebox_g9_X::VEBOX_CAPTURE_PIPE_STATE_CMD::VEBOX_CAPTURE_PIPE_STATE_CMD()
114 {
115     DW0.Value                                        = 0;
116     DW0.GoodPixelNeighborThreshold                   = GOOD_PIXEL_NEIGHBOR_THRESHOLD_UNNAMED35;
117     DW0.AverageColorThreshold                        = AVERAGE_COLOR_THRESHOLD_UNNAMED255;
118     DW0.GreenImbalanceThreshold                      = GREEN_IMBALANCE_THRESHOLD_UNNAMED1;
119     DW0.ShiftMinCost                                 = SHIFT_MIN_COST_UNNAMED1;
120     DW0.GoodPixelThreshold                           = GOOD_PIXEL_THRESHOLD_UNNAMED5;
121 
122     DW1.Value                                        = 0;
123     DW1.BadColorThreshold3                           = BAD_COLOR_THRESHOLD_3_UNNAMED10;
124     DW1.NumberBigPixelThreshold                      = NUMBER_BIG_PIXEL_THRESHOLD_UNNAMED10;
125     DW1.BadColorThreshold2                           = BAD_COLOR_THRESHOLD_2_UNNAMED175;
126     DW1.BadColorThreshold1                           = BAD_COLOR_THRESHOLD_1_UNNAMED100;
127     DW1.GoodIntesityThreshold                        = GOOD_INTESITY_THRESHOLD_UNNAMED10;
128     DW1.ScaleForMinCost                              = SCALE_FOR_MIN_COST_UNNAMED10;
129 
130     DW2.Value                                        = 0;
131     DW2.VignetteCorrectionFormat                     = VIGNETTE_CORRECTION_FORMAT_U88;
132     DW2.UvThresholdValue                             = UV_THRESHOLD_VALUE_UNNAMED64;
133     DW2.YOutlierValue                                = Y_OUTLIER_VALUE_UNNAMED253;
134     DW2.YBrightValue                                 = Y_BRIGHT_VALUE_UNNAMED230;
135 
136     DW3.Value                                        = 0;
137     DW3.BlackPointOffsetGreenTop                     = BLACK_POINT_OFFSET_GREEN_TOP_UNNAMED0;
138     DW3.BlackPointOffsetRed                          = BLACK_POINT_OFFSET_RED_UNNAMED0;
139 
140     DW4.Value                                        = 0;
141     DW4.BlackPointOffsetGreenBottom                  = BLACK_POINT_OFFSET_GREEN_BOTTOM_UNNAMED0;
142     DW4.BlackPointOffsetBlue                         = BLACK_POINT_OFFSET_BLUE_UNNAMED0;
143 
144     DW5.Value                                        = 0;
145 
146     DW6.Value                                        = 0;
147 
148 }
149 
VEBOX_CCM_STATE_CMD()150 mhw_vebox_g9_X::VEBOX_CCM_STATE_CMD::VEBOX_CCM_STATE_CMD()
151 {
152     DW0.Value                                        = 0;
153     DW0.C1                                           = C1_11414096;
154 
155     DW1.Value                                        = 0;
156     DW1.C0                                           = C0_27924096;
157 
158     DW2.Value                                        = 0;
159     DW2.C3                                           = C3_714096;
160 
161     DW3.Value                                        = 0;
162     DW3.C2                                           = C2_344096;
163 
164     DW4.Value                                        = 0;
165     DW4.C5                                           = C5_524096;
166 
167     DW5.Value                                        = 0;
168     DW5.C4                                           = C4_33634096;
169 
170     DW6.Value                                        = 0;
171     DW6.C7                                           = C7_1684096;
172 
173     DW7.Value                                        = 0;
174     DW7.C6                                           = C6_124096;
175 
176     DW8.Value                                        = 0;
177     DW8.C8                                           = C8_34344096;
178 
179 }
180 
VEBOX_CSC_STATE_CMD()181 mhw_vebox_g9_X::VEBOX_CSC_STATE_CMD::VEBOX_CSC_STATE_CMD()
182 {
183     DW0.Value                                        = 0;
184     DW0.C0                                           = C0_OR10;
185     DW0.YuvChannelSwap                               = YUV_CHANNEL_SWAP_UNNAMED0;
186 
187     DW1.Value                                        = 0;
188     DW1.C1                                           = C1_UNNAMED0;
189 
190     DW2.Value                                        = 0;
191     DW2.C2                                           = C2_UNNAMED0;
192 
193     DW3.Value                                        = 0;
194     DW3.C3                                           = C3_UNNAMED0;
195 
196     DW4.Value                                        = 0;
197     DW4.C4                                           = C4_OR10;
198 
199     DW5.Value                                        = 0;
200     DW5.C5                                           = C5_UNNAMED0;
201 
202     DW6.Value                                        = 0;
203     DW6.C6                                           = C6_UNNAMED0;
204 
205     DW7.Value                                        = 0;
206     DW7.C7                                           = C7_UNNAMED0;
207 
208     DW8.Value                                        = 0;
209     DW8.C8                                           = C8_OR10;
210 
211     DW9.Value                                        = 0;
212     DW9.OffsetIn1                                    = OFFSET_IN_1_UNNAMED0;
213     DW9.OffsetOut1                                   = OFFSET_OUT_1_UNNAMED0;
214 
215     DW10.Value                                       = 0;
216     DW10.OffsetIn2                                   = OFFSET_IN_2_UNNAMED0;
217     DW10.OffsetOut2                                  = OFFSET_OUT_2_UNNAMED0;
218 
219     DW11.Value                                       = 0;
220     DW11.OffsetIn3                                   = OFFSET_IN_3_UNNAMED0;
221     DW11.OffsetOut3                                  = OFFSET_OUT_3_UNNAMED0;
222 
223 }
224 
VEBOX_DNDI_STATE_CMD()225 mhw_vebox_g9_X::VEBOX_DNDI_STATE_CMD::VEBOX_DNDI_STATE_CMD()
226 {
227     DW0.Value                                        = 0;
228     DW0.DenoiseHistoryIncrease                       = DENOISE_HISTORY_INCREASE_UNNAMED8;
229 
230     DW1.Value                                        = 0;
231 
232     DW2.Value                                        = 0;
233     DW2.InitialDenoiseHistory                        = INITIAL_DENOISE_HISTORY_UNNAMED32;
234     DW2.ProgressiveDn                                = PROGRESSIVE_DN_UNNAMED0;
235 
236     DW3.Value                                        = 0;
237     DW3.BlockNoiseEstimateEdgeThreshold              = BLOCK_NOISE_ESTIMATE_EDGE_THRESHOLD_UNNAMED16;
238 
239     DW4.Value                                        = 0;
240     DW4.ChromaDenoiseEnable                          = CHROMA_DENOISE_ENABLE_UNNAMED1;
241 
242     DW5.Value                                        = 0;
243 
244     DW6.Value                                        = 0;
245 
246     DW7.Value                                        = 0;
247 
248     DW8.Value                                        = 0;
249 
250     DW9.Value                                        = 0;
251 
252     DW10.Value                                       = 0;
253 
254     DW11.Value                                       = 0;
255 
256     DW12.Value                                       = 0;
257     DW12.SadTightThreshold                           = SAD_TIGHT_THRESHOLD_UNNAMED5;
258     DW12.ContentAdaptiveThresholdSlope               = CONTENT_ADAPTIVE_THRESHOLD_SLOPE_UNNAMED9;
259 
260     DW13.Value                                       = 0;
261     DW13.StmmBlendingConstantSelect                  = STMM_BLENDING_CONSTANT_SELECT_UNNAMED0;
262 
263     DW14.Value                                       = 0;
264     DW14.StmmShiftUp                                 = STMM_SHIFT_UP_SHIFTBY6;
265     DW14.StmmShiftDown                               = STMM_SHIFT_DOWN_SHIFTBY4;
266 
267     DW15.Value                                       = 0;
268 
269     DW16.Value                                       = 0;
270     DW16.DnDiTopFirst                                = DNDI_TOP_FIRST_UNNAMED0;
271     DW16.CatThreshold                                = CAT_THRESHOLD_UNNAMED0;
272 
273     DW17.Value                                       = 0;
274     DW17.SadTha                                      = SAD_THA_UNNAMED5;
275     DW17.SadThb                                      = SAD_THB_UNNAMED10;
276     DW17.ProgressiveCadenceReconstructionFor1StFieldOfCurrentFrame = PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_1ST_FIELD_OF_CURRENT_FRAME_DEINTERLACE;
277     DW17.McPixelConsistencyThreshold                 = MC_PIXEL_CONSISTENCY_THRESHOLD_UNNAMED25;
278     DW17.ProgressiveCadenceReconstructionFor2NdFieldOfPreviousFrame = PROGRESSIVE_CADENCE_RECONSTRUCTION_FOR_2ND_FIELD_OF_PREVIOUS_FRAME_DEINTERLACE;
279     DW17.NeighborPixelThreshold                      = NEIGHBOR_PIXEL_THRESHOLD_UNNAMED10;
280 
281 }
282 
VEBOX_FRONT_END_CSC_STATE_CMD()283 mhw_vebox_g9_X::VEBOX_FRONT_END_CSC_STATE_CMD::VEBOX_FRONT_END_CSC_STATE_CMD()
284 {
285     DW0.Value                                        = 0;
286     DW0.FecscC0TransformCoefficient                  = FECSC_C0_TRANSFORM_COEFFICIENT_OR10;
287 
288     DW1.Value                                        = 0;
289     DW1.FecscC1TransformCoefficient                  = FECSC_C1_TRANSFORM_COEFFICIENT_OR00;
290 
291     DW2.Value                                        = 0;
292     DW2.FecscC2TransformCoefficient                  = FECSC_C2_TRANSFORM_COEFFICIENT_OR00;
293 
294     DW3.Value                                        = 0;
295     DW3.FecscC3TransformCoefficient                  = FECSC_C3_TRANSFORM_COEFFICIENT_OR00;
296 
297     DW4.Value                                        = 0;
298     DW4.FecscC4TransformCoefficient                  = FECSC_C4_TRANSFORM_COEFFICIENT_OR10;
299 
300     DW5.Value                                        = 0;
301     DW5.FecscC5TransformCoefficient                  = FECSC_C5_TRANSFORM_COEFFICIENT_OR00;
302 
303     DW6.Value                                        = 0;
304     DW6.FecscC6TransformCoefficient                  = FECSC_C6_TRANSFORM_COEFFICIENT_OR00;
305 
306     DW7.Value                                        = 0;
307     DW7.FecscC7TransformCoefficient                  = FECSC_C7_TRANSFORM_COEFFICIENT_OR00;
308 
309     DW8.Value                                        = 0;
310     DW8.FecscC8TransformCoefficient                  = FECSC_C8_TRANSFORM_COEFFICIENT_OR10;
311 
312     DW9.Value                                        = 0;
313     DW9.FecScOffsetIn1OffsetInForYR                  = FEC_SC_OFFSET_IN_1_OFFSET_IN_FOR_YR_UNNAMED0;
314     DW9.FecScOffsetOut1OffsetOutForYR                = FEC_SC_OFFSET_OUT_1_OFFSET_OUT_FOR_YR_UNNAMED0;
315 
316     DW10.Value                                       = 0;
317     DW10.FecScOffsetIn2OffsetOutForUG                = FEC_SC_OFFSET_IN_2_OFFSET_OUT_FOR_UG_UNNAMED0;
318     DW10.FecScOffsetOut2OffsetOutForUG               = FEC_SC_OFFSET_OUT_2_OFFSET_OUT_FOR_UG_UNNAMED0;
319 
320     DW11.Value                                       = 0;
321     DW11.FecScOffsetIn3OffsetOutForVB                = FEC_SC_OFFSET_IN_3_OFFSET_OUT_FOR_VB_UNNAMED0;
322     DW11.FecScOffsetOut3OffsetOutForVB               = FEC_SC_OFFSET_OUT_3_OFFSET_OUT_FOR_VB_UNNAMED0;
323 
324 }
325 
VEBOX_GAMUT_STATE_CMD()326 mhw_vebox_g9_X::VEBOX_GAMUT_STATE_CMD::VEBOX_GAMUT_STATE_CMD()
327 {
328     DW0.Value                                        = 0;
329     DW0.GlobalModeEnable                             = GLOBAL_MODE_ENABLE_ADVANCEMODE;
330     DW0.AR                                           = AR_UNNAMED436;
331 
332     DW1.Value                                        = 0;
333 
334     DW2.Value                                        = 0;
335 
336     DW3.Value                                        = 0;
337 
338     DW4.Value                                        = 0;
339 
340     DW5.Value                                        = 0;
341 
342     DW6.Value                                        = 0;
343 
344     DW7.Value                                        = 0;
345 
346     DW8.Value                                        = 0;
347     DW8.PwlGammaPoint1                               = PWL_GAMMA_POINT_1_UNNAMED1;
348     DW8.PwlGammaPoint2                               = PWL_GAMMA_POINT_2_UNNAMED2;
349     DW8.PwlGammaPoint3                               = PWL_GAMMA_POINT_3_UNNAMED5;
350     DW8.PwlGammaPoint4                               = PWL_GAMMA_POINT_4_UNNAMED9;
351 
352     DW9.Value                                        = 0;
353     DW9.PwlGammaPoint5                               = PWL_GAMMA_POINT_5_UNNAMED16;
354     DW9.PwlGammaPoint6                               = PWL_GAMMA_POINT_6_UNNAMED26;
355     DW9.PwlGammaPoint7                               = PWL_GAMMA_POINT_7_UNNAMED42;
356     DW9.PwlGammaPoint8                               = PWL_GAMMA_POINT_8_UNNAMED65;
357 
358     DW10.Value                                       = 0;
359     DW10.PwlGammaPoint9                              = PWL_GAMMA_POINT_9_UNNAMED96;
360     DW10.PwlGammaPoint10                             = PWL_GAMMA_POINT_10_UNNAMED136;
361     DW10.PwlGammaPoint11                             = PWL_GAMMA_POINT_11_UNNAMED187;
362 
363     DW11.Value                                       = 0;
364     DW11.PwlGammaBias1                               = PWL_GAMMA_BIAS_1_UNNAMED13;
365     DW11.PwlGammaBias2                               = PWL_GAMMA_BIAS_2_UNNAMED23;
366     DW11.PwlGammaBias3                               = PWL_GAMMA_BIAS_3_UNNAMED38;
367     DW11.PwlGammaBias4                               = PWL_GAMMA_BIAS_4_UNNAMED53;
368 
369     DW12.Value                                       = 0;
370     DW12.PwlGammaBias5                               = PWL_GAMMA_BIAS_5_UNNAMED71;
371     DW12.PwlGammaBias6                               = PWL_GAMMA_BIAS_6_UNNAMED91;
372     DW12.PwlGammaBias7                               = PWL_GAMMA_BIAS_7_UNNAMED114;
373     DW12.PwlGammaBias8                               = PWL_GAMMA_BIAS_8_UNNAMED139;
374 
375     DW13.Value                                       = 0;
376     DW13.PwlGammaBias9                               = PWL_GAMMA_BIAS_9_UNNAMED165;
377     DW13.PwlGammaBias10                              = PWL_GAMMA_BIAS_10_UNNAMED193;
378     DW13.PwlGammaBias11                              = PWL_GAMMA_BIAS_11_UNNAMED223;
379 
380     DW14.Value                                       = 0;
381 
382     DW15.Value                                       = 0;
383 
384     DW16.Value                                       = 0;
385 
386     DW17.Value                                       = 0;
387 
388     DW18.Value                                       = 0;
389 
390     DW19.Value                                       = 0;
391 
392     DW20.Value                                       = 0;
393     DW20.PwlInvGammaPoint1                           = PWL_INV_GAMMA_POINT_1_UNNAMED30;
394     DW20.PwlInvGammaPoint2                           = PWL_INV_GAMMA_POINT_2_UNNAMED55;
395     DW20.PwlInvGammaPoint3                           = PWL_INV_GAMMA_POINT_3_UNNAMED79;
396     DW20.PwlInvGammaPoint4                           = PWL_INV_GAMMA_POINT_4_UNNAMED101;
397 
398     DW21.Value                                       = 0;
399     DW21.PwlInvGammaPoint5                           = PWL_INV_GAMMA_POINT_5_UNNAMED122;
400     DW21.PwlInvGammaPoint6                           = PWL_INV_GAMMA_POINT_6_UNNAMED141;
401     DW21.PwlInvGammaPoint7                           = PWL_INV_GAMMA_POINT_7_UNNAMED162;
402     DW21.PwlInvGammaPoint8                           = PWL_INV_GAMMA_POINT_8_UNNAMED181;
403 
404     DW22.Value                                       = 0;
405     DW22.PwlInvGammaPoint9                           = PWL_INV_GAMMA_POINT_9_UNNAMED200;
406     DW22.PwlInvGammaPoint10                          = PWL_INV_GAMMA_POINT_10_UNNAMED219;
407     DW22.PwlInvGammaPoint11                          = PWL_INV_GAMMA_POINT_11_UNNAMED237;
408 
409     DW23.Value                                       = 0;
410     DW23.PwlInvGammaBias1                            = PWL_INV_GAMMA_BIAS_1_UNNAMED3;
411     DW23.PwlInvGammaBias2                            = PWL_INV_GAMMA_BIAS_2_UNNAMED10;
412     DW23.PwlInvGammaBias3                            = PWL_INV_GAMMA_BIAS_3_UNNAMED20;
413     DW23.PwlInvGammaBias4                            = PWL_INV_GAMMA_BIAS_4_UNNAMED33;
414 
415     DW24.Value                                       = 0;
416     DW24.PwlInvGammaBias5                            = PWL_INV_GAMMA_BIAS_5_UNNAMED49;
417     DW24.PwlInvGammaBias6                            = PWL_INV_GAMMA_BIAS_6_UNNAMED67;
418     DW24.PwlInvGammaBias7                            = PWL_INV_GAMMA_BIAS_7_UNNAMED92;
419     DW24.PwlInvGammaBias8                            = PWL_INV_GAMMA_BIAS_8_UNNAMED117;
420 
421     DW25.Value                                       = 0;
422     DW25.PwlInvGammaBias9                            = PWL_INV_GAMMA_BIAS_9_UNNAMED147;
423     DW25.PwlInvGammaBias10                           = PWL_INV_GAMMA_BIAS_10_UNNAMED180;
424     DW25.PwlInvGammaBias11                           = PWL_INV_GAMMA_BIAS_11_UNNAMED215;
425 
426     DW26.Value                                       = 0;
427 
428     DW27.Value                                       = 0;
429 
430     DW28.Value                                       = 0;
431 
432     DW29.Value                                       = 0;
433 
434     DW30.Value                                       = 0;
435 
436     DW31.Value                                       = 0;
437 
438     DW32.Value                                       = 0;
439     DW32.OffsetInR                                   = OFFSET_IN_R_UNNAMED0;
440     DW32.OffsetInG                                   = OFFSET_IN_G_UNNAMED0;
441 
442     DW33.Value                                       = 0;
443     DW33.OffsetInB                                   = OFFSET_IN_B_UNNAMED0;
444 
445     DW34.Value                                       = 0;
446 
447     DW35.Value                                       = 0;
448     DW35.D1Out                                       = D1OUT_UNNAMED287;
449     DW35.DOutDefault                                 = DOUT_DEFAULT_UNNAMED164;
450     DW35.DInDefault                                  = DINDEFAULT_UNNAMED205;
451     DW35.Fullrangemappingenable                      = FULLRANGEMAPPINGENABLE_BASICMODE;
452 
453     DW36.Value                                       = 0;
454     DW36.D1In                                        = D1IN_UNNAMED820;
455     DW36.Compressionlineshift                        = COMPRESSIONLINESHIFT_UNNAMED3;
456     DW36.Xvyccdecencenable                           = XVYCCDECENCENABLE_BOTHXVYCCDECODEANDXVYCCENCODEAREENABLED;
457 
458     DW37.Value                                       = 0;
459     DW37.CpiOverride                                 = CPI_OVERRIDE_UNNAMED0;
460     DW37.Lumachormaonlycorrection                    = LUMACHORMAONLYCORRECTION_LUMAONLYCORRECTION;
461     DW37.GccBasicmodeselection                       = GCC_BASICMODESELECTION_DEFAULT;
462 
463 }
464 
VEBOX_STD_STE_STATE_CMD()465 mhw_vebox_g9_X::VEBOX_STD_STE_STATE_CMD::VEBOX_STD_STE_STATE_CMD()
466 {
467     DW0.Value                                        = 0;
468     DW0.OutputControl                                = OUTPUT_CONTROL_OUTPUTPIXELS;
469     DW0.SatMax                                       = SAT_MAX_UNNAMED31;
470     DW0.HueMax                                       = HUE_MAX_UNNAMED14;
471     DW0.UMid                                         = U_MID_UNNAMED110;
472     DW0.VMid                                         = V_MID_UNNAMED154;
473 
474     DW1.Value                                        = 0;
475     DW1.Sin                                          = SIN_UNNAMED101;
476     DW1.Cos                                          = COS_UNNAMED79;
477     DW1.HsMargin                                     = HS_MARGIN_UNNAMED3;
478     DW1.DiamondDu                                    = DIAMOND_DU_UNNAMED0;
479     DW1.DiamondMargin                                = DIAMOND_MARGIN_UNNAMED4;
480 
481     DW2.Value                                        = 0;
482     DW2.DiamondDv                                    = DIAMOND_DV_UNNAMED0;
483     DW2.DiamondTh                                    = DIAMOND_TH_UNNAMED35;
484     DW2.DiamondAlpha                                 = DIAMOND_ALPHA_UNNAMED100;
485 
486     DW3.Value                                        = 0;
487     DW3.YPoint1                                      = Y_POINT_1_UNNAMED46;
488     DW3.YPoint2                                      = Y_POINT_2_UNNAMED47;
489     DW3.YPoint3                                      = Y_POINT_3_UNNAMED254;
490 
491     DW4.Value                                        = 0;
492     DW4.YPoint4                                      = Y_POINT_4_UNNAMED255;
493     DW4.YSlope1                                      = Y_SLOPE_1_UNNAMED31;
494     DW4.YSlope2                                      = Y_SLOPE_2_UNNAMED31;
495 
496     DW5.Value                                        = 0;
497     DW5.InvSkinTypesMargin                           = INV_SKIN_TYPES_MARGIN_SKINTYPEMARGIN;
498 
499     DW6.Value                                        = 0;
500     DW6.InvMarginVyu                                 = INV_MARGIN_VYU_UNNAMED1600;
501     DW6.P0L                                          = P0L_UNNAMED46;
502     DW6.P1L                                          = P1L_UNNAMED216;
503 
504     DW7.Value                                        = 0;
505     DW7.P2L                                          = P2L_UNNAMED236;
506     DW7.P3L                                          = P3L_UNNAMED236;
507     DW7.B0L                                          = B0L_UNNAMED133;
508     DW7.B1L                                          = B1L_UNNAMED130;
509 
510     DW8.Value                                        = 0;
511     DW8.B2L                                          = B2L_UNNAMED130;
512     DW8.B3L                                          = B3L_UNNAMED130;
513     DW8.S0L                                          = S0L_UNNAMED2043;
514 
515     DW9.Value                                        = 0;
516     DW9.S1L                                          = S1L_UNNAMED0;
517     DW9.S2L                                          = S2L_UNNAMED0;
518 
519     DW10.Value                                       = 0;
520     DW10.S3L                                         = S3L_UNNAMED0;
521     DW10.P0U                                         = P0U_UNNAMED46;
522     DW10.P1U                                         = P1U_UNNAMED66;
523 
524     DW11.Value                                       = 0;
525     DW11.P2U                                         = P2U_UNNAMED150;
526     DW11.P3U                                         = P3U_UNNAMED236;
527     DW11.B0U                                         = B0U_UNNAMED143;
528     DW11.B1U                                         = B1U_UNNAMED163;
529 
530     DW12.Value                                       = 0;
531     DW12.B2U                                         = B2U_UNNAMED200;
532     DW12.B3U                                         = B3U_UNNAMED200;
533     DW12.S0U                                         = S0U_UNNAMED256;
534 
535     DW13.Value                                       = 0;
536     DW13.S1U                                         = S1U_UNNAMED113;
537     DW13.S2U                                         = S2U_UNNAMED1869;
538 
539     DW14.Value                                       = 0;
540     DW14.S3U                                         = S3U_UNNAMED0;
541     DW14.SkinTypesEnable                             = SKIN_TYPES_ENABLE_DISABLE;
542     DW14.SkinTypesThresh                             = SKIN_TYPES_THRESH_UNNAMED120;
543     DW14.SkinTypesMargin                             = SKIN_TYPES_MARGIN_UNNAMED20;
544 
545     DW15.Value                                       = 0;
546     DW15.Satp1                                       = SATP1_UNNAMED122;
547     DW15.Satp2                                       = SATP2_UNNAMED6;
548     DW15.Satp3                                       = SATP3_UNNAMED31;
549     DW15.Satb1                                       = SATB1_UNNAMED1016;
550 
551     DW16.Value                                       = 0;
552     DW16.Satb2                                       = SATB2_UNNAMED8;
553     DW16.Satb3                                       = SATB3_UNNAMED124;
554     DW16.Sats0                                       = SATS0_UNNAMED297;
555 
556     DW17.Value                                       = 0;
557     DW17.Sats1                                       = SATS1_UNNAMED85;
558     DW17.Sats2                                       = SATS2_UNNAMED297;
559 
560     DW18.Value                                       = 0;
561     DW18.Sats3                                       = SATS3_UNNAMED256;
562     DW18.Huep1                                       = HUEP1_6;
563     DW18.Huep2                                       = HUEP2_UNNAMED6;
564     DW18.Huep3                                       = HUEP3_UNNAMED14;
565 
566     DW19.Value                                       = 0;
567     DW19.Hueb1                                       = HUEB1_UNNAMED8;
568     DW19.Hueb2                                       = HUEB2_UNNAMED8;
569     DW19.Hueb3                                       = HUEB3_UNNAMED56;
570 
571     DW20.Value                                       = 0;
572     DW20.Hues0                                       = HUES0_UNNAMED384;
573     DW20.Hues1                                       = HUES1_UNNAMED85;
574 
575     DW21.Value                                       = 0;
576     DW21.Hues2                                       = HUES2_UNNAMED384;
577     DW21.Hues3                                       = HUES3_UNNAMED256;
578 
579     DW22.Value                                       = 0;
580     DW22.Satp1Dark                                   = SATP1_DARK_UNNAMED123;
581     DW22.Satp2Dark                                   = SATP2_DARK_UNNAMED31;
582     DW22.Satp3Dark                                   = SATP3_DARK_UNNAMED31;
583     DW22.Satb1Dark                                   = SATB1_DARK_UNNAMED0;
584 
585     DW23.Value                                       = 0;
586     DW23.Satb2Dark                                   = SATB2_DARK_UNNAMED124;
587     DW23.Satb3Dark                                   = SATB3_DARK_UNNAMED124;
588     DW23.Sats0Dark                                   = SATS0_DARK_UNNAMED397;
589 
590     DW24.Value                                       = 0;
591     DW24.Sats1Dark                                   = SATS1_DARK_UNNAMED189;
592     DW24.Sats2Dark                                   = SATS2_DARK_UNNAMED256;
593 
594     DW25.Value                                       = 0;
595     DW25.Sats3Dark                                   = SATS3_DARK_UNNAMED256;
596     DW25.Huep1Dark                                   = HUEP1_DARK_UNNAMED0;
597     DW25.Huep2Dark                                   = HUEP2_DARK_UNNAMED2;
598     DW25.Huep3Dark                                   = HUEP3_DARK_UNNAMED14;
599 
600     DW26.Value                                       = 0;
601     DW26.Hueb1Dark                                   = HUEB1_DARK_UNNAMED0;
602     DW26.Hueb2Dark                                   = HUEB2_DARK_UNNAMED0;
603     DW26.Hueb3Dark                                   = HUEB3_DARK_UNNAMED56;
604 
605     DW27.Value                                       = 0;
606     DW27.Hues0Dark                                   = HUES0_DARK_UNNAMED299;
607     DW27.Hues1Dark                                   = HUES1_DARK_UNNAMED256;
608 
609     DW28.Value                                       = 0;
610     DW28.Hues2Dark                                   = HUES2_DARK_UNNAMED299;
611     DW28.Hues3Dark                                   = HUES3_DARK_UNNAMED256;
612 
613 }
614 
VEBOX_TCC_STATE_CMD()615 mhw_vebox_g9_X::VEBOX_TCC_STATE_CMD::VEBOX_TCC_STATE_CMD()
616 {
617     DW0.Value                                        = 0;
618     DW0.Satfactor1                                   = SATFACTOR1_UNNAMED220;
619     DW0.Satfactor2                                   = SATFACTOR2_UNNAMED220;
620     DW0.Satfactor3                                   = SATFACTOR3_UNNAMED220;
621 
622     DW1.Value                                        = 0;
623     DW1.Satfactor4                                   = SATFACTOR4_UNNAMED220;
624     DW1.Satfactor5                                   = SATFACTOR5_UNNAMED220;
625     DW1.Satfactor6                                   = SATFACTOR6_UNNAMED220;
626 
627     DW2.Value                                        = 0;
628     DW2.Basecolor1                                   = BASECOLOR1_UNNAMED145;
629     DW2.Basecolor2                                   = BASECOLOR2_UNNAMED307;
630     DW2.Basecolor3                                   = BASECOLOR3_UNNAMED483;
631 
632     DW3.Value                                        = 0;
633     DW3.Basecolo4                                    = BASECOLO4_UNNAMED657;
634     DW3.Basecolor5                                   = BASECOLOR5_UNNAMED819;
635     DW3.Basecolor6                                   = BASECOLOR6_UNNAMED995;
636 
637     DW4.Value                                        = 0;
638     DW4.Colortransitslope2                           = COLORTRANSITSLOPE2_UNNAMED405;
639     DW4.Colortransitslope23                          = COLORTRANSITSLOPE23_UNNAMED744;
640 
641     DW5.Value                                        = 0;
642     DW5.Colortransitslope34                          = COLORTRANSITSLOPE34_UNNAMED1131;
643     DW5.Colortransitslope45                          = COLORTRANSITSLOPE45_UNNAMED407;
644 
645     DW6.Value                                        = 0;
646     DW6.Colortransitslope56                          = COLORTRANSITSLOPE56_UNNAMED372;
647     DW6.Colortransitslope61                          = COLORTRANSITSLOPE61_UNNAMED377;
648 
649     DW7.Value                                        = 0;
650     DW7.Colorbias1                                   = COLORBIAS1_UNNAMED0;
651     DW7.Colorbias2                                   = COLORBIAS2_UNNAMED150;
652     DW7.Colorbias3                                   = COLORBIAS3_UNNAMED0;
653 
654     DW8.Value                                        = 0;
655     DW8.Colorbias4                                   = COLORBIAS4_UNNAMED0;
656     DW8.Colorbias5                                   = COLORBIAS5_UNNAMED0;
657     DW8.Colorbias6                                   = COLORBIAS6_UNNAMED0;
658 
659     DW9.Value                                        = 0;
660     DW9.SteSlopeBits                                 = STE_SLOPE_BITS_UNNAMED0;
661     DW9.SteThreshold                                 = STE_THRESHOLD_UNNAMED0;
662     DW9.UvThresholdBits                              = UV_THRESHOLD_BITS_UNNAMED3;
663     DW9.UvThreshold                                  = UV_THRESHOLD_UNNAMED3;
664 
665     DW10.Value                                       = 0;
666     DW10.Uvmaxcolor                                  = UVMAXCOLOR_UNNAMED448;
667     DW10.InvUvmaxcolor                               = INV_UVMAXCOLOR_UNNAMED146;
668 
669 }
670 
VEBOX_PROCAMP_STATE_CMD()671 mhw_vebox_g9_X::VEBOX_PROCAMP_STATE_CMD::VEBOX_PROCAMP_STATE_CMD()
672 {
673     DW0.Value                                        = 0;
674     DW0.Brightness                                   = BRIGHTNESS_OR00;
675     DW0.Contrast                                     = CONTRAST_10INFIXEDPOINTU47;
676 
677     DW1.Value                                        = 0;
678     DW1.SinCS                                        = SIN_C_S_UNNAMED0;
679     DW1.CosCS                                        = COS_C_S_UNNAMED256;
680 
681 }
682 
VEBOX_IECP_STATE_CMD()683 mhw_vebox_g9_X::VEBOX_IECP_STATE_CMD::VEBOX_IECP_STATE_CMD()
684 {
685 }
686 
VEBOX_STATE_CMD()687 mhw_vebox_g9_X::VEBOX_STATE_CMD::VEBOX_STATE_CMD()
688 {
689     DW0.Value                                        = 0;
690     DW0.DwordLength                                  = GetOpLength(dwSize);
691     DW0.SubopcodeB                                   = SUBOPCODE_B_UNNAMED2;
692     DW0.SubopcodeA                                   = SUBOPCODE_A_UNNAMED0;
693     DW0.CommandOpcode                                = COMMAND_OPCODE_VEBOX;
694     DW0.Pipeline                                     = PIPELINE_MEDIA;
695     DW0.CommandType                                  = COMMAND_TYPE_PARALLELVIDEOPIPE;
696 
697     DW1.Value                                        = 0;
698     DW1.DnEnable                                     = DN_ENABLE_DONOTDENOISEFRAME;
699     DW1.DiEnable                                     = DI_ENABLE_DONOTCALCULATEDI;
700     DW1.DnDiFirstFrame                               = DNDI_FIRST_FRAME_NOTFIRSTFIELD_PREVIOUSCLEANSURFACESTATEISVALID;
701     DW1.DownsampleMethod422to420                     = _422_420_DOWNSAMPLE_METHOD_DROPLOWERCHROMAOFTHEPAIR;
702     DW1.DownsampleMethod444to422                     = _444_422_DOWNSAMPLE_METHOD_DROPRIGHTCHROMAOFTHEPAIR;
703     DW1.DiOutputFrames                               = DI_OUTPUT_FRAMES_OUTPUTBOTHFRAMES;
704     DW1.SingleSliceVeboxEnable                       = SINGLE_SLICE_VEBOX_ENABLE_BOTHSLICESENABLED;
705     DW1.SinglePipeEnable                             = SINGLE_PIPE_ENABLE_DEFAULT;
706 
707     DW2.Value                                        = 0;
708 
709     DW3.Value                                        = 0;
710 
711     DW4.Value                                        = 0;
712 
713     DW5.Value                                        = 0;
714 
715     DW6.Value                                        = 0;
716 
717     DW7.Value                                        = 0;
718 
719     DW8.Value                                        = 0;
720 
721     DW9.Value                                        = 0;
722 
723     DW10.Value                                       = 0;
724 
725     DW11.Value                                       = 0;
726 
727     DW12.Value                                       = 0;
728 
729     DW13.Value                                       = 0;
730     DW13.ArbitrationPriorityControlForLaceLut        = ARBITRATION_PRIORITY_CONTROL_FOR_LACE_LUT_HIGHESTPRIORITY;
731 
732     DW14_15.Value[0] = DW14_15.Value[1]              = 0;
733 
734 }
735 
VEBOX_SURFACE_STATE_CMD()736 mhw_vebox_g9_X::VEBOX_SURFACE_STATE_CMD::VEBOX_SURFACE_STATE_CMD()
737 {
738     DW0.Value                                        = 0;
739     DW0.DwordLength                                  = GetOpLength(dwSize);
740     DW0.SubopcodeB                                   = SUBOPCODE_B_VEBOX;
741     DW0.SubopcodeA                                   = SUBOPCODE_A_VEBOX;
742     DW0.MediaCommandOpcode                           = MEDIA_COMMAND_OPCODE_VEBOX;
743     DW0.MediaCommandPipeline                         = MEDIA_COMMAND_PIPELINE_MEDIA;
744     DW0.CommandType                                  = COMMAND_TYPE_PARALLELVIDEOPIPE;
745 
746     DW1.Value                                        = 0;
747     DW1.SurfaceIdentification                        = SURFACE_IDENTIFICATION_INPUTSURFACEANDDENOISEDCURRENTOUTPUTSURFACE;
748 
749     DW2.Value                                        = 0;
750 
751     DW3.Value                                        = 0;
752     DW3.TileWalk                                     = TILE_WALK_TILEWALKXMAJOR;
753     DW3.TiledSurface                                 = TILED_SURFACE_FALSE;
754     DW3.BayerPatternFormat                           = BAYER_PATTERN_FORMAT_8_BITINPUTATA8_BITSTRIDE;
755     DW3.BayerPatternOffset                           = BAYER_PATTERN_OFFSET_PIXELATX0_Y0ISBLUE;
756     DW3.SurfaceFormat                                = SURFACE_FORMAT_YCRCBNORMAL;
757 
758     DW4.Value                                        = 0;
759 
760     DW5.Value                                        = 0;
761 
762     DW6.Value                                        = 0;
763 
764     DW7.Value                                        = 0;
765 
766     DW8.Value                                        = 0;
767 
768 }
769 
VEBOX_TILING_CONVERT_CMD()770 mhw_vebox_g9_X::VEBOX_TILING_CONVERT_CMD::VEBOX_TILING_CONVERT_CMD()
771 {
772     DW0.Value                                        = 0;
773     DW0.DwordLength                                  = GetOpLength(dwSize);
774     DW0.SubopcodeB                                   = SUBOPCODE_B_UNNAMED1;
775     DW0.SubopcodeA                                   = SUBOPCODE_A_UNNAMED0;
776     DW0.CommandOpcode                                = COMMAND_OPCODE_VEBOX;
777     DW0.Pipeline                                     = PIPELINE_MEDIA;
778     DW0.CommandType                                  = COMMAND_TYPE_PARALLELVIDEOPIPE;
779 
780     DW1_2.Value[0] = DW1_2.Value[1]                  = 0;
781 
782     DW3_4.Value[0] = DW3_4.Value[1]                  = 0;
783 
784 }
785 
VEB_DI_IECP_CMD()786 mhw_vebox_g9_X::VEB_DI_IECP_CMD::VEB_DI_IECP_CMD()
787 {
788     DW0.Value                                        = 0;
789     DW0.DwordLength                                  = GetOpLength(dwSize);
790     DW0.Subopb                                       = SUBOPB_VEBDIIECP;
791     DW0.Subopa                                       = SUBOPA_VEBDIIECP;
792     DW0.Opcode                                       = OPCODE_VEBOX;
793     DW0.Pipeline                                     = PIPELINE_MEDIA;
794     DW0.CommandType                                  = COMMAND_TYPE_PARALLELVIDEOPIPE;
795 
796     DW1.Value                                        = 0;
797 
798     DW2.Value                                        = 0;
799 
800     DW3.Value                                        = 0;
801     DW3.CurrentFrameInputSurfaceArbitrationPriorityControl = CURRENT_FRAME_INPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
802 
803     DW4.Value                                        = 0;
804 
805     DW5.Value                                        = 0;
806     DW5.PreviousFrameInputSurfaceArbitrationPriorityControl = PREVIOUS_FRAME_INPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
807 
808     DW6.Value                                        = 0;
809 
810     DW7.Value                                        = 0;
811     DW7.StmmInputSurfaceArbitrationPriorityControl   = STMM_INPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
812 
813     DW8.Value                                        = 0;
814 
815     DW9.Value                                        = 0;
816     DW9.StmmOutputSurfaceArbitrationPriorityControl  = STMM_OUTPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
817 
818     DW10.Value                                       = 0;
819 
820     DW11.Value                                       = 0;
821     DW11.DenoisedCurrentOutputSurfaceArbitrationPriorityControl = DENOISED_CURRENT_OUTPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
822 
823     DW12.Value                                       = 0;
824 
825     DW13.Value                                       = 0;
826     DW13.CurrentFrameOutputSurfaceArbitrationPriorityControl = CURRENT_FRAME_OUTPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
827 
828     DW14.Value                                       = 0;
829 
830     DW15.Value                                       = 0;
831     DW15.PreviousFrameOutputSurfaceArbitrationPriorityControl = PREVIOUS_FRAME_OUTPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
832 
833     DW16.Value                                       = 0;
834 
835     DW17.Value                                       = 0;
836     DW17.StatisticsOutputSurfaceArbitrationPriorityControl = STATISTICS_OUTPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
837 
838     DW18.Value                                       = 0;
839 
840     DW19.Value                                       = 0;
841     DW19.AlphaVignetteCorrectionSurfaceArbitrationPriorityControl = ALPHAVIGNETTE_CORRECTION_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
842 
843     DW20.Value                                       = 0;
844 
845     DW21.Value                                       = 0;
846     DW21.LaceAceRgbHistogramSurfaceArbitrationPriorityControl = LACEACERGB_HISTOGRAM_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
847 
848     DW22.Value                                       = 0;
849 
850     DW23.Value                                       = 0;
851     DW23.SkinScoreOutputSurfaceArbitrationPriorityControl = SKIN_SCORE_OUTPUT_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY;
852 
853 }
854 
VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_CMD()855 mhw_vebox_g9_X::VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_CMD::VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_CMD()
856 {
857     DW0.Value                                        = 0;
858     DW0.MemoryCompressionMode                        = MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE;
859     DW0.TiledResourceModeForOutputFrameSurfaceBaseAddress = TILED_RESOURCE_MODE_FOR_OUTPUT_FRAME_SURFACE_BASE_ADDRESS_TRMODENONE;
860 
861 }