Debian Codegraph @

media_driver/agnostic/gen11/hw/vdbox/mhw_vdbox_mfx_hwcmd_g11_X.h

raw
1 /*
2 * Copyright (c) 2017, Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22 //!
23 //! \file mhw_vdbox_mfx_hwcmd_g11_X.h
24 //! \brief Auto-generated constructors for MHW and states.
25 //! \details This file may not be included outside of g11_X as other components
26 //! should use MHW interface to interact with MHW commands and states.
27 //!
28 #ifndef __MHW_VDBOX_MFX_HWCMD_G11_X_H__
29 #define __MHW_VDBOX_MFX_HWCMD_G11_X_H__
30
31 #pragma once
32 #include <cstdint>
33 #include <cstddef>
34
35
36 #pragma pack(1)
37
38 class mhw_vdbox_mfx_g11_X
39 {
40 public:
41 // Internal Macros
42 #define __CODEGEN_MAX(_a, _b) (((_a) > (_b)) ? (_a) : (_b))
43 #define __CODEGEN_BITFIELD(l, h) (h) - (l) + 1
44 #define __CODEGEN_OP_LENGTH_BIAS 2
45 #define __CODEGEN_OP_LENGTH( x ) (uint32_t)((__CODEGEN_MAX(x, __CODEGEN_OP_LENGTH_BIAS)) - __CODEGEN_OP_LENGTH_BIAS)
46
47 static uint32_t GetOpLength(uint32_t uiLength) { return __CODEGEN_OP_LENGTH(uiLength); }
48
49 //!
50 //! \brief MFX_QM_STATE
51 //! \details
52 //! This is a common state command for AVC encoder modes. For encoder, it
53 //! represents both the forward QM matrices as well as the decoding QM
54 //! matrices.This is a Frame-level state. Only Scaling Lists specified by an
55 //! application are being sent to the hardware. The driver is responsible
56 //! for determining the final set of scaling lists to be used for decoding
57 //! the current slice, based on the AVC Spec Table 7-2 (Fall-Back Rules A
58 //! and B).In MFX AVC PAK mode, PAK needs both forward Q scaling lists and
59 //! IQ scaling lists. The IQ scaling lists are sent as in MFD in raster scan
60 //! order. But the Forward Q scaling lists are sent in column-wise raster
61 //! order (column-by-column) to simplify the H/W. Driver will perform all
62 //! the scan order conversion for both ForwardQ and IQ.
63 //!
64 struct MFX_QM_STATE_CMD
65 {
66 union
67 {
68 //!< DWORD 0
69 struct
70 {
71 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
72 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
73 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
74 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
75 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
76 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
77 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
78 };
79 uint32_t Value;
80 } DW0;
81 union
82 {
83 //!< DWORD 1
84 struct
85 {
86 uint32_t Avc : __CODEGEN_BITFIELD( 0, 1) ; //!< AVC, AVC- Decoder Only
87 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved, AVC- Decoder Only
88 } Obj0;
89 struct
90 {
91 uint32_t Mpeg2 : __CODEGEN_BITFIELD( 0, 1) ; //!< MPEG2, MPEG2- Decoder Only
92 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved, MPEG2- Decoder Only
93 } Obj1;
94 struct
95 {
96 uint32_t Jpeg : __CODEGEN_BITFIELD( 0, 1) ; //!< JPEG, JPEG- Encoder Only
97 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved
98 }Obj2;
99 uint32_t Value;
100 } DW1;
101
102 uint32_t ForwardQuantizerMatrix[16]; //!< Forward Quantizer Matrix
103
104
105 //! \name Local enumerations
106
107 enum SUBOPCODE_B
108 {
109 SUBOPCODE_B_UNNAMED7 = 7, //!< No additional details
110 };
111
112 enum SUBOPCODE_A
113 {
114 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
115 };
116
117 enum MEDIA_COMMAND_OPCODE
118 {
119 MEDIA_COMMAND_OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
120 };
121
122 enum PIPELINE
123 {
124 PIPELINE_MFXMULTIDW = 2, //!< No additional details
125 };
126
127 enum COMMAND_TYPE
128 {
129 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
130 };
131
132 //! \brief AVC
133 //! \details
134 //! <b>For AVC QM Type</b>: This field specifies which Quantizer Matrix is
135 //! loaded.
136 enum AVC
137 {
138 AVC_AVC_4X_4INTRAMATRIX_Y_4DWS_CB_4DWS_CR_4DWS_RESERVED_4DWS = 0, //!< No additional details
139 AVC_AVC_4X_4INTERMATRIX_Y_4DWS_CB_4DWS_CR_4DWS_RESERVED_4DWS = 1, //!< No additional details
140 AVC_AVC8X8INTRAMATRIX = 2, //!< No additional details
141 AVC_AVC8X8INTERMATRIX = 3, //!< No additional details
142 };
143
144 //! \brief MPEG2
145 //! \details
146 //! <b>For MPEG2 QM Type</b>: This field specifies which Quantizer Matrix is
147 //! loaded.
148 enum MPEG2
149 {
150 MPEG2_MPEGINTRAQUANTIZERMATRIX = 0, //!< No additional details
151 MPEG2_MPEGNONINTRAQUANTIZERMATRIX = 1, //!< No additional details
152 };
153
154 //! \brief JPEG
155 //! \details
156 //! <b> For JPEG QM Type</b>:This field specifies which Quantizer Matrix is
157 //! loaded.
158 enum JPEG
159 {
160 JPEG_JPEGLUMAYQUANTIZERMATRIXORR = 0, //!< No additional details
161 JPEG_JPEGCHROMACBQUANTIZERMATRIXORG = 1, //!< No additional details
162 JPEG_JPEGCHROMACRQUANTIZERMATRIXORB = 2, //!< No additional details
163 };
164
165 //! \name Initializations
166
167 //! \brief Explicit member initialization function
168 MFX_QM_STATE_CMD();
169
170 static const size_t dwSize = 18;
171 static const size_t byteSize = 72;
172 };
173
174 //!
175 //! \brief MFX_FQM_STATE
176 //! \details
177 //! This is a common state command for AVC encoder modes. For encoder, it
178 //! represents both the forward QM matrices as well as the decoding QM
179 //! matrices.This is a Frame-level state. Only Scaling Lists specified by an
180 //! application are being sent to the hardware. The driver is responsible
181 //! for determining the final set of scaling lists to be used for decoding
182 //! the current slice, based on the AVC Spec Table 7-2 (Fall-Back Rules A
183 //! and B).In MFX AVC PAK mode, PAK needs both forward Q scaling lists and
184 //! IQ scaling lists. The IQ scaling lists are sent as in MFD in raster scan
185 //! order. But the Forward Q scaling lists are sent in column-wise raster
186 //! order (column-by-column) to simplify the H/W. Driver will perform all
187 //! the scan order conversion for both ForwardQ and IQ.
188 //!
189 struct MFX_FQM_STATE_CMD
190 {
191 union
192 {
193 //!< DWORD 0
194 struct
195 {
196 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
197 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
198 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
199 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
200 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
201 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
202 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
203 };
204 uint32_t Value;
205 } DW0;
206 union
207 {
208 //!< DWORD 1
209 struct
210 {
211 uint32_t Avc : __CODEGEN_BITFIELD( 0, 1) ; //!< AVC, AVC- Decoder Only
212 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved, AVC- Decoder Only
213 } Obj0;
214 struct
215 {
216 uint32_t Mpeg2 : __CODEGEN_BITFIELD( 0, 1) ; //!< MPEG2, MPEG2- Decoder Only
217 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved, MPEG2- Decoder Only
218 } Obj1;
219 struct
220 {
221 uint32_t Jpeg : __CODEGEN_BITFIELD( 0, 1) ; //!< JPEG, JPEG- Encoder Only
222 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved
223 }Obj2;
224 uint32_t Value;
225 } DW1;
226
227 uint32_t ForwardQuantizerMatrix[32]; //!< Forward Quantizer Matrix
228
229
230 //! \name Local enumerations
231
232 enum SUBOPCODE_B
233 {
234 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
235 };
236
237 enum SUBOPCODE_A
238 {
239 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
240 };
241
242 enum MEDIA_COMMAND_OPCODE
243 {
244 MEDIA_COMMAND_OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
245 };
246
247 enum PIPELINE
248 {
249 PIPELINE_MFXMULTIDW = 2, //!< No additional details
250 };
251
252 enum COMMAND_TYPE
253 {
254 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
255 };
256
257 //! \brief AVC
258 //! \details
259 //! <b>For AVC QM Type</b>: This field specifies which Quantizer Matrix is
260 //! loaded.
261 enum AVC
262 {
263 AVC_AVC_4X_4INTRAMATRIX_Y_4DWS_CB_4DWS_CR_4DWS_RESERVED_4DWS = 0, //!< No additional details
264 AVC_AVC_4X_4INTERMATRIX_Y_4DWS_CB_4DWS_CR_4DWS_RESERVED_4DWS = 1, //!< No additional details
265 AVC_AVC8X8INTRAMATRIX = 2, //!< No additional details
266 AVC_AVC8X8INTERMATRIX = 3, //!< No additional details
267 };
268
269 //! \brief MPEG2
270 //! \details
271 //! <b>For MPEG2 QM Type</b>: This field specifies which Quantizer Matrix is
272 //! loaded.
273 enum MPEG2
274 {
275 MPEG2_MPEGINTRAQUANTIZERMATRIX = 0, //!< No additional details
276 MPEG2_MPEGNONINTRAQUANTIZERMATRIX = 1, //!< No additional details
277 };
278
279 //! \brief JPEG
280 //! \details
281 //! <b> For JPEG QM Type</b>:This field specifies which Quantizer Matrix is
282 //! loaded.
283 enum JPEG
284 {
285 JPEG_JPEGLUMAYQUANTIZERMATRIXORR = 0, //!< No additional details
286 JPEG_JPEGCHROMACBQUANTIZERMATRIXORG = 1, //!< No additional details
287 JPEG_JPEGCHROMACRQUANTIZERMATRIXORB = 2, //!< No additional details
288 };
289
290 //! \name Initializations
291
292 //! \brief Explicit member initialization function
293 MFX_FQM_STATE_CMD();
294
295 static const size_t dwSize = 34;
296 static const size_t byteSize = 136;
297 };
298
299 //!
300 //! \brief MFX_PIPE_MODE_SELECT
301 //! \details
302 //! Specifies which codec and hardware module is being used to encode/decode
303 //! the video data, on a per-frame basis. The MFX_PIPE_MODE_SELECT command
304 //! specifies which codec and hardware module is being used to encode/decode
305 //! the video data, on a per-frame basis. It also configures the hardware
306 //! pipeline according to the active encoder/decoder operating mode for
307 //! encoding/decoding the current picture. Commands issued specifically for
308 //! AVC and MPEG2 are ignored when VC1 is the active codec.
309 //!
310 struct MFX_PIPE_MODE_SELECT_CMD
311 {
312 union
313 {
314 //!< DWORD 0
315 struct
316 {
317 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
318 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
319 uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB
320 uint32_t Subopa : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPA
321 uint32_t Opcode : __CODEGEN_BITFIELD(24, 26) ; //!< OPCODE
322 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
323 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
324 };
325 uint32_t Value;
326 } DW0;
327 union
328 {
329 //!< DWORD 1
330 struct
331 {
332 uint32_t StandardSelect : __CODEGEN_BITFIELD( 0, 3) ; //!< STANDARD_SELECT
333 uint32_t CodecSelect : __CODEGEN_BITFIELD( 4, 4) ; //!< CODEC_SELECT
334 uint32_t StitchMode : __CODEGEN_BITFIELD( 5, 5) ; //!< STITCH_MODE
335 uint32_t FrameStatisticsStreamoutEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< FRAME_STATISTICS_STREAMOUT_ENABLE
336 uint32_t ScaledSurfaceEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< SCALED_SURFACE_ENABLE
337 uint32_t PreDeblockingOutputEnablePredeblockoutenable : __CODEGEN_BITFIELD( 8, 8) ; //!< PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE
338 uint32_t PostDeblockingOutputEnablePostdeblockoutenable : __CODEGEN_BITFIELD( 9, 9) ; //!< POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE
339 uint32_t StreamOutEnable : __CODEGEN_BITFIELD(10, 10) ; //!< STREAM_OUT_ENABLE
340 uint32_t PicErrorStatusReportEnable : __CODEGEN_BITFIELD(11, 11) ; //!< PIC_ERRORSTATUS_REPORT_ENABLE
341 uint32_t DeblockerStreamOutEnable : __CODEGEN_BITFIELD(12, 12) ; //!< DEBLOCKER_STREAM_OUT_ENABLE
342 uint32_t VdencMode : __CODEGEN_BITFIELD(13, 13) ; //!< VDENC_MODE
343 uint32_t StandaloneVdencModeEnable : __CODEGEN_BITFIELD(14, 14) ; //!< STANDALONE_VDENC_MODE_ENABLE
344 uint32_t DecoderModeSelect : __CODEGEN_BITFIELD(15, 16) ; //!< DECODER_MODE_SELECT
345 uint32_t DecoderShortFormatMode : __CODEGEN_BITFIELD(17, 17) ; //!< DECODER_SHORT_FORMAT_MODE
346 uint32_t ExtendedStreamOutEnable : __CODEGEN_BITFIELD(18, 18) ; //!< Extended stream out enable
347 uint32_t Reserved51 : __CODEGEN_BITFIELD(19, 31) ; //!< Reserved
348 };
349 uint32_t Value;
350 } DW1;
351 union
352 {
353 //!< DWORD 2
354 struct
355 {
356 uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 2) ; //!< Reserved
357 uint32_t VdsIldbCalculation : __CODEGEN_BITFIELD( 3, 3) ; //!< VDS_ILDB_CALCULATION
358 uint32_t Reserved68 : __CODEGEN_BITFIELD( 4, 5) ; //!< Reserved
359 uint32_t ClockGateEnableAtSliceLevel : __CODEGEN_BITFIELD( 6, 6) ; //!< CLOCK_GATE_ENABLE_AT_SLICE_LEVEL
360 uint32_t Reserved71 : __CODEGEN_BITFIELD( 7, 9) ; //!< Reserved
361 uint32_t MpcPref08X8DisableFlagDefault0 : __CODEGEN_BITFIELD(10, 10) ; //!< MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0
362 uint32_t Reserved75 : __CODEGEN_BITFIELD(11, 13) ; //!< Reserved
363 uint32_t Vlf720IOddHeightInVc1Mode : __CODEGEN_BITFIELD(14, 14) ; //!< VLF_720I_ODD_HEIGHT_IN_VC1_MODE_
364 uint32_t Reserved79 : __CODEGEN_BITFIELD(15, 26) ; //!< Reserved
365 uint32_t VmbSvcTlbDummyFetchDisableForPerformance : __CODEGEN_BITFIELD(27, 27) ; //!< VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE
366 uint32_t VmbSvcMvReplicationFor8X8EnableErrorHandling : __CODEGEN_BITFIELD(28, 28) ; //!< VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING
367 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
368 };
369 uint32_t Value;
370 } DW2;
371 union
372 {
373 //!< DWORD 3
374 struct
375 {
376 uint32_t PicStatusErrorReportId ; //!< PIC_STATUSERROR_REPORT_ID
377 };
378 uint32_t Value;
379 } DW3;
380 union
381 {
382 //!< DWORD 4
383 struct
384 {
385 uint32_t Reserved128 ; //!< Reserved
386 };
387 uint32_t Value;
388 } DW4;
389
390 //! \name Local enumerations
391
392 enum SUBOPB
393 {
394 SUBOPB_MFXPIPEMODESELECT = 0, //!< No additional details
395 };
396
397 enum SUBOPA
398 {
399 SUBOPA_UNNAMED0 = 0, //!< No additional details
400 };
401
402 enum OPCODE
403 {
404 OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
405 };
406
407 enum PIPELINE
408 {
409 PIPELINE_MFXCOMMON = 2, //!< No additional details
410 };
411
412 enum COMMAND_TYPE
413 {
414 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
415 };
416
417 enum STANDARD_SELECT
418 {
419 STANDARD_SELECT_MPEG2 = 0, //!< No additional details
420 STANDARD_SELECT_VC1 = 1, //!< No additional details
421 STANDARD_SELECT_AVC = 2, //!< Covers both AVC and MVC
422 STANDARD_SELECT_JPEG = 3, //!< No additional details
423 STANDARD_SELECT_SVC = 4, //!< No additional details
424 STANDARD_SELECT_VP8 = 5, //!< Decoder starting from BDW, Encoder starting from SKL
425 STANDARD_SELECT_UVLD = 15, //!< SW decoder w/ embedded micro-controller and co-processor
426 };
427
428 enum CODEC_SELECT
429 {
430 CODEC_SELECT_DECODE = 0, //!< No additional details
431 CODEC_SELECT_ENCODE = 1, //!< Valid only if StandardSel is AVC, MPEG2 and SVC)
432 };
433
434 enum STITCH_MODE
435 {
436 STITCH_MODE_NOTINSTITCHMODE = 0, //!< No additional details
437 STITCH_MODE_INTHESPECIALSTITCHMODE = 1, //!< This mode can be used for any Codec as long as bitfield conditions are met.
438 };
439
440 //! \brief FRAME_STATISTICS_STREAMOUT_ENABLE
441 //! \details
442 //! This field controls the frame level statistics streamout from the PAK.
443 //! <p><b>Note</b>: This field needs to be always "Enabled" in VD_Enc
444 //! mode. In case of non-VDEnc mode,
445 //! this can be used to control the frame statistics output from the
446 //! PAK.</p>
447 enum FRAME_STATISTICS_STREAMOUT_ENABLE
448 {
449 FRAME_STATISTICS_STREAMOUT_ENABLE_DISABLE = 0, //!< No additional details
450 FRAME_STATISTICS_STREAMOUT_ENABLE_ENABLE = 1, //!< No additional details
451 };
452
453 //! \brief SCALED_SURFACE_ENABLE
454 //! \details
455 //! This field indicates if the scaled surface is enabled. This field
456 //! enables the 4x HME downscalar of the reconstructed image. Only
457 //! supported for AVC and VP8 formats.
458 enum SCALED_SURFACE_ENABLE
459 {
460 SCALED_SURFACE_ENABLE_DISABLE = 0, //!< No additional details
461 SCALED_SURFACE_ENABLE_ENABLE = 1, //!< No additional details
462 };
463
464 //! \brief PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE
465 //! \details
466 //! This field controls the output write for the reconstructed pixels BEFORE
467 //! the deblocking filter.
468 enum PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE
469 {
470 PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE_DISABLE = 0, //!< No additional details
471 PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE_ENABLE = 1, //!< No additional details
472 };
473
474 //! \brief POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE
475 //! \details
476 //! This field controls the output write for the reconstructed pixels AFTER
477 //! the deblocking filter.In MPEG2 decoding mode, if this is enabled, VC1
478 //! deblocking filter is used.
479 enum POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE
480 {
481 POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE_DISABLE = 0, //!< No additional details
482 POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE_ENABLE = 1, //!< No additional details
483 };
484
485 //! \brief STREAM_OUT_ENABLE
486 //! \details
487 //! This field controls whether the macroblock parameter stream-out is
488 //! enabled during VLD decoding for transcoding purpose.
489 enum STREAM_OUT_ENABLE
490 {
491 STREAM_OUT_ENABLE_DISABLE = 0, //!< No additional details
492 STREAM_OUT_ENABLE_ENABLE = 1, //!< No additional details
493 };
494
495 //! \brief PIC_ERRORSTATUS_REPORT_ENABLE
496 //! \details
497 //! <p>This field control whether the error/status reporting is enable or
498 //! not.0: Disable1: EnableIn decoder modes: Error reporting is written out
499 //! once per frame. The Error Report frame ID listed in DW3 along with the
500 //! VLD/IT error status bits are packed into one cache and written to the
501 //! "Decoded Picture Error/Status Buffer address" listed in the
502 //! MFX_PIPE_BUF_ADDR_STATE Command. Note: driver shall program different
503 //! error buffer addresses between pictrues; otherwise, hardware might
504 //! overwrite previous written data if driver does not read it fast
505 //! enough.In encoder modes: Not used</p>
506 //! <p>Please refer to "Media VDBOX -&gt; Video Codec -&gt; Other Codec
507 //! Functions -&gt; MFX Error Handling -&gt; Decoder" session for the output
508 //! format.</p>
509 enum PIC_ERRORSTATUS_REPORT_ENABLE
510 {
511 PIC_ERRORSTATUS_REPORT_ENABLE_DISABLE = 0, //!< No additional details
512 PIC_ERRORSTATUS_REPORT_ENABLE_ENABLE = 1, //!< No additional details
513 };
514
515 //! \brief DEBLOCKER_STREAM_OUT_ENABLE
516 //! \details
517 //! This field indicates if Deblocker information is going to be streamout
518 //! during VLD decoding.
519 //! For AVC, it is needed to enable the deblocker streamout as the AVC
520 //! Disable_DLKFilterIdc is a slice level parameters. Driver needs to
521 //! determine ahead of time if at least one slice of the current frame/ has
522 //! deblocker ON.
523 //! For SVC, there are two deblocking control streamout buffers
524 //! (specified in MFX_BUF_ADDR State Command). This field is still
525 //! associated with the slice level SVC Disable.DLK_Filter_Idc.
526 enum DEBLOCKER_STREAM_OUT_ENABLE
527 {
528 DEBLOCKER_STREAM_OUT_ENABLE_DISABLE = 0, //!< Disable streamout of deblocking control information for standalone deblocker operation.It needs other fields to determine one or two SVC deblocking surface streamout (Post Deblocking Output Enable, Pre Deblocking Output Enable, interlayer idc and regular deblock idc).
529 DEBLOCKER_STREAM_OUT_ENABLE_ENABLE = 1, //!< No additional details
530 };
531
532 //! \brief VDENC_MODE
533 //! \details
534 //! This field indicates if PAK is working in legacy MBEnc mode or the VDEnc
535 //! mode.
536 enum VDENC_MODE
537 {
538 VDENC_MODE_MBENCMODE = 0, //!< PAK is working in legacy mode
539 VDENC_MODE_VDENCMODE = 1, //!< PAK is working in VDEnc mode
540 };
541
542 //! \brief STANDALONE_VDENC_MODE_ENABLE
543 //! \details
544 //! This field indicates to PAK if this is standalone VDEnc mode. This is
545 //! primarily a validation mode.
546 enum STANDALONE_VDENC_MODE_ENABLE
547 {
548 STANDALONE_VDENC_MODE_ENABLE_VDENCPAK = 0, //!< No additional details
549 STANDALONE_VDENC_MODE_ENABLE_PAKONLY = 1, //!< No additional details
550 };
551
552 //! \brief DECODER_MODE_SELECT
553 //! \details
554 //! Each coding standard supports two entry points: VLD entry point and IT
555 //! (IDCT) entry point. This field selects which one is in use.This field is
556 //! only valid if Codec Select is 0 (decoder).
557 enum DECODER_MODE_SELECT
558 {
559 DECODER_MODE_SELECT_VLDMODE = 0, //!< All codec minimum must support this mode Configure the MFD Engine for VLD ModeNote: All codec minimum must support this mode
560 DECODER_MODE_SELECT_ITMODE = 1, //!< Configure the MFD Engine for IT ModeNote: Only VC1 and MPEG2 support this mode
561 DECODER_MODE_SELECT_DEBLOCKERMODE = 2, //!< Configure the MFD Engine for Standalone Deblocker Mode. Require streamout AVC edge control information from preceeding decoding pass.Note: [HSW, EXCLUDE(HSW:GT3:A, HSW:GT3:B, HSW:GT2:B)] Only AVC, MPEG2 and SVC are supported.
562 DECODER_MODE_SELECT_INTERLAYERMODE = 3, //!< Configure the MFX Engine for standalone SVC interlayer upsampling for motion info, residual and reconstructed pixel. Require information being streamout from the preceding encoding and decoding pass of a reference layer.>
563 };
564
565 //! \brief DECODER_SHORT_FORMAT_MODE
566 //! \details
567 //! For IT mode, this bit must be 0.
568 enum DECODER_SHORT_FORMAT_MODE
569 {
570 DECODER_SHORT_FORMAT_MODE_SHORTFORMATDRIVERINTERFACE = 0, //!< AVC/VC1/MVC/SVC/VP8 Short Format Mode is in useNote: There is no Short Format for SVC and VP8 yet, so this field must be set to 1 for SVC and VP8.
571 DECODER_SHORT_FORMAT_MODE_LONGFORMATDRIVERINTERFACE = 1, //!< AVC/VC1/MVC/SVC/VP8 Long Format Mode is in use.
572 };
573
574 //! \brief VDS_ILDB_CALCULATION
575 //! \details
576 //! This bit forces all MB into INTRA MBs before doing ILDB control
577 //! generation in VDS.
578 enum VDS_ILDB_CALCULATION
579 {
580 VDS_ILDB_CALCULATION_DISABLE = 0, //!< Use original definition for ILDB calculation.
581 VDS_ILDB_CALCULATION_ENABLE = 1, //!< Force neighbor Intra MB = 1 on ILDB BS calculation.
582 };
583
584 //! \brief CLOCK_GATE_ENABLE_AT_SLICE_LEVEL
585 //! \details
586 //! BitFieldDesc:
587 enum CLOCK_GATE_ENABLE_AT_SLICE_LEVEL
588 {
589 CLOCK_GATE_ENABLE_AT_SLICE_LEVEL_DISABLE = 0, //!< Disable Slice-level Clock gating, Unit-level Clock gating will apply
590 CLOCK_GATE_ENABLE_AT_SLICE_LEVEL_ENABLE = 1, //!< Enable Slice-level Clock gating, overrides any Unit level Clock gating
591 };
592
593 enum MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0
594 {
595 MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0_DISABLE = 0, //!< No additional details
596 MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0_ENABLE = 1, //!< No additional details
597 };
598
599 //! \brief VLF_720I_ODD_HEIGHT_IN_VC1_MODE_
600 //! \details
601 //! This bit indicates VLF write out VC1 picture with odd height (in MBs).
602 enum VLF_720I_ODD_HEIGHT_IN_VC1_MODE_
603 {
604 VLF_720I_ODD_HEIGHT_IN_VC1_MODE_DISABLE = 0, //!< No additional details
605 VLF_720I_ODD_HEIGHT_IN_VC1_MODE_ENABLE = 1, //!< 720i Enable
606 };
607
608 //! \brief VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE
609 //! \details
610 //! This bit disables TLB dummy fetch in SVC mode in VMB.
611 enum VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE
612 {
613 VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE_ENABLE = 0, //!< Enable VMB TLB Dummy Fetch for Performance
614 VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE_DISABLE = 1, //!< Disable VMB TLB Dummy Fetch
615 };
616
617 //! \brief VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING
618 //! \details
619 //! This bit enables Motion Vector replication on 8x8 level during SVC mode
620 //! for error handling.
621 enum VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING
622 {
623 VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING_DISABLE = 0, //!< Disable MV 8x8 replication in SVC mode
624 VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING_ENABLE = 1, //!< Enable MV 8x8 Replication in SVC Mode
625 };
626
627 //! \brief PIC_STATUSERROR_REPORT_ID
628 //! \details
629 //! In decoder modes: Error reporting is written out once per frame. This
630 //! field along with the VLD error status bits are packed into one cache and
631 //! written to the memory location specified by "Decoded Picture
632 //! Error/Status Buffer address" listed in the MFX_PIPE_BUF_ADDR_STATE
633 //! Command.
634 enum PIC_STATUSERROR_REPORT_ID
635 {
636 PIC_STATUSERROR_REPORT_ID_32_BITUNSIGNED = 0, //!< Unique ID Number
637 };
638
639 //! \name Initializations
640
641 //! \brief Explicit member initialization function
642 MFX_PIPE_MODE_SELECT_CMD();
643
644 static const size_t dwSize = 5;
645 static const size_t byteSize = 20;
646 };
647
648 //!
649 //! \brief MFX_SURFACE_STATE
650 //! \details
651 //! This command is common for all encoding/decoding modes, to specify the
652 //! uncompressed YUV picture (i.e. destination surface) or intermediate
653 //! streamout in/out surface (e.g. coefficient/residual) (field, frame or
654 //! interleaved frame) format for reading and writing: Uncompressed,
655 //! original input picture to be encoded
656 //! Reconstructed non-filtered/filtered display picturec(becoming reference
657 //! pictures as well for subsequent temporal inter-prediction)
658 //! Residual in SVC
659 //! Reconstructed Intra pixel in SVC
660 //! CoeffPred in SVC
661 //! Since there is only one media surface state being active during the
662 //! entire encoding/decoding process, all the uncompressed/reconstructed
663 //! pictures are defined to have the same surface state. For each media
664 //! object call (decoding or encoding), multiple SVC surfaces can be active
665 //! concurrently, to distinguish among them, a surfaceID is added to
666 //! specify for each type of surface. The primary difference among picture
667 //! surface states is their individual programmed base addresses, which are
668 //! provided by other state commands and not included in this command. MFX
669 //! engine is making the association of surface states and corresponding
670 //! buffer base addresses. MFX engine currently supports only one media
671 //! surface type for video and that is the NV12 (Planar YUV420 with
672 //! interleaved U (Cb) and V (Cr). For optimizing memory efficiency based on
673 //! access patterns, only TileY is supported. For JPEG decoder, only IMC1
674 //! and IMC3 are supported. Pitch can be wider than the Picture Width in
675 //! pixels and garbage will be there at the end of each line. The following
676 //! describes all the different formats that are supported and not supported
677 //! in Gen7 MFX : NV12 - 4:2:0 only; UV interleaved; Full Pitch, U and V
678 //! offset is set to 0 (the only format supported for video codec); vertical
679 //! UV offset is MB aligned; UV xoffsets = 0. JPEG does not support NV12
680 //! format because non-interleave JPEG has performance issue with partial
681 //! write (in interleaved UV format)
682 //! IMC 1 &amp; 3 - Full Pitch, U and V are separate plane; (JPEG only; U
683 //! plane + garbage first in full pitch followed by V plane + garbage in
684 //! full pitch). U and V vertical offsets are block aligned; U and V xoffset
685 //! = 0; there is no gap between Y, U and V planes. IMC1 and IMC3 are
686 //! different by a swap of U and V. This is the only format supported in
687 //! JPEG for all video subsampling types (4:4:4, 4:2:2 and 4:2:0)
688 //! We are not supporting IMC 2 &amp; 4 - Full Pitch, U and V are separate
689 //! plane (JPEG only; U plane first in full pitch followed by V plane in
690 //! full pitch - U and V plane are side-by-side). U and V vertical offsets
691 //! are 16-pixel aligned; V xoffset is half-pitch aligned; U xoffset is 0;
692 //! there is no gap between Y, U and V planes. IMC2 and IMC4 are different
693 //! by a swap of U and V.
694 //! We are not supporting YV12 - half pitch for each U and V plane, and
695 //! separate planes for Y, U and V (U plane first in half pitch followed by
696 //! V plane in half pitch). For YV12, U and V vertical offsets are block
697 //! aligned; U and V xoffset = 0; there is no gap between Y, U and V planes
698 //! Note that the following data structures are not specified through the
699 //! media surface state 1D buffers for row-store and other miscellaneous
700 //! information.
701 //! 2D buffers for per-MB data-structures (e.g. DMV biffer, MB info record,
702 //! ILDB Control and Tcoeff/Stocoeff).
703 //! This surface state here is identical to the Surface State for
704 //! deinterlace and sample_8x8 messages described in the Shared Function
705 //! Volume and Sampler Chapter. For non pixel data, such as row stores,
706 //! indirect data (Compressed Slice Data, AVC MV record, Coeff record and
707 //! AVC ILDB record) and streamin/out and output compressed bitstream, a
708 //! linear buffer is employed. For row stores, the H/W is designed to
709 //! guarantee legal memory accesses (read and write). For the remaining
710 //! cases, indirect object base address, indirect object address upper
711 //! bound, object data start address (offset) and object data length are
712 //! used to fully specified their corresponding buffer. This mechanism is
713 //! chosen over the pixel surface type because of their variable record
714 //! sizes. All row store surfaces are linear surface. Their addresses are
715 //! programmed in Pipe_Buf_Base_State or Bsp_Buf_Base_Addr_State
716 //!
717 //! VC1 I picture scaling: Even though VC1 allows I reconstructed picture
718 //! scaling (via RESPIC), as such scaling is only allowed at I picture. All
719 //! subsequent P (and B) pictures must have the same picture dimensions with
720 //! the preceding I picture. Therefore, all reference pictures for P or B
721 //! picture can share the same surface state with the current P and B
722 //! picture. Note : H/W is not processing RESPIC. Application is no longer
723 //! expecting intel decoder pipelineand kernel to perform this function, it
724 //! is going to be done in the video post-processing scaler or display
725 //! controller scale as a separate step and controller.
726 //!
727 //! All video codec surfaces must be NV12 Compliant, except JPEG. U/V
728 //! vertical must be MB aligned for all video codec (further contrained for
729 //! field picture), but JPEG can be block aligned. All video codec and JPEG
730 //! uses Tiled - Y format only, for uncompressed pixel surfaces.
731 //!
732 //! Even for JPEG planar 420 surface, application may provide only 1
733 //! buffers, but there is still only one single surface state for all of
734 //! them. If IMC equal to 1, 2, 3 or 4, U and V have the pitch same as Y.
735 //! And U and V will have different offset, each offset is block aligned.
736 //!
737 struct MFX_SURFACE_STATE_CMD
738 {
739 union
740 {
741 //!< DWORD 0
742 struct
743 {
744 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
745 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
746 uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB
747 uint32_t Subopa : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPA
748 uint32_t Opcode : __CODEGEN_BITFIELD(24, 26) ; //!< OPCODE
749 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
750 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
751 };
752 uint32_t Value;
753 } DW0;
754 union
755 {
756 //!< DWORD 1
757 struct
758 {
759 uint32_t SurfaceId : __CODEGEN_BITFIELD( 0, 3) ; //!< SURFACE_ID
760 uint32_t Reserved36 : __CODEGEN_BITFIELD( 4, 31) ; //!< Reserved
761 };
762 uint32_t Value;
763 } DW1;
764 union
765 {
766 //!< DWORD 2
767 struct
768 {
769 uint32_t CrVCbUPixelOffsetVDirection : __CODEGEN_BITFIELD( 0, 1) ; //!< Cr(V)/Cb(U) Pixel Offset V Direction
770 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
771 uint32_t Width : __CODEGEN_BITFIELD( 4, 17) ; //!< Width
772 uint32_t Height : __CODEGEN_BITFIELD(18, 31) ; //!< Height
773 };
774 uint32_t Value;
775 } DW2;
776 union
777 {
778 //!< DWORD 3
779 struct
780 {
781 uint32_t TileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< TILE_WALK
782 uint32_t TiledSurface : __CODEGEN_BITFIELD( 1, 1) ; //!< TILED_SURFACE
783 uint32_t HalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< Half Pitch for Chroma
784 uint32_t SurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Surface Pitch
785 uint32_t Reserved116 : __CODEGEN_BITFIELD( 20,26) ; //!< Reserved
786 uint32_t InterleaveChroma : __CODEGEN_BITFIELD(27, 27) ; //!< INTERLEAVE_CHROMA_
787 uint32_t SurfaceFormat : __CODEGEN_BITFIELD(28, 31) ; //!< SURFACE_FORMAT
788 };
789 uint32_t Value;
790 } DW3;
791 union
792 {
793 //!< DWORD 4
794 struct
795 {
796 uint32_t YOffsetForUCb : __CODEGEN_BITFIELD( 0, 14) ; //!< Y Offset for U(Cb)
797 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
798 uint32_t XOffsetForUCb : __CODEGEN_BITFIELD(16, 30) ; //!< X Offset for U(Cb)
799 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
800 };
801 uint32_t Value;
802 } DW4;
803 union
804 {
805 //!< DWORD 5
806 struct
807 {
808 uint32_t YOffsetForVCr : __CODEGEN_BITFIELD( 0, 15) ; //!< Y Offset for V(Cr)
809 uint32_t XOffsetForVCr : __CODEGEN_BITFIELD(16, 28) ; //!< X Offset for V(Cr)
810 uint32_t Reserved189 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
811 };
812 uint32_t Value;
813 } DW5;
814
815 //! \name Local enumerations
816
817 enum SUBOPB
818 {
819 SUBOPB_UNNAMED1 = 1, //!< No additional details
820 };
821
822 enum SUBOPA
823 {
824 SUBOPA_UNNAMED0 = 0, //!< No additional details
825 };
826
827 enum OPCODE
828 {
829 OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
830 };
831
832 enum PIPELINE
833 {
834 PIPELINE_MFXCOMMON = 2, //!< No additional details
835 };
836
837 enum COMMAND_TYPE
838 {
839 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
840 };
841
842 enum SURFACE_ID
843 {
844 SURFACE_ID_DECODEDPICTUREANDREFERENCEPICTURES_SVCUPSAMPLINGSTREAMOUTRECONSTRUCTEDPIXELSCOEFFPREDUPPERLAYERSIZE = 0, //!< 8-bit uncompressed data
845 SURFACE_ID_SVCRESIDUALUPSAMPLINGSTREAMOUTSURFACEUPPERLAYERSIZE = 1, //!< 16-bit uncompressed data
846 SURFACE_ID_SVCRECONSTRUCTEDPIXELANDCOEFFPREDUPSAMPLINGSTREAMINSURFACELOWERLAYERSIZE = 2, //!< 8-bit uncompressed data.
847 SURFACE_ID_SVCRESIDUALUPSAMPLINGSTREAMINSURFACELOWERLAYERSIZE = 3, //!< 16-bit uncompressed data
848 SURFACE_ID_SOURCEINPUTPICTUREENCODER = 4, //!< 8-bit uncompressed data
849 SURFACE_ID_RECONSTRUCTEDSCALEDREFERENCEPICTURE = 5, //!< 8-bit data
850 };
851
852 //! \brief TILE_WALK
853 //! \details
854 //! (This field must be set to 1: TILEWALK_YMAJOR)This field specifies the
855 //! type of memory tiling (XMajor or YMajor) employed to tile this surface.
856 //! See Memory Interface Functions for details on memory tiling and
857 //! restrictions.This field is ignored when the surface is linear.This field
858 //! is ignored by MFX. Internally H/W is always treated this set to 1 for
859 //! all video codec and for JPEG.
860 enum TILE_WALK
861 {
862 TILE_WALK_XMAJOR = 0, //!< TILEWALK_XMAJOR
863 TILE_WALK_YMAJOR = 1, //!< TILEWALK_YMAJOR
864 };
865
866 //! \brief TILED_SURFACE
867 //! \details
868 //! (This field must be set to TRUE: Tiled)This field specifies whether the
869 //! surface is tiled.This field is ignored by MFX
870 enum TILED_SURFACE
871 {
872 TILED_SURFACE_FALSE = 0, //!< Linear
873 TILED_SURFACE_TRUE = 1, //!< Tiled
874 };
875
876 //! \brief INTERLEAVE_CHROMA_
877 //! \details
878 //! This field indicates that the chroma fields are interleaved in a single
879 //! plane rather than stored as two separate planes. This field is only used
880 //! for PLANAR surface formats.For AVC/VC1/MPEG VLD and IT modes : set to
881 //! Enable to support interleave U/V only.For JPEG : set to Disable for all
882 //! formats (including 4:2:0) - because JPEG does not support NV12. (This
883 //! field is needed only if JPEG will support NV12; otherwise is ignored.)
884 enum INTERLEAVE_CHROMA_
885 {
886 INTERLEAVE_CHROMA_DISABLE = 0, //!< No additional details
887 INTERLEAVE_CHROMA_ENABLE = 1, //!< No additional details
888 };
889
890 //! \brief SURFACE_FORMAT
891 //! \details
892 //! Specifies the format of the surface. All of the Y and G channels will
893 //! use table 0 and all of the Cr/Cb/R/B channels will use table 1.Usage:
894 //! For 420 planar YUV surface, use 4; for monochrome surfaces, use 12. For
895 //! monochrome surfaces, hardware ignores control fields for Chroma
896 //! planes.This field must be set to 4 - PLANAR_420_8, or 12 - Y8_UNORMNot
897 //! used for MFX, and is ignored. But for JPEG decoding, this field should
898 //! be programmed to the same format as JPEG_PIC_STATE. For video codec, it
899 //! should set to 4 always.
900 enum SURFACE_FORMAT
901 {
902 SURFACE_FORMAT_YCRCBNORMAL = 0, //!< No additional details
903 SURFACE_FORMAT_YCRCBSWAPUVY = 1, //!< No additional details
904 SURFACE_FORMAT_YCRCBSWAPUV = 2, //!< No additional details
905 SURFACE_FORMAT_YCRCBSWAPY = 3, //!< No additional details
906 SURFACE_FORMAT_PLANAR_4208 = 4, //!< (NV12, IMC1,2,3,4, YV12)
907 SURFACE_FORMAT_PLANAR_4118 = 5, //!< Deinterlace Only
908 SURFACE_FORMAT_PLANAR_4228 = 6, //!< Deinterlace Only
909 SURFACE_FORMAT_STMMDNSTATISTICS = 7, //!< Deinterlace Only
910 SURFACE_FORMAT_R10G10B10A2UNORM = 8, //!< Sample_8x8 Only
911 SURFACE_FORMAT_R8G8B8A8UNORM = 9, //!< Sample_8x8 Only
912 SURFACE_FORMAT_R8B8UNORMCRCB = 10, //!< Sample_8x8 Only
913 SURFACE_FORMAT_R8UNORMCRCB = 11, //!< Sample_8x8 Only
914 SURFACE_FORMAT_Y8UNORM = 12, //!< Sample_8x8 Only
915 };
916
917 //! \name Initializations
918
919 //! \brief Explicit member initialization function
920 MFX_SURFACE_STATE_CMD();
921
922 static const size_t dwSize = 6;
923 static const size_t byteSize = 24;
924 };
925
926 //!
927 //! \brief MFX_IND_OBJ_BASE_ADDR_STATE
928 //! \details
929 //! This state command provides the memory base addresses for all row
930 //! stores, StreamOut buffer and reconstructed picture output buffers
931 //! required by the MFD or MFC Engine (that are in addition to the row
932 //! stores of the Bit Stream Decoding/Encoding Unit (BSD/BSE) and the
933 //! reference picture buffers). This is a picture level state command and is
934 //! common among all codec standards and for both encoder and decoder
935 //! operating modes. However, some fields may only applicable to a specific
936 //! codec standard. All Pixel Surfaces (original, reference frame and
937 //! reconstructed frame) in the Encoder are programmed with the same surface
938 //! state (NV12 and TileY format), except each has its own frame buffer base
939 //! address. In the tile format, there is no need to provide buffer offset
940 //! for each slice; since from each MB address, the hardware can calculated
941 //! the corresponding memory location within the frame buffer directly.
942 //!
943 //! The MFX_IND_OBJ_BASE_ADDR command sets the memory base address pointers
944 //! for the corresponding Indirect Object Data Start Addresses (Offsets)
945 //! specified in each OBJECT commands. The characteristic of these indirect
946 //! object data is their variable size (per MB or per Slice). Hence, each
947 //! OBJECT command must specify the indirect object data offset from the
948 //! base address to start fetching or writing object data.
949 //!
950 //! While the use of base address is unconditional, the indirection can be
951 //! effectively disabled by setting the base address to zero. For decoder,
952 //! there are: 1 read-only per-slice indirect object in the BSD_OBJECT
953 //! Command, and
954 //! 2 read-only per-MB indirect objects in the IT_OBJECT Command.
955 //! For decoder: the Video Command Streamer (VCS) will perform the memory
956 //! access bound check automatically using the corresponding MFC Indirect
957 //! Object Access Upper Bound specification. If any access is at or beyond
958 //! the upper bound, zero value is returned. The request to memory is still
959 //! being sent, but the corresponding codec's BSD unit will detect this
960 //! condition and perform the zeroing return. If the Upper Bound is turned
961 //! off, the beyond bound request will return whatever on the bus (invalid
962 //! data). For encoder, there are: 1 read-only per-MB indirect object in
963 //! the PAK_OBJECT Command, and
964 //! 1 write-only per-slice indirect object in the PAK Slice_State Command
965 //! For encoder: whenever an out of bound address accessing request is
966 //! generated, VMX will detect such requests and snap the address to the
967 //! corresponding [indirect object base address + indirect data start
968 //! address]. VMX will return all 0s as the data to the requestor.
969 //! NotationDefinitionPhysicalAddress[n:m] Corresponding bits of a physical
970 //! graphics memory byte address (not mapped by a GTT) GraphicsAddress[n:m]
971 //! Corresponding bits of an absolute, virtual graphics memory byte address
972 //! (mapped by a GTT).
973 //!
974 struct MFX_IND_OBJ_BASE_ADDR_STATE_CMD
975 {
976 union
977 {
978 //!< DWORD 0
979 struct
980 {
981 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
982 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
983 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
984 uint32_t SubOpcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODEA
985 uint32_t CommonOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMON_OPCODE
986 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
987 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
988 };
989 uint32_t Value;
990 } DW0;
991 union
992 {
993 //!< DWORD 1
994 struct
995 {
996 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
997 uint32_t MfxIndirectBitstreamObjectBaseAddressDecoderAndStitchModes : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect Bitstream Object - Base Address (Decoder and Stitch Modes)
998 };
999 uint32_t Value;
1000 } DW1;
1001 union
1002 {
1003 //!< DWORD 2
1004 struct
1005 {
1006 uint32_t MfxIndirectBitstreamObjectDestinationAddressDecoderAndStitchModes4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect Bitstream Object - Destination Address (Decoder and Stitch Modes)[47:32]
1007 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1008 };
1009 uint32_t Value;
1010 } DW2;
1011 union
1012 {
1013 //!< DWORD 3
1014 struct
1015 {
1016 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1017 uint32_t MfxIndirectBitstreamObjectbaseArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFX_INDIRECT_BITSTREAM_OBJECTBASE__ARBITRATION_PRIORITY_CONTROL
1018 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1019 uint32_t MfxIndirectBitstreamObjectTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFX_INDIRECT_BITSTREAM_OBJECT__TILED_RESOURCE_MODE
1020 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1021 };
1022 uint32_t Value;
1023 } DW3;
1024 union
1025 {
1026 //!< DWORD 4
1027 struct
1028 {
1029 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1030 uint32_t MfxIndirectBitstreamObjectAccessUpperBoundDecoderAndStitchModes : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect Bitstream Object - Access Upper Bound (Decoder and Stitch Modes)
1031 };
1032 uint32_t Value;
1033 } DW4;
1034 union
1035 {
1036 //!< DWORD 5
1037 struct
1038 {
1039 uint32_t MfxIndirectBitstreamObjectUpperboundDecoderAndStitchModes4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect Bitstream Object UpperBound (Decoder and Stitch Modes)[47:32]
1040 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1041 };
1042 uint32_t Value;
1043 } DW5;
1044 union
1045 {
1046 //!< DWORD 6
1047 struct
1048 {
1049 uint32_t Reserved192 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1050 uint32_t MfxIndirectMvObjectBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect MV Object - Base Address
1051 };
1052 uint32_t Value;
1053 } DW6;
1054 union
1055 {
1056 //!< DWORD 7
1057 struct
1058 {
1059 uint32_t MfxIndirectMvObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect MV Object Base Address [47:32]
1060 uint32_t Reserved240 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1061 };
1062 uint32_t Value;
1063 } DW7;
1064 union
1065 {
1066 //!< DWORD 8
1067 struct
1068 {
1069 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1070 uint32_t MfxIndirectMvObjectArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFX_INDIRECT_MV_OBJECT__ARBITRATION_PRIORITY_CONTROL
1071 uint32_t Reserved265 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1072 uint32_t MfxIndirectMvObjectDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFX_INDIRECT_MV_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1073 uint32_t Reserved271 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1074 };
1075 uint32_t Value;
1076 } DW8;
1077 union
1078 {
1079 //!< DWORD 9
1080 struct
1081 {
1082 uint32_t Reserved288 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1083 uint32_t MfxIndirectMvObjectAccessUpperBound : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect MV Object Access Upper Bound
1084 };
1085 uint32_t Value;
1086 } DW9;
1087 union
1088 {
1089 //!< DWORD 10
1090 struct
1091 {
1092 uint32_t MfxIndirectMvObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect MV Object UpperBound [47:32]
1093 uint32_t Reserved336 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1094 };
1095 uint32_t Value;
1096 } DW10;
1097 union
1098 {
1099 //!< DWORD 11
1100 struct
1101 {
1102 uint32_t Reserved352 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1103 uint32_t MfdIndirectItCoeffObjectBaseAddressDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-COEFF Object - Base Address (Decoder Only)
1104 };
1105 uint32_t Value;
1106 } DW11;
1107 union
1108 {
1109 //!< DWORD 12
1110 struct
1111 {
1112 uint32_t MfdIndirectItCoeffObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-COEFF Object Base Address [47:32]
1113 uint32_t Reserved400 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1114 };
1115 uint32_t Value;
1116 } DW12;
1117 union
1118 {
1119 //!< DWORD 13
1120 struct
1121 {
1122 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1123 uint32_t MfdIndirectItCoeffObjectDesitnationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1124 uint32_t Reserved425 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1125 uint32_t MfdIndirectItCoeffTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFD_INDIRECT_IT_COEFF__TILED_RESOURCE_MODE
1126 uint32_t Reserved431 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1127 };
1128 uint32_t Value;
1129 } DW13;
1130 union
1131 {
1132 //!< DWORD 14
1133 struct
1134 {
1135 uint32_t Reserved448 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1136 uint32_t MfdIndirectItCoeffObjectAccessUpperBoundDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-COEFF Object - Access Upper Bound (Decoder Only)
1137 };
1138 uint32_t Value;
1139 } DW14;
1140 union
1141 {
1142 //!< DWORD 15
1143 struct
1144 {
1145 uint32_t MfdIndirectItCoeffObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-COEFF Object UpperBound [47:32]
1146 uint32_t Reserved496 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1147 };
1148 uint32_t Value;
1149 } DW15;
1150 union
1151 {
1152 //!< DWORD 16
1153 struct
1154 {
1155 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1156 uint32_t MfdIndirectItDblkObjectBaseAddressDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-DBLK Object - Base Address (Decoder Only)
1157 };
1158 uint32_t Value;
1159 } DW16;
1160 union
1161 {
1162 //!< DWORD 17
1163 struct
1164 {
1165 uint32_t MfdIndirectItDblkObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-DBLK Object Base Address [47:32]
1166 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1167 };
1168 uint32_t Value;
1169 } DW17;
1170 union
1171 {
1172 //!< DWORD 18
1173 struct
1174 {
1175 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1176 uint32_t MfdIndirectItDblkObjectArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFD_INDIRECT_IT_DBLK_OBJECT__ARBITRATION_PRIORITY_CONTROL
1177 uint32_t Reserved585 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1178 uint32_t MfdIndirectItDblkObjectDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1179 uint32_t Reserved591 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1180 };
1181 uint32_t Value;
1182 } DW18;
1183 union
1184 {
1185 //!< DWORD 19
1186 struct
1187 {
1188 uint32_t Reserved608 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1189 uint32_t MfdIndirectItDblkObjectAccessUpperBoundDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-DBLK Object - Access Upper Bound (Decoder Only)
1190 };
1191 uint32_t Value;
1192 } DW19;
1193 union
1194 {
1195 //!< DWORD 20
1196 struct
1197 {
1198 uint32_t MfdIndirectItDblkObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-DBLK Object UpperBound [47:32]
1199 uint32_t Reserved656 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1200 };
1201 uint32_t Value;
1202 } DW20;
1203 union
1204 {
1205 //!< DWORD 21
1206 struct
1207 {
1208 uint32_t Reserved672 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1209 uint32_t MfcIndirectPakBseObjectBaseAddressEncoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFC Indirect PAK-BSE Object - Base Address (Encoder Only)
1210 };
1211 uint32_t Value;
1212 } DW21;
1213 union
1214 {
1215 //!< DWORD 22
1216 struct
1217 {
1218 uint32_t MfcIndirectPakBseObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFC Indirect PAK-BSE Object Base Address [47:32]
1219 uint32_t Reserved720 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1220 };
1221 uint32_t Value;
1222 } DW22;
1223 union
1224 {
1225 //!< DWORD 23
1226 struct
1227 {
1228 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1229 uint32_t MfcIndirectPakBseObjectDesitnationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1230 uint32_t Reserved745 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1231 uint32_t MfcIndirectPakBseObjectDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1232 uint32_t Reserved751 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1233 };
1234 uint32_t Value;
1235 } DW23;
1236 union
1237 {
1238 //!< DWORD 24
1239 struct
1240 {
1241 uint32_t Reserved768 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1242 uint32_t MfcIndirectPakBseObjectAccessUpperBoundEecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFC Indirect PAK-BSE Object - Access Upper Bound (Eecoder Only)
1243 };
1244 uint32_t Value;
1245 } DW24;
1246 union
1247 {
1248 //!< DWORD 25
1249 struct
1250 {
1251 uint32_t MfcIndirectPakBseObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFC Indirect PAK-BSE Object UpperBound [47:32]
1252 uint32_t Reserved816 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1253 };
1254 uint32_t Value;
1255 } DW25;
1256
1257 //! \name Local enumerations
1258
1259 enum SUBOPCODEB
1260 {
1261 SUBOPCODEB_MFXINDOBJBASEADDRSTATE = 3, //!< No additional details
1262 };
1263
1264 enum SUB_OPCODEA
1265 {
1266 SUB_OPCODEA_MFXINDOBJBASEADDRSTATE = 0, //!< No additional details
1267 };
1268
1269 enum COMMON_OPCODE
1270 {
1271 COMMON_OPCODE_MFXINDOBJBASEADDRSTATE = 0, //!< No additional details
1272 };
1273
1274 enum PIPELINE
1275 {
1276 PIPELINE_MFXINDOBJBASEADDRSTATE = 2, //!< No additional details
1277 };
1278
1279 enum COMMAND_TYPE
1280 {
1281 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1282 };
1283
1284 //! \brief MFX_INDIRECT_BITSTREAM_OBJECTBASE__ARBITRATION_PRIORITY_CONTROL
1285 //! \details
1286 //! This field controls the priority of arbitration used in the GAC/GAM
1287 //! pipeline for this surface.
1288 enum MFX_INDIRECT_BITSTREAM_OBJECTBASE__ARBITRATION_PRIORITY_CONTROL
1289 {
1290 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1291 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1292 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1293 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1294 };
1295
1296 //! \brief MFX_INDIRECT_BITSTREAM_OBJECT__TILED_RESOURCE_MODE
1297 //! \details
1298 //! <b>For Media Surfaces:</b>
1299 //! This field specifies the tiled resource mode.
1300 enum MFX_INDIRECT_BITSTREAM_OBJECT__TILED_RESOURCE_MODE
1301 {
1302 MFX_INDIRECT_BITSTREAM_OBJECT_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1303 MFX_INDIRECT_BITSTREAM_OBJECT_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1304 MFX_INDIRECT_BITSTREAM_OBJECT_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1305 };
1306
1307 //! \brief MFX_INDIRECT_MV_OBJECT__ARBITRATION_PRIORITY_CONTROL
1308 //! \details
1309 //! This field controls the priority of arbitration used in the GAC/GAM
1310 //! pipeline for this surface.
1311 enum MFX_INDIRECT_MV_OBJECT__ARBITRATION_PRIORITY_CONTROL
1312 {
1313 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1314 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1315 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1316 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1317 };
1318
1319 //! \brief MFX_INDIRECT_MV_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1320 //! \details
1321 //! <b>For Media Surfaces:</b>
1322 //! This field specifies the tiled resource mode.
1323 enum MFX_INDIRECT_MV_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1324 {
1325 MFX_INDIRECT_MV_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1326 MFX_INDIRECT_MV_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1327 MFX_INDIRECT_MV_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1328 };
1329
1330 //! \brief MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1331 //! \details
1332 //! This field controls the priority of arbitration used in the GAC/GAM
1333 //! pipeline for this surface.
1334 enum MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1335 {
1336 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1337 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1338 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1339 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1340 };
1341
1342 //! \brief MFD_INDIRECT_IT_COEFF__TILED_RESOURCE_MODE
1343 //! \details
1344 //! <b>For Media Surfaces:</b>
1345 //! This field specifies the tiled resource mode.
1346 enum MFD_INDIRECT_IT_COEFF__TILED_RESOURCE_MODE
1347 {
1348 MFD_INDIRECT_IT_COEFF_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1349 MFD_INDIRECT_IT_COEFF_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1350 MFD_INDIRECT_IT_COEFF_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1351 };
1352
1353 //! \brief MFD_INDIRECT_IT_DBLK_OBJECT__ARBITRATION_PRIORITY_CONTROL
1354 //! \details
1355 //! This field controls the priority of arbitration used in the GAC/GAM
1356 //! pipeline for this surface.
1357 enum MFD_INDIRECT_IT_DBLK_OBJECT__ARBITRATION_PRIORITY_CONTROL
1358 {
1359 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1360 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1361 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1362 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1363 };
1364
1365 //! \brief MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1366 //! \details
1367 //! <b>For Media Surfaces:</b>
1368 //! This field specifies the tiled resource mode.
1369 enum MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1370 {
1371 MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1372 MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1373 MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1374 };
1375
1376 //! \brief MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1377 //! \details
1378 //! This field controls the priority of arbitration used in the GAC/GAM
1379 //! pipeline for this surface.
1380 enum MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1381 {
1382 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1383 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1384 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1385 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1386 };
1387
1388 //! \brief MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1389 //! \details
1390 //! <b>For Media Surfaces:</b>
1391 //! This field specifies the tiled resource mode.
1392 enum MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1393 {
1394 MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1395 MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1396 MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1397 };
1398
1399 //! \name Initializations
1400
1401 //! \brief Explicit member initialization function
1402 MFX_IND_OBJ_BASE_ADDR_STATE_CMD();
1403
1404 static const size_t dwSize = 26;
1405 static const size_t byteSize = 104;
1406 };
1407
1408 //!
1409 //! \brief MFX_BSP_BUF_BASE_ADDR_STATE
1410 //! \details
1411 //! This frame-level state command is used to specify all the buffer base
1412 //! addresses needed for the operation of the AVC Bit Stream Processing
1413 //! Units (for decoder, it is BSD Unit; for encoder, it is BSE Unit) For
1414 //! both encoder and decoder, currently it is assumed that all codec
1415 //! standards can share the same BSP_BUF_BASE_STATE. The simplicity of this
1416 //! command is the result of moving all the direct MV related processing
1417 //! into the ENC Subsystem. Since all implicit weight calculations and
1418 //! directMV calculations are done in ENC and all picture buffer management
1419 //! are done in the Host, there is no need to provide POC (POC List -
1420 //! FieldOrderCntList, CurrPic POC - CurrFieldOrderCnt) information to PAK.
1421 //! For decoder, all the direct mode information are sent in a separate
1422 //! slice-level command (AVC_DIRECTMODE_STATE command). In addition, in
1423 //! Encoder, the row stores for CABAC encoding and MB Parameters
1424 //! Construction (MPC) are combined into one single row store. The row
1425 //! stores specified in this command do not combine with those specified in
1426 //! the MFC_PIPE_BUF_ADDR_STATE command for hardware simplification reason.
1427 //!
1428 struct MFX_BSP_BUF_BASE_ADDR_STATE_CMD
1429 {
1430 union
1431 {
1432 //!< DWORD 0
1433 struct
1434 {
1435 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1436 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1437 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
1438 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
1439 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
1440 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1441 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1442 };
1443 uint32_t Value;
1444 } DW0;
1445 union
1446 {
1447 //!< DWORD 1
1448 struct
1449 {
1450 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
1451 uint32_t BsdMpcRowStoreScratchBufferBaseAddressReadWrite : __CODEGEN_BITFIELD( 6, 31) ; //!< BSD/MPC Row Store Scratch Buffer Base Address - Read/Write
1452 };
1453 uint32_t Value;
1454 } DW1;
1455 union
1456 {
1457 //!< DWORD 2
1458 struct
1459 {
1460 uint32_t BsdMpcRowStoreScratchBufferBaseAddressReadWrite4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< BSD/MPC Row Store Scratch Buffer Base Address - Read/Write [47:32]
1461 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1462 };
1463 uint32_t Value;
1464 } DW2;
1465 union
1466 {
1467 //!< DWORD 3
1468 struct
1469 {
1470 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1471 uint32_t BsdMpcRowStoreScratchBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< BSDMPC_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1472 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 11) ; //!< Reserved
1473 uint32_t BsdMpcRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1474 uint32_t BsdMpcRowStoreScratchBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< BSDMPC_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1475 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1476 };
1477 uint32_t Value;
1478 } DW3;
1479 union
1480 {
1481 //!< DWORD 4
1482 struct
1483 {
1484 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
1485 uint32_t MprRowStoreScratchBufferBaseAddressReadWriteDecoderOnly : __CODEGEN_BITFIELD( 6, 31) ; //!< MPR Row Store Scratch Buffer Base Address - Read/Write (Decoder Only)
1486 };
1487 uint32_t Value;
1488 } DW4;
1489 union
1490 {
1491 //!< DWORD 5
1492 struct
1493 {
1494 uint32_t MprRowStoreScratchBufferBaseAddressReadWrite4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MPR Row Store Scratch Buffer Base Address - Read/Write [47:32]
1495 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1496 };
1497 uint32_t Value;
1498 } DW5;
1499 union
1500 {
1501 //!< DWORD 6
1502 struct
1503 {
1504 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1505 uint32_t MprRowStoreScratchBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MPR_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1506 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 11) ; //!< Reserved
1507 uint32_t MprRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1508 uint32_t MprRowStoreScratchBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MPR_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1509 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1510 };
1511 uint32_t Value;
1512 } DW6;
1513 union
1514 {
1515 //!< DWORD 7
1516 struct
1517 {
1518 uint32_t Reserved224 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
1519 uint32_t BitplaneReadBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Bitplane Read Buffer Base Address
1520 };
1521 uint32_t Value;
1522 } DW7;
1523 union
1524 {
1525 //!< DWORD 8
1526 struct
1527 {
1528 uint32_t BitplaneReadBufferBaseAddressReadWrite4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Bitplane Read Buffer Base Address - Read/Write [47:32]
1529 uint32_t Reserved272 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1530 };
1531 uint32_t Value;
1532 } DW8;
1533 union
1534 {
1535 //!< DWORD 9
1536 struct
1537 {
1538 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1539 uint32_t BitplaneReadBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< BITPLANE_READ_BUFFER__ARBITRATION_PRIORITY_CONTROL
1540 uint32_t Reserved297 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1541 uint32_t BitplaneReadBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< BITPLANE_READ_BUFFER__TILED_RESOURCE_MODE
1542 uint32_t Reserved303 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1543 };
1544 uint32_t Value;
1545 } DW9;
1546
1547 //! \name Local enumerations
1548
1549 enum SUBOPCODE_B
1550 {
1551 SUBOPCODE_B_UNNAMED_4 = 4, //!< No additional details
1552 };
1553
1554 enum SUBOPCODE_A
1555 {
1556 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
1557 };
1558
1559 enum MEDIA_COMMAND_OPCODE
1560 {
1561 MEDIA_COMMAND_OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
1562 };
1563
1564 enum PIPELINE
1565 {
1566 PIPELINE_PIPELINE = 2, //!< No additional details
1567 };
1568
1569 enum COMMAND_TYPE
1570 {
1571 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1572 };
1573
1574 //! \brief BSDMPC_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1575 //! \details
1576 //! This field controls the priority of arbitration used in the GAC/GAM
1577 //! pipeline for this surface.
1578 enum BSDMPC_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1579 {
1580 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1581 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1582 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1583 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1584 };
1585
1586 //! \brief BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1587 //! \details
1588 //! This field controls if Intra Row Store is going to store inside Media
1589 //! Internal Storage or to LLC.
1590 enum BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1591 {
1592 BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC
1593 BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage
1594 };
1595
1596 //! \brief BSDMPC_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1597 //! \details
1598 //! <b>For Media Surfaces:</b>
1599 //! This field specifies the tiled resource mode.
1600 enum BSDMPC_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1601 {
1602 BSDMPC_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1603 BSDMPC_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1604 BSDMPC_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1605 };
1606
1607 //! \brief MPR_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1608 //! \details
1609 //! This field controls the priority of arbitration used in the GAC/GAM
1610 //! pipeline for this surface.
1611 enum MPR_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1612 {
1613 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1614 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1615 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1616 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1617 };
1618
1619 //! \brief MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1620 //! \details
1621 //! This field controls if Intra Row Store is going to store inside Media
1622 //! Internal Storage or to LLC.
1623 enum MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1624 {
1625 MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC
1626 MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage
1627 };
1628
1629 //! \brief MPR_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1630 //! \details
1631 //! <b>For Media Surfaces:</b>
1632 //! This field specifies the tiled resource mode.
1633 enum MPR_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1634 {
1635 MPR_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1636 MPR_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1637 MPR_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1638 };
1639
1640 //! \brief BITPLANE_READ_BUFFER__ARBITRATION_PRIORITY_CONTROL
1641 //! \details
1642 //! This field controls the priority of arbitration used in the GAC/GAM
1643 //! pipeline for this surface.
1644 enum BITPLANE_READ_BUFFER__ARBITRATION_PRIORITY_CONTROL
1645 {
1646 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1647 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1648 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1649 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1650 };
1651
1652 //! \brief BITPLANE_READ_BUFFER__TILED_RESOURCE_MODE
1653 //! \details
1654 //! <b>For Media Surfaces:</b>
1655 //! This field specifies the tiled resource mode.
1656 enum BITPLANE_READ_BUFFER__TILED_RESOURCE_MODE
1657 {
1658 BITPLANE_READ_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1659 BITPLANE_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1660 BITPLANE_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1661 };
1662
1663 //! \name Initializations
1664
1665 //! \brief Explicit member initialization function
1666 MFX_BSP_BUF_BASE_ADDR_STATE_CMD();
1667
1668 static const size_t dwSize = 10;
1669 static const size_t byteSize = 40;
1670 };
1671
1672 //!
1673 //! \brief MFD_AVC_PICID_STATE
1674 //! \details
1675 //! This is a frame level state command used for both AVC Long and Short
1676 //! Format in VLD mode.PictureID[16] contains the pictureID of each
1677 //! reference picture (16 maximum) so hardware can uniquely identify the
1678 //! reference picture across frames (this will be used for DMV
1679 //! operation).This command will be needed for both short and long format.
1680 //!
1681 struct MFD_AVC_PICID_STATE_CMD
1682 {
1683 union
1684 {
1685 //!< DWORD 0
1686 struct
1687 {
1688 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1689 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1690 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
1691 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
1692 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
1693 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1694 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1695 };
1696 uint32_t Value;
1697 } DW0;
1698 union
1699 {
1700 //!< DWORD 1
1701 struct
1702 {
1703 uint32_t PictureidRemappingDisable : __CODEGEN_BITFIELD( 0, 0) ; //!< PICTUREID_REMAPPING_DISABLE
1704 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
1705 };
1706 uint32_t Value;
1707 } DW1;
1708
1709 uint32_t Pictureidlist1616Bits[8]; //!< PictureIDList[16][16 bits]
1710
1711
1712 //! \name Local enumerations
1713
1714 enum SUBOPCODE_B
1715 {
1716 SUBOPCODE_B_MEDIA = 5, //!< No additional details
1717 };
1718
1719 enum SUBOPCODE_A
1720 {
1721 SUBOPCODE_A_DEC = 1, //!< No additional details
1722 };
1723
1724 enum MEDIA_COMMAND_OPCODE
1725 {
1726 MEDIA_COMMAND_OPCODE_MFDAVCDPBSTATE = 1, //!< No additional details
1727 };
1728
1729 enum PIPELINE
1730 {
1731 PIPELINE_MFXMULTIDW = 2, //!< No additional details
1732 };
1733
1734 enum COMMAND_TYPE
1735 {
1736 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1737 };
1738
1739 //! \brief PICTUREID_REMAPPING_DISABLE
1740 //! \details
1741 //! If Picture ID Remapping Disable is "1", PictureIDList will not be used.
1742 enum PICTUREID_REMAPPING_DISABLE
1743 {
1744 PICTUREID_REMAPPING_DISABLE_AVCDECODERWILLUSE16BITSPICTUREIDTOHANDLEDMVANDIDENTIFYTHEREFERENCEPICTURE = 0, //!< Desc
1745 PICTUREID_REMAPPING_DISABLE_AVCDECODERWILLUSE_4BITSFRAMESTOREIDINDEXTOREFFRAMELISTTOHANDLEDMVANDIDENTIFYTHEREFERENCEPICTURETHISCAUSESDMVLOGICTOFUNCTIONTHESAMEINPROJECTIVBANDBEFORE = 1, //!< Desc
1746 };
1747
1748 //! \name Initializations
1749
1750 //! \brief Explicit member initialization function
1751 MFD_AVC_PICID_STATE_CMD();
1752
1753 static const size_t dwSize = 10;
1754 static const size_t byteSize = 40;
1755 };
1756
1757 //!
1758 //! \brief MFX_AVC_IMG_STATE
1759 //! \details
1760 //! This must be the very first command to issue after the surface state,
1761 //! the pipe select and base address setting commands. This command supports
1762 //! both Long and Short VLD and IT AVC Decoding Interface.
1763 //!
1764 struct MFX_AVC_IMG_STATE_CMD
1765 {
1766 union
1767 {
1768 //!< DWORD 0
1769 struct
1770 {
1771 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1772 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1773 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
1774 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
1775 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
1776 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1777 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1778 };
1779 uint32_t Value;
1780 } DW0;
1781 union
1782 {
1783 //!< DWORD 1
1784 struct
1785 {
1786 uint32_t FrameSize : __CODEGEN_BITFIELD( 0, 15) ; //!< Frame Size
1787 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1788 };
1789 uint32_t Value;
1790 } DW1;
1791 union
1792 {
1793 //!< DWORD 2
1794 struct
1795 {
1796 uint32_t FrameWidth : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Width
1797 uint32_t Reserved72 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
1798 uint32_t FrameHeight : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Height
1799 uint32_t Reserved88 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1800 };
1801 uint32_t Value;
1802 } DW2;
1803 union
1804 {
1805 //!< DWORD 3
1806 struct
1807 {
1808 uint32_t Reserved96 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved
1809 uint32_t ImgstructImageStructureImgStructure10 : __CODEGEN_BITFIELD( 8, 9) ; //!< IMGSTRUCT__IMAGE_STRUCTURE_IMG_STRUCTURE10
1810 uint32_t WeightedBipredIdc : __CODEGEN_BITFIELD(10, 11) ; //!< WEIGHTED_BIPRED_IDC
1811 uint32_t WeightedPredFlag : __CODEGEN_BITFIELD(12, 12) ; //!< WEIGHTED_PRED_FLAG
1812 uint32_t RhodomainRateControlEnable : __CODEGEN_BITFIELD(13, 13) ; //!< RHODOMAIN_RATE_CONTROL_ENABLE
1813 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1814 uint32_t FirstChromaQpOffset : __CODEGEN_BITFIELD(16, 20) ; //!< First Chroma QP Offset
1815 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 23) ; //!< Reserved
1816 uint32_t SecondChromaQpOffset : __CODEGEN_BITFIELD(24, 28) ; //!< Second Chroma QP Offset
1817 uint32_t Reserved125 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1818 };
1819 uint32_t Value;
1820 } DW3;
1821 union
1822 {
1823 //!< DWORD 4
1824 struct
1825 {
1826 uint32_t Fieldpicflag : __CODEGEN_BITFIELD( 0, 0) ; //!< FIELDPICFLAG
1827 uint32_t Mbaffflameflag : __CODEGEN_BITFIELD( 1, 1) ; //!< MBAFFFLAMEFLAG
1828 uint32_t Framembonlyflag : __CODEGEN_BITFIELD( 2, 2) ; //!< FRAMEMBONLYFLAG
1829 uint32_t Transform8X8Flag : __CODEGEN_BITFIELD( 3, 3) ; //!< TRANSFORM8X8FLAG
1830 uint32_t Direct8X8Infflag : __CODEGEN_BITFIELD( 4, 4) ; //!< DIRECT8X8INFFLAG
1831 uint32_t Constrainedipredflag : __CODEGEN_BITFIELD( 5, 5) ; //!< CONSTRAINEDIPREDFLAG
1832 uint32_t Imgdisposableflag : __CODEGEN_BITFIELD( 6, 6) ; //!< IMGDISPOSABLEFLAG
1833 uint32_t Entropycodingflag : __CODEGEN_BITFIELD( 7, 7) ; //!< ENTROPYCODINGFLAG
1834 uint32_t Mbmvformatflag : __CODEGEN_BITFIELD( 8, 8) ; //!< MBMVFORMATFLAG
1835 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved
1836 uint32_t Chromaformatidc : __CODEGEN_BITFIELD(10, 11) ; //!< CHROMAFORMATIDC
1837 uint32_t Mvunpackedflag : __CODEGEN_BITFIELD(12, 12) ; //!< MVUNPACKEDFLAG
1838 uint32_t Reserved141 : __CODEGEN_BITFIELD(13, 13) ; //!< Reserved
1839 uint32_t Loadslicepointerflag : __CODEGEN_BITFIELD(14, 14) ; //!< LOADSLICEPOINTERFLAG
1840 uint32_t Mbstatenabled : __CODEGEN_BITFIELD(15, 15) ; //!< MBSTATENABLED
1841 uint32_t Minframewsize : __CODEGEN_BITFIELD(16, 31) ; //!< MINFRAMEWSIZE
1842 };
1843 uint32_t Value;
1844 } DW4;
1845 union
1846 {
1847 //!< DWORD 5
1848 struct
1849 {
1850 uint32_t IntrambmaxbitflagIntrambmaxsizereportmask : __CODEGEN_BITFIELD( 0, 0) ; //!< INTRAMBMAXBITFLAG__INTRAMBMAXSIZEREPORTMASK
1851 uint32_t IntermbmaxbitflagIntermbmaxsizereportmask : __CODEGEN_BITFIELD( 1, 1) ; //!< INTERMBMAXBITFLAG__INTERMBMAXSIZEREPORTMASK
1852 uint32_t FrameszoverflagFramebitratemaxreportmask : __CODEGEN_BITFIELD( 2, 2) ; //!< FRAMESZOVERFLAG__FRAMEBITRATEMAXREPORTMASK
1853 uint32_t FrameszunderflagFramebitrateminreportmask : __CODEGEN_BITFIELD( 3, 3) ; //!< FRAMESZUNDERFLAG__FRAMEBITRATEMINREPORTMASK
1854 uint32_t Reserved164 : __CODEGEN_BITFIELD( 4, 6) ; //!< Reserved
1855 uint32_t IntraIntermbipcmflagForceipcmcontrolmask : __CODEGEN_BITFIELD( 7, 7) ; //!< INTRAINTERMBIPCMFLAG__FORCEIPCMCONTROLMASK
1856 uint32_t Reserved168 : __CODEGEN_BITFIELD( 8, 8) ; //!< Reserved
1857 uint32_t MbratectrlflagMbLevelRateControlEnablingFlag : __CODEGEN_BITFIELD( 9, 9) ; //!< MBRATECTRLFLAG__MB_LEVEL_RATE_CONTROL_ENABLING_FLAG
1858 uint32_t Minframewsizeunits : __CODEGEN_BITFIELD(10, 11) ; //!< MINFRAMEWSIZEUNITS
1859 uint32_t Reserved172 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1860 uint32_t Nonfirstpassflag : __CODEGEN_BITFIELD(16, 16) ; //!< NONFIRSTPASSFLAG
1861 uint32_t Reserved177 : __CODEGEN_BITFIELD(17, 26) ; //!< Reserved
1862 uint32_t TrellisQuantizationChromaDisableTqchromadisable : __CODEGEN_BITFIELD(27, 27) ; //!< TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE
1863 uint32_t TrellisQuantizationRoundingTqr : __CODEGEN_BITFIELD(28, 30) ; //!< TRELLIS_QUANTIZATION_ROUNDING_TQR
1864 uint32_t TrellisQuantizationEnabledTqenb : __CODEGEN_BITFIELD(31, 31) ; //!< TRELLIS_QUANTIZATION_ENABLED_TQENB
1865 };
1866 uint32_t Value;
1867 } DW5;
1868 union
1869 {
1870 //!< DWORD 6
1871 struct
1872 {
1873 uint32_t Intrambmaxsz : __CODEGEN_BITFIELD( 0, 11) ; //!< IntraMbMaxSz
1874 uint32_t Reserved204 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1875 uint32_t Intermbmaxsz : __CODEGEN_BITFIELD(16, 27) ; //!< InterMbMaxSz
1876 uint32_t Reserved220 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1877 };
1878 uint32_t Value;
1879 } DW6;
1880 union
1881 {
1882 //!< DWORD 7
1883 struct
1884 {
1885 uint32_t VslTopMbTrans8X8Flag : __CODEGEN_BITFIELD( 0, 0) ; //!< VSL_TOP_MB_TRANS8X8FLAG
1886 uint32_t Reserved225 : __CODEGEN_BITFIELD( 1, 15) ; //!< Reserved
1887 uint32_t BspEncoderEcoEnable : __CODEGEN_BITFIELD(16, 16) ; //!< BSP_ENCODER_ECO_ENABLE
1888 uint32_t Reserved241 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved
1889 };
1890 uint32_t Value;
1891 } DW7;
1892 union
1893 {
1894 //!< DWORD 8
1895 struct
1896 {
1897 uint32_t Slicedeltaqppmax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQpPMax[0]
1898 uint32_t Slicedeltaqpmax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQpMax[1]
1899 uint32_t Slicedeltaqpmax2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQpMax[2]
1900 uint32_t Slicedeltaqpmax3 : __CODEGEN_BITFIELD(24, 31) ; //!< SliceDeltaQpMax[3]
1901 };
1902 uint32_t Value;
1903 } DW8;
1904 union
1905 {
1906 //!< DWORD 9
1907 struct
1908 {
1909 uint32_t Slicedeltaqpmin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQpMin[0]
1910 uint32_t Slicedeltaqpmin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQpMin[1]
1911 uint32_t Slicedeltaqpmin2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQpMin[2]
1912 uint32_t Slicedeltaqpmin3 : __CODEGEN_BITFIELD(24, 31) ; //!< SliceDeltaQpMin[3]
1913 };
1914 uint32_t Value;
1915 } DW9;
1916 union
1917 {
1918 //!< DWORD 10
1919 struct
1920 {
1921 uint32_t Framebitratemin : __CODEGEN_BITFIELD( 0, 13) ; //!< FrameBitRateMin
1922 uint32_t Framebitrateminunitmode : __CODEGEN_BITFIELD(14, 14) ; //!< FRAMEBITRATEMINUNITMODE
1923 uint32_t Framebitrateminunit : __CODEGEN_BITFIELD(15, 15) ; //!< FRAMEBITRATEMINUNIT
1924 uint32_t Framebitratemax : __CODEGEN_BITFIELD(16, 29) ; //!< FrameBitRateMax
1925 uint32_t Framebitratemaxunitmode : __CODEGEN_BITFIELD(30, 30) ; //!< FRAMEBITRATEMAXUNITMODE
1926 uint32_t Framebitratemaxunit : __CODEGEN_BITFIELD(31, 31) ; //!< FRAMEBITRATEMAXUNIT_
1927 };
1928 uint32_t Value;
1929 } DW10;
1930 union
1931 {
1932 //!< DWORD 11
1933 struct
1934 {
1935 uint32_t Framebitratemindelta : __CODEGEN_BITFIELD( 0, 14) ; //!< FrameBitRateMinDelta
1936 uint32_t Reserved367 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1937 uint32_t Framebitratemaxdelta : __CODEGEN_BITFIELD(16, 30) ; //!< FRAMEBITRATEMAXDELTA
1938 uint32_t SliceStatsStreamoutEnable : __CODEGEN_BITFIELD(31, 31) ; //!< Slice Stats Streamout Enable
1939 };
1940 uint32_t Value;
1941 } DW11;
1942 union
1943 {
1944 //!< DWORD 12
1945 struct
1946 {
1947 uint32_t Reserved384 ; //!< Reserved
1948 };
1949 uint32_t Value;
1950 } DW12;
1951 union
1952 {
1953 //!< DWORD 13
1954 struct
1955 {
1956 uint32_t InitialQpValue : __CODEGEN_BITFIELD( 0, 7) ; //!< Initial QP Value
1957 uint32_t NumberOfActiveReferencePicturesFromL0 : __CODEGEN_BITFIELD( 8, 13) ; //!< Number of Active Reference Pictures from L0
1958 uint32_t Reserved430 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1959 uint32_t NumberOfActiveReferencePicturesFromL1 : __CODEGEN_BITFIELD(16, 21) ; //!< Number of Active Reference Pictures from L1
1960 uint32_t Reserved438 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
1961 uint32_t NumberOfReferenceFrames : __CODEGEN_BITFIELD(24, 28) ; //!< Number of Reference Frames
1962 uint32_t CurrentPictureHasPerformedMmco5 : __CODEGEN_BITFIELD(29, 29) ; //!< Current Picture Has Performed MMCO5
1963 uint32_t Reserved446 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1964 };
1965 uint32_t Value;
1966 } DW13;
1967 union
1968 {
1969 //!< DWORD 14
1970 struct
1971 {
1972 uint32_t PicOrderPresentFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< Pic_order_present_flag
1973 uint32_t DeltaPicOrderAlwaysZeroFlag : __CODEGEN_BITFIELD( 1, 1) ; //!< Delta_pic_order_always_zero_flag
1974 uint32_t PicOrderCntType : __CODEGEN_BITFIELD( 2, 3) ; //!< Pic_order_cnt_type
1975 uint32_t Reserved452 : __CODEGEN_BITFIELD( 4, 7) ; //!< Reserved
1976 uint32_t SliceGroupMapType : __CODEGEN_BITFIELD( 8, 10) ; //!< slice_group_map_type
1977 uint32_t RedundantPicCntPresentFlag : __CODEGEN_BITFIELD(11, 11) ; //!< redundant_pic_cnt_present_flag
1978 uint32_t NumSliceGroupsMinus1 : __CODEGEN_BITFIELD(12, 14) ; //!< num_slice_groups_minus1
1979 uint32_t DeblockingFilterControlPresentFlag : __CODEGEN_BITFIELD(15, 15) ; //!< deblocking_filter_control_present_flag
1980 uint32_t Log2MaxFrameNumMinus4 : __CODEGEN_BITFIELD(16, 23) ; //!< Log2_max_frame_num_minus4
1981 uint32_t Log2MaxPicOrderCntLsbMinus4 : __CODEGEN_BITFIELD(24, 31) ; //!< Log2_max_pic_order_cnt_lsb_minus4
1982 };
1983 uint32_t Value;
1984 } DW14;
1985 union
1986 {
1987 //!< DWORD 15
1988 struct
1989 {
1990 uint32_t SliceGroupChangeRate : __CODEGEN_BITFIELD( 0, 15) ; //!< Slice Group Change Rate
1991 uint32_t CurrPicFrameNum : __CODEGEN_BITFIELD(16, 31) ; //!< Curr Pic Frame Num
1992 };
1993 uint32_t Value;
1994 } DW15;
1995 union
1996 {
1997 //!< DWORD 16
1998 struct
1999 {
2000 uint32_t CurrentFrameViewId : __CODEGEN_BITFIELD( 0, 9) ; //!< Current Frame View ID
2001 uint32_t Reserved522 : __CODEGEN_BITFIELD(10, 11) ; //!< Reserved
2002 uint32_t MaxViewIdxl0 : __CODEGEN_BITFIELD(12, 15) ; //!< Max View IDXL0
2003 uint32_t Reserved528 : __CODEGEN_BITFIELD(16, 17) ; //!< Reserved
2004 uint32_t MaxViewIdxl1 : __CODEGEN_BITFIELD(18, 21) ; //!< Max View IDXL1
2005 uint32_t Reserved534 : __CODEGEN_BITFIELD(22, 30) ; //!< Reserved
2006 uint32_t InterViewOrderDisable : __CODEGEN_BITFIELD(31, 31) ; //!< INTER_VIEW_ORDER_DISABLE
2007 };
2008 uint32_t Value;
2009 } DW16;
2010 union
2011 {
2012 //!< DWORD 17
2013 struct
2014 {
2015 uint32_t FractionalQpInput : __CODEGEN_BITFIELD( 0, 2) ; //!< Fractional QP input
2016 uint32_t FractionalQpOffset : __CODEGEN_BITFIELD( 3, 5) ; //!< Fractional QP offset
2017 uint32_t Reserved550 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
2018 uint32_t ExtendedRhodomainStatisticsEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< Extended RhoDomain Statistics Enable
2019 uint32_t Reserved553 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
2020 uint32_t RhodomainAveragemacroblockqp : __CODEGEN_BITFIELD(16, 21) ; //!< RhoDomain AverageMacroblockQP
2021 uint32_t Reserved566 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2022 };
2023 uint32_t Value;
2024 } DW17;
2025 union
2026 {
2027 //!< DWORD 18
2028 struct
2029 {
2030 uint32_t Reserved576 ; //!< Reserved
2031 };
2032 uint32_t Value;
2033 } DW18;
2034 union
2035 {
2036 //!< DWORD 19
2037 struct
2038 {
2039 uint32_t ThresholdSizeInBytes ; //!< Threshold Size in Bytes
2040 };
2041 uint32_t Value;
2042 } DW19;
2043 union
2044 {
2045 //!< DWORD 20
2046 struct
2047 {
2048 uint32_t TargetSliceSizeInBytes ; //!< Target Slice Size in Bytes
2049 };
2050 uint32_t Value;
2051 } DW20;
2052
2053 //! \name Local enumerations
2054
2055 enum SUBOPCODE_B
2056 {
2057 SUBOPCODE_B_UNNAMED0 = 0, //!< No additional details
2058 };
2059
2060 enum SUBOPCODE_A
2061 {
2062 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
2063 };
2064
2065 enum MEDIA_COMMAND_OPCODE
2066 {
2067 MEDIA_COMMAND_OPCODE_AVCCOMMON = 1, //!< No additional details
2068 };
2069
2070 enum PIPELINE
2071 {
2072 PIPELINE_MFXAVCIMGSTATE = 2, //!< No additional details
2073 };
2074
2075 enum COMMAND_TYPE
2076 {
2077 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2078 };
2079
2080 //! \brief IMGSTRUCT__IMAGE_STRUCTURE_IMG_STRUCTURE10
2081 //! \details
2082 //! The current encoding picture structure can only takes on 3 possible
2083 //! values
2084 enum IMGSTRUCT__IMAGE_STRUCTURE_IMG_STRUCTURE10
2085 {
2086 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_FRAMEPICTURE = 0, //!< No additional details
2087 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_TOPFIELDPICTURE = 1, //!< No additional details
2088 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_INVALID_NOTALLOWED = 2, //!< No additional details
2089 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_BOTTOMFIELDPICTURE = 3, //!< No additional details
2090 };
2091
2092 //! \brief WEIGHTED_BIPRED_IDC
2093 //! \details
2094 //! (This field is defined differently from DevSNB; DevIVB follows strictly
2095 //! AVC interface.)
2096 enum WEIGHTED_BIPRED_IDC
2097 {
2098 WEIGHTED_BIPRED_IDC_DEFAULT = 0, //!< Specifies that the default weighted prediction is used for B slices
2099 WEIGHTED_BIPRED_IDC_EXPLICIT = 1, //!< Specifies that explicit weighted prediction is used for B slices
2100 WEIGHTED_BIPRED_IDC_IMPLICIT = 2, //!< Specifies that implicit weighted prediction is used for B slices.
2101 };
2102
2103 //! \brief WEIGHTED_PRED_FLAG
2104 //! \details
2105 //! (This field is defined differently from Gen6, Gen7 follows strictly
2106 //! AVC interface.)
2107 enum WEIGHTED_PRED_FLAG
2108 {
2109 WEIGHTED_PRED_FLAG_DISABLE = 0, //!< specifies that weighted prediction is not used for P and SP slices
2110 WEIGHTED_PRED_FLAG_ENABLE = 1, //!< specifies that weighted prediction is used for P and SP slices
2111 };
2112
2113 //! \brief RHODOMAIN_RATE_CONTROL_ENABLE
2114 //! \details
2115 //! This field indicates if RhoDomain related parameters are present in the
2116 //! MFX_AVC_IMAGE_STATE. (AverageMacroblockQP). It enables the Rho Domain
2117 //! statistics collection.
2118 enum RHODOMAIN_RATE_CONTROL_ENABLE
2119 {
2120 RHODOMAIN_RATE_CONTROL_ENABLE_DISABLE = 0, //!< RhoDomain rate control parameters are not present in MFX_AVC_IMAGE_STATE
2121 RHODOMAIN_RATE_CONTROL_ENABLE_ENABLE = 1, //!< RhoDomain rate control parameters are present in MFX_AVC_IMAGE_STATE.
2122 };
2123
2124 //! \brief FIELDPICFLAG
2125 //! \details
2126 //! Field picture flag, field_pic_flag, specifies the current slice is a
2127 //! coded field or not.It is set to the same value as the syntax element in
2128 //! the Slice Header. It must be consistent with the img_structure[1:0] and
2129 //! the frame_mbs_only_flag settings.Although field_pic_flag is a Slice
2130 //! Header parameter, its value is expected to be the same for all the
2131 //! slices of a picture.
2132 enum FIELDPICFLAG
2133 {
2134 FIELDPICFLAG_FRAME = 0, //!< a slice of a coded frame
2135 FIELDPICFLAG_FIELD = 1, //!< a slice of a coded field
2136 };
2137
2138 //! \brief MBAFFFLAMEFLAG
2139 //! \details
2140 //! MBAFF mode is active, mbaff_frame_flag.It is derived from MbaffFrameFlag
2141 //! = (mb_adaptive_frame_field_flag &amp;&amp; ! field_pic_flag ).
2142 //! mb_adaptive_frame_field_flag is a syntax element in the current active
2143 //! SPS and field_pic_flag is a syntax element in the current Slice Header.
2144 //! They both are present only if frame_mbs_only_flag is 0. Although
2145 //! mbaff_frame_flag is a Slice Header parameter, its value is expected to
2146 //! be the same for all the slices of a picture.It must be consistent with
2147 //! the mb_adaptive_frame_field_flag, the field_pic_flag and the
2148 //! frame_mbs_only_flag settings.This bit is valid only when the
2149 //! img_structure[1:0] indicates the current picture is a frame.
2150 enum MBAFFFLAMEFLAG
2151 {
2152 MBAFFFLAMEFLAG_FALSE = 0, //!< not in MBAFF mode
2153 MBAFFFLAMEFLAG_TRUE = 1, //!< in MBAFF mode
2154 };
2155
2156 //! \brief FRAMEMBONLYFLAG
2157 //! \details
2158 //! Frame MB only flag, frame_mbs_only_flagIt is set to the value of the
2159 //! syntax element in the current active SPS.
2160 enum FRAMEMBONLYFLAG
2161 {
2162 FRAMEMBONLYFLAG_FALSE = 0, //!< not true ; effectively enables the possibility of MBAFF mode.
2163 FRAMEMBONLYFLAG_TRUE = 1, //!< true, only frame MBs can occur in this sequence, hence disallows the MBAFF mode and field picture.
2164 };
2165
2166 //! \brief TRANSFORM8X8FLAG
2167 //! \details
2168 //! 8x8 IDCT Transform Mode Flag, trans8x8_mode_flagSpecifies 8x8 IDCT
2169 //! transform may be used in this pictureIt is set to the value of the
2170 //! syntax element in the current active PPS.
2171 enum TRANSFORM8X8FLAG
2172 {
2173 TRANSFORM8X8FLAG_4X_4 = 0, //!< no 8x8 IDCT Transform, only 4x4 IDCT transform blocks are present
2174 TRANSFORM8X8FLAG_8X8 = 1, //!< 8x8 Transform is allowed
2175 };
2176
2177 //! \brief DIRECT8X8INFFLAG
2178 //! \details
2179 //! Direct 8x8 Inference Flag, direct_8x8_inference_flagIt is set to the
2180 //! value of the syntax element in the current active SPS.It specifies the
2181 //! derivation process for luma motion vectors in the Direct MV coding modes
2182 //! (B_Skip, B_Direct_16x16 and B_Direct_8x8). When frame_mbs_only_flag is
2183 //! equal to 0, direct_8x8_inference_flag shall be equal to 1.It must be
2184 //! consistent with the frame_mbs_only_flag and transform_8x8_mode_flag
2185 //! settings.
2186 enum DIRECT8X8INFFLAG
2187 {
2188 DIRECT8X8INFFLAG_SUBBLOCK = 0, //!< allows subpartitioning to go below 8x8 block size (i.e. 4x4, 8x4 or 4x8)
2189 DIRECT8X8INFFLAG_BLOCK = 1, //!< allows processing only at 8x8 block size. MB Info is stored for 8x8 block size.
2190 };
2191
2192 //! \brief CONSTRAINEDIPREDFLAG
2193 //! \details
2194 //! Constrained Intra Prediction Flag, constrained_ipred_flagIt is set to
2195 //! the value of the syntax element in the current active PPS.
2196 enum CONSTRAINEDIPREDFLAG
2197 {
2198 CONSTRAINEDIPREDFLAG_INTRAANDINTER = 0, //!< allows both intra and inter neighboring MB to be used in the intra-prediction encoding of the current MB.
2199 CONSTRAINEDIPREDFLAG_INTRAONLY = 1, //!< allows only to use neighboring Intra MBs in the intra-prediction encoding of the current MB. If the neighbor is an inter MB, it is considered as not available.
2200 };
2201
2202 //! \brief IMGDISPOSABLEFLAG
2203 //! \details
2204 //! Current Img Disposable Flag or Non-Reference Picture Flag
2205 enum IMGDISPOSABLEFLAG
2206 {
2207 IMGDISPOSABLEFLAG_REFERENCE = 0, //!< the current decoding picture may be used as a reference picture for others
2208 IMGDISPOSABLEFLAG_DISPOSABLE = 1, //!< the current decoding picture is not used as a reference picture (e.g. a B-picture cannot be a reference picture for any subsequent decoding)
2209 };
2210
2211 //! \brief ENTROPYCODINGFLAG
2212 //! \details
2213 //! Entropy Coding Flag, entropy_coding_flag
2214 enum ENTROPYCODINGFLAG
2215 {
2216 ENTROPYCODINGFLAG_CAVLCBIT_SERIALENCODINGMODE = 0, //!< Desc
2217 ENTROPYCODINGFLAG_CABACBIT_SERIALENCODINGMODE = 1, //!< Desc
2218 };
2219
2220 //! \brief MBMVFORMATFLAG
2221 //! \details
2222 //! Use MB level MvFormat flag (Encoder Only)(This bit must be set to zero
2223 //! in IVB:GT2:A0)
2224 enum MBMVFORMATFLAG
2225 {
2226 MBMVFORMATFLAG_IGNORE = 0, //!< HW PAK ignore MvFormat in the MB data. When bit 12 == 0, all MBs use packed MV formatWhen bit 12 == 1, each MB data must use unpacked MV format, 8MV when there is no minor MV involved, and 32MV if there are some minor motion vector.
2227 MBMVFORMATFLAG_FOLLOW = 1, //!< HW PAK will follow MvFormat value set within each MB data.
2228 };
2229
2230 //! \brief CHROMAFORMATIDC
2231 //! \details
2232 //! Chroma Format IDC, ChromaFormatIdc[1:0]It specifies the sampling of
2233 //! chroma component (Cb, Cr) in the current picture as follows :
2234 enum CHROMAFORMATIDC
2235 {
2236 CHROMAFORMATIDC_MONOCHROMEPICTURE = 0, //!< Desc
2237 CHROMAFORMATIDC_420PICTURE = 1, //!< Desc
2238 CHROMAFORMATIDC_422PICTURENOTSUPPORTED = 2, //!< No additional details
2239 CHROMAFORMATIDC_4_4_4PICTURENOTSUPPORTED = 3, //!< No additional details
2240 };
2241
2242 //! \brief MVUNPACKEDFLAG
2243 //! \details
2244 //! MVUnPackedEnable (Encoder Only)This field is reserved in Decode mode.
2245 enum MVUNPACKEDFLAG
2246 {
2247 MVUNPACKEDFLAG_PACKED = 0, //!< use packed MV format
2248 MVUNPACKEDFLAG_UNPACKED = 1, //!< use unpacked 8MV/32MV format only
2249 };
2250
2251 //! \brief LOADSLICEPOINTERFLAG
2252 //! \details
2253 //! LoadBitStreamPointerPerSlice (Encoder-only)To support multiple slice
2254 //! picture and additional header/data insertion before and after an encoded
2255 //! slice.When this field is set to 0, bitstream pointer is only loaded once
2256 //! for the first slice of a frame. For subsequent slices in the frame,
2257 //! bitstream data are stitched together to form a single output data
2258 //! stream.When this field is set to 1, bitstream pointer is loaded for each
2259 //! slice of a frame. Basically bitstream data for different slices of a
2260 //! frame will be written to different memory locations.
2261 enum LOADSLICEPOINTERFLAG
2262 {
2263 LOADSLICEPOINTERFLAG_DISABLE = 0, //!< Load BitStream Pointer only once for the first slice of a frame
2264 LOADSLICEPOINTERFLAG_ENABLE = 1, //!< Load/reload BitStream Pointer only once for the each slice, reload the start location of the bitstream buffer from the Indirect PAK-BSE Object Data Start Address field
2265 };
2266
2267 //! \brief MBSTATENABLED
2268 //! \details
2269 //! <p>Enable reading in MB status buffer (a.k.a. encoding stream-out
2270 //! buffer) Note: For multi-pass encoder, all passes except the first one
2271 //! need to set this value to 1. By setting the first pass to 0, it does
2272 //! save some memory bandwidth.</p>
2273 //! <p><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif;
2274 //! line-height: normal;">In VDenc mode this must be set to zero as no MB
2275 //! level rate control is used. </span></p>
2276 enum MBSTATENABLED
2277 {
2278 MBSTATENABLED_DISABLE = 0, //!< Disable Reading of Macroblock Status Buffer
2279 MBSTATENABLED_ENABLE = 1, //!< Enable Reading of Macroblock Status Buffer
2280 };
2281
2282 //! \brief MINFRAMEWSIZE
2283 //! \details
2284 //! <p><b>Minimum Frame Size [15:0] (in Word, 16-bit)(Encoder Only)</b>
2285 //! Mininum Frame Size is specified to compensate for intel Rate
2286 //! Control Currently zero fill (no need to perform emulation byte
2287 //! insertion) is done
2288 //! only to the end of the CABAC_ZERO_WORD insertion (if any) at the
2289 //! last slice of a
2290 //! picture. Intel encoder parameter. The caller
2291 //! should always make
2292 //! sure that the value, represented by Mininum Frame Size, is always
2293 //! less than maximum
2294 //! frame size <b>FrameBitRateMax (DWORD 10 bits</b> 29:16).This field
2295 //! is reserved in
2296 //! Decode mode.</p>
2297 //! <p>The programmable range 0…2^18-1</p>
2298 //! <p>When MinFrameWSizeUnits is 00.</p>
2299 //! <p>Programmable range is 0…2^20-1 when MinFrameWSizeUnits is
2300 //! 01.</p>
2301 //! <p>Programmable range is 0…2^26-1 when MinFrameWSizeUnits is
2302 //! 10.</p>
2303 //! <p>Programmable range is 0…2^32-1 when MinFrameWSizeUnits is
2304 //! 11.</p>
2305 enum MINFRAMEWSIZE
2306 {
2307 MINFRAMEWSIZE_UNNAMED0 = 0, //!< No additional details
2308 };
2309
2310 //! \brief INTRAMBMAXBITFLAG__INTRAMBMAXSIZEREPORTMASK
2311 //! \details
2312 //! This is a mask bit controlling if the condition of any intra MB in the
2313 //! frame exceeds IntraMBMaxSize.
2314 enum INTRAMBMAXBITFLAG__INTRAMBMAXSIZEREPORTMASK
2315 {
2316 INTRAMBMAXBITFLAG_INTRAMBMAXSIZEREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2317 INTRAMBMAXBITFLAG_INTRAMBMAXSIZEREPORTMASK_ENABLE = 1, //!< set bit0 of MFC_IMAGE_STATUS control register if the total bit counter for the current MB is greater than the Intra MB Conformance Max size limit.
2318 };
2319
2320 //! \brief INTERMBMAXBITFLAG__INTERMBMAXSIZEREPORTMASK
2321 //! \details
2322 //! This is a mask bit controlling if the condition of any inter MB in the
2323 //! frame exceeds InterMBMaxSize.
2324 enum INTERMBMAXBITFLAG__INTERMBMAXSIZEREPORTMASK
2325 {
2326 INTERMBMAXBITFLAG_INTERMBMAXSIZEREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2327 INTERMBMAXBITFLAG_INTERMBMAXSIZEREPORTMASK_ENABLE = 1, //!< Set bit0 of MFC_IMAGE_STATUS control register if the total bit counter for the current MB is greater than the Inter MB Conformance Max size limit.
2328 };
2329
2330 //! \brief FRAMESZOVERFLAG__FRAMEBITRATEMAXREPORTMASK
2331 //! \details
2332 //! This is a mask bit controlling if the condition of frame level bit count
2333 //! exceeds FrameBitRateMax.
2334 enum FRAMESZOVERFLAG__FRAMEBITRATEMAXREPORTMASK
2335 {
2336 FRAMESZOVERFLAG_FRAMEBITRATEMAXREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2337 FRAMESZOVERFLAG_FRAMEBITRATEMAXREPORTMASK_ENABLE = 1, //!< Set bit0 and bit 1 of MFC_IMAGE_STATUS control register if the total frame level bit counter is greater than or equal to Frame Bit rate Maximum limit.
2338 };
2339
2340 //! \brief FRAMESZUNDERFLAG__FRAMEBITRATEMINREPORTMASK
2341 //! \details
2342 //! This is a mask bit controlling if the condition of frame level bit count
2343 //! is less than FrameBitRateMin
2344 enum FRAMESZUNDERFLAG__FRAMEBITRATEMINREPORTMASK
2345 {
2346 FRAMESZUNDERFLAG_FRAMEBITRATEMINREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2347 FRAMESZUNDERFLAG_FRAMEBITRATEMINREPORTMASK_ENABLE = 1, //!< set bit0 and bit 1of MFC_IMAGE_STATUS control register if the total frame level bit counter is less than or equal to Frame Bit rate Minimum limit.
2348 };
2349
2350 //! \brief INTRAINTERMBIPCMFLAG__FORCEIPCMCONTROLMASK
2351 //! \details
2352 //! This field is to Force <b>IPCM</b> for Intra or Inter Macroblock size
2353 //! conformance mask.
2354 enum INTRAINTERMBIPCMFLAG__FORCEIPCMCONTROLMASK
2355 {
2356 INTRAINTERMBIPCMFLAG_FORCEIPCMCONTROLMASK_DISABLE = 0, //!< Do not change intra or Inter macroblocks even
2357 INTRAINTERMBIPCMFLAG_FORCEIPCMCONTROLMASK_ENABLE = 1, //!< Change intra or Inter macroblocks MB_type to IPCM
2358 };
2359
2360 //! \brief MBRATECTRLFLAG__MB_LEVEL_RATE_CONTROL_ENABLING_FLAG
2361 //! \details
2362 //! <p>MB Rate Control conformance mask</p>
2363 //! <p>In VDenc mode, this field must be zero as frame level rate control is
2364 //! used.</p>
2365 enum MBRATECTRLFLAG__MB_LEVEL_RATE_CONTROL_ENABLING_FLAG
2366 {
2367 MBRATECTRLFLAG_MB_LEVEL_RATE_CONTROL_ENABLING_FLAG_DISABLE = 0, //!< Apply accumulative delta QP for consecutive passes on top of the macroblock QP values in inline data
2368 MBRATECTRLFLAG_MB_LEVEL_RATE_CONTROL_ENABLING_FLAG_ENABLE = 1, //!< Apply RC QP delta to suggested QP values in Macroblock Status Buffer except the first pass.
2369 };
2370
2371 //! \brief MINFRAMEWSIZEUNITS
2372 //! \details
2373 //! This field is the Minimum Frame Size Units
2374 enum MINFRAMEWSIZEUNITS
2375 {
2376 MINFRAMEWSIZEUNITS_COMPATIBILITYMODE = 0, //!< Minimum Frame Size is in old mode (words, 2bytes)
2377 MINFRAMEWSIZEUNITS_16BYTE = 1, //!< Minimum Frame Size is in 16bytes
2378 MINFRAMEWSIZEUNITS_4KB = 2, //!< Minimum Frame Size is in 4Kbytes
2379 MINFRAMEWSIZEUNITS_16KB = 3, //!< Minimum Frame Size is in 16Kbytes
2380 };
2381
2382 //! \brief NONFIRSTPASSFLAG
2383 //! \details
2384 //! This signals the current pass is not the first pass. It will imply
2385 //! designate HW behavior: e.g
2386 enum NONFIRSTPASSFLAG
2387 {
2388 NONFIRSTPASSFLAG_DISABLE = 0, //!< Always use the MbQpY from initial PAK inline object for all passes of PAK
2389 NONFIRSTPASSFLAG_ENABLE = 1, //!< Use MbQpY from stream-out buffer if MbRateCtrlFlag is set to 1
2390 };
2391
2392 //! \brief TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE
2393 //! \details
2394 //! This signal is used to disable chroma TQ. To enable TQ for both luma and
2395 //! chroma, TQEnb=1, TQChromaDisable=0. To enable TQ only for luma, TQEnb=1,
2396 //! TQChromaDisable=1.
2397 enum TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE
2398 {
2399 TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE_UNNAMED0 = 0, //!< Enable Trellis Quantization chroma
2400 TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE_DEFAULT = 1, //!< Disable Trellis Quantization chroma
2401 };
2402
2403 //! \brief TRELLIS_QUANTIZATION_ROUNDING_TQR
2404 //! \details
2405 //! This rounding scheme is only applied to the quantized coefficients
2406 //! ranging from 0 to 1 when TQEnb is set to 1 in AVC CABAC mode. One of the
2407 //! following values is added to quantized coefficients before truncating
2408 //! fractional part.
2409 enum TRELLIS_QUANTIZATION_ROUNDING_TQR
2410 {
2411 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED0 = 0, //!< Add 1/8
2412 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED1 = 1, //!< Add 2/8
2413 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED2 = 2, //!< Add 3/8
2414 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED3 = 3, //!< Add 4/8 (rounding 0.5)
2415 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED_4 = 4, //!< Add 5/8
2416 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED5 = 5, //!< Add 6/8
2417 TRELLIS_QUANTIZATION_ROUNDING_TQR_DEFAULT = 6, //!< Add 7/8 (Default rounding 0.875)
2418 };
2419
2420 //! \brief TRELLIS_QUANTIZATION_ENABLED_TQENB
2421 //! \details
2422 //! The TQ improves output video quality of AVC CABAC encoder by selecting
2423 //! quantized values for each non-zero coefficient so as to minimize the
2424 //! total R-D cost.This flag is only valid AVC CABAC mode. Otherwise, this
2425 //! flag should be disabled.
2426 enum TRELLIS_QUANTIZATION_ENABLED_TQENB
2427 {
2428 TRELLIS_QUANTIZATION_ENABLED_TQENB_DISABLE = 0, //!< Use Normal
2429 TRELLIS_QUANTIZATION_ENABLED_TQENB_ENABLE = 1, //!< Use Trellis quantization
2430 };
2431
2432 enum VSL_TOP_MB_TRANS8X8FLAG
2433 {
2434 VSL_TOP_MB_TRANS8X8FLAG_DISABLE = 0, //!< VSL will only fetch the current MB data.
2435 VSL_TOP_MB_TRANS8X8FLAG_ENABLE = 1, //!< When this bit is set VSL will make extra fetch to memory to fetch the MB data for top MB.
2436 };
2437
2438 //! \brief BSP_ENCODER_ECO_ENABLE
2439 //! \details
2440 //! <p>Enable AVC Encoder BSP Bit Outstanding ECO</p>
2441 //! <p>This bit must be same as bit9 of Dword2 of MFX_PIPE_MODE_SELECT</p>
2442 enum BSP_ENCODER_ECO_ENABLE
2443 {
2444 BSP_ENCODER_ECO_ENABLE_DISABLE = 0, //!< No additional details
2445 BSP_ENCODER_ECO_ENABLE_ENABLE = 1, //!< No additional details
2446 };
2447
2448 //! \brief FRAMEBITRATEMINUNITMODE
2449 //! \details
2450 //! This field is the Frame Bitrate Minimum Limit Units.
2451 enum FRAMEBITRATEMINUNITMODE
2452 {
2453 FRAMEBITRATEMINUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
2454 FRAMEBITRATEMINUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
2455 };
2456
2457 //! \brief FRAMEBITRATEMINUNIT
2458 //! \details
2459 //! This field is the Frame Bitrate Minimum Limit Units.
2460 enum FRAMEBITRATEMINUNIT
2461 {
2462 FRAMEBITRATEMINUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMinUnitMode is 1 and in units of 128 Bytes if FrameBitrateMinUnitMode is 0
2463 FRAMEBITRATEMINUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
2464 };
2465
2466 //! \brief FRAMEBITRATEMAXUNITMODE
2467 //! \details
2468 //! This field is the Frame Bitrate Maximum Limit Units.
2469 enum FRAMEBITRATEMAXUNITMODE
2470 {
2471 FRAMEBITRATEMAXUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
2472 FRAMEBITRATEMAXUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
2473 };
2474
2475 //! \brief FRAMEBITRATEMAXUNIT_
2476 //! \details
2477 //! This field is the Frame Bitrate Maximum Limit Units.
2478 enum FRAMEBITRATEMAXUNIT_
2479 {
2480 FRAMEBITRATEMAXUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMaxUnitMode is 1 and in units of 128 Bytes if FrameBitrateMaxUnitMode is 0
2481 FRAMEBITRATEMAXUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
2482 };
2483
2484 //! \brief FRAMEBITRATEMAXDELTA
2485 //! \details
2486 //! This field is used to select the slice delta QP when FrameBitRateMax Is
2487 //! exceeded. It shares the same FrameBitrateMaxUnit. When
2488 //! FrameBitrateMaxUnitMode is 0(compatibility mode) bits 16:27 should be
2489 //! used, bits 28, 29 and 30 should be 0.
2490 enum FRAMEBITRATEMAXDELTA
2491 {
2492 FRAMEBITRATEMAXDELTA_UNNAMED0 = 0, //!< No additional details
2493 };
2494
2495 enum VAD_ERROR_LOGIC
2496 {
2497 VAD_ERROR_LOGIC_ENABLE = 0, //!< Error reporting ON in case of premature Slice done
2498 VAD_ERROR_LOGIC_DISABLE = 1, //!< CABAC Engine will auto decode the bitstream in case of premature slice done.
2499 };
2500
2501 //! \brief INTER_VIEW_ORDER_DISABLE
2502 //! \details
2503 //! It indicates how to append inter-view picture into initial sorted
2504 //! reference list. (due to ambiguity in the MVC Spec)
2505 enum INTER_VIEW_ORDER_DISABLE
2506 {
2507 INTER_VIEW_ORDER_DISABLE_DEFAULT = 0, //!< View Order Ascending
2508 INTER_VIEW_ORDER_DISABLE_DISABLE = 1, //!< View ID Ascending
2509 };
2510
2511 //! \name Initializations
2512
2513 //! \brief Explicit member initialization function
2514 MFX_AVC_IMG_STATE_CMD();
2515
2516 static const size_t dwSize = 21;
2517 static const size_t byteSize = 84;
2518 };
2519
2520 //!
2521 //! \brief MFX_AVC_REF_IDX_STATE
2522 //! \details
2523 //! This is a slice level command and can be issued multiple times within a
2524 //! picture that is comprised of multiple slices. The same command is used
2525 //! for AVC encoder (PAK mode) and decoder (VLD mode); it is not need in
2526 //! decoder IT mode. The inline data of this command is interpreted
2527 //! differently for encoder as for decoder. For decoder, it is interpreted
2528 //! as RefIdx List L0/L1 as in AVC spec., and it matches with the AVC
2529 //! API data structure for decoder in VLD mode : RefPicList[2][32] (L0:L1,
2530 //! 0:31 RefPic). But for encoder, it is interpreted as a Reference Index
2531 //! Mapping Table for L0 and L1 reference pictures. For packing the bits at
2532 //! the output of PAK, the syntax elements must follow the definition of
2533 //! RefIdxL0/L1 list according to the AVC spec. However, the decoder
2534 //! pipeline was designed to use a variation of that standard definition, as
2535 //! such a conversion (mapping) is needed to support the hardware design.
2536 //! The Reference lists are needed in processing both P and B slice in AVC
2537 //! codec. For P-MB, only L0 list is used; for B-MB both L0 and L1 lists are
2538 //! needed. For a B-MB that is coded in L1-only Prediction, only L1 list is
2539 //! used.
2540 //!
2541 //! Specifies that an application will create the RefPicList L0 and L1
2542 //! and pass onto the driver. The content of each entry of RefPicList
2543 //! L0/L1[ ] is a 7-bit picture index. This picture index is the same as
2544 //! that of RefFrameList[ ] content. This picture index, however, is not
2545 //! defined the same as the frame store ID (0 to 16, 5-bits) we have
2546 //! implemented in H/W. Hence, driver is required to manage a table to
2547 //! convert between picture index and intel frame store ID. As such,
2548 //! the final RefPicList L0/L1[ ] that the driver passes onto the H/W is not
2549 //! the same as that defined.
2550 //!
2551 struct MFX_AVC_REF_IDX_STATE_CMD
2552 {
2553 union
2554 {
2555 //!< DWORD 0
2556 struct
2557 {
2558 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2559 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2560 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
2561 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
2562 uint32_t CommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMAND_OPCODE
2563 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2564 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2565 };
2566 uint32_t Value;
2567 } DW0;
2568 union
2569 {
2570 //!< DWORD 1
2571 struct
2572 {
2573 uint32_t RefpiclistSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< REFPICLIST_SELECT
2574 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
2575 };
2576 uint32_t Value;
2577 } DW1;
2578
2579 uint32_t ReferenceListEntry[8]; //!< Reference List Entry
2580
2581
2582 //! \name Local enumerations
2583
2584 enum SUBOPCODEB
2585 {
2586 SUBOPCODEB_MFXAVCREFIDXSTATE = 4, //!< No additional details
2587 };
2588
2589 enum SUBOPCODEA
2590 {
2591 SUBOPCODEA_MFXAVCREFIDXSTATE = 0, //!< No additional details
2592 };
2593
2594 enum COMMAND_OPCODE
2595 {
2596 COMMAND_OPCODE_AVC = 1, //!< No additional details
2597 };
2598
2599 enum PIPELINE
2600 {
2601 PIPELINE_MFXAVCREFIDXSTATE = 2, //!< No additional details
2602 };
2603
2604 enum COMMAND_TYPE
2605 {
2606 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2607 };
2608
2609 //! \brief REFPICLIST_SELECT
2610 //! \details
2611 //! <p>Num_ref_idx_l1_active is resulted from the specifications in both PPS
2612 //! and Slice Header for the current slice. However, since the full
2613 //! reference list L0 and/or L1 are always sent, only present flags are
2614 //! specified instead.</p>
2615 //! <p>This parameter is specified for Intel interface only.</p>
2616 enum REFPICLIST_SELECT
2617 {
2618 REFPICLIST_SELECT_REFPICLIST0 = 0, //!< The list that followed represents RefList L0 (Decoder VLD mode) or Ref Idx Mapping Table L0 (Encoder PAK mode)
2619 REFPICLIST_SELECT_REFPICLIST1 = 1, //!< The list that followed represents RefList L1 (Decoder VLD mode) or Ref Idx Mapping Table L1 (Encoder PAK mode)
2620 };
2621
2622 //! \name Initializations
2623
2624 //! \brief Explicit member initialization function
2625 MFX_AVC_REF_IDX_STATE_CMD();
2626
2627 static const size_t dwSize = 10;
2628 static const size_t byteSize = 40;
2629 };
2630
2631 //!
2632 //! \brief MFX_AVC_WEIGHTOFFSET_STATE
2633 //! \details
2634 //! This is a slice level command and can be issued multiple times within a
2635 //! picture that is comprised of multiple slices. The same command is used
2636 //! for AVC encoder (PAK mode) and decoder (VLD and IT modes). However,
2637 //! since for AVC decoder VLD and IT modes, and AVC encoder mode, the
2638 //! implicit weights are computed in hardware, this command is not issued.
2639 //! For encoder, regardless of the type of weight calculation is active for
2640 //! the current slice (default, implicit or explicit), they are all sent to
2641 //! the PAK as if they were all in explicit mode. However, for implicit
2642 //! weight and offset, each entry contains only a 16-bit weight and no
2643 //! offset (offset = 0 always in implicit mode and can be hard-coded inside
2644 //! the hardware).The weights (and offsets) are needed in processing both P
2645 //! and B slice in AVC codec. For P-MB, at most only L0 list is used; for
2646 //! B-MB both L0 and L1 lists may be needed. For a B-MB that is coded in
2647 //! L1-only Prediction, only L1 list is sent.The content of this command
2648 //! matches with the AVC API data structure for explicit prediction
2649 //! mode only : Weights[2][32][3][2] (L0:L1, 0:31 RefPic, Y:Cb:Cr, W:0)
2650 //!
2651 struct MFX_AVC_WEIGHTOFFSET_STATE_CMD
2652 {
2653 union
2654 {
2655 //!< DWORD 0
2656 struct
2657 {
2658 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2659 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2660 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
2661 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
2662 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
2663 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2664 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2665 };
2666 uint32_t Value;
2667 } DW0;
2668 union
2669 {
2670 //!< DWORD 1
2671 struct
2672 {
2673 uint32_t WeightAndOffsetSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< WEIGHT_AND_OFFSET_SELECT
2674 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
2675 };
2676 uint32_t Value;
2677 } DW1;
2678
2679 uint32_t Weightoffset[96]; //!< WeightOffset
2680
2681
2682 //! \name Local enumerations
2683
2684 enum SUBOPCODE_B
2685 {
2686 SUBOPCODE_B_UNNAMED5 = 5, //!< No additional details
2687 };
2688
2689 enum SUBOPCODE_A
2690 {
2691 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
2692 };
2693
2694 enum MEDIA_COMMAND_OPCODE
2695 {
2696 MEDIA_COMMAND_OPCODE_AVCCOMMON = 1, //!< No additional details
2697 };
2698
2699 enum PIPELINE
2700 {
2701 PIPELINE_MFXAVCWEIGHTOFFSETSTATE = 2, //!< No additional details
2702 };
2703
2704 enum COMMAND_TYPE
2705 {
2706 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2707 };
2708
2709 //! \brief WEIGHT_AND_OFFSET_SELECT
2710 //! \details
2711 //! It must be set in consistent with the WeightedPredFlag and
2712 //! WeightedBiPredIdc in the Img_State command.
2713 //! This parameter is specified for Intel interface only
2714 //! For implicit even though only one entry may be used, still loading
2715 //! the whole 32-entry table.
2716 enum WEIGHT_AND_OFFSET_SELECT
2717 {
2718 WEIGHT_AND_OFFSET_SELECT_WEIGHTANDOFFSETL0TABLE = 0, //!< The list that followed is associated with the weight and offset for RefPicList L0
2719 WEIGHT_AND_OFFSET_SELECT_WEIGHTANDOFFSETL1TABLE = 1, //!< The list that followed is associated with the weight and offset for RefPicList L1
2720 };
2721
2722 //! \name Initializations
2723
2724 //! \brief Explicit member initialization function
2725 MFX_AVC_WEIGHTOFFSET_STATE_CMD();
2726
2727 static const size_t dwSize = 98;
2728 static const size_t byteSize = 392;
2729 };
2730
2731 //!
2732 //! \brief MFX_AVC_SLICE_STATE
2733 //! \details
2734 //! This is a slice level command and can be issued multiple times within a
2735 //! picture that is comprised of multiple slices. The same command is used
2736 //! for AVC encoder (PAK mode) and decoder (VLD and IT modes).
2737 //!
2738 //! In VDEnc mode, this command is programmed for every super-slice. However
2739 //! not all parameters are allowed to change across super-slices.
2740 //!
2741 //! MFX_AVC_SLICE_STATE command is not issued for AVC Short Format
2742 //! Bitstream decode, instead MFD_AVC_SLICEADDR command is executed to
2743 //! retrieve the next slice MB Start Address X and Y by H/W itself.
2744 //!
2745 struct MFX_AVC_SLICE_STATE_CMD
2746 {
2747 union
2748 {
2749 //!< DWORD 0
2750 struct
2751 {
2752 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2753 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2754 uint32_t CommandSubopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< COMMAND_SUBOPCODEB
2755 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
2756 uint32_t CommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMAND_OPCODE
2757 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2758 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2759 };
2760 uint32_t Value;
2761 } DW0;
2762 union
2763 {
2764 //!< DWORD 1
2765 struct
2766 {
2767 uint32_t SliceType : __CODEGEN_BITFIELD( 0, 3) ; //!< SLICE_TYPE
2768 uint32_t Reserved36 : __CODEGEN_BITFIELD( 4, 31) ; //!< Reserved
2769 };
2770 uint32_t Value;
2771 } DW1;
2772 union
2773 {
2774 //!< DWORD 2
2775 struct
2776 {
2777 uint32_t Log2WeightDenomLuma : __CODEGEN_BITFIELD( 0, 2) ; //!< Log 2 Weight Denom Luma
2778 uint32_t Reserved67 : __CODEGEN_BITFIELD( 3, 7) ; //!< Reserved
2779 uint32_t Log2WeightDenomChroma : __CODEGEN_BITFIELD( 8, 10) ; //!< Log 2 Weight Denom Chroma
2780 uint32_t Reserved75 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
2781 uint32_t NumberOfReferencePicturesInInterPredictionList0 : __CODEGEN_BITFIELD(16, 21) ; //!< Number of Reference Pictures in Inter-prediction List 0
2782 uint32_t Reserved86 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
2783 uint32_t NumberOfReferencePicturesInInterPredictionList1 : __CODEGEN_BITFIELD(24, 29) ; //!< Number of Reference Pictures in Inter-prediction List 1
2784 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
2785 };
2786 uint32_t Value;
2787 } DW2;
2788 union
2789 {
2790 //!< DWORD 3
2791 struct
2792 {
2793 uint32_t SliceAlphaC0OffsetDiv2 : __CODEGEN_BITFIELD( 0, 3) ; //!< Slice Alpha C0 Offset Div2
2794 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 7) ; //!< Reserved
2795 uint32_t SliceBetaOffsetDiv2 : __CODEGEN_BITFIELD( 8, 11) ; //!< Slice Beta Offset Div2
2796 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2797 uint32_t SliceQuantizationParameter : __CODEGEN_BITFIELD(16, 21) ; //!< Slice Quantization Parameter
2798 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
2799 uint32_t CabacInitIdc10 : __CODEGEN_BITFIELD(24, 25) ; //!< Cabac Init Idc[1:0]
2800 uint32_t Reserved122 : __CODEGEN_BITFIELD(26, 26) ; //!< Reserved
2801 uint32_t DisableDeblockingFilterIndicator : __CODEGEN_BITFIELD(27, 28) ; //!< DISABLE_DEBLOCKING_FILTER_INDICATOR
2802 uint32_t DirectPredictionType : __CODEGEN_BITFIELD(29, 29) ; //!< DIRECT_PREDICTION_TYPE
2803 uint32_t WeightedPredictionIndicator : __CODEGEN_BITFIELD(30, 31) ; //!< Weighted Prediction Indicator
2804 };
2805 uint32_t Value;
2806 } DW3;
2807 union
2808 {
2809 //!< DWORD 4
2810 struct
2811 {
2812 uint32_t SliceStartMbNum : __CODEGEN_BITFIELD( 0, 14) ; //!< Slice Start Mb Num
2813 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
2814 uint32_t SliceHorizontalPosition : __CODEGEN_BITFIELD(16, 23) ; //!< Slice Horizontal Position
2815 uint32_t SliceVerticalPosition : __CODEGEN_BITFIELD(24, 31) ; //!< Slice Vertical Position
2816 };
2817 uint32_t Value;
2818 } DW4;
2819 union
2820 {
2821 //!< DWORD 5
2822 struct
2823 {
2824 uint32_t NextSliceHorizontalPosition : __CODEGEN_BITFIELD( 0, 8) ; //!< Next Slice Horizontal Position
2825 uint32_t Reserved168 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
2826 uint32_t NextSliceVerticalPosition : __CODEGEN_BITFIELD(16, 24) ; //!< Next Slice Vertical Position
2827 uint32_t Reserved184 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
2828 };
2829 uint32_t Value;
2830 } DW5;
2831 union
2832 {
2833 //!< DWORD 6
2834 struct
2835 {
2836 uint32_t StreamId10 : __CODEGEN_BITFIELD( 0, 1) ; //!< Stream ID [1:0]
2837 uint32_t Reserved194 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
2838 uint32_t SliceId30 : __CODEGEN_BITFIELD( 4, 7) ; //!< Slice ID [3:0]
2839 uint32_t Reserved200 : __CODEGEN_BITFIELD( 8, 11) ; //!< Reserved
2840 uint32_t Cabaczerowordinsertionenable : __CODEGEN_BITFIELD(12, 12) ; //!< CABACZEROWORDINSERTIONENABLE
2841 uint32_t Emulationbytesliceinsertenable : __CODEGEN_BITFIELD(13, 13) ; //!< EMULATIONBYTESLICEINSERTENABLE
2842 uint32_t Reserved206 : __CODEGEN_BITFIELD(14, 14) ; //!< Reserved
2843 uint32_t TailInsertionPresentInBitstream : __CODEGEN_BITFIELD(15, 15) ; //!< TAIL_INSERTION_PRESENT_IN_BITSTREAM
2844 uint32_t SlicedataInsertionPresentInBitstream : __CODEGEN_BITFIELD(16, 16) ; //!< SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM
2845 uint32_t HeaderInsertionPresentInBitstream : __CODEGEN_BITFIELD(17, 17) ; //!< HEADER_INSERTION_PRESENT_IN_BITSTREAM
2846 uint32_t Reserved210 : __CODEGEN_BITFIELD(18, 18) ; //!< Reserved
2847 uint32_t IsLastSlice : __CODEGEN_BITFIELD(19, 19) ; //!< IS_LAST_SLICE
2848 uint32_t MbTypeSkipConversionDisable : __CODEGEN_BITFIELD(20, 20) ; //!< MB_TYPE_SKIP_CONVERSION_DISABLE
2849 uint32_t MbTypeDirectConversionDisable : __CODEGEN_BITFIELD(21, 21) ; //!< MB_TYPE_DIRECT_CONVERSION_DISABLE
2850 uint32_t RcPanicType : __CODEGEN_BITFIELD(22, 22) ; //!< RC_PANIC_TYPE
2851 uint32_t RcPanicEnable : __CODEGEN_BITFIELD(23, 23) ; //!< RC_PANIC_ENABLE
2852 uint32_t RcStableTolerance : __CODEGEN_BITFIELD(24, 27) ; //!< RC Stable Tolerance
2853 uint32_t RcTriggleMode : __CODEGEN_BITFIELD(28, 29) ; //!< RC_TRIGGLE_MODE
2854 uint32_t Resetratecontrolcounter : __CODEGEN_BITFIELD(30, 30) ; //!< RESETRATECONTROLCOUNTER
2855 uint32_t RateControlCounterEnable : __CODEGEN_BITFIELD(31, 31) ; //!< RATE_CONTROL_COUNTER_ENABLE
2856 };
2857 uint32_t Value;
2858 } DW6;
2859 union
2860 {
2861 //!< DWORD 7
2862 struct
2863 {
2864 uint32_t IndirectPakBseDataStartAddressWrite : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect PAK-BSE Data Start Address (Write)
2865 uint32_t Reserved253 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
2866 };
2867 uint32_t Value;
2868 } DW7;
2869 union
2870 {
2871 //!< DWORD 8
2872 struct
2873 {
2874 uint32_t GrowParamGrowInit : __CODEGEN_BITFIELD( 0, 3) ; //!< Grow Param - Grow Init
2875 uint32_t GrowParamGrowResistance : __CODEGEN_BITFIELD( 4, 7) ; //!< Grow Param - Grow Resistance
2876 uint32_t ShrinkParamShrinkInit : __CODEGEN_BITFIELD( 8, 11) ; //!< Shrink Param - Shrink Init
2877 uint32_t ShrinkParamShrinkResistance : __CODEGEN_BITFIELD(12, 15) ; //!< Shrink Param - Shrink Resistance
2878 uint32_t MagnitudeOfQpMaxPositiveModifier : __CODEGEN_BITFIELD(16, 23) ; //!< Magnitude of QP Max Positive Modifier
2879 uint32_t MagnitudeOfQpMaxNegativeModifier : __CODEGEN_BITFIELD(24, 31) ; //!< Magnitude of QP Max Negative Modifier
2880 };
2881 uint32_t Value;
2882 } DW8;
2883 union
2884 {
2885 //!< DWORD 9
2886 struct
2887 {
2888 uint32_t Correct1 : __CODEGEN_BITFIELD( 0, 3) ; //!< Correct 1
2889 uint32_t Correct2 : __CODEGEN_BITFIELD( 4, 7) ; //!< Correct 2
2890 uint32_t Correct3 : __CODEGEN_BITFIELD( 8, 11) ; //!< Correct 3
2891 uint32_t Correct4 : __CODEGEN_BITFIELD(12, 15) ; //!< Correct 4
2892 uint32_t Correct5 : __CODEGEN_BITFIELD(16, 19) ; //!< Correct 5
2893 uint32_t Correct6 : __CODEGEN_BITFIELD(20, 23) ; //!< Correct 6
2894 uint32_t Roundintra : __CODEGEN_BITFIELD(24, 26) ; //!< ROUNDINTRA
2895 uint32_t Roundintraenable : __CODEGEN_BITFIELD(27, 27) ; //!< RoundIntraEnable
2896 uint32_t Roundinter : __CODEGEN_BITFIELD(28, 30) ; //!< ROUNDINTER
2897 uint32_t Roundinterenable : __CODEGEN_BITFIELD(31, 31) ; //!< RoundInterEnable
2898 };
2899 uint32_t Value;
2900 } DW9;
2901 union
2902 {
2903 //!< DWORD 10
2904 struct
2905 {
2906 uint32_t Cv0ClampValue0 : __CODEGEN_BITFIELD( 0, 3) ; //!< CV0 - Clamp Value 0
2907 uint32_t Cv1 : __CODEGEN_BITFIELD( 4, 7) ; //!< CV1
2908 uint32_t Cv2 : __CODEGEN_BITFIELD( 8, 11) ; //!< CV2
2909 uint32_t Cv3 : __CODEGEN_BITFIELD(12, 15) ; //!< CV3
2910 uint32_t Cv4 : __CODEGEN_BITFIELD(16, 19) ; //!< CV4
2911 uint32_t Cv5 : __CODEGEN_BITFIELD(20, 23) ; //!< CV5
2912 uint32_t Cv6 : __CODEGEN_BITFIELD(24, 27) ; //!< CV6
2913 uint32_t ClampvaluesCv7 : __CODEGEN_BITFIELD(28, 31) ; //!< ClampValues - CV7
2914 };
2915 uint32_t Value;
2916 } DW10;
2917
2918 //! \name Local enumerations
2919
2920 enum COMMAND_SUBOPCODEB
2921 {
2922 COMMAND_SUBOPCODEB_MFXAVCSLICESTATE = 3, //!< No additional details
2923 };
2924
2925 enum SUBOPCODEA
2926 {
2927 SUBOPCODEA_MFXAVCSLICESTATE = 0, //!< No additional details
2928 };
2929
2930 enum COMMAND_OPCODE
2931 {
2932 COMMAND_OPCODE_AVC = 1, //!< No additional details
2933 };
2934
2935 enum PIPELINE
2936 {
2937 PIPELINE_MFXAVCSLICESTATE = 2, //!< No additional details
2938 };
2939
2940 enum COMMAND_TYPE
2941 {
2942 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2943 };
2944
2945 //! \brief SLICE_TYPE
2946 //! \details
2947 //! It is set to the value of the syntax element read from the Slice Header.
2948 enum SLICE_TYPE
2949 {
2950 SLICE_TYPE_PSLICE = 0, //!< No additional details
2951 SLICE_TYPE_BSLICE = 1, //!< No additional details
2952 SLICE_TYPE_ISLICE = 2, //!< No additional details
2953 };
2954
2955 enum DISABLE_DEBLOCKING_FILTER_INDICATOR
2956 {
2957 DISABLE_DEBLOCKING_FILTER_INDICATOR_UNNAMED0 = 0, //!< FilterInternalEdgesFlag is set equal to 1
2958 DISABLE_DEBLOCKING_FILTER_INDICATOR_UNNAMED1 = 1, //!< Disable all deblocking operation, no deblocking parameter syntax element is read; filterInternalEdgesFlag is set equal to 0
2959 DISABLE_DEBLOCKING_FILTER_INDICATOR_UNNAMED2 = 2, //!< Macroblocks in different slices are considered not available; filterInternalEdgesFlag is set equal to 1
2960 };
2961
2962 //! \brief DIRECT_PREDICTION_TYPE
2963 //! \details
2964 //! Type of direct prediction used for B Slices. This field is valid only
2965 //! for Slice_Type = B Slice; otherwise, it must be set to 0.
2966 enum DIRECT_PREDICTION_TYPE
2967 {
2968 DIRECT_PREDICTION_TYPE_TEMPORAL = 0, //!< No additional details
2969 DIRECT_PREDICTION_TYPE_SPATIAL = 1, //!< No additional details
2970 };
2971
2972 //! \brief CABACZEROWORDINSERTIONENABLE
2973 //! \details
2974 //! To pad the end of a SliceLayer RBSP to meet the encoded size
2975 //! requirement.
2976 enum CABACZEROWORDINSERTIONENABLE
2977 {
2978 CABACZEROWORDINSERTIONENABLE_UNNAMED0 = 0, //!< No Cabac_Zero_Word Insertion
2979 CABACZEROWORDINSERTIONENABLE_UNNAMED1 = 1, //!< Allow internal Cabac_Zero_Word generation and append to the end of RBSP(effectively can be used as an indicator for last slice of a picture, if the assumption is only the last slice of a picture needs to insert CABAC_ZERO_WORDs.
2980 };
2981
2982 //! \brief EMULATIONBYTESLICEINSERTENABLE
2983 //! \details
2984 //! To have PAK outputting SODB or EBSP to the output bitstream buffer
2985 enum EMULATIONBYTESLICEINSERTENABLE
2986 {
2987 EMULATIONBYTESLICEINSERTENABLE_UNNAMED0 = 0, //!< outputting RBSP
2988 EMULATIONBYTESLICEINSERTENABLE_UNNAMED1 = 1, //!< outputting EBSP
2989 };
2990
2991 //! \brief TAIL_INSERTION_PRESENT_IN_BITSTREAM
2992 //! \details
2993 //! <p>This bit should only be set for the last super slice.</p>
2994 //! <p><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif;
2995 //! line-height: normal;">SKL Restriction: In VDENC mode, SW should insert
2996 //! 1000 </span><b style="color: rgb(0, 0, 0); font-family: Arial,
2997 //! sans-serif; line-height: normal;">VD_PIPELINE_FLUSH commands with
2998 //! VDENC_pipeline_Done set to 1 before inserting tail command. This is for
2999 //! delaying the tail insertion in HW. The HW recommendation is to insert
3000 //! tail only at the end of sequence to avoid performance loss since this
3001 //! restriction potentially cause performance degradation.</b></p>
3002 enum TAIL_INSERTION_PRESENT_IN_BITSTREAM
3003 {
3004 TAIL_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED0 = 0, //!< No tail insertion into the output bitstream buffer, after the current slice encoded bits
3005 TAIL_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED1 = 1, //!< Tail insertion into the output bitstream buffer is present, and is after the current slice encoded bits.
3006 };
3007
3008 //! \brief SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM
3009 //! \details
3010 //! <p>This bit should be set for all super-slices.</p>
3011 enum SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM
3012 {
3013 SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED0 = 0, //!< No Slice Data insertion into the output bitstream buffer
3014 SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED1 = 1, //!< Slice Data insertion into the output bitstream buffer is present.
3015 };
3016
3017 //! \brief HEADER_INSERTION_PRESENT_IN_BITSTREAM
3018 //! \details
3019 //! Note: In VDEnc mode, the slice header PAK object maximum size is 25 DWs.
3020 enum HEADER_INSERTION_PRESENT_IN_BITSTREAM
3021 {
3022 HEADER_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED0 = 0, //!< No header insertion into the output bitstream buffer, in front of the current slice encoded bits.
3023 HEADER_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED1 = 1, //!< Header insertion into the output bitstream buffer is present, and is in front of the current slice encoded bits.
3024 };
3025
3026 //! \brief IS_LAST_SLICE
3027 //! \details
3028 //! It is used by the zero filling in the Minimum Frame Size test.
3029 enum IS_LAST_SLICE
3030 {
3031 IS_LAST_SLICE_UNNAMED0 = 0, //!< Current slice is NOT the last slice of a picture
3032 IS_LAST_SLICE_UNNAMED1 = 1, //!< Current slice is the last slice of a picture
3033 };
3034
3035 //! \brief MB_TYPE_SKIP_CONVERSION_DISABLE
3036 //! \details
3037 //! For all Macroblock type conversions in different slices, refer to
3038 //! Section "Macroblock Type Conversion Rules" in the same volume.
3039 enum MB_TYPE_SKIP_CONVERSION_DISABLE
3040 {
3041 MB_TYPE_SKIP_CONVERSION_DISABLE_ENABLESKIPTYPECONVERSION = 0, //!< No additional details
3042 MB_TYPE_SKIP_CONVERSION_DISABLE_DISABLESKIPTYPECONVERSION = 1, //!< No additional details
3043 };
3044
3045 //! \brief MB_TYPE_DIRECT_CONVERSION_DISABLE
3046 //! \details
3047 //! For all Macroblock type conversions in different slices, refer to
3048 //! Section "Macroblock Type Conversion Rules" in the same volume.
3049 enum MB_TYPE_DIRECT_CONVERSION_DISABLE
3050 {
3051 MB_TYPE_DIRECT_CONVERSION_DISABLE_ENABLEDIRECTMODECONVERSION = 0, //!< No additional details
3052 MB_TYPE_DIRECT_CONVERSION_DISABLE_DISABLEDIRECTMODECONVERSION = 1, //!< No additional details
3053 };
3054
3055 //! \brief RC_PANIC_TYPE
3056 //! \details
3057 //! This field selects between two RC Panic methods
3058 enum RC_PANIC_TYPE
3059 {
3060 RC_PANIC_TYPE_QPPANIC = 0, //!< No additional details
3061 RC_PANIC_TYPE_CBPPANIC = 1, //!< No additional details
3062 };
3063
3064 //! \brief RC_PANIC_ENABLE
3065 //! \details
3066 //! If this field is set to 1, RC enters panic mode when sum_act &gt;
3067 //! sum_max. RC Panic Type field controls what type of panic behavior is
3068 //! invoked.
3069 enum RC_PANIC_ENABLE
3070 {
3071 RC_PANIC_ENABLE_DISABLE = 0, //!< No additional details
3072 RC_PANIC_ENABLE_ENABLE = 1, //!< No additional details
3073 };
3074
3075 enum RC_TRIGGLE_MODE
3076 {
3077 RC_TRIGGLE_MODE_ALWAYSRATECONTROL = 0, //!< Whereas RC becomes active if sum_act > sum_target or sum_act < sum_target
3078 RC_TRIGGLE_MODE_GENTLERATECONTROL = 1, //!< whereas RC becomes active if sum_act > upper_midpt or sum_act < lower_midpt
3079 RC_TRIGGLE_MODE_LOOSERATECONTROL = 2, //!< whereas RC becomes active if sum_act > sum_max or sum_act < sum_min
3080 };
3081
3082 //! \brief RESETRATECONTROLCOUNTER
3083 //! \details
3084 //! To reset the bit allocation accumulation counter to 0 to restart the
3085 //! rate control.
3086 enum RESETRATECONTROLCOUNTER
3087 {
3088 RESETRATECONTROLCOUNTER_NOTRESET = 0, //!< No additional details
3089 RESETRATECONTROLCOUNTER_RESET = 1, //!< No additional details
3090 };
3091
3092 //! \brief RATE_CONTROL_COUNTER_ENABLE
3093 //! \details
3094 //! To enable the accumulation of bit allocation for rate control
3095 //! This field enables hardware Rate Control logic. The rest of the RC
3096 //! control fields are only valid when this field is set to 1. Otherwise,
3097 //! hardware ignores these fields.
3098 enum RATE_CONTROL_COUNTER_ENABLE
3099 {
3100 RATE_CONTROL_COUNTER_ENABLE_DISABLE = 0, //!< No additional details
3101 RATE_CONTROL_COUNTER_ENABLE_ENABLE = 1, //!< No additional details
3102 };
3103
3104 //! \brief ROUNDINTRA
3105 //! \details
3106 //! Rounding precision for Intra quantized coefficients
3107 enum ROUNDINTRA
3108 {
3109 ROUNDINTRA_116 = 0, //!< No additional details
3110 ROUNDINTRA_216 = 1, //!< No additional details
3111 ROUNDINTRA_316 = 2, //!< No additional details
3112 ROUNDINTRA_416 = 3, //!< No additional details
3113 ROUNDINTRA_516 = 4, //!< No additional details
3114 ROUNDINTRA_616 = 5, //!< No additional details
3115 ROUNDINTRA_716 = 6, //!< No additional details
3116 ROUNDINTRA_816 = 7, //!< No additional details
3117 };
3118
3119 //! \brief ROUNDINTER
3120 //! \details
3121 //! Rounding precision for Inter quantized coefficients
3122 enum ROUNDINTER
3123 {
3124 ROUNDINTER_116 = 0, //!< No additional details
3125 ROUNDINTER_216 = 1, //!< No additional details
3126 ROUNDINTER_316 = 2, //!< No additional details
3127 ROUNDINTER_416 = 3, //!< No additional details
3128 ROUNDINTER_516 = 4, //!< No additional details
3129 ROUNDINTER_616 = 5, //!< No additional details
3130 ROUNDINTER_716 = 6, //!< No additional details
3131 ROUNDINTER_816 = 7, //!< No additional details
3132 };
3133
3134 //! \name Initializations
3135
3136 //! \brief Explicit member initialization function
3137 MFX_AVC_SLICE_STATE_CMD();
3138
3139 static const size_t dwSize = 11;
3140 static const size_t byteSize = 44;
3141 };
3142
3143 //!
3144 //! \brief MFD_AVC_DPB_STATE
3145 //! \details
3146 //! This is a frame level state command used only in AVC Short Slice
3147 //! Bitstream Format VLD mode. RefFrameList[16] of interface is
3148 //! replaced with intel Reference Picture Addresses[16] of
3149 //! MFX_PIPE_BUF_ADDR_STATE command. The LongTerm Picture flag indicator of
3150 //! all reference pictures are collected into LongTermPic_Flag[16].
3151 //! FieldOrderCntList[16][2] and CurrFieldOrderCnt[2] of interface are
3152 //! replaced with intel POCList[34] of MFX_AVC_DIRECTMODE_STATE command.
3153 //!
3154 struct MFD_AVC_DPB_STATE_CMD
3155 {
3156 union
3157 {
3158 //!< DWORD 0
3159 struct
3160 {
3161 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3162 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3163 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3164 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3165 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3166 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3167 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3168 };
3169 uint32_t Value;
3170 } DW0;
3171 union
3172 {
3173 //!< DWORD 1
3174 struct
3175 {
3176 uint32_t NonExistingframeFlag161Bit : __CODEGEN_BITFIELD( 0, 15) ; //!< NON_EXISTINGFRAME_FLAG161_BIT
3177 uint32_t LongtermframeFlag161Bit : __CODEGEN_BITFIELD(16, 31) ; //!< LONGTERMFRAME_FLAG161_BIT
3178 };
3179 uint32_t Value;
3180 } DW1;
3181 union
3182 {
3183 //!< DWORD 2
3184 struct
3185 {
3186 uint32_t UsedforreferenceFlag162Bits ; //!< USEDFORREFERENCE_FLAG162_BITS
3187 };
3188 uint32_t Value;
3189 } DW2;
3190
3191 uint32_t Ltstframenumlist1616Bits[8]; //!< LTSTFRAMENUMLIST1616_BITS
3192
3193
3194 uint32_t Viewidlist1616Bits[8]; //!< ViewIDList[16][16 bits]
3195
3196
3197 uint32_t Vieworderlistl0168Bits[4]; //!< ViewOrderListL0[16][8 bits]
3198
3199
3200 uint32_t Vieworderlistl1168Bits[4]; //!< ViewOrderListL1[16][8 bits]
3201
3202
3203 //! \name Local enumerations
3204
3205 enum SUBOPCODE_B
3206 {
3207 SUBOPCODE_B_UNNAMED6 = 6, //!< No additional details
3208 };
3209
3210 enum SUBOPCODE_A
3211 {
3212 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
3213 };
3214
3215 enum MEDIA_COMMAND_OPCODE
3216 {
3217 MEDIA_COMMAND_OPCODE_AVCDEC = 1, //!< No additional details
3218 };
3219
3220 enum PIPELINE
3221 {
3222 PIPELINE_MFXMULTIDW = 2, //!< No additional details
3223 };
3224
3225 enum COMMAND_TYPE
3226 {
3227 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3228 };
3229
3230 //! \brief NON_EXISTINGFRAME_FLAG161_BIT
3231 //! \details
3232 //! One-to-one correspondence with the entries of the Intel
3233 //! RefFrameList[16]. 1 bit per reference frame.
3234 enum NON_EXISTINGFRAME_FLAG161_BIT
3235 {
3236 NON_EXISTINGFRAME_FLAG161_BIT_VALID = 0, //!< the reference picture in that entry of RefFrameList[] is a valid reference
3237 NON_EXISTINGFRAME_FLAG161_BIT_INVALID = 1, //!< the reference picture in that entry of RefFrameList[] does not exist anymore.
3238 };
3239
3240 //! \brief LONGTERMFRAME_FLAG161_BIT
3241 //! \details
3242 //! One-to-one correspondence with the entries of the Intel
3243 //! RefFrameList[16]. 1 bit per reference frame.
3244 enum LONGTERMFRAME_FLAG161_BIT
3245 {
3246 LONGTERMFRAME_FLAG161_BIT_THEPICTUREISASHORTTERMREFERENCEPICTURE = 0, //!< No additional details
3247 LONGTERMFRAME_FLAG161_BIT_THEPICTUREISALONGTERMREFERENCEPICTURE = 1, //!< No additional details
3248 };
3249
3250 //! \brief USEDFORREFERENCE_FLAG162_BITS
3251 //! \details
3252 //! One-to-one correspondence with the entries of the Intel
3253 //! RefFrameList[16]. 2 bits per reference frame.
3254 enum USEDFORREFERENCE_FLAG162_BITS
3255 {
3256 USEDFORREFERENCE_FLAG162_BITS_NOTREFERENCE = 0, //!< indicates a frame is "not used for reference".
3257 USEDFORREFERENCE_FLAG162_BITS_TOPFIELD = 1, //!< bit[0] indicates that the top field of a frame is marked as "used for reference".
3258 USEDFORREFERENCE_FLAG162_BITS_BOTTOMFIELD = 2, //!< bit[1] indicates that the bottom field of a frame is marked as "used for reference".
3259 USEDFORREFERENCE_FLAG162_BITS_FRAME = 3, //!< bit[1:0] indicates that a frame (or field pair) is marked as "used for reference".
3260 };
3261
3262 //! \brief LTSTFRAMENUMLIST1616_BITS
3263 //! \details
3264 //! One-to-one correspondence with the entries of the Intel
3265 //! RefFrameList[16]. 16 bits per reference frame.Depending on the
3266 //! corresponding LongTermFrame_Flag[], the content of this field is
3267 //! interpreted differently.
3268 enum LTSTFRAMENUMLIST1616_BITS
3269 {
3270 LTSTFRAMENUMLIST1616_BITS_SHORTTERMFRAMEFLAGI = 0, //!< LTSTFrameNumList[i]represent Short Term Picture FrameNum.
3271 LTSTFRAMENUMLIST1616_BITS_LONGTERMFRAMEFLAGI = 1, //!< LTSTFrameNumList[i] represent LongTermFrameIdx.
3272 };
3273
3274 //! \name Initializations
3275
3276 //! \brief Explicit member initialization function
3277 MFD_AVC_DPB_STATE_CMD();
3278
3279 static const size_t dwSize = 27;
3280 static const size_t byteSize = 108;
3281 };
3282
3283 //!
3284 //! \brief MFD_AVC_SLICEADDR
3285 //! \details
3286 //! This is a Slice level command used only for AVC Short Slice
3287 //! Bitstream Format VLD mode.When decoding a slice, H/W needs to know the
3288 //! last MB of the slice has reached in order to start decoding the next
3289 //! slice. It also needs to know if a slice is terminated but the last MB
3290 //! has not reached, error conealment should be invoked to generate those
3291 //! missing MBs. For AVC Short Format, the only way to know the last
3292 //! MB position of the current slice, H/W needs to snoop into the next
3293 //! slice's start MB address (a linear address encoded in the Slice Header).
3294 //! Since each BSD Object command can have only one indirect bitstream
3295 //! buffer address, this command is added to help H/W to snoop into the next
3296 //! slice's slice header and retrieve its Start MB Address. This command
3297 //! will take the next slice's bitstream buffer address as input (exactly
3298 //! the same way as a BSD Object command), and parse only the
3299 //! first_mb_in_slice syntax element. The result will stored inside the H/W,
3300 //! and will be used to decode the current slice specified in the BSD Object
3301 //! command.Only the very first few bytes (max 5 bytes for a max 4K picture)
3302 //! of the Slice Header will be decoded, the rest of the bitstream are don't
3303 //! care. This is because the first_mb_in_slice is encoded in Exponential
3304 //! Golomb, and will take 33 bits to represent the max 256 x 256 = 64K-1
3305 //! value. The indirect data of MFD_AVC_SLICEADDR is a valid BSD object and
3306 //! is decoded as in BSD OBJECT command.The next Slice Start MB Address is
3307 //! also exposed to the MMIO interface.The Slice Start MB Address
3308 //! (first_mb_in_slice) is a linear MB address count; but it is translated
3309 //! into the corresponding 2D MB X and Y raster position, and are stored
3310 //! internally as NextSliceMbY and NextSliceMbX.
3311 //!
3312 struct MFD_AVC_SLICEADDR_CMD
3313 {
3314 union
3315 {
3316 //!< DWORD 0
3317 struct
3318 {
3319 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3320 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3321 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3322 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3323 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3324 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3325 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3326 };
3327 uint32_t Value;
3328 } DW0;
3329 union
3330 {
3331 //!< DWORD 1
3332 struct
3333 {
3334 uint32_t IndirectBsdDataLength ; //!< Indirect BSD Data Length
3335 };
3336 uint32_t Value;
3337 } DW1;
3338 union
3339 {
3340 //!< DWORD 2
3341 struct
3342 {
3343 uint32_t IndirectBsdDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect BSD Data Start Address
3344 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
3345 };
3346 uint32_t Value;
3347 } DW2;
3348 union
3349 {
3350 //!< DWORD 3
3351 struct
3352 {
3353 uint32_t DriverProvidedNalTypeValue : __CODEGEN_BITFIELD( 0, 7) ; //!< Driver Provided NAL Type Value
3354 uint32_t AvcNalTypeFirstByteOverrideBit : __CODEGEN_BITFIELD( 8, 8) ; //!< AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3355 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
3356 };
3357 uint32_t Value;
3358 } DW3;
3359
3360 //! \name Local enumerations
3361
3362 enum SUBOPCODE_B
3363 {
3364 SUBOPCODE_B_UNNAMED7 = 7, //!< No additional details
3365 };
3366
3367 enum SUBOPCODE_A
3368 {
3369 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
3370 };
3371
3372 enum MEDIA_COMMAND_OPCODE
3373 {
3374 MEDIA_COMMAND_OPCODE_AVCDEC = 1, //!< No additional details
3375 };
3376
3377 enum PIPELINE
3378 {
3379 PIPELINE_MFDAVCSLICEADDR = 2, //!< No additional details
3380 };
3381
3382 enum COMMAND_TYPE
3383 {
3384 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3385 };
3386
3387 //! \brief AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3388 //! \details
3389 //! <p>This bit indicates hardware should use the NAL Type (provided below)
3390 //! programmed by driver instead of using the one from bitstream.  The NAL
3391 //! byte from bitstream will not be correct.</p>
3392 enum AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3393 {
3394 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEBITSTREAMDECODEDNALTYPE = 0, //!< NAL Type should come from first byte of decoded bitstream.
3395 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEDRIVERPROGRAMMEDNALTYPE = 1, //!< NAL Type should come from "Driver Provided NAL Type Values" programmed by driver.
3396 };
3397
3398 //! \name Initializations
3399
3400 //! \brief Explicit member initialization function
3401 MFD_AVC_SLICEADDR_CMD();
3402
3403 static const size_t dwSize = 4;
3404 static const size_t byteSize = 16;
3405 };
3406
3407 //!
3408 //! \brief MFD_AVC_BSD_OBJECT
3409 //! \details
3410 //! The MFD_AVC_BSD_OBJECT command is the only primitive command for the AVC
3411 //! Decoding Pipeline. The same command is used for both CABAC and CAVLD
3412 //! modes. The Slice Data portion of the bitstream is loaded as indirect
3413 //! data object.Before issuing a MFD_AVC_BSD_OBJECT command, all AVC states
3414 //! of the MFD Engine need to be valid. Therefore the commands used to set
3415 //! these states need to have been issued prior to the issue of a
3416 //! MFD_AVC_BSD_OBJECT command.
3417 //!
3418 //! Context switch interrupt is not supported by this command.
3419 //!
3420 struct MFD_AVC_BSD_OBJECT_CMD
3421 {
3422 union
3423 {
3424 //!< DWORD 0
3425 struct
3426 {
3427 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3428 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3429 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3430 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3431 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3432 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3433 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3434 };
3435 uint32_t Value;
3436 } DW0;
3437 union
3438 {
3439 //!< DWORD 1
3440 struct
3441 {
3442 uint32_t IndirectBsdDataLength ; //!< Indirect BSD Data Length
3443 };
3444 uint32_t Value;
3445 } DW1;
3446 union
3447 {
3448 //!< DWORD 2
3449 struct
3450 {
3451 uint32_t IndirectBsdDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect BSD Data Start Address
3452 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
3453 };
3454 uint32_t Value;
3455 } DW2;
3456 union
3457 {
3458 //!< DWORD 3
3459 struct
3460 {
3461 uint32_t MbErrorConcealmentPSliceWeightPredictionDisableFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG
3462 uint32_t MbErrorConcealmentPSliceMotionVectorsOverrideDisableFlag : __CODEGEN_BITFIELD( 1, 1) ; //!< MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3463 uint32_t Reserved98 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
3464 uint32_t MbErrorConcealmentBSpatialWeightPredictionDisableFlag : __CODEGEN_BITFIELD( 3, 3) ; //!< MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG
3465 uint32_t MbErrorConcealmentBSpatialMotionVectorsOverrideDisableFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3466 uint32_t Reserved101 : __CODEGEN_BITFIELD( 5, 5) ; //!< Reserved
3467 uint32_t MbErrorConcealmentBSpatialPredictionMode : __CODEGEN_BITFIELD( 6, 7) ; //!< MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_
3468 uint32_t MbHeaderErrorHandling : __CODEGEN_BITFIELD( 8, 8) ; //!< MB_HEADER_ERROR_HANDLING_
3469 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved
3470 uint32_t EntropyErrorHandling : __CODEGEN_BITFIELD(10, 10) ; //!< ENTROPY_ERROR_HANDLING
3471 uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
3472 uint32_t MprErrorMvOutOfRangeHandling : __CODEGEN_BITFIELD(12, 12) ; //!< MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
3473 uint32_t Reserved109 : __CODEGEN_BITFIELD(13, 13) ; //!< Reserved
3474 uint32_t BsdPrematureCompleteErrorHandling : __CODEGEN_BITFIELD(14, 14) ; //!< BSD_PREMATURE_COMPLETE_ERROR_HANDLING
3475 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
3476 uint32_t ConcealmentPictureId : __CODEGEN_BITFIELD(16, 21) ; //!< Concealment Picture ID
3477 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
3478 uint32_t MbErrorConcealmentBTemporalWeightPredictionDisableFlag : __CODEGEN_BITFIELD(24, 24) ; //!< MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG
3479 uint32_t MbErrorConcealmentBTemporalMotionVectorsOverrideEnableFlag : __CODEGEN_BITFIELD(25, 25) ; //!< MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG
3480 uint32_t Reserved122 : __CODEGEN_BITFIELD(26, 26) ; //!< Reserved
3481 uint32_t MbErrorConcealmentBTemporalPredictionMode : __CODEGEN_BITFIELD(27, 28) ; //!< MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE
3482 uint32_t IntraPredmode4X48X8LumaErrorControlBit : __CODEGEN_BITFIELD(29, 29) ; //!< INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT
3483 uint32_t InitCurrentMbNumber : __CODEGEN_BITFIELD(30, 30) ; //!< Init Current MB Number
3484 uint32_t ConcealmentMethod : __CODEGEN_BITFIELD(31, 31) ; //!< CONCEALMENT_METHOD
3485 };
3486 uint32_t Value;
3487 } DW3;
3488 union
3489 {
3490 //!< DWORD 4
3491 struct
3492 {
3493 uint32_t FirstMacroblockMbBitOffset : __CODEGEN_BITFIELD( 0, 2) ; //!< First Macroblock (MB)Bit Offset
3494 uint32_t LastsliceFlag : __CODEGEN_BITFIELD( 3, 3) ; //!< LASTSLICE_FLAG
3495 uint32_t EmulationPreventionBytePresent : __CODEGEN_BITFIELD( 4, 4) ; //!< EMULATION_PREVENTION_BYTE_PRESENT
3496 uint32_t Reserved133 : __CODEGEN_BITFIELD( 5, 6) ; //!< Reserved
3497 uint32_t FixPrevMbSkipped : __CODEGEN_BITFIELD( 7, 7) ; //!< Fix Prev Mb Skipped
3498 uint32_t Reserved136 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
3499 uint32_t FirstMbByteOffsetOfSliceDataOrSliceHeader : __CODEGEN_BITFIELD(16, 31) ; //!< First MB Byte Offset of Slice Data or Slice Header
3500 };
3501 uint32_t Value;
3502 } DW4;
3503 union
3504 {
3505 //!< DWORD 5
3506 struct
3507 {
3508 uint32_t IntraPredictionErrorControlBitAppliedToIntra16X16Intra8X8Intra4X4LumaAndChroma : __CODEGEN_BITFIELD( 0, 0) ; //!< INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA
3509 uint32_t Intra8X84X4PredictionErrorConcealmentControlBit : __CODEGEN_BITFIELD( 1, 1) ; //!< INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT
3510 uint32_t Reserved162 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
3511 uint32_t BSliceTemporalInterConcealmentMode : __CODEGEN_BITFIELD( 4, 6) ; //!< B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE
3512 uint32_t Reserved167 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
3513 uint32_t BSliceSpatialInterConcealmentMode : __CODEGEN_BITFIELD( 8, 10) ; //!< B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE
3514 uint32_t Reserved171 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
3515 uint32_t BSliceInterDirectTypeConcealmentMode : __CODEGEN_BITFIELD(12, 13) ; //!< B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE
3516 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 14) ; //!< Reserved
3517 uint32_t BSliceConcealmentMode : __CODEGEN_BITFIELD(15, 15) ; //!< B_SLICE_CONCEALMENT_MODE
3518 uint32_t PSliceInterConcealmentMode : __CODEGEN_BITFIELD(16, 18) ; //!< P_SLICE_INTER_CONCEALMENT_MODE
3519 uint32_t Reserved179 : __CODEGEN_BITFIELD(19, 22) ; //!< Reserved
3520 uint32_t PSliceConcealmentMode : __CODEGEN_BITFIELD(23, 23) ; //!< P_SLICE_CONCEALMENT_MODE
3521 uint32_t ConcealmentReferencePictureFieldBit : __CODEGEN_BITFIELD(24, 29) ; //!< Concealment Reference Picture + Field Bit
3522 uint32_t Reserved190 : __CODEGEN_BITFIELD(30, 30) ; //!< Reserved
3523 uint32_t ISliceConcealmentMode : __CODEGEN_BITFIELD(31, 31) ; //!< I_SLICE_CONCEALMENT_MODE
3524 };
3525 uint32_t Value;
3526 } DW5;
3527 union
3528 {
3529 //!< DWORD 6
3530 struct
3531 {
3532 uint32_t DriverProvidedNalTypeValue : __CODEGEN_BITFIELD( 0, 7) ; //!< Driver Provided Nal Type Value
3533 uint32_t AvcNalTypeFirstByteOverrideBit : __CODEGEN_BITFIELD( 8, 8) ; //!< AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3534 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
3535 };
3536 uint32_t Value;
3537 } DW6;
3538
3539 //! \name Local enumerations
3540
3541 enum SUBOPCODE_B
3542 {
3543 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
3544 };
3545
3546 enum SUBOPCODE_A
3547 {
3548 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
3549 };
3550
3551 enum MEDIA_COMMAND_OPCODE
3552 {
3553 MEDIA_COMMAND_OPCODE_AVCDEC = 1, //!< No additional details
3554 };
3555
3556 enum PIPELINE
3557 {
3558 PIPELINE_MFDAVCBSDOBJECT = 2, //!< No additional details
3559 };
3560
3561 enum COMMAND_TYPE
3562 {
3563 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3564 };
3565
3566 //! \brief MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG
3567 //! \details
3568 //! During MB Error Concealment on P slice, weight prediction is disabled to
3569 //! improve image quality.
3570 //! This bit can be set to preserve the original weight prediction.
3571 //! This bit does not affect normal decoded MB.
3572 enum MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG
3573 {
3574 MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED0 = 0, //!< Weight Prediction is Disabled during MB Concealment.
3575 MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED1 = 1, //!< Weight Prediction will not be overridden during MB Concealment.
3576 };
3577
3578 //! \brief MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3579 //! \details
3580 //! During MB Error Concealment on P slice, motion vectors are forced to 0
3581 //! to improve image quality.
3582 //! This bit can be set to use the predicted motion vectors instead.
3583 //! This bit does not affect normal decoded MB.
3584 enum MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3585 {
3586 MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED0 = 0, //!< Motion Vectors are Overridden to 0 during MB Concealment
3587 MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED1 = 1, //!< Predicted Motion Vectors are used during MB Concealment
3588 };
3589
3590 //! \brief MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG
3591 //! \details
3592 //! During MB Error Concealment on B slice with Spatial Direct Prediction,
3593 //! weight prediction is disabled to improve image quality.
3594 //! This bit can be set to preserve the original weight prediction.
3595 //! This bit does not affect normal decoded MB.
3596 enum MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG
3597 {
3598 MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED0 = 0, //!< Weight Prediction is Disabled during MB Concealment.
3599 MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED1 = 1, //!< Weight Prediction will not be overridden during MB Concealment.
3600 };
3601
3602 //! \brief MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3603 //! \details
3604 //! During MB Error Concealment on B slice with Spatial Direct Prediction,
3605 //! motion vectors are forced to 0 to improve image quality.
3606 //! This bit can be set to use the predicted motion vectors instead.
3607 //! This bit does not affect normal decoded MB.
3608 enum MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3609 {
3610 MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED0 = 0, //!< Motion Vectors are Overridden to 0 during MB Concealment
3611 MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED1 = 1, //!< Predicted Motion Vectors are used during MB Concealment
3612 };
3613
3614 //! \brief MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_
3615 //! \details
3616 //! These two bits control how the reference L0/L1 are overridden in B
3617 //! spatial slice.
3618 enum MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_
3619 {
3620 MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_UNNAMED0 = 0, //!< Both Reference Indexes L0/L1 are forced to 0 during Concealment
3621 MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_UNNAMED1 = 1, //!< Only Reference Index L1 is forced to 0; Reference Index L0 is forced to -1
3622 MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_UNNAMED2 = 2, //!< Only Reference Index L0 is forced to 0; Reference Index L1 is forced to -1
3623 };
3624
3625 //! \brief MB_HEADER_ERROR_HANDLING_
3626 //! \details
3627 //! Software must follow the action for each Value as follow:
3628 enum MB_HEADER_ERROR_HANDLING_
3629 {
3630 MB_HEADER_ERROR_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically perform the error concealment.
3631 MB_HEADER_ERROR_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W).
3632 };
3633
3634 //! \brief ENTROPY_ERROR_HANDLING
3635 //! \details
3636 //! Software must follow the action for each Value as follow:
3637 enum ENTROPY_ERROR_HANDLING
3638 {
3639 ENTROPY_ERROR_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically perform the error handling.
3640 ENTROPY_ERROR_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W).
3641 };
3642
3643 //! \brief MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
3644 //! \details
3645 //! Software must follow the action for each Value as follow:
3646 enum MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
3647 {
3648 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically performs the error handling
3649 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W)
3650 };
3651
3652 //! \brief BSD_PREMATURE_COMPLETE_ERROR_HANDLING
3653 //! \details
3654 //! BSD Premature Complete Error occurs in situation where the Slice decode
3655 //! is completed but there are still data in the bitstream.
3656 enum BSD_PREMATURE_COMPLETE_ERROR_HANDLING
3657 {
3658 BSD_PREMATURE_COMPLETE_ERROR_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically performs the error handling
3659 BSD_PREMATURE_COMPLETE_ERROR_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W)
3660 };
3661
3662 //! \brief MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG
3663 //! \details
3664 //! During MB Error Concealment on B slice with Temporal Direct Prediction,
3665 //! weight prediction is disabled to improve image quality.
3666 //! This bit can be set to preserve the original weight prediction.
3667 enum MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG
3668 {
3669 MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED0 = 0, //!< Weight Prediction is Disabled during MB Concealment
3670 MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED1 = 1, //!< Weight Prediction will not be overridden during MB Concealment
3671 };
3672
3673 //! \brief MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG
3674 //! \details
3675 //! During MB Error Concealment on B slice with Temporal Direct Prediction,
3676 //! motion vectors are forced to 0 to improve image quality.
3677 //! This bit can be set to preserve the original weight prediction.
3678 enum MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG
3679 {
3680 MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG_UNNAMED0 = 0, //!< Predicted Motion Vectors are used during MB Concealment
3681 MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG_UNNAMED1 = 1, //!< Motion Vectors are Overridden to 0 during MB Concealment
3682 };
3683
3684 //! \brief MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE
3685 //! \details
3686 //! These two bits control how the reference L0/L1 are overridden in B
3687 //! temporal slice.
3688 enum MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE
3689 {
3690 MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE_UNNAMED0 = 0, //!< Both Reference Indexes L0/L1 are forced to 0 during Concealment
3691 MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE_UNNAMED1 = 1, //!< Only Reference Index L1 is forced to 0; Reference Index L0 is forced to -1
3692 MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE_UNNAMED2 = 2, //!< Only Reference Index L0 is forced to 0; Reference Index L1 is forced to -1
3693 };
3694
3695 //! \brief INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT
3696 //! \details
3697 //! This field controls if AVC decoder will fix Intra Prediction Mode if the
3698 //! decoded value is incorrect according to MB position
3699 enum INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT
3700 {
3701 INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT_UNNAMED0 = 0, //!< AVC decoder will detect and fix IntraPredMode (4x4/8x8 Luma) Errors.
3702 INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT_UNNAMED1 = 1, //!< AVC decoder will NOT detect IntraPredMode (4x4/8x8 Luma) Errors. The wrong IntraPredMode value will be retaind.
3703 };
3704
3705 //! \brief CONCEALMENT_METHOD
3706 //! \details
3707 //! This field specifies the method used for concealment when error is
3708 //! detected. If set, a copy from collocated macroblock location is
3709 //! performed from the concealment reference indicated by the ConCeal_Pic_Id
3710 //! field. If it is not set, a copy from the current picture is performed
3711 //! using Intra 16x16 Prediction method.
3712 enum CONCEALMENT_METHOD
3713 {
3714 CONCEALMENT_METHOD_UNNAMED0 = 0, //!< Intra 16x16 Prediction
3715 CONCEALMENT_METHOD_UNNAMED1 = 1, //!< Inter P Copy
3716 };
3717
3718 //! \brief LASTSLICE_FLAG
3719 //! \details
3720 //! It is needed for both error concealment at the end of a picture (so, no
3721 //! more phantom slice as in DevSNB). It is also needed to know to set the
3722 //! last MB in a picture correctly.
3723 enum LASTSLICE_FLAG
3724 {
3725 LASTSLICE_FLAG_UNNAMED0 = 0, //!< If the current Slice to be decoded is any slice other than the very last slice of the current picture
3726 LASTSLICE_FLAG_UNNAMED1 = 1, //!< If the current Slice to be decoded is the very last slice of the current picture.
3727 };
3728
3729 enum EMULATION_PREVENTION_BYTE_PRESENT
3730 {
3731 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED0 = 0, //!< H/W needs to perform Emulation Byte Removal
3732 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED1 = 1, //!< H/W does not need to perform Emulation Byte Removal
3733 };
3734
3735 //! \brief INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA
3736 //! \details
3737 //! This field controls if AVC decoder will fix Intra Prediction Mode if the
3738 //! decoded value is incorrect according to MB position.
3739 enum INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA
3740 {
3741 INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA_UNNAMED0 = 0, //!< AVC decoder will detect and fix Intra Prediction Mode Errors.
3742 INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA_UNNAMED1 = 1, //!< AVC decoder will retain the Intra Prediction value decoded from bitstream.
3743 };
3744
3745 //! \brief INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT
3746 //! \details
3747 //! This field controls if AVC goes into MB concealment mode (next MB) when
3748 //! an error is detected on Intra8x8/4x4 Prediction Mode (these 2 modes have
3749 //! fixed coding so it may not affect the bitstream.
3750 enum INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT
3751 {
3752 INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT_UNNAMED0 = 0, //!< AVC decoder will NOT go into MB concealment when Intra8x8/4x4 Prediction mode is incorrect.
3753 INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT_UNNAMED1 = 1, //!< AVC decoder will go into MB concealment when Intra8x8/4x4 Prediction mode is incorrect.
3754 };
3755
3756 //! \brief B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE
3757 //! \details
3758 //! This field controls how AVC decoder select reference picture for
3759 //! Temporal Inter Concealment in B Slice
3760 enum B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE
3761 {
3762 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Top of Reference List L0/L1 (Use top entry of Reference List L0/L1)
3763 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Driver Specified Concealment Reference
3764 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED2 = 2, //!< Predicted Reference (Use reference picture predicted using B-Skip Algorithm)
3765 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED3 = 3, //!< " Temporal Closest (Using POC to select the closest forward picture)[For L0: Closest POC smaller than current POC][For L1: Closest POC larger than current POC]
3766 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED_4 = 4, //!< First Long Term Picture in Reference List L0/L1(If no long term picture available, use Temporal Closest Picture)
3767 };
3768
3769 //! \brief B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE
3770 //! \details
3771 //! This field controls how AVC decoder select reference picture for Spatial
3772 //! Inter Concealment in B Slice.
3773 enum B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE
3774 {
3775 B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Top of Reference List L0/L1 (Use top entry of Reference List L0/L1).
3776 B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Driver Specified Concealment Reference
3777 B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE_UNNAMED3 = 3, //!< Temporal Closest (Using POC to select the closest forward picture)[For L0: Closest POC smaller than current POC][For L1: Closest POC larger than current POC]
3778 B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE_UNNAMED_4 = 4, //!< " First Long Term Picture in Reference List L0/L1 (If no long term picture available, use Temporal Closest Picture)
3779 };
3780
3781 //! \brief B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE
3782 //! \details
3783 //! AVC decoder can use Spatial or Temporal Direct for B Skip/Direct.
3784 //! This field determine can override the mode on how AVC decoder
3785 //! handles MB concealment in B slice.
3786 enum B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE
3787 {
3788 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Use Default Direct Type (slice programmed direct type)
3789 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Forced to Spatial Direct Only
3790 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED2 = 2, //!< Forced to Temporal Direct Only
3791 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED3 = 3, //!< Spatial Direct without Temporal Componenet (MovingBlock information)
3792 };
3793
3794 //! \brief B_SLICE_CONCEALMENT_MODE
3795 //! \details
3796 //! This field controls how AVC decoder handle MB concealment in B Slice
3797 enum B_SLICE_CONCEALMENT_MODE
3798 {
3799 B_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 0, //!< No additional details
3800 B_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 1, //!< No additional details
3801 };
3802
3803 //! \brief P_SLICE_INTER_CONCEALMENT_MODE
3804 //! \details
3805 //! This field controls how AVC decoder select reference picture for
3806 //! Concealment in P Slice.
3807 enum P_SLICE_INTER_CONCEALMENT_MODE
3808 {
3809 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Top of Reference List L0 (Use top entry of Reference List L0)
3810 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Driver Specified Concealment Reference
3811 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED2 = 2, //!< Predicted Reference (Use reference picture predicted using P-Skip Algorithm)
3812 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED3 = 3, //!< Temporal Closest (Using POC to select the closest forward picture)[For L0: Closest POC smaller than current POC]
3813 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED_4 = 4, //!< First Long Term Picture in Reference List L0 (If no long term picture available, use Temporal Closest Picture)
3814 };
3815
3816 //! \brief P_SLICE_CONCEALMENT_MODE
3817 //! \details
3818 //! This field controls how AVC decoder handle MB concealment in P Slice
3819 enum P_SLICE_CONCEALMENT_MODE
3820 {
3821 P_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 0, //!< No additional details
3822 P_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 1, //!< No additional details
3823 };
3824
3825 //! \brief I_SLICE_CONCEALMENT_MODE
3826 //! \details
3827 //! This field controls how AVC decoder handle MB concealment in I Slice
3828 enum I_SLICE_CONCEALMENT_MODE
3829 {
3830 I_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 0, //!< No additional details
3831 I_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 1, //!< No additional details
3832 };
3833
3834 //! \brief AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3835 //! \details
3836 //! <p>This bit indicates hardware should use the NAL Type (provided below)
3837 //! programmed by driver instead of using the one from bitstream.  The NAL
3838 //! byte from bitstream will not be correct.</p>
3839 enum AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3840 {
3841 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEBITSTREAMDECODEDNALTYPE = 0, //!< NAL Type should come from the first byte of Decoded Bitstream
3842 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEDRIVERPROGRAMMEDNALTYPE = 1, //!< NAL Type should come from "Driver Provided Nal Type" programmed by driver.
3843 };
3844
3845 //! \name Initializations
3846
3847 //! \brief Explicit member initialization function
3848 MFD_AVC_BSD_OBJECT_CMD();
3849
3850 static const size_t dwSize = 7;
3851 static const size_t byteSize = 28;
3852 };
3853
3854 //!
3855 //! \brief MFX_PAK_INSERT_OBJECT
3856 //! \details
3857 //! The MFX_PAK_INSERT_OBJECT command is the first primitive command for the
3858 //! AVC, MPEG2, JPEG, SVC and VP8 Encoding Pipeline.
3859 //!
3860 //! This command is issued to setup the control and parameters of inserting
3861 //! a chunk of compressed/encoded bits into the current bitstream output
3862 //! buffer starting at the specified bit locationto perform the actual
3863 //! insertion by transferring the command inline data to the output buffer
3864 //! max, 32 bits at a time. It is a variable length command as the data to
3865 //! be inserted are presented as inline data of this command. It is a
3866 //! multiple of 32-bit (1 DW), as the data bus to the bitstream buffer is
3867 //! 32-bit wide. Multiple insertion commands can be issued back to back in a
3868 //! series. It is host software's responsibility to make sure their
3869 //! corresponding data will properly stitch together to form a valid H.264
3870 //! bitstream. Internally, MFX hardware will keep track of the very last two
3871 //! bytes' (the very last byte can be a partial byte) values of the previous
3872 //! insertion. It is required that the next Insertion Object Command or the
3873 //! next PAK Object Command to perform the start code emulation sequence
3874 //! check and prevention 0x03 byte insertion with this end condition of the
3875 //! previous insertion. Hardware will keep track of an output bitstream
3876 //! buffer current byte position and the associated next bit insertion
3877 //! position index. Data to be inserted can be a valid H.264 NAL units or a
3878 //! partial NAL unit. Certain NAL unit has a minimum byte size requirement.
3879 //! As such the hardware will optionally (enabled by STATE Command)
3880 //! determines the number of CABAC_ZERO_WORD to be inserted to the end of
3881 //! the current NAL, based on the minimum byte size of a NAL and the actual
3882 //! bin count of the encoded Slice. Since prior to the CABAC_ZERO_WORD
3883 //! insertion, the RBSP or EBSP is already byte-aligned, so each
3884 //! CABAC_ZERO_WORD insertion is actually a 3-byte sequence 0x00 00 03. The
3885 //! inline data may have already been processed for start code emulation
3886 //! byte insertion, except the possibility of the last 2 bytes plus the very
3887 //! last partial byte (if any). Hence, when hardware performing the
3888 //! concatenation of multiple consecutive insertion commands, or
3889 //! concatenation of an insertion command and a PAK object command, it must
3890 //! check and perform the necessary start code emulation byte insert at the
3891 //! junction.The inline data is required to be byte aligned on the left
3892 //! (first transmitted bit order) and may or may not be byte aligned on the
3893 //! right (last transmitted bits). The command will specify the bit offset
3894 //! of the last valid DW.Each insertion state command defines a chunk of
3895 //! bits (compressed data) to be inserted at a specific location of the
3896 //! output compressed bitstream in the output buffer.Depend on CABAC or
3897 //! CAVLC encoding mode (from Slice State), PAK Object Command is always
3898 //! ended in byte aligned output bitstream except for CABAC header insertion
3899 //! which is bit aligned. In the aligned cases, PAK will perform 0 filling
3900 //! in CAVLC mode, and 1 filling in CABAC mode. Insertion data can
3901 //! include:any encoded syntax elements bit data before the encoded Slice
3902 //! Data (PAK Object Command) of the current SliceSPS NALPPS NALSEI NALOther
3903 //! Non-Slice NALLeading_Zero_8_bits (as many bytes as there is)Start Code
3904 //! PrefixNAL Header ByteSlice HeaderAny encoded syntax elements bit data
3905 //! after the encoded Slice Data (PAK Object Command) of the current Slice
3906 //! and prior to the next encoded Slice Data of the next Slice or prior to
3907 //! the end of the bistream, whichever comes firstCabac_Zero_Word or
3908 //! Trailing_Zero_8bits (as many bytes as there is). Anything listed above
3909 //! before a Slice DataContext switch interrupt is not supported by this
3910 //! command.
3911 //!
3912 struct MFX_PAK_INSERT_OBJECT_CMD
3913 {
3914 union
3915 {
3916 //!< DWORD 0
3917 struct
3918 {
3919 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3920 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3921 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3922 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3923 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3924 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3925 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3926 };
3927 uint32_t Value;
3928 } DW0;
3929 union
3930 {
3931 //!< DWORD 1
3932 struct
3933 {
3934 uint32_t BitstreamstartresetResetbitstreamstartingpos : __CODEGEN_BITFIELD( 0, 0) ; //!< BITSTREAMSTARTRESET__RESETBITSTREAMSTARTINGPOS
3935 uint32_t EndofsliceflagLastdstdatainsertcommandflag : __CODEGEN_BITFIELD( 1, 1) ; //!< EndOfSliceFlag - LastDstDataInsertCommandFlag
3936 uint32_t LastheaderflagLastsrcheaderdatainsertcommandflag : __CODEGEN_BITFIELD( 2, 2) ; //!< LastHeaderFlag - LastSrcHeaderDataInsertCommandFlag
3937 uint32_t EmulationflagEmulationbytebitsinsertenable : __CODEGEN_BITFIELD( 3, 3) ; //!< EMULATIONFLAG__EMULATIONBYTEBITSINSERTENABLE
3938 uint32_t SkipemulbytecntSkipEmulationByteCount : __CODEGEN_BITFIELD( 4, 7) ; //!< SkipEmulByteCnt - Skip Emulation Byte Count
3939 uint32_t DatabitsinlastdwSrcdataendingbitinclusion50 : __CODEGEN_BITFIELD( 8, 13) ; //!< DataBitsInLastDW - SrCDataEndingBitInclusion[5:0]
3940 uint32_t SliceHeaderIndicator : __CODEGEN_BITFIELD(14, 14) ; //!< SLICE_HEADER_INDICATOR
3941 uint32_t Headerlengthexcludefrmsize : __CODEGEN_BITFIELD(15, 15) ; //!< HEADERLENGTHEXCLUDEFRMSIZE_
3942 uint32_t DatabyteoffsetSrcdatastartingbyteoffset10 : __CODEGEN_BITFIELD(16, 17) ; //!< DataByteOffset - SrcDataStartingByteOffset[1:0]
3943 uint32_t Reserved50 : __CODEGEN_BITFIELD(18, 31) ; //!< Reserved
3944 };
3945 uint32_t Value;
3946 } DW1;
3947
3948 //! \name Local enumerations
3949
3950 enum SUBOPCODE_B
3951 {
3952 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
3953 };
3954
3955 enum SUBOPCODE_A
3956 {
3957 SUBOPCODE_A_UNNAMED2 = 2, //!< No additional details
3958 };
3959
3960 enum MEDIA_COMMAND_OPCODE
3961 {
3962 MEDIA_COMMAND_OPCODE_MFXCOMMON = 0, //!< No additional details
3963 };
3964
3965 enum PIPELINE
3966 {
3967 PIPELINE_MFXPAKINSERTOBJECT = 2, //!< No additional details
3968 };
3969
3970 enum COMMAND_TYPE
3971 {
3972 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3973 };
3974
3975 //! \brief BITSTREAMSTARTRESET__RESETBITSTREAMSTARTINGPOS
3976 //! \details
3977 //! Must be set to 1 for JPEG encoder
3978 enum BITSTREAMSTARTRESET__RESETBITSTREAMSTARTINGPOS
3979 {
3980 BITSTREAMSTARTRESET_RESETBITSTREAMSTARTINGPOS_INSERT = 0, //!< Insert the current command inline data starting at the current bitstream buffer insertion position
3981 BITSTREAMSTARTRESET_RESETBITSTREAMSTARTINGPOS_RESET = 1, //!< Reset the bitstream buffer insertion position to the bitstream buffer starting position.
3982 };
3983
3984 //! \brief EMULATIONFLAG__EMULATIONBYTEBITSINSERTENABLE
3985 //! \details
3986 //! Must be set to 0 for JPEG encoder
3987 enum EMULATIONFLAG__EMULATIONBYTEBITSINSERTENABLE
3988 {
3989 EMULATIONFLAG_EMULATIONBYTEBITSINSERTENABLE_NONE = 0, //!< No emulation
3990 EMULATIONFLAG_EMULATIONBYTEBITSINSERTENABLE_EMULATE = 1, //!< Instruct the hardware to perform Start Code Prefix (0x 00 00 01/02/03/00) Search and Prevention Byte (0x 03) insertion on the insertion data of this command. It is required that hardware will handle a start code prefix crossing the boundary between insertion commands, or an insertion command followed by a PAK Object command.
3991 };
3992
3993 //! \brief SLICE_HEADER_INDICATOR
3994 //! \details
3995 //! This bit indicates if the insert object is a slice header. In the VDEnc
3996 //! mode, PAK only gets this command at the beginning of the frame for slice
3997 //! position X=0, Y=0. It internally generates the header that needs to be
3998 //! inserted per slice. For VDEnc mode, this bit should always be set.
3999 enum SLICE_HEADER_INDICATOR
4000 {
4001 SLICE_HEADER_INDICATOR_LEGACY = 0, //!< Legacy Insertion Object command. The PAK Insertion Object command is not stored in HW.
4002 SLICE_HEADER_INDICATOR_SLICEHEADER = 1, //!< Insertion Object is a Slice Header. The command is stored internally by HW and is used for inserting slice headers.
4003 };
4004
4005 //! \brief HEADERLENGTHEXCLUDEFRMSIZE_
4006 //! \details
4007 //! In case this flag is on, bits are NOT accumulated during current access
4008 //! unit coding neither for Cabac Zero Word insertion bits counting or for
4009 //! output in MMIO register MFC_BITSTREAM_BYTECOUNT_FRAME_NO_HEADER.
4010 //! When using HeaderLenghtExcludeFrmSize for header insertion, the
4011 //! software needs to make sure that data comes already with inserted start
4012 //! code emulation bytes. SW shouldn't set EmulationFlag bit ( Bit 3 of
4013 //! DWORD1 of MFX_PAK_INSERT_OBJECT).
4014 enum HEADERLENGTHEXCLUDEFRMSIZE_
4015 {
4016 HEADERLENGTHEXCLUDEFRMSIZE_ACCUMULATE = 0, //!< All bits accumulated
4017 HEADERLENGTHEXCLUDEFRMSIZE_NOACCUMULATION = 1, //!< Bits during current call are not accumulated
4018 };
4019
4020 //! \name Initializations
4021
4022 //! \brief Explicit member initialization function
4023 MFX_PAK_INSERT_OBJECT_CMD();
4024
4025 static const size_t dwSize = 2;
4026 static const size_t byteSize = 8;
4027 };
4028
4029 //!
4030 //! \brief MFX_MPEG2_PIC_STATE
4031 //! \details
4032 //! This must be the very first command to issue after the surface state,
4033 //! the pipe select and base address setting commands. For MPEG-2 the
4034 //! encoder is called per slice-group, however the picture state is called
4035 //! per picture.Notice that a slice-group is a group of consecutive slices
4036 //! that no non-trivial slice headers are inserted in between.
4037 //!
4038 struct MFX_MPEG2_PIC_STATE_CMD
4039 {
4040 union
4041 {
4042 //!< DWORD 0
4043 struct
4044 {
4045 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
4046 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4047 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
4048 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
4049 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
4050 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
4051 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
4052 };
4053 uint32_t Value;
4054 } DW0;
4055 union
4056 {
4057 //!< DWORD 1
4058 struct
4059 {
4060 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
4061 uint32_t ScanOrder : __CODEGEN_BITFIELD( 6, 6) ; //!< SCAN_ORDER
4062 uint32_t IntraVlcFormat : __CODEGEN_BITFIELD( 7, 7) ; //!< Intra VLC Format
4063 uint32_t QuantizerScaleType : __CODEGEN_BITFIELD( 8, 8) ; //!< QUANTIZER_SCALE_TYPE
4064 uint32_t ConcealmentMotionVectorFlag : __CODEGEN_BITFIELD( 9, 9) ; //!< Concealment Motion Vector Flag
4065 uint32_t FramePredictionFrameDct : __CODEGEN_BITFIELD(10, 10) ; //!< Frame Prediction Frame DCT
4066 uint32_t TffTopFieldFirst : __CODEGEN_BITFIELD(11, 11) ; //!< TFF (Top Field First)
4067 uint32_t PictureStructure : __CODEGEN_BITFIELD(12, 13) ; //!< Picture Structure
4068 uint32_t IntraDcPrecision : __CODEGEN_BITFIELD(14, 15) ; //!< Intra DC Precision
4069 uint32_t FCode00 : __CODEGEN_BITFIELD(16, 19) ; //!< f_code[0][0]
4070 uint32_t FCode01 : __CODEGEN_BITFIELD(20, 23) ; //!< f_code[0][1]
4071 uint32_t FCode10 : __CODEGEN_BITFIELD(24, 27) ; //!< f_code[1][0].
4072 uint32_t FCode11 : __CODEGEN_BITFIELD(28, 31) ; //!< f_code[1][1].
4073 };
4074 uint32_t Value;
4075 } DW1;
4076 union
4077 {
4078 //!< DWORD 2
4079 struct
4080 {
4081 uint32_t DisableMismatch : __CODEGEN_BITFIELD( 0, 0) ; //!< Disable Mismatch
4082 uint32_t Mismatchcontroldisabled : __CODEGEN_BITFIELD( 1, 1) ; //!< MISMATCHCONTROLDISABLED
4083 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 8) ; //!< Reserved
4084 uint32_t PictureCodingType : __CODEGEN_BITFIELD( 9, 10) ; //!< PICTURE_CODING_TYPE
4085 uint32_t Reserved75 : __CODEGEN_BITFIELD(11, 13) ; //!< Reserved
4086 uint32_t LoadslicepointerflagLoadbitstreampointerperslice : __CODEGEN_BITFIELD(14, 14) ; //!< LOADSLICEPOINTERFLAG__LOADBITSTREAMPOINTERPERSLICE
4087 uint32_t Reserved79 : __CODEGEN_BITFIELD(15, 23) ; //!< Reserved
4088 uint32_t PBSlicePredictedMotionVectorOverrideFinalMvValueOverride : __CODEGEN_BITFIELD(24, 24) ; //!< PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE
4089 uint32_t PBSlicePredictedBidirMotionTypeOverrideBiDirectionMvTypeOverride : __CODEGEN_BITFIELD(25, 26) ; //!< PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE__BI_DIRECTION_MV_TYPE_OVERRIDE
4090 uint32_t Reserved91 : __CODEGEN_BITFIELD(27, 27) ; //!< Reserved
4091 uint32_t PBSliceConcealmentMode : __CODEGEN_BITFIELD(28, 29) ; //!< PB_SLICE_CONCEALMENT_MODE_
4092 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 30) ; //!< Reserved
4093 uint32_t ISliceConcealmentMode : __CODEGEN_BITFIELD(31, 31) ; //!< I_SLICE_CONCEALMENT_MODE_
4094 };
4095 uint32_t Value;
4096 } DW2;
4097 union
4098 {
4099 //!< DWORD 3
4100 struct
4101 {
4102 uint32_t Framewidthinmbsminus170PictureWidthInMacroblocks : __CODEGEN_BITFIELD( 0, 7) ; //!< FrameWidthInMBsMinus1[7:0] (Picture Width in Macroblocks)
4103 uint32_t Reserved104 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
4104 uint32_t Frameheightinmbsminus170PictureHeightInMacroblocks : __CODEGEN_BITFIELD(16, 23) ; //!< FrameHeightInMBsMinus1[7:0] (Picture Height in Macroblocks)
4105 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 30) ; //!< Reserved
4106 uint32_t SliceConcealmentDisableBit : __CODEGEN_BITFIELD(31, 31) ; //!< SLICE_CONCEALMENT_DISABLE_BIT
4107 };
4108 uint32_t Value;
4109 } DW3;
4110 union
4111 {
4112 //!< DWORD 4
4113 struct
4114 {
4115 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
4116 uint32_t Roundintradc : __CODEGEN_BITFIELD( 1, 2) ; //!< RoundIntraDC
4117 uint32_t Reserved131 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
4118 uint32_t Roundinterdc : __CODEGEN_BITFIELD( 4, 6) ; //!< RoundInterDC
4119 uint32_t Reserved135 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
4120 uint32_t Roundintraac : __CODEGEN_BITFIELD( 8, 10) ; //!< RoundIntraAC
4121 uint32_t Reserved139 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
4122 uint32_t Roundinterac : __CODEGEN_BITFIELD(12, 14) ; //!< RoundInterAC,
4123 uint32_t Mbstatenabled : __CODEGEN_BITFIELD(15, 15) ; //!< MBSTATENABLED
4124 uint32_t Minframewsize : __CODEGEN_BITFIELD(16, 31) ; //!< MINFRAMEWSIZE
4125 };
4126 uint32_t Value;
4127 } DW4;
4128 union
4129 {
4130 //!< DWORD 5
4131 struct
4132 {
4133 uint32_t Intrambmaxsizereportmask : __CODEGEN_BITFIELD( 0, 0) ; //!< INTRAMBMAXSIZEREPORTMASK
4134 uint32_t Intermbmaxsizereportmask : __CODEGEN_BITFIELD( 1, 1) ; //!< INTERMBMAXSIZEREPORTMASK
4135 uint32_t Framebitratemaxreportmask : __CODEGEN_BITFIELD( 2, 2) ; //!< FRAMEBITRATEMAXREPORTMASK_
4136 uint32_t Framebitrateminreportmask : __CODEGEN_BITFIELD( 3, 3) ; //!< FRAMEBITRATEMINREPORTMASK
4137 uint32_t Reserved164 : __CODEGEN_BITFIELD( 4, 8) ; //!< Reserved
4138 uint32_t Mbratecontrolmask : __CODEGEN_BITFIELD( 9, 9) ; //!< MBRATECONTROLMASK
4139 uint32_t Minframewsizeunits : __CODEGEN_BITFIELD(10, 11) ; //!< MINFRAMEWSIZEUNITS
4140 uint32_t Intermbforcecbpzerocontrolmask : __CODEGEN_BITFIELD(12, 12) ; //!< INTERMBFORCECBPZEROCONTROLMASK
4141 uint32_t Reserved173 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
4142 uint32_t Framesizecontrolmask : __CODEGEN_BITFIELD(16, 16) ; //!< FRAMESIZECONTROLMASK
4143 uint32_t Reserved177 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved
4144 };
4145 uint32_t Value;
4146 } DW5;
4147 union
4148 {
4149 //!< DWORD 6
4150 struct
4151 {
4152 uint32_t Intrambmaxsize : __CODEGEN_BITFIELD( 0, 11) ; //!< INTRAMBMAXSIZE
4153 uint32_t Reserved204 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4154 uint32_t Intermbmaxsize : __CODEGEN_BITFIELD(16, 27) ; //!< INTERMBMAXSIZE
4155 uint32_t Reserved220 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
4156 };
4157 uint32_t Value;
4158 } DW6;
4159 union
4160 {
4161 //!< DWORD 7
4162 struct
4163 {
4164 uint32_t VslTopMbTrans8X8Flag : __CODEGEN_BITFIELD( 0, 0) ; //!< VSL_TOP_MB_TRANS8X8FLAG
4165 uint32_t Reserved225 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
4166 };
4167 uint32_t Value;
4168 } DW7;
4169 union
4170 {
4171 //!< DWORD 8
4172 struct
4173 {
4174 uint32_t Slicedeltaqpmax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQPMax[0]
4175 uint32_t Slicedeltaqpmax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQPMax[1]
4176 uint32_t Slicedeltaqpmax2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQPMax[2]
4177 uint32_t Slicedeltaqpmax3 : __CODEGEN_BITFIELD(24, 31) ; //!< SLICEDELTAQPMAX3
4178 };
4179 uint32_t Value;
4180 } DW8;
4181 union
4182 {
4183 //!< DWORD 9
4184 struct
4185 {
4186 uint32_t Slicedeltaqpmin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQPMin[0]
4187 uint32_t Slicedeltaqpmin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQPMin[1]
4188 uint32_t Slicedeltaqpmin2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQPMin[2]
4189 uint32_t Slicedeltaqpmin3 : __CODEGEN_BITFIELD(24, 31) ; //!< SliceDeltaQPMin[3]
4190 };
4191 uint32_t Value;
4192 } DW9;
4193 union
4194 {
4195 //!< DWORD 10
4196 struct
4197 {
4198 uint32_t Framebitratemin : __CODEGEN_BITFIELD( 0, 13) ; //!< FrameBitRateMin
4199 uint32_t Framebitrateminunitmode : __CODEGEN_BITFIELD(14, 14) ; //!< FRAMEBITRATEMINUNITMODE
4200 uint32_t Framebitrateminunit : __CODEGEN_BITFIELD(15, 15) ; //!< FRAMEBITRATEMINUNIT
4201 uint32_t Framebitratemax : __CODEGEN_BITFIELD(16, 29) ; //!< FrameBitRateMax
4202 uint32_t Framebitratemaxunitmode : __CODEGEN_BITFIELD(30, 30) ; //!< FRAMEBITRATEMAXUNITMODE
4203 uint32_t Framebitratemaxunit : __CODEGEN_BITFIELD(31, 31) ; //!< FRAMEBITRATEMAXUNIT_
4204 };
4205 uint32_t Value;
4206 } DW10;
4207 union
4208 {
4209 //!< DWORD 11
4210 struct
4211 {
4212 uint32_t Framebitratemindelta : __CODEGEN_BITFIELD( 0, 14) ; //!< FrameBitRateMinDelta
4213 uint32_t Reserved367 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
4214 uint32_t Framebitratemaxdelta : __CODEGEN_BITFIELD(16, 30) ; //!< FRAMEBITRATEMAXDELTA
4215 uint32_t Reserved383 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
4216 };
4217 uint32_t Value;
4218 } DW11;
4219 union
4220 {
4221 //!< DWORD 12
4222 struct
4223 {
4224 uint32_t Reserved384 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved
4225 };
4226 uint32_t Value;
4227 } DW12;
4228
4229 //! \name Local enumerations
4230
4231 enum SUBOPCODE_B
4232 {
4233 SUBOPCODE_B_UNNAMED0 = 0, //!< No additional details
4234 };
4235
4236 enum SUBOPCODE_A
4237 {
4238 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
4239 };
4240
4241 enum MEDIA_COMMAND_OPCODE
4242 {
4243 MEDIA_COMMAND_OPCODE_MPEG2COMMON = 3, //!< No additional details
4244 };
4245
4246 enum PIPELINE
4247 {
4248 PIPELINE_MFXMPEG2PICSTATE = 2, //!< No additional details
4249 };
4250
4251 enum COMMAND_TYPE
4252 {
4253 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
4254 };
4255
4256 //! \brief SCAN_ORDER
4257 //! \details
4258 //! This field specifies the Inverse Scan method for the DCT-domain
4259 //! coefficients in the blocks of the current picture.
4260 enum SCAN_ORDER
4261 {
4262 SCAN_ORDER_UNNAMED0 = 0, //!< MPEG_ZIGZAG_SCAN
4263 SCAN_ORDER_UNNAMED1 = 1, //!< MPEG_ALTERNATE_VERTICAL_SCAN
4264 };
4265
4266 //! \brief QUANTIZER_SCALE_TYPE
4267 //! \details
4268 //! This field specifies the quantizer scaling type.
4269 enum QUANTIZER_SCALE_TYPE
4270 {
4271 QUANTIZER_SCALE_TYPE_UNNAMED0 = 0, //!< MPEG_QSCALE_LINEAR
4272 QUANTIZER_SCALE_TYPE_UNNAMED1 = 1, //!< D MPEG_QSCALE_NONLINEAR esc
4273 };
4274
4275 //! \brief MISMATCHCONTROLDISABLED
4276 //! \details
4277 //! These 2 bits flag disables mismatch control of the inverse
4278 //! transformation for some specific cases during reference reconstruction.
4279 enum MISMATCHCONTROLDISABLED
4280 {
4281 MISMATCHCONTROLDISABLED_UNNAMED0 = 0, //!< Mismatch control applies to all MBs
4282 MISMATCHCONTROLDISABLED_UNNAMED1 = 1, //!< Disable mismatch control to all intra MBs whose all AC-coefficients are zero.
4283 MISMATCHCONTROLDISABLED_UNNAMED2 = 2, //!< Disable mismatch control to all MBs whose all AC-coefficients are zero.
4284 MISMATCHCONTROLDISABLED_UNNAMED3 = 3, //!< Disable mismatch control to all MBs.
4285 };
4286
4287 //! \brief PICTURE_CODING_TYPE
4288 //! \details
4289 //! This field identifies whether the picture is an intra-coded picture (I),
4290 //! predictive-coded picture (P) or bi-directionally predictive-coded
4291 //! picture (B). See ISO/IEC 13818-2 6.3.9 for details.
4292 enum PICTURE_CODING_TYPE
4293 {
4294 PICTURE_CODING_TYPE_MPEGIPICTURE = 1, //!< No additional details
4295 PICTURE_CODING_TYPE_10MPEGPPICTURE = 2, //!< No additional details
4296 PICTURE_CODING_TYPE_MPEGBPICTURE = 3, //!< No additional details
4297 };
4298
4299 //! \brief LOADSLICEPOINTERFLAG__LOADBITSTREAMPOINTERPERSLICE
4300 //! \details
4301 //! To support multiple slice picture and additional header/data insertion
4302 //! before and after an encoded slice.When this field is set to 0, bitstream
4303 //! pointer is only loaded once for the first slice of a frame. For
4304 //! subsequent slices in the frame, bitstream data are stitched together to
4305 //! form a single output data stream.When this field is set to 1, bitstream
4306 //! pointer is loaded for each slice of a frame. Basically bitstream data
4307 //! for different slices of a frame will be written to different memory
4308 //! locations.
4309 enum LOADSLICEPOINTERFLAG__LOADBITSTREAMPOINTERPERSLICE
4310 {
4311 LOADSLICEPOINTERFLAG_LOADBITSTREAMPOINTERPERSLICE_UNNAMED0 = 0, //!< Load BitStream Pointer only once for the first slice of a frame
4312 LOADSLICEPOINTERFLAG_LOADBITSTREAMPOINTERPERSLICE_UNNAMED1 = 1, //!< Load/reload BitStream Pointer only once for the each slice, reload the start location of the bitstream buffer from the Indirect PAK-BSE Object Data Start Address field
4313 };
4314
4315 //! \brief PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE
4316 //! \details
4317 //! This field is only applicable if the Concealment Motion Vectors are
4318 //! non-zero.
4319 //! It is only possible if "P/B Slice Concealment Mode" is set to "00"
4320 //! or "01" and left MB has non-zero motion vectors).
4321 enum PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE
4322 {
4323 PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE_PREDICTED = 0, //!< Motion Vectors use predicted values
4324 PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE_ZERO = 1, //!< Motion Vectors force to 0
4325 };
4326
4327 //! \brief PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE__BI_DIRECTION_MV_TYPE_OVERRIDE
4328 //! \details
4329 //! This field is only applicable if the Concealment Motion Type is
4330 //! predicted to be Bi-directional.
4331 //! (It is only possible if "P/B Slice Concealment Mode" is set to "00"
4332 //! or "01" and left MB is a bi-directional MB).
4333 enum PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE__BI_DIRECTION_MV_TYPE_OVERRIDE
4334 {
4335 PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE_BI_DIRECTION_MV_TYPE_OVERRIDE_BID = 0, //!< Keep Bi-direction Prediction
4336 PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE_BI_DIRECTION_MV_TYPE_OVERRIDE_FWD = 2, //!< Only use Forward Prediction (Backward MV is forced to invalid
4337 PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE_BI_DIRECTION_MV_TYPE_OVERRIDE_BWD = 3, //!< Only use Backward Prediction (Forward MV is forced to invalid)
4338 };
4339
4340 //! \brief PB_SLICE_CONCEALMENT_MODE_
4341 //! \details
4342 //! This field controls how MPEG decoder handles MB concealment in P/B
4343 //! Slice.
4344 enum PB_SLICE_CONCEALMENT_MODE_
4345 {
4346 PB_SLICE_CONCEALMENT_MODE_INTER = 0, //!< If left MB is NOT Intra MB type (including skipMB), use left MB inter prediction mode [frame/field or forward/backward/bi] and MV final values as concealment.Otherwise (left MB is Intra MB), use forward reference (same polarity for field pic) with MV final values set to 0.
4347 PB_SLICE_CONCEALMENT_MODE_LEFT = 1, //!< If left MB is NOT Intra MB type (including skipMB), use left MB inter prediction mode [frame/field or forward/backward/bi] and MV final values as concealment.Otherwise (left MB is Intra MB), use left MB dct_dc_pred[cc] values for concealment (Macroblock is concealed as INTRA MB and dct_dc_pred[cc] are DC predictor for Luma, Cr, Cb data)
4348 PB_SLICE_CONCEALMENT_MODE_ZERO = 2, //!< Always use forward reference (same polarity for field pic) with MV final values set to 0 (Macroblock is concealed as INTER coded)
4349 PB_SLICE_CONCEALMENT_MODE_INTRA = 3, //!< Use left MB dct_dc_pred[cc] values for concealment (Macroblock is concealed as INTRA MB and dct_dc_pred[cc] are DC predictor for Luma, Cr, Cb data
4350 };
4351
4352 //! \brief I_SLICE_CONCEALMENT_MODE_
4353 //! \details
4354 //! This field controls how MPEG decoder handles MB concealment in I Slice
4355 enum I_SLICE_CONCEALMENT_MODE_
4356 {
4357 I_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 0, //!< Using Coefficient values to handle MB concealment
4358 I_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 1, //!< Using Motion Vectors to handle MB concealment
4359 };
4360
4361 //! \brief SLICE_CONCEALMENT_DISABLE_BIT
4362 //! \details
4363 //! If VINunit detects the next slice starting position is either
4364 //! out-of-bound or smaller than or equal to the current slice starting
4365 //! position, VIN will set the current slice to be 1 MB and force VMDunit to
4366 //! do slice concealment on the next slice.
4367 //! This bit will disable this feature and the MB data from the next
4368 //! slice will be decoded from bitstream.
4369 enum SLICE_CONCEALMENT_DISABLE_BIT
4370 {
4371 SLICE_CONCEALMENT_DISABLE_BIT_ENABLE = 0, //!< VIN will force next slice to be concealment if detects slice boundary error
4372 SLICE_CONCEALMENT_DISABLE_BIT_DISABLE = 1, //!< VIN will not force next slice to be in concealment
4373 };
4374
4375 //! \brief MINFRAMEWSIZE
4376 //! \details
4377 //! - Minimum Frame Size [15:0] (16-bit) (Encoder Only)Mininum Frame Size is
4378 //! specified to compensate for intel Rate ControlCurrently zero fill (no
4379 //! need to perform emulation byte insertion) is done only to the end of the
4380 //! CABAC_ZERO_WORD insertion (if any) at the last slice of a picture. Intel
4381 //! encoder parameter. The caller should always make sure
4382 //! that the value, represented by Mininum Frame Size, is always less than
4383 //! maximum frame size FrameBitRateMax (DWORD 10 bits 29:16). This field is
4384 //! reserved in Decode mode.
4385 enum MINFRAMEWSIZE
4386 {
4387 MINFRAMEWSIZE_UNNAMED0 = 0, //!< No additional details
4388 };
4389
4390 //! \brief INTRAMBMAXSIZEREPORTMASK
4391 //! \details
4392 //! This is a mask bit controlling if the condition of any intra MB in the
4393 //! frame exceeds IntraMBMaxSize.
4394 enum INTRAMBMAXSIZEREPORTMASK
4395 {
4396 INTRAMBMAXSIZEREPORTMASK_UNNAMED0 = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4397 INTRAMBMAXSIZEREPORTMASK_UNNAMED1 = 1, //!< set bit0 of MFC_IMAGE_STATUS control register if the total bit counter for the current MB is greater than the Intra MB Conformance Max size limit.
4398 };
4399
4400 //! \brief INTERMBMAXSIZEREPORTMASK
4401 //! \details
4402 //! This is a mask bit controlling if the condition of any inter MB in the
4403 //! frame exceeds InterMBMaxSize.
4404 enum INTERMBMAXSIZEREPORTMASK
4405 {
4406 INTERMBMAXSIZEREPORTMASK_UNNAMED0 = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4407 INTERMBMAXSIZEREPORTMASK_UNNAMED1 = 1, //!< set bit0 of MFC_IMAGE_STATUS control register if the total bit counter for the current MB is greater than the Inter MB Conformance Max size limit.
4408 };
4409
4410 //! \brief FRAMEBITRATEMAXREPORTMASK_
4411 //! \details
4412 //! This is a mask bit controlling if the condition of frame level bit count
4413 //! exceeds FrameBitRateMax.
4414 enum FRAMEBITRATEMAXREPORTMASK_
4415 {
4416 FRAMEBITRATEMAXREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4417 FRAMEBITRATEMAXREPORTMASK_ENABLE = 1, //!< set bit0 and bit 1 of MFC_IMAGE_STATUS control register if the total frame level bit counter is greater than or equal to Frame Bit rate Maximum limit.
4418 };
4419
4420 //! \brief FRAMEBITRATEMINREPORTMASK
4421 //! \details
4422 //! This is a mask bit controlling if the condition of frame level bit count
4423 //! is less than FrameBitRateMin.
4424 enum FRAMEBITRATEMINREPORTMASK
4425 {
4426 FRAMEBITRATEMINREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4427 FRAMEBITRATEMINREPORTMASK_ENABLE = 1, //!< set bit0 and bit 1of MFC_IMAGE_STATUS control register if the total frame level bit counter is less than or equal to Frame Bit rate Minimum limit.
4428 };
4429
4430 //! \brief MBRATECONTROLMASK
4431 //! \details
4432 //! MB Rate Control conformance maskThis field is ignored when
4433 //! MacroblockStatEnable is disabled or MB level Rate control flag for the
4434 //! current MB is disable in Macroblock Status Buffer.
4435 enum MBRATECONTROLMASK
4436 {
4437 MBRATECONTROLMASK_UNNAMED0 = 0, //!< Do not change QP values of inter macroblock with suggested QP values in Macroblock Status Buffer
4438 MBRATECONTROLMASK_UNNAMED1 = 1, //!< Apply RC QP delta for all macroblock
4439 };
4440
4441 //! \brief MINFRAMEWSIZEUNITS
4442 //! \details
4443 //! This field is the Minimum Frame Size Units
4444 enum MINFRAMEWSIZEUNITS
4445 {
4446 MINFRAMEWSIZEUNITS_COMPATIBILITYMODE = 0, //!< Minimum Frame Size is in old mode (words, 2bytes)
4447 MINFRAMEWSIZEUNITS_16BYTE = 1, //!< Minimum Frame Size is in 16bytes
4448 MINFRAMEWSIZEUNITS_4KB = 2, //!< Minimum Frame Size is in 4Kbytes
4449 MINFRAMEWSIZEUNITS_16KB = 3, //!< Minimum Frame Size is in 16Kbytes
4450 };
4451
4452 //! \brief INTERMBFORCECBPZEROCONTROLMASK
4453 //! \details
4454 //! Inter MB Force CBP ZERO mask.
4455 enum INTERMBFORCECBPZEROCONTROLMASK
4456 {
4457 INTERMBFORCECBPZEROCONTROLMASK_UNNAMED0 = 0, //!< No effect
4458 INTERMBFORCECBPZEROCONTROLMASK_UNNAMED1 = 1, //!< Zero out all A/C coefficients for the inter MB violating Inter Confirmance
4459 };
4460
4461 //! \brief FRAMESIZECONTROLMASK
4462 //! \details
4463 //! Frame size conformance maskThis field is used when MacroblockStatEnable
4464 //! is set to 1.
4465 enum FRAMESIZECONTROLMASK
4466 {
4467 FRAMESIZECONTROLMASK_UNNAMED0 = 0, //!< Do not change Slice Quantization Parameter values in MFC_MPEG2_SLICEGROUP_STATE with suggested slice QP value for frame level Rate control
4468 FRAMESIZECONTROLMASK_UNNAMED1 = 1, //!< Replace Slice Quantization Parameter values in MFC_MPEG2_SLICEGROUP_STATE with suggested slice QP value for frame level Rate control values in MFC_IMAGE_STATUS control register.
4469 };
4470
4471 //! \brief INTRAMBMAXSIZE
4472 //! \details
4473 //! This field, Intra MB Conformance Max size limit,indicates the allowed
4474 //! max bit count size for Intra MB
4475 enum INTRAMBMAXSIZE
4476 {
4477 INTRAMBMAXSIZE_UNNAMED_4095 = 4095, //!< No additional details
4478 };
4479
4480 //! \brief INTERMBMAXSIZE
4481 //! \details
4482 //! This field, Inter MB Conformance Max size limit,indicates the allowed
4483 //! max bit count size for Inter MB
4484 enum INTERMBMAXSIZE
4485 {
4486 INTERMBMAXSIZE_UNNAMED_4095 = 4095, //!< No additional details
4487 };
4488
4489 enum VSL_TOP_MB_TRANS8X8FLAG
4490 {
4491 VSL_TOP_MB_TRANS8X8FLAG_DISABLE = 0, //!< VSL will only fetch the current MB data.
4492 VSL_TOP_MB_TRANS8X8FLAG_ENABLE = 1, //!< When this bit is set VSL will make extra fetch to memory to fetch the MB data for top MB.
4493 };
4494
4495 //! \brief SLICEDELTAQPMAX3
4496 //! \details
4497 //! This field is the Slice level delta QP for total
4498 //! bit-count above FrameBitRateMax - first 1/8 regionThis field is
4499 //! used to
4500 //! calculate the suggested slice QP into the MFC_IMAGE_STATUS control
4501 //! register when
4502 //! total bit count for the entire frame exceeds FrameBitRateMax but is
4503 //! within 1/8
4504 //! of FrameBitRateMaxDelta above FrameBitRateMax, i.e., in the range
4505 //! of
4506 //! (FrameBitRateMax, (FrameBitRateMax+
4507 //! FrameBitRateMaxDelta&gt;&gt;3).
4508 enum SLICEDELTAQPMAX3
4509 {
4510 SLICEDELTAQPMAX3_DISABLE = 0, //!< No additional details
4511 SLICEDELTAQPMAX3_ENABLE = 1, //!< No additional details
4512 };
4513
4514 //! \brief FRAMEBITRATEMINUNITMODE
4515 //! \details
4516 //! This field is the Frame Bitrate Minimum Limit
4517 //! Units.ValueNameDescriptionProject
4518 enum FRAMEBITRATEMINUNITMODE
4519 {
4520 FRAMEBITRATEMINUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
4521 FRAMEBITRATEMINUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
4522 };
4523
4524 //! \brief FRAMEBITRATEMINUNIT
4525 //! \details
4526 //! This field is the Frame Bitrate Minimum Limit Units.
4527 enum FRAMEBITRATEMINUNIT
4528 {
4529 FRAMEBITRATEMINUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMinUnitMode is 1 and in units of 128 Bytes if FrameBitrateMinUnitMode is 0
4530 FRAMEBITRATEMINUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
4531 };
4532
4533 //! \brief FRAMEBITRATEMAXUNITMODE
4534 //! \details
4535 //! BitFiel This field is the Frame Bitrate Maximum Limit Units.dDesc
4536 enum FRAMEBITRATEMAXUNITMODE
4537 {
4538 FRAMEBITRATEMAXUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
4539 FRAMEBITRATEMAXUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
4540 };
4541
4542 //! \brief FRAMEBITRATEMAXUNIT_
4543 //! \details
4544 //! This field is the Frame Bitrate Maximum Limit Units.
4545 enum FRAMEBITRATEMAXUNIT_
4546 {
4547 FRAMEBITRATEMAXUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMaxUnitMode is 1 and in units of 128 Bytes if FrameBitrateMaxUnitMode is 0
4548 FRAMEBITRATEMAXUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
4549 };
4550
4551 //! \brief FRAMEBITRATEMAXDELTA
4552 //! \details
4553 //! This field is used to select the slice delta QP when FrameBitRateMax Is
4554 //! exceeded. It shares the same FrameBitrateMaxUnit.
4555 //! The programmable range is either 0- 512KB or 4MBB in
4556 //! FrameBitrateMaxUnit of 128 Bytes or 16KB respectively.
4557 enum FRAMEBITRATEMAXDELTA
4558 {
4559 FRAMEBITRATEMAXDELTA_UNNAMED0 = 0, //!< No additional details
4560 };
4561
4562 //! \name Initializations
4563
4564 //! \brief Explicit member initialization function
4565 MFX_MPEG2_PIC_STATE_CMD();
4566
4567 static const size_t dwSize = 13;
4568 static const size_t byteSize = 52;
4569 };
4570
4571 //!
4572 //! \brief MFD_MPEG2_BSD_OBJECT
4573 //! \details
4574 //! Different from AVC and VC1, MFD_MPEG2_BSD_OBJECT command is pipelinable.
4575 //! This is for performance purpose as in MPEG2 a slice is defined as a
4576 //! group of MBs of any size that must be within a macroblock row.Slice
4577 //! header parameters are passed in as inline data and the bitstream data
4578 //! for the slice is passed in as indirect data. Of the inline data,
4579 //! slice_horizontal_position and slice_vertical_position determines the
4580 //! location within the destination picture of the first macroblock in the
4581 //! slice. The content in this command is identical to that in the
4582 //! MEDIA_OBJECT command in VLD mode described in the Media Chapter.
4583 //!
4584 struct MFD_MPEG2_BSD_OBJECT_CMD
4585 {
4586 union
4587 {
4588 //!< DWORD 0
4589 struct
4590 {
4591 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
4592 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4593 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
4594 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
4595 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
4596 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
4597 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
4598 };
4599 uint32_t Value;
4600 } DW0;
4601 union
4602 {
4603 //!< DWORD 1
4604 struct
4605 {
4606 uint32_t IndirectBsdDataLength ; //!< Indirect BSD Data Length
4607 };
4608 uint32_t Value;
4609 } DW1;
4610 union
4611 {
4612 //!< DWORD 2
4613 struct
4614 {
4615 uint32_t IndirectDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect Data Start Address
4616 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
4617 };
4618 uint32_t Value;
4619 } DW2;
4620 union
4621 {
4622 //!< DWORD 3
4623 struct
4624 {
4625 uint32_t FirstMacroblockBitOffset : __CODEGEN_BITFIELD( 0, 2) ; //!< First Macroblock Bit Offset
4626 uint32_t IsLastMb : __CODEGEN_BITFIELD( 3, 3) ; //!< IS_LAST_MB
4627 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 4) ; //!< Reserved
4628 uint32_t LastPicSlice : __CODEGEN_BITFIELD( 5, 5) ; //!< LAST_PIC_SLICE
4629 uint32_t SliceConcealmentTypeBit : __CODEGEN_BITFIELD( 6, 6) ; //!< SLICE_CONCEALMENT_TYPE_BIT
4630 uint32_t SliceConcealmentOverrideBit : __CODEGEN_BITFIELD( 7, 7) ; //!< SLICE_CONCEALMENT_OVERRIDE_BIT
4631 uint32_t MacroblockCount : __CODEGEN_BITFIELD( 8, 15) ; //!< Macroblock Count
4632 uint32_t SliceVerticalPosition : __CODEGEN_BITFIELD(16, 23) ; //!< Slice Vertical Position
4633 uint32_t SliceHorizontalPosition : __CODEGEN_BITFIELD(24, 31) ; //!< Slice Horizontal Position
4634 };
4635 uint32_t Value;
4636 } DW3;
4637 union
4638 {
4639 //!< DWORD 4
4640 struct
4641 {
4642 uint32_t NextSliceHorizontalPosition : __CODEGEN_BITFIELD( 0, 7) ; //!< Next Slice Horizontal Position
4643 uint32_t NextSliceVerticalPosition : __CODEGEN_BITFIELD( 8, 16) ; //!< Next Slice Vertical Position
4644 uint32_t Reserved145 : __CODEGEN_BITFIELD(17, 23) ; //!< Reserved
4645 uint32_t QuantizerScaleCode : __CODEGEN_BITFIELD(24, 28) ; //!< Quantizer Scale Code
4646 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
4647 };
4648 uint32_t Value;
4649 } DW4;
4650
4651 //! \name Local enumerations
4652
4653 enum SUBOPCODE_B
4654 {
4655 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
4656 };
4657
4658 enum SUBOPCODE_A
4659 {
4660 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
4661 };
4662
4663 enum MEDIA_COMMAND_OPCODE
4664 {
4665 MEDIA_COMMAND_OPCODE_MPEG2DEC = 3, //!< No additional details
4666 };
4667
4668 enum PIPELINE
4669 {
4670 PIPELINE_MFDMPEG2BSDOBJECT = 2, //!< No additional details
4671 };
4672
4673 enum COMMAND_TYPE
4674 {
4675 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
4676 };
4677
4678 enum IS_LAST_MB
4679 {
4680 IS_LAST_MB_UNNAMED0 = 0, //!< The current MB is not the last MB in the current Slice
4681 IS_LAST_MB_UNNAMED1 = 1, //!< The current MB is the last MB in the current Slice
4682 };
4683
4684 //! \brief LAST_PIC_SLICE
4685 //! \details
4686 //! This bit is added to support error concealment at the end of a picture.
4687 enum LAST_PIC_SLICE
4688 {
4689 LAST_PIC_SLICE_UNNAMED0 = 0, //!< The current Slice is not the last Slice of current picture
4690 LAST_PIC_SLICE_UNNAMED1 = 1, //!< The current Slice is the last Slice of the entire picture
4691 };
4692
4693 //! \brief SLICE_CONCEALMENT_TYPE_BIT
4694 //! \details
4695 //! This bit can be forced by driver ("Slice Concealment Override Bit") or
4696 //! set by VINunit depending on slice boundary errors.
4697 enum SLICE_CONCEALMENT_TYPE_BIT
4698 {
4699 SLICE_CONCEALMENT_TYPE_BIT_UNNAMED0 = 0, //!< VMD will decode MBs from the bitstream until the bitstream is run-out. Then VMD will conceal the remaining MBs.
4700 SLICE_CONCEALMENT_TYPE_BIT_UNNAMED1 = 1, //!< VMD will conceal all MBs of the slice regardless of bitstream. (If driver does not force the value of this bit, VIN will set this bit depending on slice boundary error. If the next slice position of the current slice is out-of-bound or the same or earlier than the current slice start position, VIN will set this bit for the next slice)
4701 };
4702
4703 //! \brief SLICE_CONCEALMENT_OVERRIDE_BIT
4704 //! \details
4705 //! This bit forces hardware to handle the current slice in Conceal or
4706 //! Deocde Mode. If this bit is set to one, VIN will force the current
4707 //! slice to do concealment or to decode from bitstream regardless if the
4708 //! slice boundary has errors or not.
4709 enum SLICE_CONCEALMENT_OVERRIDE_BIT
4710 {
4711 SLICE_CONCEALMENT_OVERRIDE_BIT_UNNAMED0 = 0, //!< Driver must program "Slice Concealment Type" to '0'. VIN will set "Slice Concealment Type" depending if the slice boundary has error or not
4712 SLICE_CONCEALMENT_OVERRIDE_BIT_UNNAMED1 = 1, //!< VIN will use driver-provided "Slice Concealment Type" regardless of valid slice boundary
4713 };
4714
4715 //! \name Initializations
4716
4717 //! \brief Explicit member initialization function
4718 MFD_MPEG2_BSD_OBJECT_CMD();
4719
4720 static const size_t dwSize = 5;
4721 static const size_t byteSize = 20;
4722 };
4723
4724 //!
4725 //! \brief MFD_IT_OBJECT_MPEG2_INLINE_DATA
4726 //! \details
4727 //! The content in this command is similar to that in the MEDIA_OBJECT
4728 //! command in IS mode described in the Media Chapter. Each MFD_IT_OBJECT
4729 //! command corresponds to the processing of one macroblock. Macroblock
4730 //! parameters are passed in as inline data and the non-zero DCT coefficient
4731 //! data for the macroblock is passed in as indirect data. Inline data
4732 //! starts at dword 7 of MFD_IT_OBJECT command. There are 7 dwords total.
4733 //!
4734 struct MFD_IT_OBJECT_MPEG2_INLINE_DATA_CMD
4735 {
4736 union
4737 {
4738 //!< DWORD 0
4739 struct
4740 {
4741 uint32_t Reserved0 : __CODEGEN_BITFIELD(0, 2); //!< Reserved
4742 uint32_t Lastmbinrow : __CODEGEN_BITFIELD(3, 3); //!< LastMBInRow
4743 uint32_t Reserved4 : __CODEGEN_BITFIELD(4, 5); //!< Reserved
4744 uint32_t CodedBlockPattern : __CODEGEN_BITFIELD(6, 11); //!< Coded Block Pattern
4745 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15); //!< Reserved
4746 uint32_t MacroblockIntraType : __CODEGEN_BITFIELD(16, 16); //!< MACROBLOCK_INTRA_TYPE
4747 uint32_t MacroblockMotionForward : __CODEGEN_BITFIELD(17, 17); //!< MACROBLOCK_MOTION_FORWARD
4748 uint32_t MacroblockMotionBackward : __CODEGEN_BITFIELD(18, 18); //!< MACROBLOCK_MOTION_BACKWARD
4749 uint32_t Reserved19 : __CODEGEN_BITFIELD(19, 20); //!< Reserved
4750 uint32_t DctType : __CODEGEN_BITFIELD(21, 21); //!< DCT_TYPE
4751 uint32_t Reserved22 : __CODEGEN_BITFIELD(22, 23); //!< Reserved
4752 uint32_t MotionType : __CODEGEN_BITFIELD(24, 25); //!< Motion Type
4753 uint32_t Reserved26 : __CODEGEN_BITFIELD(26, 27); //!< Reserved
4754 uint32_t MotionVerticalFieldSelect : __CODEGEN_BITFIELD(28, 31); //!< MOTION_VERTICAL_FIELD_SELECT
4755 };
4756 uint32_t Value;
4757 } DW0;
4758 union
4759 {
4760 //!< DWORD 1
4761 struct
4762 {
4763 uint32_t Horzorigin : __CODEGEN_BITFIELD(0, 7); //!< HorzOrigin
4764 uint32_t Vertorigin : __CODEGEN_BITFIELD(8, 15); //!< VertOrigin
4765 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
4766 };
4767 uint32_t Value;
4768 } DW1;
4769 union
4770 {
4771 //!< DWORD 2
4772 struct
4773 {
4774 uint32_t MotionVectorsField0ForwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 0, Forward, Horizontal Component
4775 uint32_t MotionVectorsField0ForwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 0, Forward, Vertical Component
4776 };
4777 uint32_t Value;
4778 } DW2;
4779 union
4780 {
4781 //!< DWORD 3
4782 struct
4783 {
4784 uint32_t MotionVectorsField0BackwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 0, Backward, Horizontal Component
4785 uint32_t MotionVectorsField0BackwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 0, Backward, Vertical Component
4786 };
4787 uint32_t Value;
4788 } DW3;
4789 union
4790 {
4791 //!< DWORD 4
4792 struct
4793 {
4794 uint32_t MotionVectorsField1ForwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 1, Forward, Horizontal Component
4795 uint32_t MotionVectorsField1ForwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 1, Forward, Vertical Component
4796 };
4797 uint32_t Value;
4798 } DW4;
4799 union
4800 {
4801 //!< DWORD 5
4802 struct
4803 {
4804 uint32_t MotionVectorsField1BackwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 1, Backward, Horizontal Component
4805 uint32_t MotionVectorsField1BackwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 1, Backward, Vertical Component
4806 };
4807 uint32_t Value;
4808 } DW5;
4809
4810 //! \name Local enumerations
4811
4812 //! \brief MACROBLOCK_INTRA_TYPE
4813 //! \details
4814 //! This field specifies if the current macroblock is intra-coded. When set,
4815 //! Coded Block Pattern is ignored and no prediction is performed (i.e., no
4816 //! motion vectors are used). See ISO/IEC 13818-2 Tables B-2 through B-4.
4817 enum MACROBLOCK_INTRA_TYPE
4818 {
4819 MACROBLOCK_INTRA_TYPE_NON_INTRAMACROBLOCK = 0, //!< No additional details
4820 MACROBLOCK_INTRA_TYPE_INTRAMACROBLOCK = 1, //!< No additional details
4821 };
4822
4823 //! \brief MACROBLOCK_MOTION_FORWARD
4824 //! \details
4825 //! This field specifies if the forward motion vector is active. See ISO/IEC
4826 //! 13818-2 Tables B-2 through B-4.
4827 enum MACROBLOCK_MOTION_FORWARD
4828 {
4829 MACROBLOCK_MOTION_FORWARD_NOFORWARDMOTIONVECTOR = 0, //!< No additional details
4830 MACROBLOCK_MOTION_FORWARD_USEFORWARDMOTIONVECTORS = 1, //!< No additional details
4831 };
4832
4833 //! \brief MACROBLOCK_MOTION_BACKWARD
4834 //! \details
4835 //! This field specifies if the backward motion vector is active. See
4836 //! ISO/IEC 13818-2 Tables B-2 through B-4.
4837 enum MACROBLOCK_MOTION_BACKWARD
4838 {
4839 MACROBLOCK_MOTION_BACKWARD_NOBACKWARDMOTIONVECTOR = 0, //!< No additional details
4840 MACROBLOCK_MOTION_BACKWARD_USEBACKWARDMOTIONVECTORS = 1, //!< No additional details
4841 };
4842
4843 //! \brief DCT_TYPE
4844 //! \details
4845 //! This field specifies the DCT type of the current macroblock. The kernel
4846 //! should ignore this field when processing Cb/Cr data. See ISO/IEC 13818-2
4847 //! #167;6.3.17.1. This field is zero if Coded Block Pattern is also zero
4848 //! (no coded blocks present).
4849 enum DCT_TYPE
4850 {
4851 DCT_TYPE_MCFRAMEDCT = 0, //!< Macroblock is frame DCT coded
4852 DCT_TYPE_MCFIELDDCT = 1, //!< Macroblock is field DCT coded
4853 };
4854
4855 //! \brief MOTION_VERTICAL_FIELD_SELECT
4856 //! \details
4857 //! A bit-wise representation of a long [2][2] array as defined in
4858 //! #167;6.3.17.2 of the ISO/IEC 13818-2 (see also #167;7.6.4).
4859 //! <table>
4860 //! <thead>
4861 //!
4862 //! <tr><td>Bit</td><td>MVector[r]</td><td>MVector[s]</td><td>MotionVerticalFieldSelect
4863 //! Index</td></tr>
4864 //! </thead>
4865 //! <tbody>
4866 //! <tr><td>28</td><td>0</td><td>0</td><td>0</td></tr>
4867 //! <tr><td>29</td><td>0</td><td>1</td><td>1</td></tr>
4868 //! <tr><td>30</td><td>1</td><td>0</td><td>2</td></tr>
4869 //! <tr><td>31</td><td>1</td><td>1</td><td>3</td></tr>
4870 //! </tbody>
4871 //! </table>
4872 enum MOTION_VERTICAL_FIELD_SELECT
4873 {
4874 MOTION_VERTICAL_FIELD_SELECT_TOPFIELD = 0, //!< The prediction is taken from the top reference field.
4875 MOTION_VERTICAL_FIELD_SELECT_BOTTOMFIELD = 1, //!< The prediction is taken from the bottom reference field.
4876 };
4877
4878 //! \name Initializations
4879
4880 //! \brief Explicit member initialization function
4881 MFD_IT_OBJECT_MPEG2_INLINE_DATA_CMD();
4882
4883 static const size_t dwSize = 6;
4884 static const size_t byteSize = 24;
4885 };
4886
4887 //!
4888 //! \brief MFD_IT_OBJECT_VC1_INLINE_DATA
4889 //! \details
4890 //! The content in this command is similar to that in the MEDIA_OBJECT
4891 //! command in IS mode described in the Media Chapter. Each MFD_IT_OBJECT
4892 //! command corresponds to the processing of one macroblock. Macroblock
4893 //! parameters are passed in as inline data and the non-zero DCT coefficient
4894 //! data for the macroblock is passed in as indirect data. Inline data
4895 //! starts at dword 7 of MFD_IT_OBJECT command. There are 7 dwords total.
4896 //!
4897 struct MFD_IT_OBJECT_VC1_INLINE_DATA_CMD
4898 {
4899 union
4900 {
4901 //!< DWORD 0
4902 struct
4903 {
4904 uint32_t Reserved0 : __CODEGEN_BITFIELD(0, 2); //!< Reserved
4905 uint32_t Lastmbinrow : __CODEGEN_BITFIELD(3, 3); //!< LastMBInRow
4906 uint32_t LastRowFlag : __CODEGEN_BITFIELD(4, 4); //!< Last Row Flag
4907 uint32_t ChromaIntraFlag : __CODEGEN_BITFIELD(5, 5); //!< Chroma Intra Flag
4908 uint32_t CodedBlockPattern : __CODEGEN_BITFIELD(6, 11); //!< Coded Block Pattern
4909 uint32_t LumaIntra8X8Flag : __CODEGEN_BITFIELD(12, 15); //!< Luma Intra 8x8 Flag
4910 uint32_t MacroblockIntraType : __CODEGEN_BITFIELD(16, 16); //!< MACROBLOCK_INTRA_TYPE
4911 uint32_t MacroblockMotionForward : __CODEGEN_BITFIELD(17, 17); //!< MACROBLOCK_MOTION_FORWARD
4912 uint32_t MacroblockMotionBackward : __CODEGEN_BITFIELD(18, 18); //!< MACROBLOCK_MOTION_BACKWARD
4913 uint32_t Motion4Mv : __CODEGEN_BITFIELD(19, 19); //!< MOTION4MV
4914 uint32_t Overlaptransform : __CODEGEN_BITFIELD(20, 20); //!< OVERLAPTRANSFORM
4915 uint32_t DctType : __CODEGEN_BITFIELD(21, 21); //!< DCT_TYPE
4916 uint32_t Mvswitch : __CODEGEN_BITFIELD(22, 22);
4917 uint32_t Reserved23 : __CODEGEN_BITFIELD(23, 23); //!< Reserved
4918 uint32_t MotionType : __CODEGEN_BITFIELD(24, 25); //!< Motion Type
4919 uint32_t Mvfieldselectchroma : __CODEGEN_BITFIELD(26, 26); //!< MvFieldSelectChroma
4920 uint32_t Reserved27 : __CODEGEN_BITFIELD(27, 27); //!< Reserved
4921 uint32_t MotionVerticalFieldSelect : __CODEGEN_BITFIELD(28, 31); //!< MOTION_VERTICAL_FIELD_SELECT
4922 };
4923 uint32_t Value;
4924 } DW0;
4925 union
4926 {
4927 //!< DWORD 1
4928 struct
4929 {
4930 uint32_t Horzorigin : __CODEGEN_BITFIELD(0, 7); //!< HorzOrigin
4931 uint32_t Vertorigin : __CODEGEN_BITFIELD(8, 15); //!< VertOrigin
4932 uint32_t Osedgemaskluma : __CODEGEN_BITFIELD(16, 23); //!< OSEdgeMaskLuma
4933 uint32_t Osedgemaskchroma : __CODEGEN_BITFIELD(24, 25); //!< OSEdgeMaskChroma
4934 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31); //!< Reserved
4935 };
4936 uint32_t Value;
4937 } DW1;
4938 union
4939 {
4940 //!< DWORD 2
4941 struct
4942 {
4943 uint32_t MotionVectorsField0ForwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 0, Forward, Horizontal Component
4944 uint32_t MotionVectorsField0ForwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 0, Forward, Vertical Component
4945 };
4946 uint32_t Value;
4947 } DW2;
4948 union
4949 {
4950 //!< DWORD 3
4951 struct
4952 {
4953 uint32_t Motionvector1; //!< MotionVector1
4954 };
4955 uint32_t Value;
4956 } DW3;
4957 union
4958 {
4959 //!< DWORD 4
4960 struct
4961 {
4962 uint32_t Motionvector2; //!< MotionVector2
4963 };
4964 uint32_t Value;
4965 } DW4;
4966 union
4967 {
4968 //!< DWORD 5
4969 struct
4970 {
4971 uint32_t Motionvector3; //!< MotionVector3
4972 };
4973 uint32_t Value;
4974 } DW5;
4975 union
4976 {
4977 //!< DWORD 6
4978 struct
4979 {
4980 uint32_t Motionvectorchroma; //!< MotionVectorChroma
4981 };
4982 uint32_t Value;
4983 } DW6;
4984 union
4985 {
4986 //!< DWORD 7
4987 struct
4988 {
4989 uint32_t SubblockCodeForY0 : __CODEGEN_BITFIELD(0, 7); //!< Subblock Code for Y0
4990 uint32_t SubblockCodeForY1 : __CODEGEN_BITFIELD(8, 15); //!< Subblock Code for Y1
4991 uint32_t SubblockCodeForY2 : __CODEGEN_BITFIELD(16, 23); //!< Subblock Code for Y2
4992 uint32_t SubblockCodeForY3 : __CODEGEN_BITFIELD(24, 31); //!< Subblock Code for Y3
4993 };
4994 uint32_t Value;
4995 } DW7;
4996 union
4997 {
4998 //!< DWORD 8
4999 struct
5000 {
5001 uint32_t SubblockCodeForCb : __CODEGEN_BITFIELD(0, 7); //!< Subblock Code for Cb
5002 uint32_t SubblockCodeForCr : __CODEGEN_BITFIELD(8, 15); //!< Subblock Code for Cr
5003 uint32_t Reserved272 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
5004 };
5005 uint32_t Value;
5006 } DW8;
5007 union
5008 {
5009 //!< DWORD 9
5010 struct
5011 {
5012 uint32_t IldbControlDataForBlockY0 : __CODEGEN_BITFIELD(0, 7); //!< ILDB control data for block Y0
5013 uint32_t IldbControlDataForBlockY1 : __CODEGEN_BITFIELD(8, 15); //!< ILDB control data for block Y1
5014 uint32_t IldbControlDataForBlockY2 : __CODEGEN_BITFIELD(16, 23); //!< ILDB control data for block Y2
5015 uint32_t IldbControlDataForBlockY3 : __CODEGEN_BITFIELD(24, 31); //!< ILDB control data for block Y3
5016 };
5017 uint32_t Value;
5018 } DW9;
5019 union
5020 {
5021 //!< DWORD 10
5022 struct
5023 {
5024 uint32_t IldbControlDataForCbBlock : __CODEGEN_BITFIELD(0, 7); //!< ILDB control data for Cb block
5025 uint32_t IldbControlDataForCrBlock : __CODEGEN_BITFIELD(8, 15); //!< ILDB control data for Cr block
5026 uint32_t Reserved336 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
5027 };
5028 uint32_t Value;
5029 } DW10;
5030
5031 //! \name Local enumerations
5032
5033 //! \brief MACROBLOCK_INTRA_TYPE
5034 //! \details
5035 //! This field specifies if the current macroblock is intra-coded. When set,
5036 //! Coded Block Pattern is ignored and no prediction is performed (i.e., no
5037 //! motion vectors are used). See ISO/IEC 13818-2 Tables B-2 through B-4.
5038 enum MACROBLOCK_INTRA_TYPE
5039 {
5040 MACROBLOCK_INTRA_TYPE_NON_INTRAMACROBLOCK = 0, //!< No additional details
5041 MACROBLOCK_INTRA_TYPE_INTRAMACROBLOCK = 1, //!< No additional details
5042 };
5043
5044 //! \brief MACROBLOCK_MOTION_FORWARD
5045 //! \details
5046 //! This field specifies if the forward motion vector is active. See ISO/IEC
5047 //! 13818-2 Tables B-2 through B-4.
5048 enum MACROBLOCK_MOTION_FORWARD
5049 {
5050 MACROBLOCK_MOTION_FORWARD_NOFORWARDMOTIONVECTOR = 0, //!< No additional details
5051 MACROBLOCK_MOTION_FORWARD_USEFORWARDMOTIONVECTORS = 1, //!< No additional details
5052 };
5053
5054 //! \brief MACROBLOCK_MOTION_BACKWARD
5055 //! \details
5056 //! This field specifies if the backward motion vector is active. See
5057 //! ISO/IEC 13818-2 Tables B-2 through B-4.
5058 enum MACROBLOCK_MOTION_BACKWARD
5059 {
5060 MACROBLOCK_MOTION_BACKWARD_NOBACKWARDMOTIONVECTOR = 0, //!< No additional details
5061 MACROBLOCK_MOTION_BACKWARD_USEBACKWARDMOTIONVECTORS = 1, //!< No additional details
5062 };
5063
5064 enum MOTION4MV
5065 {
5066 MOTION4MV_1MV_MODE = 0, //!< No additional details
5067 MOTION4MV_4MV_MODE = 1, //!< No additional details
5068 };
5069
5070 //! \brief OVERLAPTRANSFORM
5071 //! \details
5072 //! Was Overlap Transform - H261 Loop Filter
5073 enum OVERLAPTRANSFORM
5074 {
5075 OVERLAPTRANSFORM_NOOVERLAPSMOOTHINGFILTER = 0, //!< This field indicates whether overlap smoothing filter should be performed on I-block boundaries.
5076 OVERLAPTRANSFORM_OVERLAPSMOOTHINGFILTERPERFORMED = 1, //!< Macroblock is field DCT coded
5077 };
5078
5079 //! \brief DCT_TYPE
5080 //! \details
5081 //! This field specifies the DCT type of the current macroblock. The kernel
5082 //! should ignore this field when processing Cb/Cr data. See ISO/IEC 13818-2
5083 //! #167;6.3.17.1. This field is zero if Coded Block Pattern is also zero
5084 //! (no coded blocks present).
5085 enum DCT_TYPE
5086 {
5087 DCT_TYPE_MCFRAMEDCT = 0, //!< Macroblock is frame DCT coded
5088 DCT_TYPE_MCFIELDDCT = 1, //!< Macroblock is field DCT coded
5089 };
5090
5091 //! \brief MOTION_VERTICAL_FIELD_SELECT
5092 //! \details
5093 //! A bit-wise representation of a long [2][2] array as defined in
5094 //! #167;6.3.17.2 of the ISO/IEC 13818-2 (see also #167;7.6.4).
5095 //! <table>
5096 //! <thead>
5097 //!
5098 //! <tr><td>Bit</td><td>MVector[r]</td><td>MVector[s]</td><td>MotionVerticalFieldSelect
5099 //! Index</td></tr>
5100 //! </thead>
5101 //! <tbody>
5102 //! <tr><td>28</td><td>0</td><td>0</td><td>0</td></tr>
5103 //! <tr><td>29</td><td>0</td><td>1</td><td>1</td></tr>
5104 //! <tr><td>30</td><td>1</td><td>0</td><td>2</td></tr>
5105 //! <tr><td>31</td><td>1</td><td>1</td><td>3</td></tr>
5106 //! </tbody>
5107 //! </table>
5108 enum MOTION_VERTICAL_FIELD_SELECT
5109 {
5110 MOTION_VERTICAL_FIELD_SELECT_TOPFIELD = 0, //!< The prediction is taken from the top reference field.
5111 MOTION_VERTICAL_FIELD_SELECT_BOTTOMFIELD = 1, //!< The prediction is taken from the bottom reference field.
5112 };
5113
5114 //! \name Initializations
5115
5116 //! \brief Explicit member initialization function
5117 MFD_IT_OBJECT_VC1_INLINE_DATA_CMD();
5118
5119 static const size_t dwSize = 11;
5120 static const size_t byteSize = 44;
5121 };
5122
5123 //!
5124 //! \brief MFD_IT_OBJECT
5125 //! \details
5126 //! All weight mode (default and implicit) are mapped to explicit mode. But
5127 //! the weights come in either as explicit or implicit.
5128 //!
5129 struct MFD_IT_OBJECT_CMD
5130 {
5131 union
5132 {
5133 //!< DWORD 0
5134 struct
5135 {
5136 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5137 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5138 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5139 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5140 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5141 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5142 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5143 };
5144 uint32_t Value;
5145 } DW0;
5146 union
5147 {
5148 //!< DWORD 1
5149 struct
5150 {
5151 uint32_t IndirectItMvDataLength : __CODEGEN_BITFIELD( 0, 9) ; //!< Indirect IT-MV Data Length
5152 uint32_t Reserved42 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved
5153 };
5154 uint32_t Value;
5155 } DW1;
5156 union
5157 {
5158 //!< DWORD 2
5159 struct
5160 {
5161 uint32_t IndirectItMvDataStartAddressOffset : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect IT-MV Data Start Address Offset
5162 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5163 };
5164 uint32_t Value;
5165 } DW2;
5166 union
5167 {
5168 //!< DWORD 3
5169 struct
5170 {
5171 uint32_t IndirectItCoeffDataLength : __CODEGEN_BITFIELD( 0, 11) ; //!< Indirect IT-COEFF Data Length
5172 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 31) ; //!< Reserved
5173 };
5174 uint32_t Value;
5175 } DW3;
5176 union
5177 {
5178 //!< DWORD 4
5179 struct
5180 {
5181 uint32_t IndirectItCoeffDataStartAddressOffset : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect IT-COEFF Data Start Address Offset
5182 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5183 };
5184 uint32_t Value;
5185 } DW4;
5186 union
5187 {
5188 //!< DWORD 5
5189 struct
5190 {
5191 uint32_t IndirectItDblkControlDataLength : __CODEGEN_BITFIELD( 0, 5) ; //!< Indirect IT-DBLK Control Data Length
5192 uint32_t Reserved166 : __CODEGEN_BITFIELD( 6, 31) ; //!< Reserved
5193 };
5194 uint32_t Value;
5195 } DW5;
5196 union
5197 {
5198 //!< DWORD 6
5199 struct
5200 {
5201 uint32_t IndirectItDblkControlDataStartAddressOffset : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect IT-DBLK Control Data Start Address Offset
5202 uint32_t Reserved221 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5203 };
5204 uint32_t Value;
5205 } DW6;
5206
5207 //! \name Local enumerations
5208
5209 enum SUBOPCODE_B
5210 {
5211 SUBOPCODE_B_UNNAMED9 = 9, //!< No additional details
5212 };
5213
5214 enum SUBOPCODE_A
5215 {
5216 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
5217 };
5218
5219 enum MEDIA_COMMAND_OPCODE
5220 {
5221 MEDIA_COMMAND_OPCODE_MFXCOMMONDEC = 0, //!< No additional details
5222 };
5223
5224 enum PIPELINE
5225 {
5226 PIPELINE_MFDITOBJECT = 2, //!< No additional details
5227 };
5228
5229 enum COMMAND_TYPE
5230 {
5231 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5232 };
5233
5234 //! \name Initializations
5235
5236 //! \brief Explicit member initialization function
5237 MFD_IT_OBJECT_CMD();
5238
5239 static const size_t dwSize = 7;
5240 static const size_t byteSize = 28;
5241 };
5242
5243 //!
5244 //! \brief MFC_MPEG2_SLICEGROUP_STATE
5245 //! \details
5246 //! This is a slice group level command and can be issued multiple times
5247 //! within a picture that is comprised of multiple slice groups. The same
5248 //! command is used for AVC encoder (PAK mode) and decoder (VLD and IT
5249 //! modes).
5250 //!
5251 struct MFC_MPEG2_SLICEGROUP_STATE_CMD
5252 {
5253 union
5254 {
5255 //!< DWORD 0
5256 struct
5257 {
5258 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5259 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5260 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5261 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5262 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5263 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5264 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5265 };
5266 uint32_t Value;
5267 } DW0;
5268 union
5269 {
5270 //!< DWORD 1
5271 struct
5272 {
5273 uint32_t Streamid10EncoderOnly : __CODEGEN_BITFIELD( 0, 1) ; //!< StreamID[1:0] (Encoder-only)
5274 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
5275 uint32_t Sliceid30EncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< SliceID[3:0] (Encoder-only)
5276 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 11) ; //!< Reserved
5277 uint32_t Intrasliceflag : __CODEGEN_BITFIELD(12, 12) ; //!< IntraSliceFlag
5278 uint32_t Intraslice : __CODEGEN_BITFIELD(13, 13) ; //!< IntraSlice
5279 uint32_t Firstslicehdrdisabled : __CODEGEN_BITFIELD(14, 14) ; //!< FirstSliceHdrDisabled
5280 uint32_t TailpresentflagTailInsertionPresentInBitstreamEncoderOnly : __CODEGEN_BITFIELD(15, 15) ; //!< TAILPRESENTFLAG__TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5281 uint32_t SlicedataPresentflagSlicedataInsertionPresentInBitstreamEncoderOnly : __CODEGEN_BITFIELD(16, 16) ; //!< SLICEDATA_PRESENTFLAG__SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5282 uint32_t HeaderpresentflagHeaderInsertionPresentInBitstreamEncoderOnly : __CODEGEN_BITFIELD(17, 17) ; //!< HEADERPRESENTFLAG__HEADER_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5283 uint32_t BitstreamoutputflagCompressedBitstreamOutputDisableFlagEncoderOnly : __CODEGEN_BITFIELD(18, 18) ; //!< BITSTREAMOUTPUTFLAG__COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY
5284 uint32_t Islastslicegrp : __CODEGEN_BITFIELD(19, 19) ; //!< IsLastSliceGrp
5285 uint32_t SkipconvdisabledMbTypeSkipConversionDisableEncoderOnly : __CODEGEN_BITFIELD(20, 20) ; //!< SKIPCONVDISABLED__MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY
5286 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 21) ; //!< Reserved
5287 uint32_t RatectrlpanictypeRcPanicTypeEncoderOnly : __CODEGEN_BITFIELD(22, 22) ; //!< RATECTRLPANICTYPE__RC_PANIC_TYPE_ENCODER_ONLY
5288 uint32_t RatectrlpanicflagRcPanicEnableEncoderOnly : __CODEGEN_BITFIELD(23, 23) ; //!< RATECTRLPANICFLAG__RC_PANIC_ENABLE_ENCODER_ONLY
5289 uint32_t MbratectrlparamRcStableToleranceEncoderOnly : __CODEGEN_BITFIELD(24, 27) ; //!< MbRateCtrlParam- RC Stable Tolerance (Encoder-only)
5290 uint32_t MbratectrlmodeRcTriggleModeEncoderOnly : __CODEGEN_BITFIELD(28, 29) ; //!< MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY
5291 uint32_t MbratectrlresetResetratecontrolcounterEncoderOnly : __CODEGEN_BITFIELD(30, 30) ; //!< MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY
5292 uint32_t MbratectrlflagRatecontrolcounterenableEncoderOnly : __CODEGEN_BITFIELD(31, 31) ; //!< MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY
5293 };
5294 uint32_t Value;
5295 } DW1;
5296 union
5297 {
5298 //!< DWORD 2
5299 struct
5300 {
5301 uint32_t FirstmbxcntAlsoCurrstarthorzpos : __CODEGEN_BITFIELD( 0, 7) ; //!< FirstMbXcnt - also CurrStartHorzPos
5302 uint32_t FirstmbycntAlsoCurrstartvertpos : __CODEGEN_BITFIELD( 8, 15) ; //!< FirstMbYcnt - also CurrStartVertPos
5303 uint32_t NextsgmbxcntAlsoNextstarthorzpos : __CODEGEN_BITFIELD(16, 23) ; //!< NextSgMbXcnt - also NextStartHorzPos
5304 uint32_t NextsgmbycntAlsoNextstartvertpos : __CODEGEN_BITFIELD(24, 31) ; //!< NextSgMbYcnt - also NextStartVertPos
5305 };
5306 uint32_t Value;
5307 } DW2;
5308 union
5309 {
5310 //!< DWORD 3
5311 struct
5312 {
5313 uint32_t Slicegroupqp : __CODEGEN_BITFIELD( 0, 5) ; //!< SliceGroupQp
5314 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5315 uint32_t Slicegroupskip : __CODEGEN_BITFIELD( 8, 8) ; //!< SliceGroupSkip
5316 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
5317 };
5318 uint32_t Value;
5319 } DW3;
5320 union
5321 {
5322 //!< DWORD 4
5323 struct
5324 {
5325 uint32_t BitstreamoffsetIndirectPakBseDataStartAddressWrite : __CODEGEN_BITFIELD( 0, 28) ; //!< BitstreamOffset - Indirect PAK-BSE Data Start Address (Write)
5326 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5327 };
5328 uint32_t Value;
5329 } DW4;
5330 union
5331 {
5332 //!< DWORD 5
5333 struct
5334 {
5335 uint32_t GrowparamGrowInitEncoderOnly : __CODEGEN_BITFIELD( 0, 3) ; //!< GrowParam - Grow Init (Encoder-only)
5336 uint32_t GrowparamGrowResistanceEncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< GrowParam - Grow Resistance (Encoder-only)
5337 uint32_t ShrinkaramShrinkInitEncoderOnly : __CODEGEN_BITFIELD( 8, 11) ; //!< Shrinkaram - Shrink Init (Encoder-only)
5338 uint32_t ShrinkparamShrinkResistanceEncoderOnly : __CODEGEN_BITFIELD(12, 15) ; //!< ShrinkParam - Shrink Resistance (Encoder-only)
5339 uint32_t MaxqpposmodifierMagnitudeOfQpMaxPositiveModifierEncoderOnly : __CODEGEN_BITFIELD(16, 23) ; //!< MaxQpPosModifier - Magnitude of QP Max Positive Modifier (Encoder-only)
5340 uint32_t MaxqpnegmodifierMagnitudeOfQpMaxNegativeModifierEncoderOnly : __CODEGEN_BITFIELD(24, 31) ; //!< MaxQpNegModifier - Magnitude of QP Max Negative Modifier (Encoder-only)
5341 };
5342 uint32_t Value;
5343 } DW5;
5344 union
5345 {
5346 //!< DWORD 6
5347 struct
5348 {
5349 uint32_t CorrectpointsCorrect1EncoderOnly : __CODEGEN_BITFIELD( 0, 3) ; //!< CorrectPoints - Correct 1 (Encoder-only)
5350 uint32_t CorrectpointsCorrect2EncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< CorrectPoints - Correct 2 (Encoder-only)
5351 uint32_t CorrectpointsCorrect3EncoderOnly : __CODEGEN_BITFIELD( 8, 11) ; //!< CorrectPoints - Correct 3 (Encoder-only)
5352 uint32_t CorrectpointsCorrect4EncoderOnly : __CODEGEN_BITFIELD(12, 15) ; //!< CorrectPoints - Correct 4 (Encoder-only)
5353 uint32_t CorrectpointsCorrect5EncoderOnly : __CODEGEN_BITFIELD(16, 19) ; //!< CorrectPoints - Correct 5 (Encoder-only)
5354 uint32_t CorrectpointsCorrect6EncoderOnly : __CODEGEN_BITFIELD(20, 23) ; //!< CorrectPoints - Correct 6 (Encoder-only)
5355 uint32_t Reserved216 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
5356 };
5357 uint32_t Value;
5358 } DW6;
5359 union
5360 {
5361 //!< DWORD 7
5362 struct
5363 {
5364 uint32_t Cv0ClampValue0EncoderOnly : __CODEGEN_BITFIELD( 0, 3) ; //!< CV0 - Clamp Value 0 (Encoder-only)
5365 uint32_t Cv1ClampValue1EncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< CV1 - Clamp Value 1 (Encoder-only)
5366 uint32_t Cv2ClampValue2EncoderOnly : __CODEGEN_BITFIELD( 8, 11) ; //!< CV2 - Clamp Value 2 (Encoder-only)
5367 uint32_t Cv3ClampValue3EncoderOnly : __CODEGEN_BITFIELD(12, 15) ; //!< CV3 - Clamp Value 3 (Encoder-only)
5368 uint32_t Cv4ClampValue4EncoderOnly : __CODEGEN_BITFIELD(16, 19) ; //!< CV4 - Clamp Value 4 (Encoder-only)
5369 uint32_t Cv5ClampValue5EncoderOnly : __CODEGEN_BITFIELD(20, 23) ; //!< CV5 - Clamp Value 5 (Encoder-only)
5370 uint32_t Cv6ClampValue6EncoderOnly : __CODEGEN_BITFIELD(24, 27) ; //!< CV6 - Clamp Value 6 (Encoder-only)
5371 uint32_t Cv7ClampValue7EncoderOnly : __CODEGEN_BITFIELD(28, 31) ; //!< CV7 - Clamp Value 7 (Encoder-only)
5372 };
5373 uint32_t Value;
5374 } DW7;
5375
5376 //! \name Local enumerations
5377
5378 enum SUBOPCODE_B
5379 {
5380 SUBOPCODE_B_MEDIA = 3, //!< No additional details
5381 };
5382
5383 enum SUBOPCODE_A
5384 {
5385 SUBOPCODE_A_MEDIA = 2, //!< No additional details
5386 };
5387
5388 enum MEDIA_COMMAND_OPCODE
5389 {
5390 MEDIA_COMMAND_OPCODE_MPEG2 = 3, //!< No additional details
5391 };
5392
5393 enum PIPELINE
5394 {
5395 PIPELINE_MFXMPEG2SLICEGROUPSTATE = 2, //!< No additional details
5396 };
5397
5398 enum COMMAND_TYPE
5399 {
5400 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5401 };
5402
5403 enum TAILPRESENTFLAG__TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5404 {
5405 TAILPRESENTFLAG_TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_UNNAMED0 = 0, //!< no tail insertion into the output bitstream buffer, after the current slice encoded bits
5406 TAILPRESENTFLAG_TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_UNNAMED1 = 1, //!< tail insertion into the output bitstream buffer is present, and is after the current slice encoded bits.
5407 };
5408
5409 enum SLICEDATA_PRESENTFLAG__SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5410 {
5411 SLICEDATA_PRESENTFLAG_SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_DISABLE = 0, //!< no Slice Data insertion into the output bitstream buffer
5412 SLICEDATA_PRESENTFLAG_SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_ENABLE = 1, //!< Slice Data insertion into the output bitstream buffer is present.
5413 };
5414
5415 enum HEADERPRESENTFLAG__HEADER_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5416 {
5417 HEADERPRESENTFLAG_HEADER_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_DISABLE = 0, //!< no header insertion into the output bitstream buffer, in front of the current slice encoded bits
5418 HEADERPRESENTFLAG_HEADER_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_ENABLE = 1, //!< header insertion into the output bitstream buffer is present, and is in front of the current slice encoded bits.
5419 };
5420
5421 enum BITSTREAMOUTPUTFLAG__COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY
5422 {
5423 BITSTREAMOUTPUTFLAG_COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY_ENABLE = 0, //!< enable the writing of the output compressed bitstream
5424 BITSTREAMOUTPUTFLAG_COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY_DISABLE = 1, //!< disable the writing of the output compressed bitstream
5425 };
5426
5427 //! \brief SKIPCONVDISABLED__MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY
5428 //! \details
5429 //! This field is only valid for a P or B slice. It must be zero for other
5430 //! slice types. Rules are provided in Section 2.3.3.1.6
5431 enum SKIPCONVDISABLED__MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY
5432 {
5433 SKIPCONVDISABLED_MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY_ENABLE = 0, //!< Enable skip type conversion
5434 SKIPCONVDISABLED_MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY_DISABLE = 1, //!< Disable skip type conversion
5435 };
5436
5437 //! \brief RATECTRLPANICTYPE__RC_PANIC_TYPE_ENCODER_ONLY
5438 //! \details
5439 //! This field selects between two RC Panic methods. If it is set to 0, in
5440 //! panic mode, the macroblock QP is maxed out, setting to requested QP +
5441 //! QP_max_pos_mod. If it is set to 1, for an intra macroblock, AC CBPs are
5442 //! set to zero (note that DC CBPs are not modified). For inter macroblocks,
5443 //! AC and DC CBPs are forced to zero.
5444 enum RATECTRLPANICTYPE__RC_PANIC_TYPE_ENCODER_ONLY
5445 {
5446 RATECTRLPANICTYPE_RC_PANIC_TYPE_ENCODER_ONLY_UNNAMED0 = 0, //!< QP Panic
5447 RATECTRLPANICTYPE_RC_PANIC_TYPE_ENCODER_ONLY_UNNAMED1 = 1, //!< CBP Panic
5448 };
5449
5450 //! \brief RATECTRLPANICFLAG__RC_PANIC_ENABLE_ENCODER_ONLY
5451 //! \details
5452 //! If this field is set to 1, RC enters panic mode
5453 //! when sum_act &gt; sum_max. RC Panic Type field controls what type
5454 //! of panic
5455 //! behavior is invoked.
5456 enum RATECTRLPANICFLAG__RC_PANIC_ENABLE_ENCODER_ONLY
5457 {
5458 RATECTRLPANICFLAG_RC_PANIC_ENABLE_ENCODER_ONLY_DISABLE = 0, //!< No additional details
5459 RATECTRLPANICFLAG_RC_PANIC_ENABLE_ENCODER_ONLY_ENABLE = 1, //!< No additional details
5460 };
5461
5462 enum MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY
5463 {
5464 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED0 = 0, //!< Always Rate Control, whereas RC becomes activeif sum_act > sum_target or sum_act < sum_target
5465 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED1 = 1, //!< Gentle Rate Control, whereas RC becomes activeif sum_act > upper_midpt or sum_act < lower_midpt
5466 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED2 = 2, //!< Loose Rate Control, whereas RC becomes activeif sum_act > sum_max or sum_act < sum_min
5467 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED3 = 3, //!< Reserved
5468 };
5469
5470 //! \brief MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY
5471 //! \details
5472 //! To reset the bit allocation accumulation counter to 0 to restart the
5473 //! rate control.
5474 enum MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY
5475 {
5476 MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY_DISABLE = 0, //!< Not reset
5477 MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY_ENABLE = 1, //!< reset
5478 };
5479
5480 //! \brief MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY
5481 //! \details
5482 //! To enable the accumulation of bit allocation for rate controlThis field
5483 //! enables hardware Rate Control logic. The rest of the RC control fields
5484 //! are only valid when this field is set to 1. Otherwise, hardware ignores
5485 //! these fields.Note: To reset MB level rate control (QRC), we need to set
5486 //! both bits MbRateCtrlFlag and MbRateCtrlReset to 1 in the new slice
5487 enum MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY
5488 {
5489 MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY_DISABLE = 0, //!< No additional details
5490 MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY_ENABLE = 1, //!< No additional details
5491 };
5492
5493 //! \name Initializations
5494
5495 //! \brief Explicit member initialization function
5496 MFC_MPEG2_SLICEGROUP_STATE_CMD();
5497
5498 static const size_t dwSize = 8;
5499 static const size_t byteSize = 32;
5500 };
5501
5502 //!
5503 //! \brief MFX_VC1_PRED_PIPE_STATE
5504 //! \details
5505 //! This command is used to set the operating states of the MFD Engine
5506 //! beyond the BSD unit. It is used with both VC1 Long and Short
5507 //! format.Driver is responsible to take the intensity compensation enable
5508 //! signal, the LumScale and the LumShift provided from VC1
5509 //! interface, and maintain a history of these values for reference
5510 //! pictures. Together with these three parameters specified for the current
5511 //! picture being decoded, driver will derive and supply the above sets of
5512 //! LumScaleX, LumShiftX and intensity compensation enable (single or
5513 //! double, forward or backward) signals. H/W is responsible to take these
5514 //! state values, and use them to build the lookup table (including the
5515 //! derivation of iScale and iShift) for remapping the reference frame
5516 //! pixels, as well as perfoming the actual pixel remapping
5517 //! calculations/process.
5518 //!
5519 struct MFX_VC1_PRED_PIPE_STATE_CMD
5520 {
5521 union
5522 {
5523 //!< DWORD 0
5524 struct
5525 {
5526 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5527 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5528 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5529 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5530 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5531 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5532 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5533 };
5534 uint32_t Value;
5535 } DW0;
5536 union
5537 {
5538 //!< DWORD 1
5539 struct
5540 {
5541 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 3) ; //!< Reserved
5542 uint32_t ReferenceFrameBoundaryReplicationMode : __CODEGEN_BITFIELD( 4, 7) ; //!< Reference Frame Boundary Replication Mode
5543 uint32_t VinIntensitycompSingleBwden : __CODEGEN_BITFIELD( 8, 9) ; //!< vin_intensitycomp_Single_BWDen
5544 uint32_t VinIntensitycompSingleFwden : __CODEGEN_BITFIELD(10, 11) ; //!< vin_intensitycomp_Single_FWDen
5545 uint32_t VinIntensitycompDoubleBwden : __CODEGEN_BITFIELD(12, 13) ; //!< vin_intensitycomp_Double_BWDen
5546 uint32_t VinIntensitycompDoubleFwden : __CODEGEN_BITFIELD(14, 15) ; //!< vin_intensitycomp_Double_FWDen
5547 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5548 };
5549 uint32_t Value;
5550 } DW1;
5551 union
5552 {
5553 //!< DWORD 2
5554 struct
5555 {
5556 uint32_t Lumscale1SingleFwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - Single - FWD
5557 uint32_t Reserved70 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5558 uint32_t Lumscale2SingleFwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - single - FWD
5559 uint32_t Reserved78 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5560 uint32_t Lumshift1SingleFwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - single - FWD
5561 uint32_t Reserved86 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5562 uint32_t Lumshift2SingleFwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- single - FWD
5563 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5564 };
5565 uint32_t Value;
5566 } DW2;
5567 union
5568 {
5569 //!< DWORD 3
5570 struct
5571 {
5572 uint32_t Lumscale1DoubleFwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - double - FWD
5573 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5574 uint32_t Lumscale2DoubleFwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - double - FWD
5575 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5576 uint32_t Lumshift1DoubleFwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - double -FWD
5577 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5578 uint32_t Lumshift2DoubleFwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- double - FWD
5579 uint32_t Reserved126 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5580 };
5581 uint32_t Value;
5582 } DW3;
5583 union
5584 {
5585 //!< DWORD 4
5586 struct
5587 {
5588 uint32_t Lumscale1SingleBwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - Single - BWD
5589 uint32_t Reserved134 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5590 uint32_t Lumscale2SingleBwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - single - BWD
5591 uint32_t Reserved142 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5592 uint32_t Lumshift1SingleBwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - single - BWD
5593 uint32_t Reserved150 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5594 uint32_t Lumshift2SingleBwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- single - BWD
5595 uint32_t Reserved158 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5596 };
5597 uint32_t Value;
5598 } DW4;
5599 union
5600 {
5601 //!< DWORD 5
5602 struct
5603 {
5604 uint32_t Lumscale1DoubleBwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - double - BWD
5605 uint32_t Reserved166 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5606 uint32_t Lumscale2DoubleBwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - double - BWD
5607 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5608 uint32_t Lumshift1DoubleBwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - double -BWD
5609 uint32_t Reserved182 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5610 uint32_t Lumshift2DoubleBwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- double - BWD
5611 uint32_t Reserved190 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5612 };
5613 uint32_t Value;
5614 } DW5;
5615
5616 //! \name Local enumerations
5617
5618 enum SUBOPCODE_B
5619 {
5620 SUBOPCODE_B_UNNAMED1 = 1, //!< No additional details
5621 };
5622
5623 enum SUBOPCODE_A
5624 {
5625 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
5626 };
5627
5628 enum MEDIA_COMMAND_OPCODE
5629 {
5630 MEDIA_COMMAND_OPCODE_VC1COMMON = 2, //!< No additional details
5631 };
5632
5633 enum PIPELINE
5634 {
5635 PIPELINE_MFXVC1PREDPIPESTATE = 2, //!< No additional details
5636 };
5637
5638 enum COMMAND_TYPE
5639 {
5640 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5641 };
5642
5643 //! \name Initializations
5644
5645 //! \brief Explicit member initialization function
5646 MFX_VC1_PRED_PIPE_STATE_CMD();
5647
5648 static const size_t dwSize = 6;
5649 static const size_t byteSize = 24;
5650 };
5651
5652 //!
5653 //! \brief MFD_VC1_LONG_PIC_STATE
5654 //! \details
5655 //! MFX_VC1_LONG PIC_STATE command encapsulates the decoding parameters that
5656 //! are read or derived from bitstream syntax elements above (inclusive)
5657 //! picture header layer. These parameters are static for a picture and when
5658 //! slice structure is present, these parameters are not changed from slice
5659 //! to slice of the same picture. Hence, this command is only issued at the
5660 //! beginning of processing a new picture and prior to the VC1_*_OBJECT
5661 //! command. The values set for these state variables are retained
5662 //! internally across slices.Only the parameters needed by hardware (BSD
5663 //! unit) to decode bit sequence for the macroblocks in a picture layer or a
5664 //! slice layer are presented in this command. Other parameters such as the
5665 //! ones used for inverse transform or motion compensation are provided in
5666 //! MFX_VC1_PRED_PIPE_STATE command.This Long interface format is intel
5667 //! proprietary interface. Driver will need to perform addition operations
5668 //! to generate all the fields in this command.
5669 //!
5670 struct MFD_VC1_LONG_PIC_STATE_CMD
5671 {
5672 union
5673 {
5674 //!< DWORD 0
5675 struct
5676 {
5677 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5678 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5679 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5680 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5681 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5682 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5683 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5684 };
5685 uint32_t Value;
5686 } DW0;
5687 union
5688 {
5689 //!< DWORD 1
5690 struct
5691 {
5692 uint32_t Picturewidthinmbsminus1PictureWidthMinus1InMacroblocks : __CODEGEN_BITFIELD( 0, 7) ; //!< PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS
5693 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
5694 uint32_t Pictureheightinmbsminus1PictureHeightMinus1InMacroblocks : __CODEGEN_BITFIELD(16, 23) ; //!< PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_
5695 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
5696 };
5697 uint32_t Value;
5698 } DW1;
5699 union
5700 {
5701 //!< DWORD 2
5702 struct
5703 {
5704 uint32_t Vc1Profile : __CODEGEN_BITFIELD( 0, 0) ; //!< VC1_PROFILE
5705 uint32_t Reserved65 : __CODEGEN_BITFIELD( 1, 2) ; //!< Reserved
5706 uint32_t Secondfield : __CODEGEN_BITFIELD( 3, 3) ; //!< Secondfield
5707 uint32_t OverlapSmoothingEnableFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< OVERLAP_SMOOTHING_ENABLE_FLAG
5708 uint32_t LoopfilterEnableFlag : __CODEGEN_BITFIELD( 5, 5) ; //!< LOOPFILTER_ENABLE_FLAG
5709 uint32_t RangereductionEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< RANGEREDUCTION_ENABLE
5710 uint32_t Rangereductionscale : __CODEGEN_BITFIELD( 7, 7) ; //!< RANGEREDUCTIONSCALE
5711 uint32_t MotionVectorMode : __CODEGEN_BITFIELD( 8, 11) ; //!< MOTION_VECTOR_MODE
5712 uint32_t Syncmarker : __CODEGEN_BITFIELD(12, 12) ; //!< SYNCMARKER
5713 uint32_t InterpolationRounderContro : __CODEGEN_BITFIELD(13, 13) ; //!< Interpolation Rounder Contro
5714 uint32_t Implicitquantizer : __CODEGEN_BITFIELD(14, 14) ; //!< ImplicitQuantizer
5715 uint32_t Dmvsurfacevalid : __CODEGEN_BITFIELD(15, 15) ; //!< DmvSurfaceValid
5716 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 23) ; //!< Reserved
5717 uint32_t BitplaneBufferPitchMinus1 : __CODEGEN_BITFIELD(24, 31) ; //!< Bitplane Buffer Pitch Minus 1
5718 };
5719 uint32_t Value;
5720 } DW2;
5721 union
5722 {
5723 //!< DWORD 3
5724 struct
5725 {
5726 uint32_t Bscalefactor : __CODEGEN_BITFIELD( 0, 7) ; //!< BScaleFactor
5727 uint32_t PquantPictureQuantizationValue : __CODEGEN_BITFIELD( 8, 12) ; //!< PQuant (Picture Quantization Value)
5728 uint32_t Reserved109 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
5729 uint32_t AltpquantAlternativePictureQuantizationValue : __CODEGEN_BITFIELD(16, 20) ; //!< AltPQuant (Alternative Picture Quantization Value)
5730 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 23) ; //!< Reserved
5731 uint32_t FcmFrameCodingMode : __CODEGEN_BITFIELD(24, 25) ; //!< FCM_FRAME_CODING_MODE
5732 uint32_t PictypePictureType : __CODEGEN_BITFIELD(26, 28) ; //!< PicType (Picture Type)
5733 uint32_t Condover : __CODEGEN_BITFIELD(29, 30) ; //!< CONDOVER
5734 uint32_t Reserved127 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
5735 };
5736 uint32_t Value;
5737 } DW3;
5738 union
5739 {
5740 //!< DWORD 4
5741 struct
5742 {
5743 uint32_t Pquantuniform : __CODEGEN_BITFIELD( 0, 0) ; //!< PQUANTUNIFORM
5744 uint32_t Halfqp : __CODEGEN_BITFIELD( 1, 1) ; //!< HalfQP
5745 uint32_t AltpquantconfigAlternativePictureQuantizationConfiguration : __CODEGEN_BITFIELD( 2, 3) ; //!< ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION
5746 uint32_t AltpquantedgemaskAlternativePictureQuantizationEdgeMask : __CODEGEN_BITFIELD( 4, 7) ; //!< AltPQuantEdgeMask (Alternative Picture Quantization Edge Mask)
5747 uint32_t ExtendedmvrangeExtendedMotionVectorRangeFlag : __CODEGEN_BITFIELD( 8, 9) ; //!< EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG
5748 uint32_t ExtendeddmvrangeExtendedDifferentialMotionVectorRangeFlag : __CODEGEN_BITFIELD(10, 11) ; //!< EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG
5749 uint32_t Reserved140 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5750 uint32_t FwdrefdistReferenceDistance : __CODEGEN_BITFIELD(16, 19) ; //!< FwdRefDist (Reference Distance)
5751 uint32_t BwdrefdistReferenceDistance : __CODEGEN_BITFIELD(20, 23) ; //!< BwdRefDist (Reference Distance)
5752 uint32_t NumrefNumberOfReferences : __CODEGEN_BITFIELD(24, 24) ; //!< NUMREF_NUMBER_OF_REFERENCES
5753 uint32_t ReffieldpicpolarityReferenceFieldPicturePolarity : __CODEGEN_BITFIELD(25, 25) ; //!< REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY
5754 uint32_t FastuvmcflagFastUvMotionCompensationFlag : __CODEGEN_BITFIELD(26, 26) ; //!< FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
5755 uint32_t FourmvswitchFourMotionVectorSwitch : __CODEGEN_BITFIELD(27, 27) ; //!< FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH
5756 uint32_t UnifiedmvmodeUnifiedMotionVectorMode : __CODEGEN_BITFIELD(28, 29) ; //!< UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE
5757 uint32_t Reserved158 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5758 };
5759 uint32_t Value;
5760 } DW4;
5761 union
5762 {
5763 //!< DWORD 5
5764 struct
5765 {
5766 uint32_t CbptabCodedBlockPatternTable : __CODEGEN_BITFIELD( 0, 2) ; //!< CbpTab (Coded Block Pattern Table)
5767 uint32_t TransdctabIntraTransformDcTable : __CODEGEN_BITFIELD( 3, 3) ; //!< TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE
5768 uint32_t TransacuvPictureLevelTransformChromaAcCodingSetIndexTransactable : __CODEGEN_BITFIELD( 4, 5) ; //!< TransAcUV (Picture-level Transform Chroma AC Coding Set Index, TRANSACTABLE)
5769 uint32_t TransacyPictureLevelTransformLumaAcCodingSetIndexTransactable2 : __CODEGEN_BITFIELD( 6, 7) ; //!< TransAcY (Picture-level Transform Luma AC Coding Set Index, TRANSACTABLE2
5770 uint32_t MbmodetabMacroblockModeTable : __CODEGEN_BITFIELD( 8, 10) ; //!< MbModeTab (Macroblock Mode Table)
5771 uint32_t TranstypembflagMacroblockTransformTypeFlag : __CODEGEN_BITFIELD(11, 11) ; //!< TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG
5772 uint32_t TranstypePictureLevelTransformType : __CODEGEN_BITFIELD(12, 13) ; //!< TransType (Picture-level Transform Type)
5773 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5774 uint32_t Twomvbptab2MvBlockPatternTable : __CODEGEN_BITFIELD(16, 17) ; //!< TwoMvBpTab (2MV Block Pattern Table)
5775 uint32_t Fourmvbptab4MvBlockPatternTable : __CODEGEN_BITFIELD(18, 19) ; //!< FourMvBpTab (4-MV Block Pattern Table)
5776 uint32_t MvtabMotionVectorTable : __CODEGEN_BITFIELD(20, 22) ; //!< MvTab (Motion Vector Table)
5777 uint32_t Reserved183 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
5778 uint32_t Fieldtxraw : __CODEGEN_BITFIELD(24, 24) ; //!< FIELDTXRAW
5779 uint32_t Acpredraw : __CODEGEN_BITFIELD(25, 25) ; //!< ACPREDRAW
5780 uint32_t Overflagsraw : __CODEGEN_BITFIELD(26, 26) ; //!< OVERFLAGSRAW
5781 uint32_t Directmbraw : __CODEGEN_BITFIELD(27, 27) ; //!< DIRECTMBRAW
5782 uint32_t Skipmbraw : __CODEGEN_BITFIELD(28, 28) ; //!< SKIPMBRAW
5783 uint32_t Mvtypembraw : __CODEGEN_BITFIELD(29, 29) ; //!< MVTYPEMBRAW
5784 uint32_t Forwardmbraw : __CODEGEN_BITFIELD(30, 30) ; //!< FORWARDMBRAW
5785 uint32_t BitplanepresentflagBitplaneBufferPresentFlag : __CODEGEN_BITFIELD(31, 31) ; //!< BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG
5786 };
5787 uint32_t Value;
5788 } DW5;
5789
5790 //! \name Local enumerations
5791
5792 enum SUBOPCODE_B
5793 {
5794 SUBOPCODE_B_UNNAMED1 = 1, //!< No additional details
5795 };
5796
5797 enum SUBOPCODE_A
5798 {
5799 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
5800 };
5801
5802 enum MEDIA_COMMAND_OPCODE
5803 {
5804 MEDIA_COMMAND_OPCODE_VC1DEC = 2, //!< No additional details
5805 };
5806
5807 enum PIPELINE
5808 {
5809 PIPELINE_MFDVC1LONGPICSTATE = 2, //!< No additional details
5810 };
5811
5812 enum COMMAND_TYPE
5813 {
5814 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5815 };
5816
5817 //! \brief PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS
5818 //! \details
5819 //! This field indicates the width of the picture in unit of macroblocks.
5820 //! For example, for a 1920x1080 frame picture, PictureWidthInMBs equals 120
5821 //! (1920 divided by 16).This field is used in VLD and IT modes
5822 enum PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS
5823 {
5824 PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS_VALUE255 = 255, //!< No additional details
5825 };
5826
5827 //! \brief PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_
5828 //! \details
5829 //! This field indicates the height of the picture in unit of macroblocks.
5830 //! For example, for a 1920x1080 frame picture, PictureHeightInMBs equals 68
5831 //! (1080 divided by 16, and rounded up, i.e. effectively specified as 1088
5832 //! instead).This field is used in VLD and IT modes.
5833 enum PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_
5834 {
5835 PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_VALUE255 = 255, //!< No additional details
5836 };
5837
5838 //! \brief VC1_PROFILE
5839 //! \details
5840 //! specifies the bitstream profile.This field is used in both VLD and IT
5841 //! modes.
5842 enum VC1_PROFILE
5843 {
5844 VC1_PROFILE_DISABLE = 0, //!< current picture is in Simple or Main Profile (No need to distinguish Simple and Main Profile)
5845 VC1_PROFILE_ENABLE = 1, //!< current picture is in Advanced Profile
5846 };
5847
5848 //! \brief OVERLAP_SMOOTHING_ENABLE_FLAG
5849 //! \details
5850 //! This field is the decoded syntax element OVERLAP in bitstreamIndicates
5851 //! if Overlap smoothing is ON at the picture levelThis field is used in
5852 //! both VLD and IT modes.
5853 enum OVERLAP_SMOOTHING_ENABLE_FLAG
5854 {
5855 OVERLAP_SMOOTHING_ENABLE_FLAG_DISABLE = 0, //!< to disable overlap smoothing filter
5856 OVERLAP_SMOOTHING_ENABLE_FLAG_ENABLE = 1, //!< to enable overlap smoothing filter
5857 };
5858
5859 //! \brief LOOPFILTER_ENABLE_FLAG
5860 //! \details
5861 //! This filed is the decoded syntax element LOOPFILTER in bitstream. It
5862 //! indicates if In-loop Deblocking is ON according to picture level
5863 //! bitstream syntax control. This bit affects BSD unit and also the loop
5864 //! filter unit.When this bit is set to 1, PostDeblockOutEnable field in
5865 //! MFX_PIPE_MODE_SELECT command must also be set to 1. In this case,
5866 //! in-loop deblocking operation follows the VC1 standard - deblocking
5867 //! doesn't cross slice boundary.When this bit is set to 0, but
5868 //! PostDeblockOutEnable field in MFX_PIPE_MODE_SELECT command is set to 1.
5869 //! It indicates the loop filter unit is used for out-of-loop deblocking. In
5870 //! this case, deblocking operation does cross slice boundary.This field is
5871 //! used in VLD mode only, not in IT mode.
5872 enum LOOPFILTER_ENABLE_FLAG
5873 {
5874 LOOPFILTER_ENABLE_FLAG_DISABLE = 0, //!< Disables loop filter
5875 LOOPFILTER_ENABLE_FLAG_ENABLE = 1, //!< Enables loop filter
5876 };
5877
5878 //! \brief RANGEREDUCTION_ENABLE
5879 //! \details
5880 //! This field specifies whether on-the-fly pixel value range reduction
5881 //! should be performed for the preceding (or forward) reference picture.
5882 //! Along with RangeReductionScale to specify whether scale up or down
5883 //! should be performed. It is not the same value as RANGEREDFRM Syntax
5884 //! Element (PictureParameters bPicDeblocked bit 5) in the Picture
5885 //! Header.
5886 enum RANGEREDUCTION_ENABLE
5887 {
5888 RANGEREDUCTION_ENABLE_DISABLE = 0, //!< Range reduction is not performed
5889 RANGEREDUCTION_ENABLE_ENABLE = 1, //!< Range reduction is performed
5890 };
5891
5892 //! \brief RANGEREDUCTIONSCALE
5893 //! \details
5894 //! This field specifies whether the reference picture pixel values should
5895 //! be scaled up or scaled down on-the-fly, if RangeReduction is Enabled.
5896 enum RANGEREDUCTIONSCALE
5897 {
5898 RANGEREDUCTIONSCALE_UNNAMED0 = 0, //!< Scale down reference picture by factor of 2
5899 RANGEREDUCTIONSCALE_UNNAMED1 = 1, //!< Scale up reference picture by factor of 2
5900 };
5901
5902 //! \brief MOTION_VECTOR_MODE
5903 //! \details
5904 //! This field indicates one of the following motion compensation
5905 //! interpolation modes for P and B pictures. The MC interpolation modes
5906 //! apply to prediction values of luminance blocks and are always in
5907 //! quarter-sample. For chrominance blocks, it always performs bilinear
5908 //! interpolation with either half-pel or quarter-pel precision.Before the
5909 //! polarity of Chroma Half-pel or Q-pel is reversed from Spec, now I
5910 //! have fixed it to match with VC1 Spec.
5911 enum MOTION_VECTOR_MODE
5912 {
5913 MOTION_VECTOR_MODE_UNNAMED0 = 0, //!< Chroma Quarter -pel + Luma bicubic. (can only be 1MV)
5914 MOTION_VECTOR_MODE_UNNAMED1 = 1, //!< Chroma Half-pel + Luma bicubic. (can be 1MV or 4MV)
5915 MOTION_VECTOR_MODE_UNNAMED8 = 8, //!< Chroma Quarter -pel + Luma bilinear. (can only be 1MV)
5916 MOTION_VECTOR_MODE_UNNAMED9 = 9, //!< Chroma Half-pel + Luma bilinear
5917 };
5918
5919 //! \brief SYNCMARKER
5920 //! \details
5921 //! Indicates whether sync markers are enabled/disabled. If enable, sync
5922 //! markers "may be" present in the current video sequence being decoded. It
5923 //! is a sequence level syntax element and is valid only for Simple and Main
5924 //! Profiles.
5925 enum SYNCMARKER
5926 {
5927 SYNCMARKER_NOTPRESENT = 0, //!< Sync Marker is not present in the bitstream
5928 SYNCMARKER_MAYBEPRESENT = 1, //!< Sync Marker maybe present in the bitstream
5929 };
5930
5931 //! \brief FCM_FRAME_CODING_MODE
5932 //! \details
5933 //! This is the same as the variable FCM defined in VC1.This field must be
5934 //! set to 0 for Simple and Main ProfilesThis field is unique to intel VC1
5935 //! VLD Long format, and is used in IT mode as well. For VC1 IT mode,
5936 //! driver needs to convert the interface to intel HW VLD Long Format
5937 //! interface.
5938 enum FCM_FRAME_CODING_MODE
5939 {
5940 FCM_FRAME_CODING_MODE_DISABLE = 0, //!< Progressive Frame Picture
5941 FCM_FRAME_CODING_MODE_ENABLE = 1, //!< Interlaced Frame Picture
5942 FCM_FRAME_CODING_MODE_UNNAMED2 = 2, //!< Field Picture with Top Field First
5943 FCM_FRAME_CODING_MODE_UNNAMED3 = 3, //!< Field Picture with Bottom Field First
5944 };
5945
5946 //! \brief CONDOVER
5947 //! \details
5948 //! This field is the decoded syntax element CONDOVER in a bitstream of
5949 //! advanced profile. It controls the overlap smoothing filter operation for
5950 //! an I frame or an BI frame when the picture level qualization step size
5951 //! PQUANT is 8 or lower.This field is used in intel VC1 VLD mode only, not
5952 //! in VC1 and IT modes.
5953 enum CONDOVER
5954 {
5955 CONDOVER_UNNAMED0 = 0, //!< No overlap smoothing
5956 CONDOVER_UNNAMED1 = 1, //!< Reserved
5957 CONDOVER_UNNAMED2 = 2, //!< Always perform overlap smoothing filter
5958 CONDOVER_UNNAMED3 = 3, //!< Overlap smoothing on a per macroblock basis based on OVERFLAGS
5959 };
5960
5961 //! \brief PQUANTUNIFORM
5962 //! \details
5963 //! Indicating if uniform quantization applies to the
5964 //! picture. It is used for inverse quantization of the AC
5965 //! coefficients.QUANTIZER
5966 //! 001123PQUANTIZER -
5967 //! -01--PQINDEX&gt;=9&lt;=8----PQuantUniform010201ImplicitQuantizer =
5968 //! 0, and
5969 //! PQuantUniform = 0 is used to represent 2 cases : 1) QUANTIZER=01
5970 //! and
5971 //! PQUANTIZER=0; and 2) QUANTIZER = 10b.ImplicitQuantizer = 0, and
5972 //! PQuantUniform =
5973 //! 1 is used to represent 2 cases : 1) QUANTIZER=01 and PQUANTIZER=1;
5974 //! and 2)
5975 //! QUANTIZER = 11bThis field is unique to intel VC1 VLD Long format
5976 //! mode, and is
5977 //! not used in IT and VC1 modes.
5978 enum PQUANTUNIFORM
5979 {
5980 PQUANTUNIFORM_UNNAMED0 = 0, //!< Non-uniform
5981 PQUANTUNIFORM_UNNAMED1 = 1, //!< Uniform
5982 };
5983
5984 //! \brief ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION
5985 //! \details
5986 //! This field specifies the way AltPQuant is used in the picture. It
5987 //! determines how to compute the macroblock quantizer step size, MQUANT. It
5988 //! is derived based on the following variables DQUANT, DQUANTFRM,
5989 //! DQPROFILE, DQSBEDGE, DQDBEDGE, and DQBILEVEL defined in the VC1
5990 //! standard, as shown in Error! Reference source not found..This field is
5991 //! unique to intel VC1 VLD Long format mode, and is not used in IT and
5992 //! VC1 modes.
5993 enum ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION
5994 {
5995 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED0 = 0, //!< AltPQuant not used
5996 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED1 = 1, //!< AltPQuant is used and applied to edge macroblocks only
5997 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED2 = 2, //!< MQUANT is encoded in macroblock layer
5998 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED3 = 3, //!< AltPQuant and PQuant are selected on macroblock basis
5999 };
6000
6001 //! \brief EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG
6002 //! \details
6003 //! This field specifies the motion vector range in quarter-pel or half-pel
6004 //! modes. It is equivalent to the variable MVRANGE in the VC1 standard.
6005 //! This field is unique to intel VC1 VLD Long format mode, and is not used
6006 //! in IT and VC1 modes
6007 enum EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG
6008 {
6009 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED0 = 0, //!< [-256, 255] x [-128, 127]
6010 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED1 = 1, //!< 512, 511] x [-256, 255]
6011 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED2 = 2, //!< [-2048, 2047] x [-1024, 1023]
6012 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED3 = 3, //!< [-4096, 4095] x [-2048, 2047]
6013 };
6014
6015 //! \brief EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG
6016 //! \details
6017 //! This field specifies the differential motion vector range in interlaced
6018 //! pictures. It is equivalent to the variable DMVRANGE in the VC1 standard.
6019 //! This field is unique to intel VC1 VLD Long format mode, and is not used
6020 //! in IT and VC1 modes.
6021 enum EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG
6022 {
6023 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED0 = 0, //!< No extended range
6024 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED1 = 1, //!< Extended horizontally
6025 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED2 = 2, //!< Extended vertically
6026 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED3 = 3, //!< Extended in both directions
6027 };
6028
6029 //! \brief NUMREF_NUMBER_OF_REFERENCES
6030 //! \details
6031 //! This field indicates how many reference fields are referenced by the
6032 //! current (field) picture. It is identical to the variable NUMREF in the
6033 //! VC1 standard. This field is only valid for field P picture (FCM = 10 |
6034 //! 11).This field is unique to intel VC1 VLD Long format mode, and is not
6035 //! used in IT and VC1 modes.
6036 enum NUMREF_NUMBER_OF_REFERENCES
6037 {
6038 NUMREF_NUMBER_OF_REFERENCES_UNNAMED0 = 0, //!< One field referenced
6039 NUMREF_NUMBER_OF_REFERENCES_UNNAMED1 = 1, //!< Two fields referenced
6040 };
6041
6042 //! \brief REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY
6043 //! \details
6044 //! This field specifies the polarity of the one reference field picture
6045 //! used for a field P picture. It is derived from the variable REFFIELD
6046 //! defined in VC1 standard and is only valid when one field is referenced
6047 //! (NUMREF = 0) for a field P picture.When NUMREF = 0 and REFFIELD = 0,
6048 //! this field is the polarity of the reference I/P field that is temporally
6049 //! closest; When NUMREF = 0 and REFFIELD = 1, this field is the polarity of
6050 //! the reference I/P field that is the second most temporally closest. The
6051 //! distance is measured based on display order but ignoring the repeated
6052 //! field if present (due to RFF = 1).This field is unique to intel VC1 VLD
6053 //! Long format mode, and is not used in IT and VC1 modes.
6054 enum REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY
6055 {
6056 REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY_UNNAMED0 = 0, //!< Top (even) field
6057 REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY_UNNAMED1 = 1, //!< Bottom (odd) field
6058 };
6059
6060 //! \brief FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6061 //! \details
6062 //! This field specifies whether the motion vectors for
6063 //! UV is rounded to half or full pel position. It is identical to the
6064 //! variable
6065 //! FASTUVMC in VC1 standard.This field is used in both VLD and IT
6066 //! modes.It is
6067 //! derived from FASTUVMC = (bPicSpatialResid8 &gt;&gt; 4) &amp; 1 in
6068 //! both VLD and
6069 //! IT modes, and should have the same value as Motion Vector Mode
6070 //! LSBit.
6071 enum FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6072 {
6073 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED0 = 0, //!< no rounding
6074 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED1 = 1, //!< quarter-pel offsets to half/full pel positions
6075 };
6076
6077 //! \brief FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH
6078 //! \details
6079 //! This field indicates if 4-MV is present for an interlaced frame P
6080 //! picture. It is identical to the variable 4MVSWITCH (4 Motion Vector
6081 //! Switch) in VC1 standard.This field is used in intel VC1 VLD Long Format
6082 //! mode only, it is not used in VC1 VLD and IT modes.
6083 enum FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH
6084 {
6085 FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH_DISABLE = 0, //!< only 1-MV
6086 FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH_ENABLE = 1, //!< 1, 2, or 4 motion vector
6087 };
6088
6089 //! \brief UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE
6090 //! \details
6091 //! This field is a combination of the variables MVMODE and MVMODE2 in the
6092 //! VC1 standard, for parsing Luma MVD from the bitstream. This field is
6093 //! used to signal 1MV vs 4MVallowed (Mixed Mode). This field is also used
6094 //! to signal Q-pel or Half-pel MVD read from the bitstream. The bicubic or
6095 //! bilinear Luma MC interpolation mode is duplicate information from Motion
6096 //! Vector Mode field, and is ignored here.This field is used in intel VC1
6097 //! VLD Long Format mode only, it is not used in VC1 VLD and IT modes.
6098 enum UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE
6099 {
6100 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED0 = 0, //!< Mixed MV, Q-pel bicubic
6101 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED1 = 1, //!< 1-MV, Q-pel bicubic
6102 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED2 = 2, //!< 1-MV half-pel bicubic
6103 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED3 = 3, //!< 1-MV half-pel bilinear
6104 };
6105
6106 //! \brief TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE
6107 //! \details
6108 //! This field specifies whether the low motion tables or the high motion
6109 //! tables are used to decode the Transform DC coefficients in intra-coded
6110 //! blocks. This field is identical to the variable TRANSDCTAB in the VC1
6111 //! standard, section 8.1.1.2.This field is valid for all picture types.This
6112 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6113 //! and VC1 modes.
6114 enum TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE
6115 {
6116 TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE_UNNAMED0 = 0, //!< The high motion tables
6117 TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE_UNNAMED1 = 1, //!< The low motion tables
6118 };
6119
6120 //! \brief TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG
6121 //! \details
6122 //! This field indicates whether Transform Type is fixed at picture level or
6123 //! variable at macroblock level. It is identical to the variable TTMBF in
6124 //! the VC1 standard, section 7.1.1.40.This field is set to 1 when
6125 //! VSTRANSFORM is 0 in the entry point layer.This field is unique to intel
6126 //! VC1 VLD Long format mode, and is not used in IT and VC1 modes.
6127 enum TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG
6128 {
6129 TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG_UNNAMED0 = 0, //!< variable transform type in macroblock layer
6130 TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG_UNNAMED1 = 1, //!< use picture level transform type TransType
6131 };
6132
6133 //! \brief FIELDTXRAW
6134 //! \details
6135 //! This field indicates whether the FIELDTX field is coded in raw or
6136 //! non-raw mode.This field is only valid when PictureType is I or BI.This
6137 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6138 //! and VC1 modes.
6139 enum FIELDTXRAW
6140 {
6141 FIELDTXRAW_DISABLE = 0, //!< Non-Raw Mode
6142 FIELDTXRAW_ENABLE = 1, //!< Raw Mode
6143 };
6144
6145 //! \brief ACPREDRAW
6146 //! \details
6147 //! This field indicates whether the ACPRED field is coded in raw or non-raw
6148 //! mode.This field is only valid when PictureType is I or BI.This field is
6149 //! unique to intel VC1 VLD Long format mode, and is not used in IT and
6150 //! VC1 modes.
6151 enum ACPREDRAW
6152 {
6153 ACPREDRAW_DISABLE = 0, //!< Non-Raw Mode
6154 ACPREDRAW_ENABLE = 1, //!< Raw Mode
6155 };
6156
6157 //! \brief OVERFLAGSRAW
6158 //! \details
6159 //! This field indicates whether the OVERFLAGS field is coded in raw or
6160 //! non-raw mode.This field is only valid when PictureType is I or BI.This
6161 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6162 //! and VC1 modes.
6163 enum OVERFLAGSRAW
6164 {
6165 OVERFLAGSRAW_UNNAMED0 = 0, //!< Non-Raw Mode
6166 OVERFLAGSRAW_UNNAMED1 = 1, //!< Raw Mode
6167 };
6168
6169 //! \brief DIRECTMBRAW
6170 //! \details
6171 //! This field indicates whether the DIRECTMB field is coded in raw or
6172 //! non-raw mode.This field is only valid when PictureType is P or B.This
6173 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6174 //! and VC1 modes.
6175 enum DIRECTMBRAW
6176 {
6177 DIRECTMBRAW_UNNAMED0 = 0, //!< Non-Raw Mode
6178 DIRECTMBRAW_UNNAMED1 = 1, //!< Raw Mode
6179 };
6180
6181 //! \brief SKIPMBRAW
6182 //! \details
6183 //! This field indicates whether the SKIPMB field is coded in raw or non-raw
6184 //! mode.This field is only valid when PictureType is P or B.0 = non-raw
6185 //! mode1 = raw modeThis field is unique to intel VC1 VLD Long format mode,
6186 //! and is not used in IT and VC1 modes.
6187 enum SKIPMBRAW
6188 {
6189 SKIPMBRAW_DISABLE = 0, //!< Non-Raw Mode
6190 SKIPMBRAW_ENABLE = 1, //!< Raw Mode
6191 };
6192
6193 //! \brief MVTYPEMBRAW
6194 //! \details
6195 //! This field indicates whether the MVTYPREMB field is coded in raw or
6196 //! non-raw mode.This field is only valid when PictureType is P.This field
6197 //! is unique to intel VC1 VLD Long format mode, and is not used in IT and
6198 //! VC1 modes.
6199 enum MVTYPEMBRAW
6200 {
6201 MVTYPEMBRAW_UNNAMED0 = 0, //!< Non-Raw Mode
6202 MVTYPEMBRAW_UNNAMED1 = 1, //!< Raw Mode
6203 };
6204
6205 //! \brief FORWARDMBRAW
6206 //! \details
6207 //! This field indicates whether the FORWARDMB field is coded in raw or
6208 //! non-raw mode.This field is only valid when PictureType is B.This field
6209 //! is unique to intel VC1 VLD Long format mode, and is not used in IT and
6210 //! VC1 modes.
6211 enum FORWARDMBRAW
6212 {
6213 FORWARDMBRAW_UNNAMED0 = 0, //!< non-raw mode
6214 FORWARDMBRAW_UNNAMED1 = 1, //!< raw mode
6215 };
6216
6217 //! \brief BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG
6218 //! \details
6219 //! This field indicates whether the bitplane buffer is present for the
6220 //! picture. If set, at least one of the fields listed in bits 22:16 is
6221 //! coded in non-raw mode, and Bitplane Buffer Base Address field in the
6222 //! VC1_BSD_BUF_BASE_STATE command points to the bitplane buffer. Otherwise,
6223 //! all the fields that are applicable for the current picture in bits 22:16
6224 //! must be coded in raw mode.This field is unique to intel VC1 VLD Long
6225 //! format mode, and is not used in IT and VC1 modes.
6226 enum BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG
6227 {
6228 BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG_UNNAMED0 = 0, //!< bitplane buffer is not present
6229 BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG_UNNAMED1 = 1, //!< bitplane buffer is present
6230 };
6231
6232 //! \name Initializations
6233
6234 //! \brief Explicit member initialization function
6235 MFD_VC1_LONG_PIC_STATE_CMD();
6236
6237 static const size_t dwSize = 6;
6238 static const size_t byteSize = 24;
6239 };
6240
6241 //!
6242 //! \brief MFD_VC1_SHORT_PIC_STATE
6243 //! \details
6244 //!
6245 //!
6246 struct MFD_VC1_SHORT_PIC_STATE_CMD
6247 {
6248 union
6249 {
6250 //!< DWORD 0
6251 struct
6252 {
6253 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6254 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6255 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6256 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6257 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6258 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6259 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6260 };
6261 uint32_t Value;
6262 } DW0;
6263 union
6264 {
6265 //!< DWORD 1
6266 struct
6267 {
6268 uint32_t PictureWidth : __CODEGEN_BITFIELD( 0, 7) ; //!< Picture Width
6269 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
6270 uint32_t PictureHeight : __CODEGEN_BITFIELD(16, 23) ; //!< Picture Height
6271 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
6272 };
6273 uint32_t Value;
6274 } DW1;
6275 union
6276 {
6277 //!< DWORD 2
6278 struct
6279 {
6280 uint32_t PictureStructure : __CODEGEN_BITFIELD( 0, 1) ; //!< PICTURE_STRUCTURE
6281 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
6282 uint32_t Secondfield : __CODEGEN_BITFIELD( 3, 3) ; //!< SecondField
6283 uint32_t IntraPictureFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< INTRA_PICTURE_FLAG
6284 uint32_t BackwardPredictionPresentFlag : __CODEGEN_BITFIELD( 5, 5) ; //!< Backward Prediction Present Flag
6285 uint32_t Reserved70 : __CODEGEN_BITFIELD( 6, 10) ; //!< Reserved
6286 uint32_t Vc1Profile : __CODEGEN_BITFIELD(11, 11) ; //!< VC1_PROFILE
6287 uint32_t Reserved76 : __CODEGEN_BITFIELD(12, 14) ; //!< Reserved
6288 uint32_t Dmvsurfacevalid : __CODEGEN_BITFIELD(15, 15) ; //!< DmvSurfaceValid
6289 uint32_t MotionVectorMode : __CODEGEN_BITFIELD(16, 19) ; //!< Motion Vector Mode
6290 uint32_t Reserved84 : __CODEGEN_BITFIELD(20, 22) ; //!< Reserved
6291 uint32_t InterpolationRounderControl : __CODEGEN_BITFIELD(23, 23) ; //!< Interpolation Rounder Control
6292 uint32_t BitplaneBufferPitchMinus1 : __CODEGEN_BITFIELD(24, 31) ; //!< Bitplane Buffer Pitch Minus 1
6293 };
6294 uint32_t Value;
6295 } DW2;
6296 union
6297 {
6298 //!< DWORD 3
6299 struct
6300 {
6301 uint32_t VstransformFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< VSTRANSFORM_FLAG
6302 uint32_t Dquant : __CODEGEN_BITFIELD( 1, 2) ; //!< DQUANT
6303 uint32_t ExtendedMvPresentFlag : __CODEGEN_BITFIELD( 3, 3) ; //!< EXTENDED_MV_PRESENT_FLAG
6304 uint32_t FastuvmcflagFastUvMotionCompensationFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6305 uint32_t LoopfilterEnableFlag : __CODEGEN_BITFIELD( 5, 5) ; //!< LOOPFILTER_ENABLE_FLAG
6306 uint32_t RefdistFlag : __CODEGEN_BITFIELD( 6, 6) ; //!< REFDIST_FLAG
6307 uint32_t PanscanPresentFlag : __CODEGEN_BITFIELD( 7, 7) ; //!< PANSCAN_PRESENT_FLAG
6308 uint32_t Maxbframes : __CODEGEN_BITFIELD( 8, 10) ; //!< MAXBFRAMES
6309 uint32_t RangeredPresentFlagForSimpleMainProfileOnly : __CODEGEN_BITFIELD(11, 11) ; //!< RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6310 uint32_t SyncmarkerPresentFlagForSimpleMainProfileOnly : __CODEGEN_BITFIELD(12, 12) ; //!< SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6311 uint32_t MultiresPresentFlagForSimpleMainProfileOnly : __CODEGEN_BITFIELD(13, 13) ; //!< MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6312 uint32_t Quantizer : __CODEGEN_BITFIELD(14, 15) ; //!< QUANTIZER
6313 uint32_t PPicRefDistance : __CODEGEN_BITFIELD(16, 20) ; //!< P_PIC_REF_DISTANCE
6314 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 21) ; //!< Reserved
6315 uint32_t ProgressivePicType : __CODEGEN_BITFIELD(22, 23) ; //!< PROGRESSIVE_PIC_TYPE
6316 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 27) ; //!< Reserved
6317 uint32_t RangeReductionEnable : __CODEGEN_BITFIELD(28, 28) ; //!< RANGE_REDUCTION_ENABLE
6318 uint32_t RangeReductionScale : __CODEGEN_BITFIELD(29, 29) ; //!< RANGE_REDUCTION_SCALE
6319 uint32_t OverlapSmoothingEnableFlag : __CODEGEN_BITFIELD(30, 30) ; //!< OVERLAP_SMOOTHING_ENABLE_FLAG
6320 uint32_t Reserved127 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
6321 };
6322 uint32_t Value;
6323 } DW3;
6324 union
6325 {
6326 //!< DWORD 4
6327 struct
6328 {
6329 uint32_t ExtendedDmvPresentFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< EXTENDED_DMV_PRESENT_FLAG
6330 uint32_t Psf : __CODEGEN_BITFIELD( 1, 1) ; //!< PSF
6331 uint32_t RefpicFlag : __CODEGEN_BITFIELD( 2, 2) ; //!< REFPIC_FLAG
6332 uint32_t Finterflag : __CODEGEN_BITFIELD( 3, 3) ; //!< FINTERFLAG
6333 uint32_t Tfcntrflag : __CODEGEN_BITFIELD( 4, 4) ; //!< TFCNTRFLAG
6334 uint32_t Interlace : __CODEGEN_BITFIELD( 5, 5) ; //!< INTERLACE
6335 uint32_t Pulldown : __CODEGEN_BITFIELD( 6, 6) ; //!< PULLDOWN
6336 uint32_t PostprocFlag : __CODEGEN_BITFIELD( 7, 7) ; //!< POSTPROC Flag
6337 uint32_t _4MvAllowedFlag : __CODEGEN_BITFIELD( 8, 8) ; //!< _4MV Allowed Flag
6338 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 23) ; //!< Reserved
6339 uint32_t BfractionEnumeration : __CODEGEN_BITFIELD(24, 28) ; //!< BFraction Enumeration
6340 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
6341 };
6342 uint32_t Value;
6343 } DW4;
6344
6345 //! \name Local enumerations
6346
6347 enum SUBOPCODE_B
6348 {
6349 SUBOPCODE_B_UNNAMED0 = 0, //!< No additional details
6350 };
6351
6352 enum SUBOPCODE_A
6353 {
6354 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
6355 };
6356
6357 enum MEDIA_COMMAND_OPCODE
6358 {
6359 MEDIA_COMMAND_OPCODE_VC1DEC = 2, //!< No additional details
6360 };
6361
6362 enum PIPELINE
6363 {
6364 PIPELINE_MFDVC1SHORTPICSTATE = 2, //!< No additional details
6365 };
6366
6367 enum COMMAND_TYPE
6368 {
6369 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
6370 };
6371
6372 //! \brief PICTURE_STRUCTURE
6373 //! \details
6374 //! This field is used in both VC1 VLD mode and IT mode. It is the
6375 //! same parameter as bPicStructure in VC1 spec.
6376 //! The Picture Structure and Progressive Pic Type are used to derive
6377 //! the picture structure as specified in FCM, in VC1 VLD and IT mode.
6378 enum PICTURE_STRUCTURE
6379 {
6380 PICTURE_STRUCTURE_UNNAMED0 = 0, //!< illegal
6381 PICTURE_STRUCTURE_UNNAMED1 = 1, //!< top field (bit 0)
6382 PICTURE_STRUCTURE_UNNAMED2 = 2, //!< bottom field (bit 1)
6383 PICTURE_STRUCTURE_UNNAMED3 = 3, //!< frame (both fields are present)
6384 };
6385
6386 //! \brief INTRA_PICTURE_FLAG
6387 //! \details
6388 //! This field is used in both VC1 VLD mode and IT mode. It is the
6389 //! same parameter as bPicIntra in VC1 spec.
6390 //! The Intra Picture Flag, Backward Prediction Present Flag and
6391 //! RefPicFlag are used to derive the picture type, as specified in PTYPE
6392 //! for a frame, and in FPTYPE for a field, in VC1 VLD and IT mode.
6393 enum INTRA_PICTURE_FLAG
6394 {
6395 INTRA_PICTURE_FLAG_UNNAMED0 = 0, //!< entire picture can have a mixture of intra and inter MB type or just inter MB type.
6396 INTRA_PICTURE_FLAG_UNNAMED1 = 1, //!< entire picture is coded in intra MB type
6397 };
6398
6399 //! \brief VC1_PROFILE
6400 //! \details
6401 //! specifies the bitstream profile.
6402 //! Note: This is required because 128 is added for intra blocks post
6403 //! inverse transform in advanced profile and also to find out if Motion
6404 //! vectors are adjusted or not.
6405 //! This field is used in both VLD and IT modes.
6406 enum VC1_PROFILE
6407 {
6408 VC1_PROFILE_UNNAMED0 = 0, //!< current picture is in Simple or Main Profile (No need to distinguish Simple and Main Profile)
6409 VC1_PROFILE_UNNAMED1 = 1, //!< current picture is in Advanced Profile
6410 };
6411
6412 enum VSTRANSFORM_FLAG
6413 {
6414 VSTRANSFORM_FLAG_DISABLE = 0, //!< variable-sized transform coding is not enabled
6415 VSTRANSFORM_FLAG_ENABLE = 1, //!< variable-sized transform coding is enabled
6416 };
6417
6418 //! \brief DQUANT
6419 //! \details
6420 //! Use for Picture Header Parsing of VOPDUANT elements
6421 enum DQUANT
6422 {
6423 DQUANT_UNNAMED0 = 0, //!< no VOPDQUANT elements; Quantizer cannot vary in frame, same quantization step size PQUANT is used for all MBs in the frame
6424 DQUANT_UNNAMED1 = 1, //!< refer to VC1 Spec. for all the MB position dependent quantizer selection
6425 DQUANT_UNNAMED2 = 2, //!< The macroblocks located on the picture edge boundary shall be quantized with ALTPQUANT while the rest of the macroblocks shall be quantized with PQUANT.
6426 };
6427
6428 //! \brief EXTENDED_MV_PRESENT_FLAG
6429 //! \details
6430 //! BitFieldDesc
6431 enum EXTENDED_MV_PRESENT_FLAG
6432 {
6433 EXTENDED_MV_PRESENT_FLAG_UNNAMED0 = 0, //!< Extended_MV is not present in the picture header
6434 EXTENDED_MV_PRESENT_FLAG_UNNAMED1 = 1, //!< Extended_MV is present in the picture header
6435 };
6436
6437 //! \brief FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6438 //! \details
6439 //! This field specifies whether the motion vectors for
6440 //! UV is rounded to half or full pel position. It is identical to the
6441 //! variable
6442 //! FASTUVMC in VC1 standard.This field is used in both VLD and IT
6443 //! modes.It is
6444 //! derived from FASTUVMC = (bPicSpatialResid8 &gt;&gt; 4) &amp; 1 in
6445 //! both VLD and
6446 //! IT modes, and should have the same value as Motion Vector Mode
6447 //! LSBit.
6448 enum FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6449 {
6450 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED0 = 0, //!< no rounding
6451 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED1 = 1, //!< quarter-pel offsets to half/full pel positions
6452 };
6453
6454 //! \brief LOOPFILTER_ENABLE_FLAG
6455 //! \details
6456 //! This filed is the decoded syntax element LOOPFILTER in bitstream. It
6457 //! indicates if In-loop Deblocking is ON according to picture level
6458 //! bitstream syntax control. This bit affects BSD unit and also the loop
6459 //! filter unit.When this bit is set to 1, PostDeblockOutEnable field in
6460 //! MFX_PIPE_MODE_SELECT command must also be set to 1. In this case,
6461 //! in-loop deblocking operation follows the VC1 standard - deblocking
6462 //! doesn't cross slice boundary.When this bit is set to 0, but
6463 //! PostDeblockOutEnable field in MFX_PIPE_MODE_SELECT command is set to 1.
6464 //! It indicates the loop filter unit is used for out-of-loop deblocking. In
6465 //! this case, deblocking operation does cross slice boundary.This field is
6466 //! used in VLD mode only, not in IT mode.
6467 enum LOOPFILTER_ENABLE_FLAG
6468 {
6469 LOOPFILTER_ENABLE_FLAG_UNNAMED0 = 0, //!< In-Loop-Deblocking-Filter is disabled
6470 LOOPFILTER_ENABLE_FLAG_UNNAMED1 = 1, //!< In-Loop-Deblocking-Filter is enabled
6471 };
6472
6473 enum PANSCAN_PRESENT_FLAG
6474 {
6475 PANSCAN_PRESENT_FLAG_UNNAMED0 = 0, //!< Pan Scan Parameters are not present in the picture header
6476 PANSCAN_PRESENT_FLAG_UNNAMED1 = 1, //!< Pan Scan Parameters are present in the picture header
6477 };
6478
6479 //! \brief RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6480 //! \details
6481 //! It is needed for Picture Header Parsing.Driver is responsible to keep
6482 //! RangeReductionScale, RangeReduction Enable and RANGERED Present Flag of
6483 //! current picture coherent.
6484 enum RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6485 {
6486 RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED0 = 0, //!< Range Reduction Parameter (RANGEREDFRM) is not present in the picture header
6487 RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED1 = 1, //!< Range Reduction Parameter (RANGEREDFRM) is present in the picture header.
6488 };
6489
6490 enum SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6491 {
6492 SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED0 = 0, //!< Bitstream for Simple and Main Profile has no sync marker
6493 SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED1 = 1, //!< Bitstream for Simple and Main Profile may have sync marker(s)
6494 };
6495
6496 enum MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6497 {
6498 MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED0 = 0, //!< RESPIC Parameter is present in the picture header
6499 MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED1 = 1, //!< RESPIC Parameter is present in the picture header
6500 };
6501
6502 enum QUANTIZER
6503 {
6504 QUANTIZER_UNNAMED0 = 0, //!< implicit quantizer at frame leve
6505 QUANTIZER_UNNAMED1 = 1, //!< explicit quantizer at frame level, and use PQUANTIZER SE to specify uniform or non-uniform
6506 QUANTIZER_UNNAMED2 = 2, //!< explicit quantizer, and non-uniform quantizer for all frames
6507 QUANTIZER_UNNAMED3 = 3, //!< explicit quantizer, and uniform quantizer for all frames
6508 };
6509
6510 //! \brief P_PIC_REF_DISTANCE
6511 //! \details
6512 //! This element defines the number of frames between the current frame and
6513 //! the reference frame. It is the same as the REFDIST SE in VC1 interlaced
6514 //! field picture header. It is present if the entry-level flag REFDIST_FLAG
6515 //! == 1, and if the picture type is not one of the following types: B/B,
6516 //! B/BI, BI/B, BI/BI. If the entry level flag REFDIST_FLAG == 0, REFDIST
6517 //! shall be set to the default value of 0.This field is used in VC1
6518 //! VLD mode only, not used in IT and intel VC1 VLD Long Format modes.
6519 enum P_PIC_REF_DISTANCE
6520 {
6521 P_PIC_REF_DISTANCE_UNNAMED0 = 0, //!< No additional details
6522 };
6523
6524 //! \brief PROGRESSIVE_PIC_TYPE
6525 //! \details
6526 //! This field is used in both VC1 VLD mode and IT mode. It is the
6527 //! same parameter as bPicExtrapolation in VC1 spec.The Picture
6528 //! Structure and Progressive Pic Type are used to derive the picture
6529 //! structure as specified in FCM, in VC1 VLD and IT mode.
6530 enum PROGRESSIVE_PIC_TYPE
6531 {
6532 PROGRESSIVE_PIC_TYPE_UNNAMED0 = 0, //!< progressive only picture
6533 PROGRESSIVE_PIC_TYPE_UNNAMED1 = 1, //!< progressive only picture
6534 PROGRESSIVE_PIC_TYPE_UNNAMED2 = 2, //!< interlace picture (frame-interlace or field-interlace)
6535 PROGRESSIVE_PIC_TYPE_UNNAMED3 = 3, //!< illegal
6536 };
6537
6538 //! \brief RANGE_REDUCTION_ENABLE
6539 //! \details
6540 //! This field specifies whether on-the-fly pixel value
6541 //! range reduction should be performed for the preceding (or forward)
6542 //! reference
6543 //! picture. Along with RangeReductionScale to specify whether scale up
6544 //! or down
6545 //! should be performed. It is not the same value as RANGEREDFRM Syntax
6546 //! Element
6547 //! (PictureParameters bPicDeblocked bit 5) in the Picture
6548 //! Header.This field is
6549 //! for Main Profile only. Simple Profile is always disable, and not
6550 //! applicable to
6551 //! Advanced Profile. This field is used in both VLD and IT modes.This
6552 //! is derived by
6553 //! driver from the history of RANGERED and RANGEREDFRM syntax elements
6554 //! (i.e. of
6555 //! forward/preceding reference picture) and those of the current
6556 //! picture.RANGERED
6557 //! is the same as (bPicOverflowBlocks &gt;&gt; 3) &amp; 1. RANGEREDFRM
6558 //! is the same
6559 //! as (bPicDeblocked &gt;&gt; 5) &amp; 1.For the current picture is a
6560 //! B picture,
6561 //! this field represents the state of the forward/preceding reference
6562 //! picture
6563 //! onlyDriver is responsible to keep RangeReductionScale,
6564 //! RangeReduction Enable and
6565 //! RANGERED Present Flag of current picture coherent.
6566 enum RANGE_REDUCTION_ENABLE
6567 {
6568 RANGE_REDUCTION_ENABLE_DISABLE = 0, //!< Range reduction is not performed
6569 RANGE_REDUCTION_ENABLE_ENABLE = 1, //!< Range reduction is performed
6570 };
6571
6572 //! \brief RANGE_REDUCTION_SCALE
6573 //! \details
6574 //! This field specifies whether the reference picture
6575 //! pixel values should be scaled up or scaled down on-the-fly, if
6576 //! RangeReduction is
6577 //! Enabled.NOTE: This bit is derived by driver for Main Profile only.
6578 //! Ignored in
6579 //! Simple and Advanced Profiles. This field is used in both VLD and IT
6580 //! modes.This
6581 //! is derived by driver from the history of RANGERED and RANGEREDFRM
6582 //! syntax
6583 //! elements (i.e. of forward/preceding reference picture) and those of
6584 //! the current
6585 //! picture. RANGERED is the same as (bPicOverflowBlocks &gt;&gt; 3)
6586 //! &amp; 1.
6587 //! RANGEREDFRM is the same as (bPicDeblocked &gt;&gt; 5) &amp; 1. For
6588 //! the current
6589 //! picture is a B picture, this field represents the state of the
6590 //! forward/preceding
6591 //! reference picture onlyDriver is responsible to keep
6592 //! RangeReductionScale,
6593 //! RangeReduction Enable and RANGERED Present Flag of current picture
6594 //! coherent.
6595 enum RANGE_REDUCTION_SCALE
6596 {
6597 RANGE_REDUCTION_SCALE_DISABLE = 0, //!< Scale down reference picture by factor of 2
6598 RANGE_REDUCTION_SCALE_ENABLE = 1, //!< Scale up reference picture by factor of 2
6599 };
6600
6601 //! \brief OVERLAP_SMOOTHING_ENABLE_FLAG
6602 //! \details
6603 //! This field is the decoded syntax element OVERLAP in bitstreamIndicates
6604 //! if Overlap smoothing is ON at the picture levelThis field is used in
6605 //! both VLD and IT modes
6606 enum OVERLAP_SMOOTHING_ENABLE_FLAG
6607 {
6608 OVERLAP_SMOOTHING_ENABLE_FLAG_DISABLE = 0, //!< to disable overlap smoothing filter
6609 OVERLAP_SMOOTHING_ENABLE_FLAG_ENABLE = 1, //!< to enable overlap smoothing filter
6610 };
6611
6612 enum EXTENDED_DMV_PRESENT_FLAG
6613 {
6614 EXTENDED_DMV_PRESENT_FLAG_UNNAMED0 = 0, //!< Extended_DMV is not present in the picture header
6615 EXTENDED_DMV_PRESENT_FLAG_UNNAMED1 = 1, //!< Extended_DMV is present in the picture header
6616 };
6617
6618 //! \brief REFPIC_FLAG
6619 //! \details
6620 //! For a BI picture, REFPIC flag must set to 0For I and P picture, REFPIC
6621 //! flag must set to 0.For a B picture, REFPIC flag must set to 0, except
6622 //! for a B-field in interlaced field mode which can be 0 or 1 (e.g. the top
6623 //! B field can be used as a reference for decoding its corresponding bottom
6624 //! B-field in a field pair).In VLD mode, this flag cannot be used as an
6625 //! optimization signaling for an I or P picture that is not used as a
6626 //! reference picture.This field is used in both VC1 VLD mode and IT
6627 //! mode. It is the same parameter as bPicDeblockConfined[bit2] in VC1
6628 //! spec.The Intra Picture Flag, Backward Prediction Present Flag and
6629 //! RefPicFlag are used to derive the picture type, as specified in PTYPE
6630 //! for a frame, and in FPTYPE for a field, in VC1 VLD and IT mode.
6631 enum REFPIC_FLAG
6632 {
6633 REFPIC_FLAG_UNNAMED0 = 0, //!< the current picture after decoded, will never used as a reference picture
6634 REFPIC_FLAG_UNNAMED1 = 1, //!< the current picture after decoded, will be used as a reference picture later
6635 };
6636
6637 //! \name Initializations
6638
6639 //! \brief Explicit member initialization function
6640 MFD_VC1_SHORT_PIC_STATE_CMD();
6641
6642 static const size_t dwSize = 5;
6643 static const size_t byteSize = 20;
6644 };
6645
6646 //!
6647 //! \brief MFX_VC1_DIRECTMODE_STATE
6648 //! \details
6649 //! This is a picture level command and should be issued only once, even for
6650 //! a multi-slices picture. There is only one DMV buffer for read (when
6651 //! processing a B-picture) and one for write (when processing a P-Picture).
6652 //! Each DMV record is 64 bits per MB, to store the top and bottom field
6653 //! Motion Vector (32-bit MVx,y each).
6654 //!
6655 struct MFX_VC1_DIRECTMODE_STATE_CMD
6656 {
6657 union
6658 {
6659 //!< DWORD 0
6660 struct
6661 {
6662 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6663 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6664 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6665 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6666 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6667 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6668 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6669 };
6670 uint32_t Value;
6671 } DW0;
6672 union
6673 {
6674 //!< DWORD 1
6675 struct
6676 {
6677 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
6678 uint32_t DirectMvWriteBufferBaseAddressForTheCurrentPicture : __CODEGEN_BITFIELD( 6, 31) ; //!< Direct MV Write Buffer Base Address for the Current Picture
6679 };
6680 uint32_t Value;
6681 } DW1;
6682 union
6683 {
6684 //!< DWORD 2
6685 struct
6686 {
6687 uint32_t DirectMvWriteBufferBaseAddressForTheCurrentPicture4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Direct MV Write Buffer Base Address for the Current Picture [47:32]
6688 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
6689 };
6690 uint32_t Value;
6691 } DW2;
6692 union
6693 {
6694 //!< DWORD 3
6695 struct
6696 {
6697 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
6698 uint32_t DirectMvWriteBufferBaseAddressForTheCurrentPictureArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6699 uint32_t DirectMvWriteBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Direct MV Write Buffer - Memory Compression Enable
6700 uint32_t DirectMvWriteBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_WRITE_BUFFER__MEMORY_COMPRESSION_MODE
6701 uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
6702 uint32_t DirectMvWriteBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_WRITE_BUFFER__TILED_RESOURCE_MODE
6703 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
6704 };
6705 uint32_t Value;
6706 } DW3;
6707 union
6708 {
6709 //!< DWORD 4
6710 struct
6711 {
6712 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
6713 uint32_t DirectMvReadBufferBaseAddressForTheReferencePicture : __CODEGEN_BITFIELD( 6, 31) ; //!< Direct MV Read Buffer Base Address for the Reference Picture
6714 };
6715 uint32_t Value;
6716 } DW4;
6717 union
6718 {
6719 //!< DWORD 5
6720 struct
6721 {
6722 uint32_t DirectMvReadBufferBaseAddressForTheCurrentPicture4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Direct MV Read Buffer Base Address for the Current Picture [47:32]
6723 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
6724 };
6725 uint32_t Value;
6726 } DW5;
6727 union
6728 {
6729 //!< DWORD 6
6730 struct
6731 {
6732 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
6733 uint32_t DirectMvReadBufferBaseAddressForTheCurrentPictureArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6734 uint32_t DirectMvReadBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Direct MV Read Buffer - Memory Compression Enable
6735 uint32_t DirectMvReadBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_READ_BUFFER__MEMORY_COMPRESSION_MODE
6736 uint32_t Reserved203 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
6737 uint32_t DirectMvReadBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_READ_BUFFER__TILED_RESOURCE_MODE
6738 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
6739 };
6740 uint32_t Value;
6741 } DW6;
6742
6743 //! \name Local enumerations
6744
6745 enum SUBOPCODE_B
6746 {
6747 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
6748 };
6749
6750 enum SUBOPCODE_A
6751 {
6752 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
6753 };
6754
6755 enum MEDIA_COMMAND_OPCODE
6756 {
6757 MEDIA_COMMAND_OPCODE_VC1COMMON = 2, //!< No additional details
6758 };
6759
6760 enum PIPELINE
6761 {
6762 PIPELINE_MFXVC1DIRECTMODESTATE = 2, //!< No additional details
6763 };
6764
6765 enum COMMAND_TYPE
6766 {
6767 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
6768 };
6769
6770 //! \brief DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6771 //! \details
6772 //! This field controls the priority of arbitration used in the GAC/GAM
6773 //! pipeline for this surface.
6774 enum DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6775 {
6776 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
6777 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
6778 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
6779 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
6780 };
6781
6782 //! \brief DIRECT_MV_WRITE_BUFFER__MEMORY_COMPRESSION_MODE
6783 //! \details
6784 //! Distinguishes Vertical from Horizontal compression. Please refer to
6785 //! vol1a
6786 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
6787 //! section for more details.
6788 enum DIRECT_MV_WRITE_BUFFER__MEMORY_COMPRESSION_MODE
6789 {
6790 DIRECT_MV_WRITE_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
6791 DIRECT_MV_WRITE_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
6792 };
6793
6794 //! \brief DIRECT_MV_WRITE_BUFFER__TILED_RESOURCE_MODE
6795 //! \details
6796 //! <b>For Media Surfaces:</b>
6797 //! This field specifies the tiled resource mode.
6798 enum DIRECT_MV_WRITE_BUFFER__TILED_RESOURCE_MODE
6799 {
6800 DIRECT_MV_WRITE_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
6801 DIRECT_MV_WRITE_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
6802 DIRECT_MV_WRITE_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
6803 };
6804
6805 //! \brief DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6806 //! \details
6807 //! This field controls the priority of arbitration used in the GAC/GAM
6808 //! pipeline for this surface.
6809 enum DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6810 {
6811 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
6812 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
6813 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
6814 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
6815 };
6816
6817 //! \brief DIRECT_MV_READ_BUFFER__MEMORY_COMPRESSION_MODE
6818 //! \details
6819 //! Distinguishes Vertical from Horizontal compression. Please refer to
6820 //! vol1a
6821 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
6822 //! section for more details.
6823 enum DIRECT_MV_READ_BUFFER__MEMORY_COMPRESSION_MODE
6824 {
6825 DIRECT_MV_READ_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
6826 DIRECT_MV_READ_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
6827 };
6828
6829 //! \brief DIRECT_MV_READ_BUFFER__TILED_RESOURCE_MODE
6830 //! \details
6831 //! <b>For Media Surfaces:</b>
6832 //! This field specifies the tiled resource mode.
6833 enum DIRECT_MV_READ_BUFFER__TILED_RESOURCE_MODE
6834 {
6835 DIRECT_MV_READ_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
6836 DIRECT_MV_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
6837 DIRECT_MV_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
6838 };
6839
6840 //! \name Initializations
6841
6842 //! \brief Explicit member initialization function
6843 MFX_VC1_DIRECTMODE_STATE_CMD();
6844
6845 static const size_t dwSize = 7;
6846 static const size_t byteSize = 28;
6847 };
6848
6849 //!
6850 //! \brief MFD_VC1_BSD_OBJECT
6851 //! \details
6852 //! The MFD_VC1_BSD_OBJECT command is the only primitive command for the VC1
6853 //! Decoding Pipeline. The macroblock data portion of the bitstream is
6854 //! loaded as indirect data object.Before issuing a MFD_VC1_BSD_OBJECT
6855 //! command, all VC1 states of the MFD Engine need to be valid. Therefore
6856 //! the commands used to set these states need to have been issued prior to
6857 //! the issue of a MFD_VC1_BSD_OBJECT command.VC1 deblock filter kernel
6858 //! cross the slice boundary if in the last MB row of a slice, so need to
6859 //! know the last MB row of a slice to disable the edge mask. There is why
6860 //! VC1 BSD hardware need to know the end of MB address for the current
6861 //! slice. As such no more phantom slice is needed for VC1, as long as the
6862 //! driver will program both start MB address in the current slice and the
6863 //! start MB address of the next slice. As a result, we can also support
6864 //! multiple picture state commands in between slices.
6865 //!
6866 struct MFD_VC1_BSD_OBJECT_CMD
6867 {
6868 union
6869 {
6870 //!< DWORD 0
6871 struct
6872 {
6873 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6874 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6875 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6876 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6877 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6878 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6879 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6880 };
6881 uint32_t Value;
6882 } DW0;
6883 union
6884 {
6885 //!< DWORD 1
6886 struct
6887 {
6888 uint32_t IndirectBsdDataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect BSD Data Length
6889 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
6890 };
6891 uint32_t Value;
6892 } DW1;
6893 union
6894 {
6895 //!< DWORD 2
6896 struct
6897 {
6898 uint32_t IndirectDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect Data Start Address
6899 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
6900 };
6901 uint32_t Value;
6902 } DW2;
6903 union
6904 {
6905 //!< DWORD 3
6906 struct
6907 {
6908 uint32_t NextSliceVerticalPosition : __CODEGEN_BITFIELD( 0, 8) ; //!< Next Slice Vertical Position
6909 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
6910 uint32_t SliceStartVerticalPosition : __CODEGEN_BITFIELD(16, 23) ; //!< Slice Start Vertical Position
6911 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
6912 };
6913 uint32_t Value;
6914 } DW3;
6915 union
6916 {
6917 //!< DWORD 4
6918 struct
6919 {
6920 uint32_t FirstmbbitoffsetFirstMacroblockBitOffset : __CODEGEN_BITFIELD( 0, 2) ; //!< FirstMbBitOffset (First Macroblock Bit Offset )
6921 uint32_t Reserved131 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
6922 uint32_t EmulationPreventionBytePresent : __CODEGEN_BITFIELD( 4, 4) ; //!< EMULATION_PREVENTION_BYTE_PRESENT
6923 uint32_t Reserved133 : __CODEGEN_BITFIELD( 5, 15) ; //!< Reserved
6924 uint32_t FirstMbByteOffsetOfSliceDataOrSliceHeader : __CODEGEN_BITFIELD(16, 31) ; //!< First_MB_Byte_Offset of Slice Data or Slice Header
6925 };
6926 uint32_t Value;
6927 } DW4;
6928
6929 //! \name Local enumerations
6930
6931 enum SUBOPCODE_B
6932 {
6933 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
6934 };
6935
6936 enum SUBOPCODE_A
6937 {
6938 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
6939 };
6940
6941 enum MEDIA_COMMAND_OPCODE
6942 {
6943 MEDIA_COMMAND_OPCODE_VC1DEC = 2, //!< No additional details
6944 };
6945
6946 enum PIPELINE
6947 {
6948 PIPELINE_MFXMULTIDW = 2, //!< No additional details
6949 };
6950
6951 enum COMMAND_TYPE
6952 {
6953 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
6954 };
6955
6956 enum EMULATION_PREVENTION_BYTE_PRESENT
6957 {
6958 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED0 = 0, //!< H/W needs to perform Emulation Byte Removal
6959 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED1 = 1, //!< H/W does not need to perform Emulation Byte Removal
6960 };
6961
6962 //! \name Initializations
6963
6964 //! \brief Explicit member initialization function
6965 MFD_VC1_BSD_OBJECT_CMD();
6966
6967 static const size_t dwSize = 5;
6968 static const size_t byteSize = 20;
6969 };
6970
6971 //!
6972 //! \brief MFX_JPEG_PIC_STATE
6973 //! \details
6974 //!
6975 //!
6976 struct MFX_JPEG_PIC_STATE_CMD
6977 {
6978 union
6979 {
6980 //!< DWORD 0
6981 struct
6982 {
6983 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6984 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6985 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6986 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6987 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6988 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6989 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6990 };
6991 uint32_t Value;
6992 } DW0;
6993 union
6994 {
6995 //!< DWORD 1
6996 struct
6997 {
6998 uint32_t OutputMcuStructure : __CODEGEN_BITFIELD( 0, 2) ; //!< OUTPUT_MCU_STRUCTURE, Encoder Only
6999 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 7) ; //!< Reserved, Encoder Only
7000 uint32_t InputSurfaceFormatYuv : __CODEGEN_BITFIELD( 8, 11) ; //!< INPUT_SURFACE_FORMAT_YUV, Encoder Only
7001 uint32_t Reserved44 : __CODEGEN_BITFIELD(12, 20) ; //!< Reserved, Encoder Only
7002 uint32_t PixelsInVerticalLastMcu : __CODEGEN_BITFIELD(21, 25) ; //!< Pixels In Vertical Last MCU, Encoder Only
7003 uint32_t PixelsInHorizontalLastMcu : __CODEGEN_BITFIELD(26, 30) ; //!< Pixels In Horizontal Last MCU, Encoder Only
7004 uint32_t Reserved63 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved, Encoder Only
7005 } Obj0;
7006 struct
7007 {
7008 uint32_t InputFormatYuv : __CODEGEN_BITFIELD( 0, 2) ; //!< INPUT_FORMAT_YUV, Decoder Only
7009 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved, Decoder Only
7010 uint32_t Rotation : __CODEGEN_BITFIELD( 4, 5) ; //!< ROTATION, Decoder Only
7011 uint32_t Reserved38 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved, Decoder Only
7012 uint32_t OutputFormatYuv : __CODEGEN_BITFIELD( 8, 11) ; //!< OUTPUT_FORMAT_YUV, Decoder Only
7013 uint32_t Reserved44 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved, Decoder Only
7014 uint32_t AverageDownSampling : __CODEGEN_BITFIELD(16, 16) ; //!< AVERAGE_DOWN_SAMPLING, Decoder Only
7015 uint32_t VerticalDownSamplingEnable : __CODEGEN_BITFIELD(17, 17) ; //!< VERTICAL_DOWN_SAMPLING_ENABLE, Decoder Only
7016 uint32_t HorizontalDownSamplingEnable : __CODEGEN_BITFIELD(18, 18) ; //!< HORIZONTAL_DOWN_SAMPLING_ENABLE, Decoder Only
7017 uint32_t Reserved51 : __CODEGEN_BITFIELD(19, 19) ; //!< Reserved, Decoder Only
7018 uint32_t VerticalUpSamplingEnable : __CODEGEN_BITFIELD(20, 20) ; //!< VERTICAL_UP_SAMPLING_ENABLE, Decoder Only
7019 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved, Decoder Only
7020 } Obj1;
7021 uint32_t Value;
7022 } DW1;
7023 union
7024 {
7025 //!< DWORD 2
7026 struct
7027 {
7028 uint32_t FrameWidthInBlocksMinus1 : __CODEGEN_BITFIELD( 0, 12) ; //!< Frame Width In Blocks Minus 1, Decoder Only
7029 uint32_t Reserved77 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved, Decoder Only
7030 uint32_t FrameHeightInBlocksMinus1 : __CODEGEN_BITFIELD(16, 28) ; //!< Frame Height In Blocks Minus 1, Decoder Only
7031 uint32_t OutputPixelNormalize : __CODEGEN_BITFIELD(29, 29) ; //!< OUTPUT_PIXEL_NORMALIZE, Decoder Only
7032 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved, Decoder Only
7033 } Obj0;
7034 struct
7035 {
7036 uint32_t FrameWidthInBlksMinus1 : __CODEGEN_BITFIELD( 0, 12) ; //!< Frame Width In Blks Minus 1, Encoder Only
7037 uint32_t Roundingquant : __CODEGEN_BITFIELD(13, 15) ; //!< ROUNDINGQUANT, Encoder Only
7038 uint32_t FrameHeightInBlksMinus1 : __CODEGEN_BITFIELD(16, 28) ; //!< Frame Height In Blks Minus 1, Encoder Only
7039 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved, Encoder Only
7040 } Obj1;
7041 uint32_t Value;
7042 } DW2;
7043
7044 //! \name Local enumerations
7045
7046 enum SUBOPCODE_B
7047 {
7048 SUBOPCODE_B_MEDIA = 0, //!< No additional details
7049 };
7050
7051 enum SUBOPCODE_A
7052 {
7053 SUBOPCODE_A_COMMON = 0, //!< No additional details
7054 };
7055
7056 enum MEDIA_COMMAND_OPCODE
7057 {
7058 MEDIA_COMMAND_OPCODE_JPEG = 7, //!< No additional details
7059 };
7060
7061 enum PIPELINE
7062 {
7063 PIPELINE_MFXMULTIDW = 2, //!< No additional details
7064 };
7065
7066 enum COMMAND_TYPE
7067 {
7068 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7069 };
7070
7071 //! \brief OUTPUT_MCU_STRUCTURE
7072 //! \details
7073 //! <p></p>
7074 //! Output MCU Structure(<b>OutputMcuStructure</b>) should be set
7075 //! accordingly for each Input Surface Format
7076 //! YUV(<b>InputSurfaceFormatYUV</b>):
7077 //! <ul>
7078 //! <li>If <b>InputSurfaceFormatYUV</b> is set to NV12,
7079 //! <b>OutputMCUStructure</b> is set to YUV420.</li>
7080 //! <li>If <b>InputSurfaceFormatYUV</b> is set to UYVY or YUY2,
7081 //! <b>OutputMCUStructure</b> is set to YUV422H_2Y.</li>
7082 //! <li>If <b>InputSurfaceFormatYUV</b> is set to Y8,
7083 //! <b>OutputMCuStructure</b> is set to YUV400.</li>
7084 //! <li>If <b>InputSurfaceFormatYUV</b> is set to RGB (or GBR, BGR,
7085 //! YUV), <b>OutputMCuStructure</b> is set to RGB.</li>
7086 //! <li>If <b>InputSurfaceFormatYUV</b> is set to RGB, the order of
7087 //! encoded blocks in MCU will be same as the order of input image
7088 //! components.
7089 //! If the order of input image components is RGB (or GBR, BGR, YUV),
7090 //! then the order of blocks will be RGB (or GBR, BGR, YUV
7091 //! respectively).</li>
7092 //! </ul>
7093 //! <p></p>
7094 enum OUTPUT_MCU_STRUCTURE
7095 {
7096 OUTPUT_MCU_STRUCTURE_YUV_400 = 0, //!< Grayscale Image
7097 OUTPUT_MCU_STRUCTURE_YUV_420 = 1, //!< Both horizontally and vertically chroma 2:1 subsampled
7098 OUTPUT_MCU_STRUCTURE_YUV_422H2Y = 2, //!< Horizontally chroma 2:1 subsampled - horizontal 2 Y-blocks, 1 U and 1 V block
7099 OUTPUT_MCU_STRUCTURE_RGB = 3, //!< RGB or YUV444: No subsample
7100 OUTPUT_MCU_STRUCTURE_UNNAMED_4 = 4, //!< No additional details
7101 OUTPUT_MCU_STRUCTURE_UNNAMED5 = 5, //!< No additional details
7102 OUTPUT_MCU_STRUCTURE_UNNAMED6 = 6, //!< No additional details
7103 OUTPUT_MCU_STRUCTURE_UNNAMED7 = 7, //!< No additional details
7104 };
7105
7106 enum INPUT_FORMAT_YUV
7107 {
7108 INPUT_FORMAT_YUV_UNNAMED0 = 0, //!< YUV400 (grayscale image)
7109 INPUT_FORMAT_YUV_UNNAMED1 = 1, //!< YUV420
7110 INPUT_FORMAT_YUV_UNNAMED2 = 2, //!< YUV422H_2Y (Horizontally chroma 2:1 subsampled) - horizontal 2 Y-block, 1U and 1V
7111 INPUT_FORMAT_YUV_UNNAMED3 = 3, //!< YUV444
7112 INPUT_FORMAT_YUV_UNNAMED_4 = 4, //!< YUV411
7113 INPUT_FORMAT_YUV_UNNAMED5 = 5, //!< YUV422V_2Y (Vertically chroma 2:1 subsampled) - vertical 2 Y-blocks, 1U and 1V
7114 INPUT_FORMAT_YUV_UNNAMED6 = 6, //!< YUV422H_4Y - 2x2 Y-blocks, vertical 2U and 2V
7115 INPUT_FORMAT_YUV_UNNAMED7 = 7, //!< YUV422V_4Y - 2x2 Y-blocks, horizontal 2U and 2V
7116 };
7117
7118 //! \brief ROTATION
7119 //! \details
7120 //! Rotation can be set to 01b, 10b, or 11b when OutputFormatYUV is set to
7121 //! 0000b. For other OutputFormatYUV, Rotation is not allowed.
7122 enum ROTATION
7123 {
7124 ROTATION_UNNAMED0 = 0, //!< no rotation
7125 ROTATION_UNNAMED1 = 1, //!< rotate clockwise 90 degree
7126 ROTATION_UNNAMED2 = 2, //!< rotate counter-clockwise 90 degree (same as rotating 270 degree clockwise)
7127 ROTATION_UNNAMED3 = 3, //!< rotate 180 degree (NOT the same as flipped on the x-axis)
7128 };
7129
7130 //! \brief OUTPUT_FORMAT_YUV
7131 //! \details
7132 //! This field specifies the surface format to write the decoded JPEG
7133 //! image.Note that any non-interleaved JPEG input should be set to "0000".
7134 //! For the interleaved input Scan data, it can be set either "0000" or the
7135 //! corresponding format.
7136 enum OUTPUT_FORMAT_YUV
7137 {
7138 OUTPUT_FORMAT_YUV_UNNAMED0 = 0, //!< 3 separate plane for Y, U, and V respectively
7139 OUTPUT_FORMAT_YUV_UNNAMED1 = 1, //!< NV12 for chroma 4:2:0
7140 OUTPUT_FORMAT_YUV_UNNAMED2 = 2, //!< UYVY for chroma 4:2:2
7141 OUTPUT_FORMAT_YUV_UNNAMED3 = 3, //!< YUY2 for chroma 4:2:2
7142 };
7143
7144 //! \brief INPUT_SURFACE_FORMAT_YUV
7145 //! \details
7146 //! This field specifies the surface format to read a YUV image data
7147 enum INPUT_SURFACE_FORMAT_YUV
7148 {
7149 INPUT_SURFACE_FORMAT_YUV_UNNAMED0 = 0, //!< Reserved
7150 INPUT_SURFACE_FORMAT_YUV_NV12 = 1, //!< NV12 for chroma 4:2:0
7151 INPUT_SURFACE_FORMAT_YUV_UYVY = 2, //!< UYVY for chroma 4:2:2
7152 INPUT_SURFACE_FORMAT_YUV_YUY2 = 3, //!< YUY2 for chroma 4:2:2
7153 INPUT_SURFACE_FORMAT_YUV_Y8 = 4, //!< Y8 for chroma400 Y-only image
7154 INPUT_SURFACE_FORMAT_YUV_RGB = 5, //!< RGB or YUV for chroma 4:4:4
7155 };
7156
7157 //! \brief AVERAGE_DOWN_SAMPLING
7158 //! \details
7159 //! This flag is used to select a down-sampling method when
7160 //! <b>VertDownSamplingEnb</b> or <b>HoriDownSamplingEnb</b> is set to 1.
7161 enum AVERAGE_DOWN_SAMPLING
7162 {
7163 AVERAGE_DOWN_SAMPLING_UNNAMED0 = 0, //!< Drop every other line (or column) pixels
7164 AVERAGE_DOWN_SAMPLING_UNNAMED1 = 1, //!< Average neighboring two pixels
7165 };
7166
7167 //! \brief VERTICAL_DOWN_SAMPLING_ENABLE
7168 //! \details
7169 //! Only applied to chroma blocks. This flag is used for 2:1 vertical
7170 //! down-sampling for chroma 422 and outputting chroma420 NV21 format. To
7171 //! enable this flag, the input should be interleaved Scan,
7172 //! <b>InputFormatYUV</b> should be set to YUV422H_2Y or YUV422H_4Y, and
7173 //! <b>OutputFormatYUV</b> should be set to NV12.
7174 enum VERTICAL_DOWN_SAMPLING_ENABLE
7175 {
7176 VERTICAL_DOWN_SAMPLING_ENABLE_UNNAMED0 = 0, //!< no down-sampling
7177 VERTICAL_DOWN_SAMPLING_ENABLE_UNNAMED1 = 1, //!< 2:1 vertical down-sampling
7178 };
7179
7180 //! \brief HORIZONTAL_DOWN_SAMPLING_ENABLE
7181 //! \details
7182 //! Only applied to chroma blocks. This flag is used for 2:1 horizontal
7183 //! down-sampling for chroma 422 and outputting chroma420 NV21 format. To
7184 //! enable this flag, the input should be interleaved Scan,
7185 //! <b>InputFormatYUV</b> should be set to YUV422V_2Y or YUV422V_4Y, and
7186 //! <b>OutputFormatYUV</b> should be set to NV12.
7187 enum HORIZONTAL_DOWN_SAMPLING_ENABLE
7188 {
7189 HORIZONTAL_DOWN_SAMPLING_ENABLE_UNNAMED0 = 0, //!< no down-sampling
7190 HORIZONTAL_DOWN_SAMPLING_ENABLE_UNNAMED1 = 1, //!< 2:1 horizonatl down-sampling
7191 };
7192
7193 //! \brief VERTICAL_UP_SAMPLING_ENABLE
7194 //! \details
7195 //! Only applied to chroma blocks. This flag is used for 2:1 vertical
7196 //! up-sampling for chroma 420 and outputting chroma422 YUY2 or UYVY format.
7197 //! To enable this flag, the input should be interleaved Scan,
7198 //! <b>InputFormatYUV</b> should be set to YUV420, and
7199 //! <b>OutputFormatYUV</b> should be set to YUY2 or UYVY.
7200 enum VERTICAL_UP_SAMPLING_ENABLE
7201 {
7202 VERTICAL_UP_SAMPLING_ENABLE_UNNAMED0 = 0, //!< no up-sampling
7203 VERTICAL_UP_SAMPLING_ENABLE_UNNAMED1 = 1, //!< 2:1 vertical up-sampling
7204 };
7205
7206 //! \brief ROUNDINGQUANT
7207 //! \details
7208 //! Rounding value applied to quantization output
7209 enum ROUNDINGQUANT
7210 {
7211 ROUNDINGQUANT_UNNAMED0 = 0, //!< 1/2
7212 ROUNDINGQUANT_UNNAMED1 = 1, //!< (1/2 - 1/128)
7213 ROUNDINGQUANT_UNNAMED2 = 2, //!< (1/2 + 1/128)
7214 ROUNDINGQUANT_UNNAMED3 = 3, //!< (1/2 - 1/64)
7215 ROUNDINGQUANT_UNNAMED_4 = 4, //!< (1/2 + 1/64)
7216 ROUNDINGQUANT_UNNAMED5 = 5, //!< (1/2 - 1/32)
7217 ROUNDINGQUANT_UNNAMED6 = 6, //!< (1/2 - 1/16)
7218 ROUNDINGQUANT_UNNAMED7 = 7, //!< (1/2 - 1/8)
7219 };
7220
7221 //! \brief OUTPUT_PIXEL_NORMALIZE
7222 //! \details
7223 //! JPEG decoded output pixels for Y and U/V in order to adjust display YUV
7224 //! range.
7225 enum OUTPUT_PIXEL_NORMALIZE
7226 {
7227 OUTPUT_PIXEL_NORMALIZE_UNNAMED0 = 0, //!< No Normalization
7228 OUTPUT_PIXEL_NORMALIZE_UNNAMED1 = 1, //!< Normalize output pixels from [0,255] to [16,235]
7229 };
7230
7231 //! \name Initializations
7232
7233 //! \brief Explicit member initialization function
7234 MFX_JPEG_PIC_STATE_CMD();
7235
7236 static const size_t dwSize = 3;
7237 static const size_t byteSize = 12;
7238 };
7239
7240 //!
7241 //! \brief MFC_JPEG_HUFF_TABLE_STATE
7242 //! \details
7243 //! This Huffman table commands contains both DC and AC tables for either
7244 //! luma or chroma. Once a Huffman table has been defined for a particular
7245 //! destination, it replaces the previous tables stored in that destination
7246 //! and shall be used in the remaining Scans of the current image. Two
7247 //! Huffman tables for luma and chroma will be sent to H/W, and chroma table
7248 //! is used for both U and V.
7249 //!
7250 struct MFC_JPEG_HUFF_TABLE_STATE_CMD
7251 {
7252 union
7253 {
7254 //!< DWORD 0
7255 struct
7256 {
7257 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7258 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7259 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7260 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7261 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7262 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7263 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7264 };
7265 uint32_t Value;
7266 } DW0;
7267 union
7268 {
7269 //!< DWORD 1
7270 struct
7271 {
7272 uint32_t HuffTableId : __CODEGEN_BITFIELD( 0, 0) ; //!< HUFF_TABLE_ID
7273 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
7274 };
7275 uint32_t Value;
7276 } DW1;
7277
7278 uint32_t DcTable[12]; //!< DC_TABLE
7279
7280
7281 uint32_t AcTable[162]; //!< AC_TABLE
7282
7283
7284 //! \name Local enumerations
7285
7286 enum SUBOPCODE_B
7287 {
7288 SUBOPCODE_B_MEDIA = 3, //!< No additional details
7289 };
7290
7291 enum SUBOPCODE_A
7292 {
7293 SUBOPCODE_A_COMMON = 2, //!< No additional details
7294 };
7295
7296 enum MEDIA_COMMAND_OPCODE
7297 {
7298 MEDIA_COMMAND_OPCODE_JPEG = 7, //!< No additional details
7299 };
7300
7301 enum PIPELINE
7302 {
7303 PIPELINE_MFCJPEGHUFFTABLESTATE = 2, //!< No additional details
7304 };
7305
7306 enum COMMAND_TYPE
7307 {
7308 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7309 };
7310
7311 //! \brief HUFF_TABLE_ID
7312 //! \details
7313 //! Huffman table destination identifier will specify one of two
7314 //! destinations at the encoder into which the Huffman table must be stored.
7315 enum HUFF_TABLE_ID
7316 {
7317 HUFF_TABLE_ID_UNNAMED0 = 0, //!< Huffman table 0
7318 HUFF_TABLE_ID_UNNAMED1 = 1, //!< Huffman table 1
7319 };
7320
7321 //! \name Initializations
7322
7323 //! \brief Explicit member initialization function
7324 MFC_JPEG_HUFF_TABLE_STATE_CMD();
7325
7326 static const size_t dwSize = 176;
7327 static const size_t byteSize = 704;
7328 };
7329
7330 //!
7331 //! \brief MFD_JPEG_BSD_OBJECT
7332 //! \details
7333 //!
7334 //!
7335 struct MFD_JPEG_BSD_OBJECT_CMD
7336 {
7337 union
7338 {
7339 //!< DWORD 0
7340 struct
7341 {
7342 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7343 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7344 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7345 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7346 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7347 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7348 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7349 };
7350 uint32_t Value;
7351 } DW0;
7352 union
7353 {
7354 //!< DWORD 1
7355 struct
7356 {
7357 uint32_t IndirectDataLength ; //!< Indirect Data Length
7358 };
7359 uint32_t Value;
7360 } DW1;
7361 union
7362 {
7363 //!< DWORD 2
7364 struct
7365 {
7366 uint32_t IndirectDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect Data Start Address
7367 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
7368 };
7369 uint32_t Value;
7370 } DW2;
7371 union
7372 {
7373 //!< DWORD 3
7374 struct
7375 {
7376 uint32_t ScanVerticalPosition : __CODEGEN_BITFIELD( 0, 12) ; //!< Scan Vertical Position
7377 uint32_t Reserved109 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
7378 uint32_t ScanHorizontalPosition : __CODEGEN_BITFIELD(16, 28) ; //!< Scan Horizontal Position
7379 uint32_t Reserved125 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
7380 };
7381 uint32_t Value;
7382 } DW3;
7383 union
7384 {
7385 //!< DWORD 4
7386 struct
7387 {
7388 uint32_t McuCount : __CODEGEN_BITFIELD( 0, 25) ; //!< MCU Count
7389 uint32_t Reserved154 : __CODEGEN_BITFIELD(26, 26) ; //!< Reserved
7390 uint32_t ScanComponents : __CODEGEN_BITFIELD(27, 29) ; //!< Scan Components
7391 uint32_t Interleaved : __CODEGEN_BITFIELD(30, 30) ; //!< INTERLEAVED
7392 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
7393 };
7394 uint32_t Value;
7395 } DW4;
7396 union
7397 {
7398 //!< DWORD 5
7399 struct
7400 {
7401 uint32_t Restartinterval16Bit : __CODEGEN_BITFIELD( 0, 15) ; //!< RestartInterval(16 bit)
7402 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
7403 };
7404 uint32_t Value;
7405 } DW5;
7406
7407 //! \name Local enumerations
7408
7409 enum SUBOPCODE_B
7410 {
7411 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
7412 };
7413
7414 enum SUBOPCODE_A
7415 {
7416 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
7417 };
7418
7419 enum MEDIA_COMMAND_OPCODE
7420 {
7421 MEDIA_COMMAND_OPCODE_JPEGDEC = 7, //!< No additional details
7422 };
7423
7424 enum PIPELINE
7425 {
7426 PIPELINE_MFDJPEGBSDOBJECT = 2, //!< No additional details
7427 };
7428
7429 enum COMMAND_TYPE
7430 {
7431 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7432 };
7433
7434 enum INTERLEAVED
7435 {
7436 INTERLEAVED_NON_INTERLEAVED = 0, //!< one component in the Scan
7437 INTERLEAVED_INTERLEAVED = 1, //!< multiple components in the Scan
7438 };
7439
7440 //! \name Initializations
7441
7442 //! \brief Explicit member initialization function
7443 MFD_JPEG_BSD_OBJECT_CMD();
7444
7445 static const size_t dwSize = 6;
7446 static const size_t byteSize = 24;
7447 };
7448
7449 //!
7450 //! \brief MFC_JPEG_SCAN_OBJECT
7451 //! \details
7452 //! Encoder Only
7453 //!
7454 struct MFC_JPEG_SCAN_OBJECT_CMD
7455 {
7456 union
7457 {
7458 //!< DWORD 0
7459 struct
7460 {
7461 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7462 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7463 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7464 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7465 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7466 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7467 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7468 };
7469 uint32_t Value;
7470 } DW0;
7471 union
7472 {
7473 //!< DWORD 1
7474 struct
7475 {
7476 uint32_t McuCount : __CODEGEN_BITFIELD( 0, 25) ; //!< MCU Count
7477 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
7478 };
7479 uint32_t Value;
7480 } DW1;
7481 union
7482 {
7483 //!< DWORD 2
7484 struct
7485 {
7486 uint32_t RestartInterval : __CODEGEN_BITFIELD( 0, 15) ; //!< Restart Interval
7487 uint32_t IsLastScan : __CODEGEN_BITFIELD(16, 16) ; //!< IS_LAST_SCAN
7488 uint32_t HeadPresentFlag : __CODEGEN_BITFIELD(17, 17) ; //!< HEAD_PRESENT_FLAG
7489 uint32_t HuffmanDcTable : __CODEGEN_BITFIELD(18, 20) ; //!< HUFFMAN_DC_TABLE
7490 uint32_t Reserved85 : __CODEGEN_BITFIELD(21, 21) ; //!< Reserved
7491 uint32_t HuffmanAcTable : __CODEGEN_BITFIELD(22, 24) ; //!< HUFFMAN_AC_TABLE
7492 uint32_t Reserved89 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
7493 };
7494 uint32_t Value;
7495 } DW2;
7496
7497 //! \name Local enumerations
7498
7499 enum SUBOPCODE_B
7500 {
7501 SUBOPCODE_B_UNNAMED9 = 9, //!< No additional details
7502 };
7503
7504 enum SUBOPCODE_A
7505 {
7506 SUBOPCODE_A_UNNAMED2 = 2, //!< No additional details
7507 };
7508
7509 enum MEDIA_COMMAND_OPCODE
7510 {
7511 MEDIA_COMMAND_OPCODE_JPEGENC = 7, //!< No additional details
7512 };
7513
7514 enum PIPELINE
7515 {
7516 PIPELINE_MFCJPEGSCANOBJECT = 2, //!< No additional details
7517 };
7518
7519 enum COMMAND_TYPE
7520 {
7521 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7522 };
7523
7524 //! \brief IS_LAST_SCAN
7525 //! \details
7526 //! If this flag is set, then HW will insert EOI (0xFFD9) to the end of Scan
7527 //! encoded bitstream.
7528 enum IS_LAST_SCAN
7529 {
7530 IS_LAST_SCAN_UNNAMED0 = 0, //!< Not the last Scan.
7531 IS_LAST_SCAN_UNNAMED1 = 1, //!< Indicates that the current Scan is the last one.
7532 };
7533
7534 //! \brief HEAD_PRESENT_FLAG
7535 //! \details
7536 //! If this flag is set to 0, then no MFC_JPEG_PAK_INSERT_OBJECT commands
7537 //! will be sent.
7538 //! If this flag is set to 1, then one or more
7539 //! MFC_JPEG_PAK_INSERT_OBJECT commands will be sent after
7540 //! MFC_JPEG_SCAN_OBJECT command.
7541 enum HEAD_PRESENT_FLAG
7542 {
7543 HEAD_PRESENT_FLAG_UNNAMED0 = 0, //!< No insertion into the output bitstream buffer before Scan encoded bitstream
7544 HEAD_PRESENT_FLAG_UNNAMED1 = 1, //!< Headers, tables, App data insertion into the output bitstream buffer. HW will insert the insertion data before the Scan encoded bitstream.
7545 };
7546
7547 //! \brief HUFFMAN_DC_TABLE
7548 //! \details
7549 //! DC Huffman table destination selector specifies one of two possible DC
7550 //! table destinations for each Y, U, V, or R, G, B.
7551 //! The DC Huffman tables shall have been loaded in destination 0 and 1
7552 //! by the time of issuing MFC_JPEG_HUFF_TABLE_STATE Command.
7553 enum HUFFMAN_DC_TABLE
7554 {
7555 HUFFMAN_DC_TABLE_BIT20V0 = 0, //!< The third image component must use the DC table 0.
7556 HUFFMAN_DC_TABLE_BIT19U0 = 0, //!< The second image component must use the DC table 0.
7557 HUFFMAN_DC_TABLE_BIT18Y0 = 0, //!< The first image component must use the DC table 0.
7558 HUFFMAN_DC_TABLE_BIT18Y1 = 1, //!< The first image component must use the DC table 1.
7559 HUFFMAN_DC_TABLE_BIT19U1 = 2, //!< The second image component must use the DC table 1.
7560 HUFFMAN_DC_TABLE_BIT20V1 = 4, //!< The third image component must use the DC table 1.
7561 };
7562
7563 //! \brief HUFFMAN_AC_TABLE
7564 //! \details
7565 //! AC Huffman table destination selector specifies one of two possible AC
7566 //! table destinations for each Y, U, V, or R, G, B.
7567 //! The AC Huffman tables must have been loaded in destination 0 and 1
7568 //! by the time of issuing MFC_JPEG_HUFF_TABLE_STATE Command.
7569 enum HUFFMAN_AC_TABLE
7570 {
7571 HUFFMAN_AC_TABLE_BIT2_4V0 = 0, //!< The third image component must use the AC table 0.
7572 HUFFMAN_AC_TABLE_BIT23U0 = 0, //!< The second image component must use the AC table 0.
7573 HUFFMAN_AC_TABLE_BIT22Y0 = 0, //!< The first image component must use the AC table 0.
7574 HUFFMAN_AC_TABLE_BIT22Y1 = 1, //!< The first image component must use the AC table 1.
7575 HUFFMAN_AC_TABLE_BIT23U1 = 2, //!< The second image component must use the AC table 1.
7576 HUFFMAN_AC_TABLE_BIT2_4V1 = 4, //!< The third image component must use the AC table 1.
7577 };
7578
7579 //! \name Initializations
7580
7581 //! \brief Explicit member initialization function
7582 MFC_JPEG_SCAN_OBJECT_CMD();
7583
7584 static const size_t dwSize = 3;
7585 static const size_t byteSize = 12;
7586 };
7587
7588 //!
7589 //! \brief MFX_VP8_Encoder_CFG
7590 //! \details
7591 //! This must be the very first command to issue after the surface state,
7592 //! the pipe select and base address setting commands and must be issued
7593 //! before MFX_VP8_PIC_STATE.
7594 //!
7595 struct MFX_VP8_Encoder_CFG_CMD
7596 {
7597 union
7598 {
7599 //!< DWORD 0
7600 struct
7601 {
7602 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7603 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7604 uint32_t SubOpcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUB_OPCODE_B
7605 uint32_t SubOpcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODE_A
7606 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7607 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7608 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7609 };
7610 uint32_t Value;
7611 } DW0;
7612 union
7613 {
7614 //!< DWORD 1
7615 struct
7616 {
7617 uint32_t PerformanceCounterEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Performance Counter Enable
7618 uint32_t FinalBitstreamOutputDisable : __CODEGEN_BITFIELD( 1, 1) ; //!< Final Bitstream Output Disable
7619 uint32_t TokenStatisticsOutputEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< Token Statistics Output Enable
7620 uint32_t BitstreamStatisticsOutputEnable : __CODEGEN_BITFIELD( 3, 3) ; //!< Bitstream Statistics Output Enable
7621 uint32_t UpdateSegmentFeatureDataFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< Update Segment Feature Data Flag
7622 uint32_t SkipFinalBitstreamWhenOverUnderFlow : __CODEGEN_BITFIELD( 5, 5) ; //!< Skip Final Bitstream when Over / Under flow
7623 uint32_t RateControlInitialPass : __CODEGEN_BITFIELD( 6, 6) ; //!< RATE_CONTROL_INITIAL_PASS
7624 uint32_t PerSegmentDeltaQindexLoopfilterDisable : __CODEGEN_BITFIELD( 7, 7) ; //!< Per Segment Delta Qindex / LoopFilter Disable
7625 uint32_t FinerBrcEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< Finer BRC Enable
7626 uint32_t CompressedBitstreamOutputDisable : __CODEGEN_BITFIELD( 9, 9) ; //!< Compressed Bitstream Output Disable
7627 uint32_t VbspunitpowerclockGatingDisable : __CODEGEN_BITFIELD(10, 10) ; //!< VBSPunitPowerClock Gating Disable
7628 uint32_t Reserved43 : __CODEGEN_BITFIELD(11, 31) ; //!< Reserved
7629 };
7630 uint32_t Value;
7631 } DW1;
7632 union
7633 {
7634 //!< DWORD 2
7635 struct
7636 {
7637 uint32_t MaxFrameBitCountRateControlEnableMask : __CODEGEN_BITFIELD( 0, 0) ; //!< MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7638 uint32_t MinFrameBitCountRateControlEnableMask : __CODEGEN_BITFIELD( 1, 1) ; //!< MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7639 uint32_t MaxInterMbBitCountCheckEnableMask : __CODEGEN_BITFIELD( 2, 2) ; //!< Max Inter MB Bit Count Check Enable Mask
7640 uint32_t MaxIntraMbBitCountCheckEnableMask : __CODEGEN_BITFIELD( 3, 3) ; //!< Max Intra MB Bit Count Check Enable Mask
7641 uint32_t IntermediateBitBufferOverrunEnableMask : __CODEGEN_BITFIELD( 4, 4) ; //!< Intermediate Bit Buffer Overrun Enable Mask
7642 uint32_t FinalBistreamBufferOverrunEnableMask : __CODEGEN_BITFIELD( 5, 5) ; //!< Final Bistream Buffer Overrun Enable Mask
7643 uint32_t QindexClampHighMaskForUnderflow : __CODEGEN_BITFIELD( 6, 6) ; //!< Qindex_Clamp_High_mask for underflow
7644 uint32_t QindexClampHighMaskForOverflow : __CODEGEN_BITFIELD( 7, 7) ; //!< Qindex_Clamp_High_mask for overflow
7645 uint32_t Reserved72 : __CODEGEN_BITFIELD( 8, 31) ; //!< Reserved
7646 };
7647 uint32_t Value;
7648 } DW2;
7649 union
7650 {
7651 //!< DWORD 3
7652 struct
7653 {
7654 uint32_t MaxInterMbBitCount : __CODEGEN_BITFIELD( 0, 11) ; //!< Max Inter MB bit count
7655 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7656 uint32_t MaxIntraMbBitCountLimit : __CODEGEN_BITFIELD(16, 27) ; //!< Max Intra MB Bit Count Limit
7657 uint32_t Reserved124 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
7658 };
7659 uint32_t Value;
7660 } DW3;
7661 union
7662 {
7663 //!< DWORD 4
7664 struct
7665 {
7666 uint32_t FrameBitRateMax : __CODEGEN_BITFIELD( 0, 13) ; //!< Frame Bit Rate Max
7667 uint32_t FrameBitRateMaxUnit : __CODEGEN_BITFIELD(14, 14) ; //!< FRAME_BIT_RATE_MAX_UNIT
7668 uint32_t FrameBitrateMaxUnitMode : __CODEGEN_BITFIELD(15, 15) ; //!< FRAME_BITRATE_MAX_UNIT_MODE
7669 uint32_t FrameBitRateMin : __CODEGEN_BITFIELD(16, 29) ; //!< Frame Bit Rate Min
7670 uint32_t FrameBitRateMinUnit : __CODEGEN_BITFIELD(30, 30) ; //!< FRAME_BIT_RATE_MIN_UNIT
7671 uint32_t FrameBitrateMinUnitMode : __CODEGEN_BITFIELD(31, 31) ; //!< FRAME_BITRATE_MIN_UNIT_MODE
7672 };
7673 uint32_t Value;
7674 } DW4;
7675 union
7676 {
7677 //!< DWORD 5
7678 struct
7679 {
7680 uint32_t FrameDeltaQindexMax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta QIndex Max [0]
7681 uint32_t FrameDeltaQindexMax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Frame Delta QIndex Max[1]
7682 uint32_t FrameDeltaqIndexMax2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame DeltaQ Index Max[2]
7683 uint32_t FrameDeltaQindexMax3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta QIndex Max[3]
7684 };
7685 uint32_t Value;
7686 } DW5;
7687 union
7688 {
7689 //!< DWORD 6
7690 struct
7691 {
7692 uint32_t FrameDeltaQindexMin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta QIndex Min[0]
7693 uint32_t FrameDeltaQindexMin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Frame Delta QIndex Min[1]
7694 uint32_t FrameDeltaQindexMin2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Delta QIndex Min[2]
7695 uint32_t FrameDeltaQindexMin3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta QIndex Min[3]
7696 };
7697 uint32_t Value;
7698 } DW6;
7699 union
7700 {
7701 //!< DWORD 7
7702 struct
7703 {
7704 uint32_t PerSegmentFrameDeltaQindexMax1 ; //!< Per Segment Frame Delta QIndex Max[1]
7705 };
7706 uint32_t Value;
7707 } DW7;
7708 union
7709 {
7710 //!< DWORD 8
7711 struct
7712 {
7713 uint32_t PerSegmentFrameDeltaQindexMin1 ; //!< Per Segment Frame Delta QIndex Min[1]
7714 };
7715 uint32_t Value;
7716 } DW8;
7717 union
7718 {
7719 //!< DWORD 9
7720 struct
7721 {
7722 uint32_t PerSegmentFrameDeltaQindexMax2 ; //!< Per Segment Frame Delta QIndex Max[2]
7723 };
7724 uint32_t Value;
7725 } DW9;
7726 union
7727 {
7728 //!< DWORD 10
7729 struct
7730 {
7731 uint32_t PerSegmentFrameDeltaQindexMin2 ; //!< Per Segment Frame Delta QIndex Min[2]
7732 };
7733 uint32_t Value;
7734 } DW10;
7735 union
7736 {
7737 //!< DWORD 11
7738 struct
7739 {
7740 uint32_t PerSegmentFrameDeltaQindexMax3 ; //!< Per Segment Frame Delta QIndex Max[3]
7741 };
7742 uint32_t Value;
7743 } DW11;
7744 union
7745 {
7746 //!< DWORD 12
7747 struct
7748 {
7749 uint32_t PerSegmentFrameDeltaQindexMin3 ; //!< Per Segment Frame Delta QIndex Min[3]
7750 };
7751 uint32_t Value;
7752 } DW12;
7753 union
7754 {
7755 //!< DWORD 13
7756 struct
7757 {
7758 uint32_t FrameDeltaLoopFilterMax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta Loop Filter Max[0]
7759 uint32_t FramEdeltaLoopFilterMax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Fram eDelta Loop Filter Max[1]
7760 uint32_t FrameDeltaLoopFilterMax2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Delta Loop Filter Max[2]
7761 uint32_t FrameDeltaLoopFilterMax3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta Loop Filter Max[3]
7762 };
7763 uint32_t Value;
7764 } DW13;
7765 union
7766 {
7767 //!< DWORD 14
7768 struct
7769 {
7770 uint32_t FrameDeltaLoopFilterMin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta Loop Filter Min[0]
7771 uint32_t FrameDeltaLoopFilterMin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Frame Delta Loop Filter Min[1]
7772 uint32_t FrameDeltaLoopFilterMin2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Delta Loop Filter Min[2]
7773 uint32_t FrameDeltaLoopFilterMin3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta Loop Filter Min[3]
7774 };
7775 uint32_t Value;
7776 } DW14;
7777 union
7778 {
7779 //!< DWORD 15
7780 struct
7781 {
7782 uint32_t PerSegmentFrameDeltaLoopfilterMax1 ; //!< Per Segment Frame Delta LoopFilter Max[1]
7783 };
7784 uint32_t Value;
7785 } DW15;
7786 union
7787 {
7788 //!< DWORD 16
7789 struct
7790 {
7791 uint32_t PerSegmentFrameDeltaLoopfilterMin1 ; //!< Per Segment Frame Delta LoopFilter Min[1]
7792 };
7793 uint32_t Value;
7794 } DW16;
7795 union
7796 {
7797 //!< DWORD 17
7798 struct
7799 {
7800 uint32_t PerSegmentFrameDeltaLoopfilterMax2 ; //!< Per Segment Frame Delta LoopFilter Max[2]
7801 };
7802 uint32_t Value;
7803 } DW17;
7804 union
7805 {
7806 //!< DWORD 18
7807 struct
7808 {
7809 uint32_t PerSegmentFrameDeltaLoopfilterMin2 ; //!< Per Segment Frame Delta LoopFilter Min[2]
7810 };
7811 uint32_t Value;
7812 } DW18;
7813 union
7814 {
7815 //!< DWORD 19
7816 struct
7817 {
7818 uint32_t PerSegmentFrameDeltaLoopfilterMax3 ; //!< Per Segment Frame Delta LoopFilter Max[3]
7819 };
7820 uint32_t Value;
7821 } DW19;
7822 union
7823 {
7824 //!< DWORD 20
7825 struct
7826 {
7827 uint32_t PerSegmentFrameDeltaLoopfilterMin3 ; //!< Per Segment Frame Delta LoopFilter Min[3]
7828 };
7829 uint32_t Value;
7830 } DW20;
7831 union
7832 {
7833 //!< DWORD 21
7834 struct
7835 {
7836 uint32_t FrameBitRateMaxDelta : __CODEGEN_BITFIELD( 0, 14) ; //!< Frame Bit Rate Max Delta
7837 uint32_t Reserved687 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
7838 uint32_t Framebitratemindelta : __CODEGEN_BITFIELD(16, 30) ; //!< FrameBitRateMinDelta
7839 uint32_t Reserved703 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
7840 };
7841 uint32_t Value;
7842 } DW21;
7843 union
7844 {
7845 //!< DWORD 22
7846 struct
7847 {
7848 uint32_t MinFrameWsize : __CODEGEN_BITFIELD( 0, 15) ; //!< Min Frame WSize
7849 uint32_t MinFrameWsizeUnit : __CODEGEN_BITFIELD(16, 17) ; //!< MIN_FRAME_WSIZE_UNIT
7850 uint32_t Reserved722 : __CODEGEN_BITFIELD(18, 19) ; //!< Reserved
7851 uint32_t BitstreamFormatVersion : __CODEGEN_BITFIELD(20, 22) ; //!< Bitstream Format Version
7852 uint32_t ShowFrame : __CODEGEN_BITFIELD(23, 23) ; //!< Show Frame
7853 uint32_t Reserved728 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
7854 };
7855 uint32_t Value;
7856 } DW22;
7857 union
7858 {
7859 //!< DWORD 23
7860 struct
7861 {
7862 uint32_t HorizontalSizeCode : __CODEGEN_BITFIELD( 0, 15) ; //!< Horizontal_Size_Code
7863 uint32_t VerticalSizeCode : __CODEGEN_BITFIELD(16, 31) ; //!< Vertical_Size_Code
7864 };
7865 uint32_t Value;
7866 } DW23;
7867 union
7868 {
7869 //!< DWORD 24
7870 struct
7871 {
7872 uint32_t FrameHeaderBitCount ; //!< Frame Header Bit Count
7873 };
7874 uint32_t Value;
7875 } DW24;
7876 union
7877 {
7878 //!< DWORD 25
7879 struct
7880 {
7881 uint32_t FrameHeaderBinBufferQindexUpdatePointer ; //!< Frame Header Bin Buffer Qindex Update Pointer
7882 };
7883 uint32_t Value;
7884 } DW25;
7885 union
7886 {
7887 //!< DWORD 26
7888 struct
7889 {
7890 uint32_t FrameHeaderBinBufferLoopfilterUpdatePointer ; //!< Frame Header Bin Buffer LoopFilter Update Pointer
7891 };
7892 uint32_t Value;
7893 } DW26;
7894 union
7895 {
7896 //!< DWORD 27
7897 struct
7898 {
7899 uint32_t FrameHeaderBinBufferTokenUpdatePointer ; //!< Frame Header Bin Buffer Token Update Pointer
7900 };
7901 uint32_t Value;
7902 } DW27;
7903 union
7904 {
7905 //!< DWORD 28
7906 struct
7907 {
7908 uint32_t FrameHeaderBinBufferMvupdatePointer ; //!< Frame Header Bin Buffer MVUpdate Pointer
7909 };
7910 uint32_t Value;
7911 } DW28;
7912 union
7913 {
7914 //!< DWORD 29
7915 struct
7916 {
7917 uint32_t Cv0ClampValue0 : __CODEGEN_BITFIELD( 0, 3) ; //!< CV0 - Clamp Value 0
7918 uint32_t Cv1 : __CODEGEN_BITFIELD( 4, 7) ; //!< CV1
7919 uint32_t Cv2 : __CODEGEN_BITFIELD( 8, 11) ; //!< CV2
7920 uint32_t Cv3 : __CODEGEN_BITFIELD(12, 15) ; //!< CV3
7921 uint32_t Cv4 : __CODEGEN_BITFIELD(16, 19) ; //!< CV4
7922 uint32_t Cv5 : __CODEGEN_BITFIELD(20, 23) ; //!< CV5
7923 uint32_t Cv6 : __CODEGEN_BITFIELD(24, 27) ; //!< CV6
7924 uint32_t ClampvaluesCv7 : __CODEGEN_BITFIELD(28, 31) ; //!< ClampValues - CV7
7925 };
7926 uint32_t Value;
7927 } DW29;
7928
7929 //! \name Local enumerations
7930
7931 enum SUB_OPCODE_B
7932 {
7933 SUB_OPCODE_B_MFXVP8ENCODERCFG = 1, //!< No additional details
7934 };
7935
7936 enum SUB_OPCODE_A
7937 {
7938 SUB_OPCODE_A_VP8COMMON = 2, //!< No additional details
7939 };
7940
7941 enum MEDIA_COMMAND_OPCODE
7942 {
7943 MEDIA_COMMAND_OPCODE_VP8 = 4, //!< No additional details
7944 };
7945
7946 enum PIPELINE
7947 {
7948 PIPELINE_VIDEOCODEC = 2, //!< No additional details
7949 };
7950
7951 enum COMMAND_TYPE
7952 {
7953 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7954 };
7955
7956 enum RATE_CONTROL_INITIAL_PASS
7957 {
7958 RATE_CONTROL_INITIAL_PASS_SUBSEQUENCEPASSES = 0, //!< No additional details
7959 RATE_CONTROL_INITIAL_PASS_INITIALPASS = 1, //!< No additional details
7960 };
7961
7962 //! \brief MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7963 //! \details
7964 //! Enable Max. Frame Rate Control.
7965 //! This is a mask bit controlling if the condition of frame level bit
7966 //! count is greater than or equal to FrameBitRateMax.
7967 enum MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7968 {
7969 MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK_UNNAMED0 = 0, //!< Do not update bit[0] of MFX_VP8_IMAGE_STATUS control register.
7970 MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK_UNNAMED1 = 1, //!< If (Total Frame Level Bit Counter) >= (Frame Bit Rate Maximum Limit)Set bit[0] and bit[1] of MFX_VP8_IMAGE_STATUS control register.
7971 };
7972
7973 //! \brief MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7974 //! \details
7975 //! Enable Min. Frame Rate Control.
7976 //! This is a mask bit controlling if the condition of frame level bit
7977 //! count is less than or equal to FrameBitRateMin.
7978 enum MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7979 {
7980 MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK_UNNAMED0 = 0, //!< Do not update bit[0] of MFX_VP8_IMAGE_STATUS Control Register.
7981 MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK_UNNAMED1 = 1, //!< If (Total Frame Level Bit Counter) =< (Frame Bit Rate Minimum limit)Set bit[0] and bit[1] of MFX_VP8_IMAGE_STATUS Control Register.
7982 };
7983
7984 //! \brief FRAME_BIT_RATE_MAX_UNIT
7985 //! \details
7986 //! <i>This field is Frame Bitrate Maximum Mode</i>
7987 enum FRAME_BIT_RATE_MAX_UNIT
7988 {
7989 FRAME_BIT_RATE_MAX_UNIT_32_B = 0, //!< No additional details
7990 FRAME_BIT_RATE_MAX_UNIT_4_KB = 1, //!< No additional details
7991 };
7992
7993 //! \brief FRAME_BITRATE_MAX_UNIT_MODE
7994 //! \details
7995 //! This field is the Frame Bitrate Maximum Limit Units.
7996 enum FRAME_BITRATE_MAX_UNIT_MODE
7997 {
7998 FRAME_BITRATE_MAX_UNIT_MODE_COMPATIBILITYMODE = 0, //!< Frame BitRate Max Unit is in old mode (128b/16Kb)
7999 FRAME_BITRATE_MAX_UNIT_MODE_NEWMODE = 1, //!< Frame BitRate Max Unit is in new mode (32byte/4Kb)
8000 };
8001
8002 //! \brief FRAME_BIT_RATE_MIN_UNIT
8003 //! \details
8004 //! <i>This field is Frame Bitrate Minimum Mode.</i>
8005 enum FRAME_BIT_RATE_MIN_UNIT
8006 {
8007 FRAME_BIT_RATE_MIN_UNIT_32_B = 0, //!< No additional details
8008 FRAME_BIT_RATE_MIN_UNIT_4_KB = 1, //!< No additional details
8009 };
8010
8011 //! \brief FRAME_BITRATE_MIN_UNIT_MODE
8012 //! \details
8013 //! This field is the Frame Bitrate Minimum Limit Units.
8014 enum FRAME_BITRATE_MIN_UNIT_MODE
8015 {
8016 FRAME_BITRATE_MIN_UNIT_MODE_COMPATIBILITYMODE = 0, //!< Frame BitRate Min Unit is in old mode (128b/16Kb)
8017 FRAME_BITRATE_MIN_UNIT_MODE_NEWMODE = 1, //!< Frame BitRate Min Unit is in new mode (32byte/4Kb)
8018 };
8019
8020 enum MIN_FRAME_WSIZE_UNIT
8021 {
8022 MIN_FRAME_WSIZE_UNIT_COMPATIBILITYMODE = 0, //!< MinFrameWSizeUnit is in old mode (128b/16Kb)
8023 MIN_FRAME_WSIZE_UNIT_NEWMODE = 1, //!< MinFrameWSizeUnit is in new mode (32byte/4Kb)
8024 };
8025
8026 //! \name Initializations
8027
8028 //! \brief Explicit member initialization function
8029 MFX_VP8_Encoder_CFG_CMD();
8030
8031 static const size_t dwSize = 30;
8032 static const size_t byteSize = 120;
8033 };
8034
8035 //!
8036 //! \brief MFX_VP8_BSP_BUF_BASE_ADDR_STATE
8037 //! \details
8038 //!
8039 //!
8040 struct MFX_VP8_BSP_BUF_BASE_ADDR_STATE_CMD
8041 {
8042 union
8043 {
8044 //!< DWORD 0
8045 struct
8046 {
8047 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
8048 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
8049 uint32_t SubOpcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUB_OPCODE_B
8050 uint32_t SubOpcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODE_A
8051 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
8052 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
8053 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
8054 };
8055 uint32_t Value;
8056 } DW0;
8057 union
8058 {
8059 //!< DWORD 1
8060 struct
8061 {
8062 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
8063 uint32_t FrameHeaderBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Frame Header Base Addr
8064 };
8065 uint32_t Value;
8066 } DW1;
8067 union
8068 {
8069 //!< DWORD 2
8070 struct
8071 {
8072 uint32_t FrameHeaderBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Frame Header Base Addr - Upper Range
8073 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8074 };
8075 uint32_t Value;
8076 } DW2;
8077 union
8078 {
8079 //!< DWORD 3
8080 struct
8081 {
8082 uint32_t FrameHeaderBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< FRAME_HEADER_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8083 uint32_t Reserved98 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8084 uint32_t FrameHeaderBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< FRAME_HEADER_BASE_ADDR__TARGET_CACHE_TC
8085 uint32_t ForFrameheaderbaseaddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< FOR_FRAMEHEADERBASEADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8086 uint32_t FrameHeaderBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8087 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8088 };
8089 uint32_t Value;
8090 } DW3;
8091 union
8092 {
8093 //!< DWORD 4
8094 struct
8095 {
8096 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
8097 uint32_t IntermediateBufferBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Intermediate Buffer Base Addr
8098 };
8099 uint32_t Value;
8100 } DW4;
8101 union
8102 {
8103 //!< DWORD 5
8104 struct
8105 {
8106 uint32_t IntermediateBufferBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Intermediate Buffer Base Addr - Upper Range
8107 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8108 };
8109 uint32_t Value;
8110 } DW5;
8111 union
8112 {
8113 //!< DWORD 6
8114 struct
8115 {
8116 uint32_t IntermediateBufferBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE
8117 uint32_t Reserved194 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8118 uint32_t IntermediateBufferBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC
8119 uint32_t IntermediateBufferBaseAddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8120 uint32_t IntermediateBufferBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8121 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8122 };
8123 uint32_t Value;
8124 } DW6;
8125 union
8126 {
8127 //!< DWORD 7
8128 struct
8129 {
8130 uint32_t IntermediateBufferPartition1Offset ; //!< Intermediate Buffer Partition-1 Offset
8131 };
8132 uint32_t Value;
8133 } DW7;
8134 union
8135 {
8136 //!< DWORD 8
8137 struct
8138 {
8139 uint32_t IntermediateBufferPartition2Offset ; //!< Intermediate Buffer Partition-2 Offset
8140 };
8141 uint32_t Value;
8142 } DW8;
8143 union
8144 {
8145 //!< DWORD 9
8146 struct
8147 {
8148 uint32_t IntermediateBufferPartition3Offset ; //!< Intermediate Buffer Partition-3 Offset
8149 };
8150 uint32_t Value;
8151 } DW9;
8152 union
8153 {
8154 //!< DWORD 10
8155 struct
8156 {
8157 uint32_t IntermediateBufferPartition4Offset ; //!< Intermediate Buffer Partition-4 Offset
8158 };
8159 uint32_t Value;
8160 } DW10;
8161 union
8162 {
8163 //!< DWORD 11
8164 struct
8165 {
8166 uint32_t IntermediateBufferPartition5Offset ; //!< Intermediate Buffer Partition-5 Offset
8167 };
8168 uint32_t Value;
8169 } DW11;
8170 union
8171 {
8172 //!< DWORD 12
8173 struct
8174 {
8175 uint32_t IntermediateBufferPartition6Offset ; //!< Intermediate Buffer Partition-6 Offset
8176 };
8177 uint32_t Value;
8178 } DW12;
8179 union
8180 {
8181 //!< DWORD 13
8182 struct
8183 {
8184 uint32_t IntermediateBufferPartition7Offset ; //!< Intermediate Buffer Partition-7 Offset
8185 };
8186 uint32_t Value;
8187 } DW13;
8188 union
8189 {
8190 //!< DWORD 14
8191 struct
8192 {
8193 uint32_t IntermediateBufferPartition8Offset ; //!< Intermediate Buffer Partition-8 Offset
8194 };
8195 uint32_t Value;
8196 } DW14;
8197 union
8198 {
8199 //!< DWORD 15
8200 struct
8201 {
8202 uint32_t IntermediateBufferMaxSize ; //!< Intermediate Buffer Max Size
8203 };
8204 uint32_t Value;
8205 } DW15;
8206 union
8207 {
8208 //!< DWORD 16
8209 struct
8210 {
8211 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
8212 uint32_t FinalFrameBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Final Frame Base Addr
8213 };
8214 uint32_t Value;
8215 } DW16;
8216 union
8217 {
8218 //!< DWORD 17
8219 struct
8220 {
8221 uint32_t FinalFrameBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Final Frame Base Addr - Upper Range
8222 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8223 };
8224 uint32_t Value;
8225 } DW17;
8226 union
8227 {
8228 //!< DWORD 18
8229 struct
8230 {
8231 uint32_t FinalFrameBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< FINAL_FRAME_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8232 uint32_t Reserved578 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8233 uint32_t FinalFrameBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< FINAL_FRAME_BASE_ADDR__TARGET_CACHE_TC
8234 uint32_t FinalFrameBaseAddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< FINAL_FRAME_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8235 uint32_t FinalFrameBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< FINAL_FRAME_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8236 uint32_t Reserved585 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8237 };
8238 uint32_t Value;
8239 } DW18;
8240 union
8241 {
8242 //!< DWORD 19
8243 struct
8244 {
8245 uint32_t Finalframebyteoffset : __CODEGEN_BITFIELD( 0, 5) ; //!< FinalFrameByteOffset
8246 uint32_t Reserved614 : __CODEGEN_BITFIELD( 6, 31) ; //!< Reserved
8247 };
8248 uint32_t Value;
8249 } DW19;
8250 union
8251 {
8252 //!< DWORD 20
8253 struct
8254 {
8255 uint32_t StreamoutBaseAddrCacheabilityControl : __CODEGEN_BITFIELD( 0, 1) ; //!< STREAMOUT_BASE_ADDR__CACHEABILITY_CONTROL
8256 uint32_t StreamoutBaseAddrGraphicsDataTypeGfdt : __CODEGEN_BITFIELD( 2, 2) ; //!< Streamout Base Addr - Graphics Data Type (GFDT)
8257 uint32_t Reserved643 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8258 uint32_t StreamoutBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 4, 5) ; //!< STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL_
8259 uint32_t StreamoutBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Streamout Base Addr
8260 };
8261 uint32_t Value;
8262 } DW20;
8263 union
8264 {
8265 //!< DWORD 21
8266 struct
8267 {
8268 uint32_t StreamoutBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Streamout Base Addr - Upper Range
8269 uint32_t Reserved688 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8270 };
8271 uint32_t Value;
8272 } DW21;
8273 union
8274 {
8275 //!< DWORD 22
8276 struct
8277 {
8278 uint32_t StreamoutBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< STREAMOUT_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8279 uint32_t Reserved706 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8280 uint32_t StreamoutBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< STREAMOUT_BASE_ADDR__TARGET_CACHE_TC
8281 uint32_t StreamoutBaseAddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< STREAMOUT_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8282 uint32_t StreamoutBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8283 uint32_t Reserved713 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8284 };
8285 uint32_t Value;
8286 } DW22;
8287 union
8288 {
8289 //!< DWORD 23
8290 struct
8291 {
8292 uint32_t CoeffProbsStreaminSurfaceCacheabilityControl : __CODEGEN_BITFIELD( 0, 1) ; //!< COEFF_PROBS_STREAMIN_SURFACE__CACHEABILITY_CONTROL
8293 uint32_t CoeffProbsStreaminSurfaceGraphicsDataTypeGfdt : __CODEGEN_BITFIELD( 2, 2) ; //!< Coeff Probs StreamIn Surface - Graphics Data Type (GFDT)
8294 uint32_t Reserved739 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8295 uint32_t CoeffProbsStreaminSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 4, 5) ; //!< COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL_
8296 uint32_t CoeffProbsStreaminSurface : __CODEGEN_BITFIELD( 6, 31) ; //!< Coeff Probs StreamIn Surface
8297 };
8298 uint32_t Value;
8299 } DW23;
8300 union
8301 {
8302 //!< DWORD 24
8303 struct
8304 {
8305 uint32_t CoeffProbsStreaminSurfaceUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Coeff Probs StreamIn Surface - Upper Range
8306 uint32_t Reserved784 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8307 };
8308 uint32_t Value;
8309 } DW24;
8310 union
8311 {
8312 //!< DWORD 25
8313 struct
8314 {
8315 uint32_t CoeffProbsStreaminSurfaceAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< COEFF_PROBS_STREAMIN_SURFACE__AGE_FOR_QUADLRU_AGE
8316 uint32_t Reserved802 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8317 uint32_t CoeffProbsStreaminSurfaceTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< COEFF_PROBS_STREAMIN_SURFACE__TARGET_CACHE_TC
8318 uint32_t CoeffProbsStreaminSurfaceLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< COEFF_PROBS_STREAMIN_SURFACE__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8319 uint32_t CoeffProbsStreaminSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL
8320 uint32_t Reserved809 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8321 };
8322 uint32_t Value;
8323 } DW25;
8324 union
8325 {
8326 //!< DWORD 26
8327 struct
8328 {
8329 uint32_t TokenStatisticsSurfaceCacheabilityControl : __CODEGEN_BITFIELD( 0, 1) ; //!< TOKEN_STATISTICS_SURFACE__CACHEABILITY_CONTROL
8330 uint32_t TokenStatisticsSurfaceGraphicsDataTypeGfdt : __CODEGEN_BITFIELD( 2, 2) ; //!< Token Statistics Surface - Graphics Data Type (GFDT)
8331 uint32_t Reserved835 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8332 uint32_t FrameHeaderBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 4, 5) ; //!< FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8333 uint32_t TokenStatisticsSurface : __CODEGEN_BITFIELD( 6, 31) ; //!< Token Statistics Surface
8334 };
8335 uint32_t Value;
8336 } DW26;
8337 union
8338 {
8339 //!< DWORD 27
8340 struct
8341 {
8342 uint32_t TokenStatisticsSurface : __CODEGEN_BITFIELD( 0, 15) ; //!< Token Statistics Surface
8343 uint32_t Reserved880 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8344 };
8345 uint32_t Value;
8346 } DW27;
8347 union
8348 {
8349 //!< DWORD 28
8350 struct
8351 {
8352 uint32_t TokenStatisticsSurfaceAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< TOKEN_STATISTICS_SURFACE__AGE_FOR_QUADLRU_AGE
8353 uint32_t TokenStatisticsSurface : __CODEGEN_BITFIELD( 2, 2) ; //!< Token Statistics Surface
8354 uint32_t TokenStatisticsSurfaceTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< TOKEN_STATISTICS_SURFACE__TARGET_CACHE_TC
8355 uint32_t MemoryTypeLlcEllcCacheabilityControlLellcccForCoeffprobsStreaminSurface : __CODEGEN_BITFIELD( 5, 6) ; //!< MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE
8356 uint32_t TokenStatisticsSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< TOKEN_STATISTICS_SURFACE__ARBITRATION_PRIORITY_CONTROL
8357 uint32_t Reserved905 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8358 };
8359 uint32_t Value;
8360 } DW28;
8361 union
8362 {
8363 //!< DWORD 29..30
8364 struct
8365 {
8366 uint64_t MpcRowstoreSurfaceCacheabilityControl : __CODEGEN_BITFIELD(0, 1); //!< MPC_ROWSTORE_SURFACE__CACHEABILITY_CONTROL
8367 uint64_t MpcRowstoreSurfaceGraphicsDataTypeGfdt : __CODEGEN_BITFIELD(2, 2); //!< MPC RowStore Surface Graphics Data Type (GFDT)
8368 uint64_t Reserved931 : __CODEGEN_BITFIELD(3, 3); //!< Reserved
8369 uint64_t MpcRowstoreBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD(4, 5); //!< MPC_ROWSTORE_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8370 uint64_t MpcRowstoreSurfaceAddressLow : __CODEGEN_BITFIELD(6, 63); //!< MPC RowStore Surface Address Low
8371 };
8372 uint32_t Value[2];
8373 } DW29_30;
8374 union
8375 {
8376 //!< DWORD 31
8377 struct
8378 {
8379 uint32_t MpcRowstoreSurfaceAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< MPC_ROWSTORE_SURFACE__AGE_FOR_QUADLRU_AGE
8380 uint32_t MpcRowstoreSurface : __CODEGEN_BITFIELD( 2, 2) ; //!< MPC RowStore Surface
8381 uint32_t MpcRowstoreTargetCache : __CODEGEN_BITFIELD( 3, 4) ; //!< MPC_ROWSTORE__TARGET_CACHE
8382 uint32_t MpcRowstoreMemoryTypeLlcEllcCacheabilityControl : __CODEGEN_BITFIELD( 5, 6) ; //!< MPC_ROWSTORE__MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL
8383 uint32_t MpcRowstoreArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MPC_ROWSTORE__ARBITRATION_PRIORITY_CONTROL
8384 uint32_t Reserved1001 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8385 };
8386 uint32_t Value;
8387 } DW31;
8388
8389 //! \name Local enumerations
8390
8391 enum SUB_OPCODE_B
8392 {
8393 SUB_OPCODE_B_MFXVP8BSPBUFBASEADDRSTATE = 3, //!< No additional details
8394 };
8395
8396 enum SUB_OPCODE_A
8397 {
8398 SUB_OPCODE_A_VP8COMMON = 2, //!< No additional details
8399 };
8400
8401 enum MEDIA_COMMAND_OPCODE
8402 {
8403 MEDIA_COMMAND_OPCODE_VP8 = 4, //!< No additional details
8404 };
8405
8406 enum PIPELINE
8407 {
8408 PIPELINE_VIDEOCODEC = 2, //!< No additional details
8409 };
8410
8411 enum COMMAND_TYPE
8412 {
8413 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
8414 };
8415
8416 //! \brief FRAME_HEADER_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8417 //! \details
8418 //! This field allows the selection of AGE parameter for a given surface in
8419 //! LLC or eLLC. .
8420 //! If a particular allocation is done at youngest age ("3") it tends
8421 //! to stay longer in the cache as compared to older age allocations ("2",
8422 //! "1", or "0").
8423 //! This option is given to driver to be able to decide which surfaces
8424 //! are more likely to generate HITs, hence need to be replaced least often
8425 //! in caches.
8426 enum FRAME_HEADER_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8427 {
8428 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8429 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8430 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8431 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8432 };
8433
8434 //! \brief FRAME_HEADER_BASE_ADDR__TARGET_CACHE_TC
8435 //! \details
8436 //! This field allows the choice of LLC vs eLLC for caching
8437 enum FRAME_HEADER_BASE_ADDR__TARGET_CACHE_TC
8438 {
8439 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8440 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8441 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8442 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8443 };
8444
8445 //! \brief FOR_FRAMEHEADERBASEADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8446 //! \details
8447 //! This is the field used in GT interface block to determine what type of
8448 //! access need to be generated to uncore.
8449 //! For the cases where the LeLLCCC is set, cacheable transaction are
8450 //! generated to enable LLC usage for particular stream.
8451 enum FOR_FRAMEHEADERBASEADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8452 {
8453 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8454 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8455 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8456 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8457 };
8458
8459 //! \brief FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8460 //! \details
8461 //! This field controls the priority of arbitration used in the GAC/GAM
8462 //! pipeline for this surface.
8463 enum FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8464 {
8465 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8466 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8467 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8468 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8469 };
8470
8471 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE
8472 //! \details
8473 //! This field allows the selection of AGE parameter for a given surface in
8474 //! LLC or eLLC. .
8475 //! If a particular allocation is done at youngest age ("3") it tends
8476 //! to stay longer in the cache as compared to older age allocations ("2",
8477 //! "1", or "0").
8478 //! This option is given to driver to be able to decide which surfaces
8479 //! are more likely to generate HITs, hence need to be replaced least often
8480 //! in caches.
8481 enum INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE
8482 {
8483 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8484 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8485 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8486 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8487 };
8488
8489 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC
8490 //! \details
8491 //! This field allows the choice of LLC vs. eLLC for caching
8492 enum INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC
8493 {
8494 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8495 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8496 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8497 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8498 };
8499
8500 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8501 //! \details
8502 //! This is the field used in GT interface block to determine what type of
8503 //! access need to be generated to uncore.
8504 //! For the cases where the LeLLCCC is set, cacheable transaction are
8505 //! generated to enable LLC usage for particular stream.
8506 enum INTERMEDIATE_BUFFER_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8507 {
8508 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8509 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8510 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8511 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8512 };
8513
8514 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8515 //! \details
8516 //! This field controls the priority of arbitration used in the GAC/GAM
8517 //! pipeline for this surface.
8518 enum INTERMEDIATE_BUFFER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8519 {
8520 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8521 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8522 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8523 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8524 };
8525
8526 //! \brief FINAL_FRAME_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8527 //! \details
8528 //! This field allows the selection of AGE parameter for a given surface in
8529 //! LLC or eLLC. .
8530 //! If a particular allocation is done at youngest age ("3") it tends
8531 //! to stay longer in the cache as compared to older age allocations ("2",
8532 //! "1", or "0").
8533 //! This option is given to driver to be able to decide which surfaces
8534 //! are more likely to generate HITs, hence need to be replaced least often
8535 //! in caches.
8536 enum FINAL_FRAME_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8537 {
8538 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8539 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8540 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8541 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8542 };
8543
8544 //! \brief FINAL_FRAME_BASE_ADDR__TARGET_CACHE_TC
8545 //! \details
8546 //! This field allows the choice of LLC vs eLLC for caching
8547 enum FINAL_FRAME_BASE_ADDR__TARGET_CACHE_TC
8548 {
8549 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8550 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8551 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8552 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8553 };
8554
8555 //! \brief FINAL_FRAME_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8556 //! \details
8557 //! This is the field used in GT interface block to determine what type of
8558 //! access need to be generated to uncore.
8559 //! For the cases where the LeLLCCC is set, cacheable transaction are
8560 //! generated to enable LLC usage for particular stream.
8561 enum FINAL_FRAME_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8562 {
8563 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8564 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8565 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8566 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8567 };
8568
8569 enum FINAL_FRAME_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8570 {
8571 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8572 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8573 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8574 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8575 };
8576
8577 //! \brief STREAMOUT_BASE_ADDR__CACHEABILITY_CONTROL
8578 //! \details
8579 //! This field controls cacheability in the mid-level cache (MLC) and
8580 //! last-level cache (LLC)
8581 enum STREAMOUT_BASE_ADDR__CACHEABILITY_CONTROL
8582 {
8583 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8584 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8585 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8586 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8587 };
8588
8589 //! \brief STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL_
8590 //! \details
8591 //! This field controls the priority of arbitration used in the GAC/GAM
8592 //! pipeline for this surface.
8593 enum STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL_
8594 {
8595 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8596 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8597 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8598 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8599 };
8600
8601 //! \brief STREAMOUT_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8602 //! \details
8603 //! This field allows the selection of AGE parameter for a given surface in
8604 //! LLC or eLLC. .
8605 //! If a particular allocation is done at youngest age ("3") it tends
8606 //! to stay longer in the cache as compared to older age allocations ("2",
8607 //! "1", or "0").
8608 //! This option is given to driver to be able to decide which surfaces
8609 //! are more likely to generate HITs, hence need to be replaced least often
8610 //! in caches.
8611 enum STREAMOUT_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8612 {
8613 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8614 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8615 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8616 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8617 };
8618
8619 //! \brief STREAMOUT_BASE_ADDR__TARGET_CACHE_TC
8620 //! \details
8621 //! This field allows the choice of LLC vs eLLC for caching
8622 enum STREAMOUT_BASE_ADDR__TARGET_CACHE_TC
8623 {
8624 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8625 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8626 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8627 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8628 };
8629
8630 //! \brief STREAMOUT_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8631 //! \details
8632 //! This is the field used in GT interface block to determine what type of
8633 //! access need to be generated to uncore.
8634 //! For the cases where the LeLLCCC is set, cacheable transaction are
8635 //! generated to enable LLC usage for particular stream.
8636 enum STREAMOUT_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8637 {
8638 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8639 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8640 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8641 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8642 };
8643
8644 //! \brief COEFF_PROBS_STREAMIN_SURFACE__CACHEABILITY_CONTROL
8645 //! \details
8646 //! This field controls cacheability in the mid-level cache (MLC) and
8647 //! last-level cache (LLC)
8648 enum COEFF_PROBS_STREAMIN_SURFACE__CACHEABILITY_CONTROL
8649 {
8650 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8651 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8652 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8653 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8654 };
8655
8656 //! \brief COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL_
8657 //! \details
8658 //! This field controls the priority of arbitration used in the GAC/GAM
8659 //! pipeline for this surface.
8660 enum COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL_
8661 {
8662 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8663 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8664 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8665 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8666 };
8667
8668 //! \brief COEFF_PROBS_STREAMIN_SURFACE__AGE_FOR_QUADLRU_AGE
8669 //! \details
8670 //! This field allows the selection of AGE parameter for a given surface in
8671 //! LLC or eLLC. .
8672 //! If a particular allocation is done at youngest age ("3") it tends
8673 //! to stay longer in the cache as compared to older age allocations ("2",
8674 //! "1", or "0").
8675 //! This option is given to driver to be able to decide which surfaces
8676 //! are more likely to generate HITs, hence need to be replaced least often
8677 //! in caches.
8678 enum COEFF_PROBS_STREAMIN_SURFACE__AGE_FOR_QUADLRU_AGE
8679 {
8680 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8681 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8682 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8683 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8684 };
8685
8686 //! \brief COEFF_PROBS_STREAMIN_SURFACE__TARGET_CACHE_TC
8687 //! \details
8688 //! This field allows the choice of LLC vs eLLC for caching
8689 enum COEFF_PROBS_STREAMIN_SURFACE__TARGET_CACHE_TC
8690 {
8691 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8692 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8693 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8694 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8695 };
8696
8697 //! \brief COEFF_PROBS_STREAMIN_SURFACE__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8698 //! \details
8699 //! This is the field used in GT interface block to determine what type of
8700 //! access need to be generated to uncore.
8701 //! For the cases where the LeLLCCC is set, cacheable transaction are
8702 //! generated to enable LLC usage for particular stream.
8703 enum COEFF_PROBS_STREAMIN_SURFACE__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8704 {
8705 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8706 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8707 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8708 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8709 };
8710
8711 //! \brief TOKEN_STATISTICS_SURFACE__CACHEABILITY_CONTROL
8712 //! \details
8713 //! This field controls cacheability in the mid-level cache (MLC) and
8714 //! last-level cache (LLC).
8715 enum TOKEN_STATISTICS_SURFACE__CACHEABILITY_CONTROL
8716 {
8717 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8718 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8719 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8720 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8721 };
8722
8723 //! \brief TOKEN_STATISTICS_SURFACE__AGE_FOR_QUADLRU_AGE
8724 //! \details
8725 //! This field allows the selection of AGE parameter for a given surface in
8726 //! LLC or eLLC. . If a particular allocation is done at youngest age ("3")
8727 //! it tends to stay longer in the cache as compared to older age
8728 //! allocations ("2", "1", or "0").
8729 //! This option is given to driver to be able to decide which surfaces
8730 //! are more likely to generate HITs, hence need to be replaced least often
8731 //! in caches.
8732 enum TOKEN_STATISTICS_SURFACE__AGE_FOR_QUADLRU_AGE
8733 {
8734 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 0, //!< No additional details
8735 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 1, //!< No additional details
8736 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 2, //!< No additional details
8737 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 3, //!< No additional details
8738 };
8739
8740 //! \brief TOKEN_STATISTICS_SURFACE__TARGET_CACHE_TC
8741 //! \details
8742 //! This field allows the choice of LLC vs eLLC for caching.
8743 enum TOKEN_STATISTICS_SURFACE__TARGET_CACHE_TC
8744 {
8745 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGTBDW = 0, //!< No additional details
8746 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8747 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8748 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8749 };
8750
8751 //! \brief MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE
8752 //! \details
8753 //! This is the field used in GT interface block to determine what type of
8754 //! access need to be generated to uncore.
8755 //! For the cases where the LeLLCCC is set, cacheable transaction are
8756 //! generated to enable LLC usage for particular stream.
8757 enum MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE
8758 {
8759 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_USECACHEABILITYCONTROLSFROMPAGETABLEUCWITHFENCEIFCOHERENTCYCLE = 0, //!< No additional details
8760 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_UC = 1, //!< Uncacheable - non-cacheable
8761 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_WT = 2, //!< Writethrough
8762 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_WB = 3, //!< Writeback
8763 };
8764
8765 //! \brief TOKEN_STATISTICS_SURFACE__ARBITRATION_PRIORITY_CONTROL
8766 //! \details
8767 //! This field controls the priority of arbitration used in the GAC/GAM
8768 //! pipeline for this surface.
8769 enum TOKEN_STATISTICS_SURFACE__ARBITRATION_PRIORITY_CONTROL
8770 {
8771 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8772 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8773 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8774 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8775 };
8776
8777 //! \brief MPC_ROWSTORE_SURFACE__CACHEABILITY_CONTROL
8778 //! \details
8779 //! <b>This field controls cacheability in the mid-level cache (MLC) and
8780 //! last-level cache (LLC).</b>
8781 enum MPC_ROWSTORE_SURFACE__CACHEABILITY_CONTROL
8782 {
8783 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8784 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8785 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8786 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8787 };
8788
8789 //! \brief MPC_ROWSTORE_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8790 //! \details
8791 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8792 //! pipeline for this surface.</b>
8793 enum MPC_ROWSTORE_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8794 {
8795 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8796 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8797 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8798 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8799 };
8800
8801 //! \brief MPC_ROWSTORE_SURFACE__AGE_FOR_QUADLRU_AGE
8802 //! \details
8803 //! <b>This field allows the selection of AGE parameter for a given surface
8804 //! in LLC or eLLC. . If a particular allocation is done at youngest age
8805 //! ("3") it tends to stay longer in the cache as compared to older age
8806 //! allocations ("2", "1", or "0").
8807 //! This option is given to driver to be able to decide which surfaces
8808 //! are more likely to generate HITs, hence need to be replaced least often
8809 //! in caches.</b>
8810 enum MPC_ROWSTORE_SURFACE__AGE_FOR_QUADLRU_AGE
8811 {
8812 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 0, //!< No additional details
8813 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 1, //!< No additional details
8814 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 2, //!< No additional details
8815 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 3, //!< No additional details
8816 };
8817
8818 //! \brief MPC_ROWSTORE__TARGET_CACHE
8819 //! \details
8820 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8821 //! pipeline for this surface.</b>
8822 enum MPC_ROWSTORE__TARGET_CACHE
8823 {
8824 MPC_ROWSTORE_TARGET_CACHE_ELLCONLY = 0, //!< No additional details
8825 MPC_ROWSTORE_TARGET_CACHE_LLCONLY = 1, //!< No additional details
8826 MPC_ROWSTORE_TARGET_CACHE_LLCELLCALLOWED = 2, //!< No additional details
8827 MPC_ROWSTORE_TARGET_CACHE_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8828 };
8829
8830 //! \brief MPC_ROWSTORE__MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL
8831 //! \details
8832 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8833 //! pipeline for this surface.</b>
8834 enum MPC_ROWSTORE__MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL
8835 {
8836 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_USECACHEABILITYCONTROLSFROMPAGETABLEUCWITHFENCEIFCOHERENTCYCLE = 0, //!< No additional details
8837 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_UC = 1, //!< Uncacheable - non-cacheable
8838 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_WT = 2, //!< Writethrough
8839 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_WB = 3, //!< Writeback
8840 };
8841
8842 //! \brief MPC_ROWSTORE__ARBITRATION_PRIORITY_CONTROL
8843 //! \details
8844 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8845 //! pipeline for this surface.</b>
8846 enum MPC_ROWSTORE__ARBITRATION_PRIORITY_CONTROL
8847 {
8848 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8849 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8850 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8851 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8852 };
8853
8854 //! \name Initializations
8855
8856 //! \brief Explicit member initialization function
8857 MFX_VP8_BSP_BUF_BASE_ADDR_STATE_CMD();
8858
8859 static const size_t dwSize = 32;
8860 static const size_t byteSize = 128;
8861 };
8862
8863 //!
8864 //! \brief MFD_VP8_BSD_OBJECT
8865 //! \details
8866 //! The MFD_VP8_BSD_OBJECT command is the only primitive command for the VP8
8867 //! Decoding Pipeline. The Partitions of the bitstream is loaded as indirect
8868 //! data object. Before issuing a MFD_VP8_BSD_OBJECT command, all VP8 frame
8869 //! level states of the MFD Engine need to be valid. Therefore the commands
8870 //! used to set these states need to have been issued prior to the issue of
8871 //! a MFD_VP8_BSD_OBJECT command. Context switch interrupt is not supported
8872 //! by this command.
8873 //!
8874 struct MFD_VP8_BSD_OBJECT_CMD
8875 {
8876 union
8877 {
8878 //!< DWORD 0
8879 struct
8880 {
8881 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
8882 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
8883 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
8884 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
8885 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
8886 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
8887 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
8888 };
8889 uint32_t Value;
8890 } DW0;
8891 union
8892 {
8893 //!< DWORD 1
8894 struct
8895 {
8896 uint32_t Partition0FirstmbbitoffsetFromFrameHeader : __CODEGEN_BITFIELD( 0, 2) ; //!< Partition0 FirstMBBitOffset from Frame Header
8897 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8898 uint32_t CodedNumOfCoeffTokenPartitions : __CODEGEN_BITFIELD( 4, 5) ; //!< Coded Num of Coeff Token Partitions
8899 uint32_t Reserved38 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
8900 uint32_t Partition0CpbacEntropyRange : __CODEGEN_BITFIELD( 8, 15) ; //!< Partition0 CPBAC Entropy Range
8901 uint32_t Partition0CpbacEntropyCount : __CODEGEN_BITFIELD(16, 20) ; //!< Partition0 CPBAC Entropy Count
8902 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
8903 };
8904 uint32_t Value;
8905 } DW1;
8906 union
8907 {
8908 //!< DWORD 2
8909 struct
8910 {
8911 uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 23) ; //!< Reserved
8912 uint32_t Partition0CpbacEntropyValue : __CODEGEN_BITFIELD(24, 31) ; //!< Partition0 CPBAC Entropy Value
8913 };
8914 uint32_t Value;
8915 } DW2;
8916 union
8917 {
8918 //!< DWORD 3
8919 struct
8920 {
8921 uint32_t IndirectPartition0DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition0 Data Length
8922 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8923 };
8924 uint32_t Value;
8925 } DW3;
8926 union
8927 {
8928 //!< DWORD 4
8929 struct
8930 {
8931 uint32_t IndirectPartition0DataStartOffset ; //!< Indirect Partition0 Data Start Offset
8932 };
8933 uint32_t Value;
8934 } DW4;
8935 union
8936 {
8937 //!< DWORD 5
8938 struct
8939 {
8940 uint32_t IndirectPartition1DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition1 Data Length
8941 uint32_t Reserved184 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8942 };
8943 uint32_t Value;
8944 } DW5;
8945 union
8946 {
8947 //!< DWORD 6
8948 struct
8949 {
8950 uint32_t IndirectPartition1DataStartOffset ; //!< Indirect Partition1 Data Start Offset
8951 };
8952 uint32_t Value;
8953 } DW6;
8954 union
8955 {
8956 //!< DWORD 7
8957 struct
8958 {
8959 uint32_t IndirectPartition2DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition2 Data Length
8960 uint32_t Reserved248 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8961 };
8962 uint32_t Value;
8963 } DW7;
8964 union
8965 {
8966 //!< DWORD 8
8967 struct
8968 {
8969 uint32_t IndirectPartition2DataStartOffset ; //!< Indirect Partition2 Data Start Offset
8970 };
8971 uint32_t Value;
8972 } DW8;
8973 union
8974 {
8975 //!< DWORD 9
8976 struct
8977 {
8978 uint32_t IndirectPartition3DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition3 Data Length
8979 uint32_t Reserved312 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8980 };
8981 uint32_t Value;
8982 } DW9;
8983 union
8984 {
8985 //!< DWORD 10
8986 struct
8987 {
8988 uint32_t IndirectPartition3DataStartOffset ; //!< Indirect Partition3 Data Start Offset
8989 };
8990 uint32_t Value;
8991 } DW10;
8992 union
8993 {
8994 //!< DWORD 11
8995 struct
8996 {
8997 uint32_t IndirectPartition4DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition4 Data Length
8998 uint32_t Reserved376 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8999 };
9000 uint32_t Value;
9001 } DW11;
9002 union
9003 {
9004 //!< DWORD 12
9005 struct
9006 {
9007 uint32_t IndirectPartition4DataStartOffset ; //!< Indirect Partition4 Data Start Offset
9008 };
9009 uint32_t Value;
9010 } DW12;
9011 union
9012 {
9013 //!< DWORD 13
9014 struct
9015 {
9016 uint32_t IndirectPartition5DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition5 Data Length
9017 uint32_t Reserved440 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9018 };
9019 uint32_t Value;
9020 } DW13;
9021 union
9022 {
9023 //!< DWORD 14
9024 struct
9025 {
9026 uint32_t IndirectPartition5DataStartOffset ; //!< Indirect Partition5 Data Start Offset
9027 };
9028 uint32_t Value;
9029 } DW14;
9030 union
9031 {
9032 //!< DWORD 15
9033 struct
9034 {
9035 uint32_t IndirectPartition6DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition6 Data Length
9036 uint32_t Reserved504 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9037 };
9038 uint32_t Value;
9039 } DW15;
9040 union
9041 {
9042 //!< DWORD 16
9043 struct
9044 {
9045 uint32_t IndirectPartition6DataStartOffset ; //!< Indirect Partition6 Data Start Offset
9046 };
9047 uint32_t Value;
9048 } DW16;
9049 union
9050 {
9051 //!< DWORD 17
9052 struct
9053 {
9054 uint32_t IndirectPartition7DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition7 Data Length
9055 uint32_t Reserved568 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9056 };
9057 uint32_t Value;
9058 } DW17;
9059 union
9060 {
9061 //!< DWORD 18
9062 struct
9063 {
9064 uint32_t IndirectPartition7DataStartOffset ; //!< Indirect Partition7 Data Start Offset
9065 };
9066 uint32_t Value;
9067 } DW18;
9068 union
9069 {
9070 //!< DWORD 19
9071 struct
9072 {
9073 uint32_t IndirectPartition8DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition8 Data Length
9074 uint32_t Reserved632 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9075 };
9076 uint32_t Value;
9077 } DW19;
9078 union
9079 {
9080 //!< DWORD 20
9081 struct
9082 {
9083 uint32_t IndirectPartition8DataStartOffset ; //!< Indirect Partition8 Data Start Offset
9084 };
9085 uint32_t Value;
9086 } DW20;
9087 union
9088 {
9089 //!< DWORD 21
9090 struct
9091 {
9092 uint32_t Reserved672 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved
9093 uint32_t MbHeaderErrorHandling : __CODEGEN_BITFIELD( 8, 8) ; //!< MB_HEADER_ERROR_HANDLING
9094 uint32_t Reserved681 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved
9095 uint32_t EntropyErrorHandling : __CODEGEN_BITFIELD(10, 10) ; //!< ENTROPY_ERROR_HANDLING
9096 uint32_t Reserved683 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
9097 uint32_t MprErrorMvOutOfRangeHandling : __CODEGEN_BITFIELD(12, 12) ; //!< MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
9098 uint32_t Reserved685 : __CODEGEN_BITFIELD(13, 13) ; //!< Reserved
9099 uint32_t BsdprematurecompleteErrorHandling : __CODEGEN_BITFIELD(14, 14) ; //!< BSDPREMATURECOMPLETE_ERROR_HANDLING
9100 uint32_t Reserved687 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
9101 uint32_t ConcealPicIdConcealmentPictureId : __CODEGEN_BITFIELD(16, 17) ; //!< Conceal_Pic_Id (Concealment Picture ID)
9102 uint32_t Reserved690 : __CODEGEN_BITFIELD(18, 30) ; //!< Reserved
9103 uint32_t ConcealmentMethod : __CODEGEN_BITFIELD(31, 31) ; //!< CONCEALMENT_METHOD
9104 };
9105 uint32_t Value;
9106 } DW21;
9107
9108 //! \name Local enumerations
9109
9110 enum SUBOPCODEB
9111 {
9112 SUBOPCODEB_UNNAMED8 = 8, //!< No additional details
9113 };
9114
9115 enum SUBOPCODEA
9116 {
9117 SUBOPCODEA_UNNAMED1 = 1, //!< No additional details
9118 };
9119
9120 enum MEDIA_COMMAND_OPCODE
9121 {
9122 MEDIA_COMMAND_OPCODE_VP8DEC = 4, //!< No additional details
9123 };
9124
9125 enum PIPELINE
9126 {
9127 PIPELINE_MFDVP8BSDOBJECT = 2, //!< No additional details
9128 };
9129
9130 enum COMMAND_TYPE
9131 {
9132 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
9133 };
9134
9135 enum MB_HEADER_ERROR_HANDLING
9136 {
9137 MB_HEADER_ERROR_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9138 MB_HEADER_ERROR_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9139 };
9140
9141 enum ENTROPY_ERROR_HANDLING
9142 {
9143 ENTROPY_ERROR_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9144 ENTROPY_ERROR_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9145 };
9146
9147 enum MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
9148 {
9149 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9150 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9151 };
9152
9153 //! \brief BSDPREMATURECOMPLETE_ERROR_HANDLING
9154 //! \details
9155 //! It occurs in situation where the decode is completed but there are still
9156 //! data in the bitstream.
9157 enum BSDPREMATURECOMPLETE_ERROR_HANDLING
9158 {
9159 BSDPREMATURECOMPLETE_ERROR_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9160 BSDPREMATURECOMPLETE_ERROR_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9161 };
9162
9163 //! \brief CONCEALMENT_METHOD
9164 //! \details
9165 //! This field specifies the method used for concealment when error is
9166 //! detected.
9167 enum CONCEALMENT_METHOD
9168 {
9169 CONCEALMENT_METHOD_INTRA16X16PREDICTION = 0, //!< A copy from the current picture is performed using Intra 16x16 Prediction method.
9170 CONCEALMENT_METHOD_INTERPCOPY = 1, //!< A copy from collocated macroblock location is performed from the concealment reference indicated by the ConCeal_Pic_Id field.
9171 };
9172
9173 //! \name Initializations
9174
9175 //! \brief Explicit member initialization function
9176 MFD_VP8_BSD_OBJECT_CMD();
9177
9178 static const size_t dwSize = 22;
9179 static const size_t byteSize = 88;
9180 };
9181
9182 //!
9183 //! \brief MFX_VP8_PIC_STATE
9184 //! \details
9185 //! This must be the very first command to issue after the surface state,
9186 //! the pipe select and base address setting commands and must be issued
9187 //! before MFX_VP8_IMG_STATE.
9188 //!
9189 struct MFX_VP8_PIC_STATE_CMD
9190 {
9191 union
9192 {
9193 //!< DWORD 0
9194 struct
9195 {
9196 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
9197 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
9198 uint32_t SubOpcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUB_OPCODE_B
9199 uint32_t SubOpcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODE_A
9200 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
9201 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
9202 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
9203 };
9204 uint32_t Value;
9205 } DW0;
9206 union
9207 {
9208 //!< DWORD 1
9209 struct
9210 {
9211 uint32_t FrameWidthMinus1 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Width Minus 1
9212 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
9213 uint32_t FrameHeightMinus1 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Height Minus 1
9214 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9215 };
9216 uint32_t Value;
9217 } DW1;
9218 union
9219 {
9220 //!< DWORD 2
9221 struct
9222 {
9223 uint32_t McFilterSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< MC_FILTER_SELECT, Decoder / Encoder
9224 uint32_t ChromaFullPixelMcFilterMode : __CODEGEN_BITFIELD( 1, 1) ; //!< CHROMA_FULL_PIXEL_MC_FILTER_MODE, Decoder / Encoder
9225 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved, Decoder / Encoder
9226 uint32_t Dblkfiltertype : __CODEGEN_BITFIELD( 4, 4) ; //!< DBLKFILTERTYPE, Decoder / Encoder
9227 uint32_t Skeyframeflag : __CODEGEN_BITFIELD( 5, 5) ; //!< SKEYFRAMEFLAG, Decoder / Encoder
9228 uint32_t SegmentationIdStreamoutEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< SEGMENTATION_ID_STREAMOUT_ENABLE, Decoder Only
9229 uint32_t SegmentationIdStreaminEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< SEGMENTATION_ID_STREAMIN_ENABLE, Decoder Only
9230 uint32_t SegmentEnableFlag : __CODEGEN_BITFIELD( 8, 8) ; //!< SEGMENT_ENABLE_FLAG, Decoder / Encoder
9231 uint32_t UpdateMbsegmentMapFlag : __CODEGEN_BITFIELD( 9, 9) ; //!< UPDATE_MBSEGMENT_MAP_FLAG, Decoder / Encoder
9232 uint32_t MbNocoeffSkipflag : __CODEGEN_BITFIELD(10, 10) ; //!< MB_NOCOEFF_SKIPFLAG, Decoder / Encoder
9233 uint32_t ModeReferenceLoopFilterDeltaEnabled : __CODEGEN_BITFIELD(11, 11) ; //!< MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED, Decoder / Encoder
9234 uint32_t GoldenRefPictureMvSignbiasFlag : __CODEGEN_BITFIELD(12, 12) ; //!< Golden Ref Picture MV SignBias Flag, Decoder / Encoder
9235 uint32_t AlternateRefPicMvSignbiasFlag : __CODEGEN_BITFIELD(13, 13) ; //!< Alternate Ref Pic MV SignBias Flag, Decoder / Encoder
9236 uint32_t Reserved78 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved, Decoder / Encoder
9237 uint32_t DeblockSharpnessLevel : __CODEGEN_BITFIELD(16, 18) ; //!< Deblock Sharpness Level, Decoder / Encoder
9238 uint32_t Reserved83 : __CODEGEN_BITFIELD(19, 23) ; //!< Reserved, Decoder / Encoder
9239 uint32_t Log2NumOfPartition : __CODEGEN_BITFIELD(24, 25) ; //!< LOG2_NUM_OF_PARTITION, Decoder / Encoder
9240 uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
9241 };
9242 uint32_t Value;
9243 } DW2;
9244 union
9245 {
9246 //!< DWORD 3
9247 struct
9248 {
9249 uint32_t DblkfilterlevelForSegment0 : __CODEGEN_BITFIELD( 0, 5) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT0
9250 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
9251 uint32_t DblkfilterlevelForSegment1 : __CODEGEN_BITFIELD( 8, 13) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT1
9252 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
9253 uint32_t DblkfilterlevelForSegment2 : __CODEGEN_BITFIELD(16, 21) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT2
9254 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
9255 uint32_t DblkfilterlevelForSegment3 : __CODEGEN_BITFIELD(24, 29) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT3
9256 uint32_t Reserved126 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
9257 };
9258 uint32_t Value;
9259 } DW3;
9260 union
9261 {
9262 //!< DWORD 4
9263 struct
9264 {
9265 uint32_t QuantizerValue0Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [0][BlockType0=Y1DC], Decoder Only
9266 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9267 uint32_t QuantizerValue0Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [0][BlockType1=Y1AC], Decoder Only
9268 uint32_t Reserved153 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9269 } dec;
9270 struct
9271 {
9272 uint32_t Seg0Qindex : __CODEGEN_BITFIELD( 0, 6) ; //!< Seg 0 Qindex, Encoder Only
9273 uint32_t Reserved135 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved, Encoder Only
9274 uint32_t Seg1Qindex : __CODEGEN_BITFIELD( 8, 14) ; //!< Seg 1 Qindex, Encoder Only
9275 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved, Encoder Only
9276 uint32_t Seg2Qindex : __CODEGEN_BITFIELD(16, 22) ; //!< Seg 2 Qindex, Encoder Only
9277 uint32_t Reserved151 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved, Encoder Only
9278 uint32_t Seg3Qindex : __CODEGEN_BITFIELD(24, 30) ; //!< Seg 3 Qindex, Encoder Only
9279 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
9280 } enc;
9281 uint32_t Value;
9282 } DW4;
9283 union
9284 {
9285 //!< DWORD 5
9286 struct
9287 {
9288 uint32_t QuantizerValue0Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [0][BlockType2=UVDC], Decoder Only
9289 uint32_t Reserved169 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9290 uint32_t QuantizerValue0Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [0][BlockType3=UVAC], Decoder Only
9291 uint32_t Reserved185 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9292 } dec;
9293 struct
9294 {
9295 uint32_t Y2DcQindexDelta : __CODEGEN_BITFIELD( 0, 3) ; //!< Y2dc Qindex Delta, Encoder Only
9296 uint32_t Y2AcQindexDeltaSign : __CODEGEN_BITFIELD( 4, 4) ; //!< Y2ac Qindex Delta Sign , Encoder Only
9297 uint32_t Reserved165 : __CODEGEN_BITFIELD( 5, 7) ; //!< Reserved, Encoder Only
9298 uint32_t Y2AcQindexDelta : __CODEGEN_BITFIELD( 8, 11) ; //!< Y2ac Qindex Delta , Encoder Only
9299 uint32_t Y2AcQindexSign : __CODEGEN_BITFIELD(12, 12) ; //!< Y2ac Qindex Sign, Encoder Only
9300 uint32_t Reserved173 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved, Encoder Only
9301 uint32_t UvdcQindexDelta : __CODEGEN_BITFIELD(16, 19) ; //!< UVdc Qindex Delta, Encoder Only
9302 uint32_t UvdcQindexDeltaSign : __CODEGEN_BITFIELD(20, 20) ; //!< UVdc Qindex Delta Sign, Encoder Only
9303 uint32_t Reserved181 : __CODEGEN_BITFIELD(21, 23) ; //!< Reserved, Encoder Only
9304 uint32_t UvacQindexdelta : __CODEGEN_BITFIELD(24, 27) ; //!< UVac QindexDelta, Encoder Only
9305 uint32_t UvacQindexDeltaSign : __CODEGEN_BITFIELD(28, 28) ; //!< UVac Qindex Delta Sign, Encoder Only
9306 uint32_t Reserved189 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
9307 } enc;
9308 uint32_t Value;
9309 } DW5;
9310 union
9311 {
9312 //!< DWORD 6
9313 struct
9314 {
9315 uint32_t QuantizerValue0Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [0][BlockType4=Y2DC], Decoder Only
9316 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9317 uint32_t QuantizerValue0Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [0][BlockType5=Y2AC], Decoder Only
9318 uint32_t Reserved217 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9319 } dec;
9320 struct
9321 {
9322 uint32_t Y1DcQindexDelta : __CODEGEN_BITFIELD( 0, 3) ; //!< Y1dc Qindex Delta, Encoder Only
9323 uint32_t Y1DcQindexDeltaSign : __CODEGEN_BITFIELD( 4, 4) ; //!< Y1dc Qindex Delta Sign , Encoder Only
9324 uint32_t Reserved197 : __CODEGEN_BITFIELD( 5, 31) ; //!< Reserved
9325 } enc;
9326 uint32_t Value;
9327 } DW6;
9328 union
9329 {
9330 //!< DWORD 7
9331 struct
9332 {
9333 uint32_t QuantizerValue1Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [1][BlockType0=Y1DC], Decoder Only
9334 uint32_t Reserved233 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9335 uint32_t QuantizerValue1Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [1][BlockType1=Y1AC], Decoder Only
9336 uint32_t Reserved249 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9337 } dec;
9338 struct
9339 {
9340 uint32_t ClampQindexLow : __CODEGEN_BITFIELD( 0, 6) ; //!< Clamp Qindex Low, Encoder Only
9341 uint32_t Reserved231 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved, Encoder Only
9342 uint32_t ClampQindexHigh : __CODEGEN_BITFIELD( 8, 14) ; //!< Clamp Qindex high, Encoder Only
9343 uint32_t Reserved239 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
9344 } enc;
9345 uint32_t Value;
9346 } DW7;
9347 union
9348 {
9349 //!< DWORD 8
9350 struct
9351 {
9352 uint32_t QuantizerValue1Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [1][BlockType2=UVDC], Decoder Only
9353 uint32_t Reserved265 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9354 uint32_t QuantizerValue1Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [1][BlockType3=UVAC], Decoder Only
9355 uint32_t Reserved281 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9356 };
9357 uint32_t Value;
9358 } DW8;
9359 union
9360 {
9361 //!< DWORD 9
9362 struct
9363 {
9364 uint32_t QuantizerValue1Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [1][BlockType4=Y2DC], Decoder Only
9365 uint32_t Reserved297 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9366 uint32_t QuantizerValue1Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [1][BlockType5=Y2AC], Decoder Only
9367 uint32_t Reserved313 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9368 };
9369 uint32_t Value;
9370 } DW9;
9371 union
9372 {
9373 //!< DWORD 10
9374 struct
9375 {
9376 uint32_t QuantizerValue2Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [2][BlockType0=Y1DC], Decoder Only
9377 uint32_t Reserved329 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9378 uint32_t QuantizerValue2Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [2][BlockType1=Y1AC], Decoder Only
9379 uint32_t Reserved345 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9380 };
9381 uint32_t Value;
9382 } DW10;
9383 union
9384 {
9385 //!< DWORD 11
9386 struct
9387 {
9388 uint32_t QuantizerValue2Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [2][BlockType2=UVDC], Decoder Only
9389 uint32_t Reserved361 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9390 uint32_t QuantizerValue2Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [2][BlockType3=UVAC], Decoder Only
9391 uint32_t Reserved377 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9392 };
9393 uint32_t Value;
9394 } DW11;
9395 union
9396 {
9397 //!< DWORD 12
9398 struct
9399 {
9400 uint32_t QuantizerValue2Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [2][BlockType4=Y2DC], Decoder Only
9401 uint32_t Reserved393 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9402 uint32_t QuantizerValue2Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [2][BlockType5=Y2AC], Decoder Only
9403 uint32_t Reserved409 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9404 };
9405 uint32_t Value;
9406 } DW12;
9407 union
9408 {
9409 //!< DWORD 13
9410 struct
9411 {
9412 uint32_t QuantizerValue3Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [3][BlockType0=Y1DC], Decoder Only
9413 uint32_t Reserved425 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9414 uint32_t QuantizerValue3Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [3][BlockType1=Y1AC], Decoder Only
9415 uint32_t Reserved441 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9416 };
9417 uint32_t Value;
9418 } DW13;
9419 union
9420 {
9421 //!< DWORD 14
9422 struct
9423 {
9424 uint32_t QuantizerValue3Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [3][BlockType2=UVDC], Decoder Only
9425 uint32_t Reserved457 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9426 uint32_t QuantizerValue3Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [3][BlockType3=UVAC], Decoder Only
9427 uint32_t Reserved473 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9428 };
9429 uint32_t Value;
9430 } DW14;
9431 union
9432 {
9433 //!< DWORD 15
9434 struct
9435 {
9436 uint32_t QuantizerValue3Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [3][BlockType4=Y2DC], Decoder Only
9437 uint32_t Reserved489 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9438 uint32_t QuantizerValue3Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [3][BlockType5=Y2AC], Decoder Only
9439 uint32_t Reserved505 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9440 };
9441 uint32_t Value;
9442 } DW15;
9443 union
9444 {
9445 //!< DWORD 16
9446 struct
9447 {
9448 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
9449 uint32_t CoeffprobabilityStreaminBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< CoeffProbability StreamIn Base Address, Decoder Only
9450 };
9451 uint32_t Value;
9452 } DW16;
9453 union
9454 {
9455 //!< DWORD 17
9456 struct
9457 {
9458 uint32_t CoeffprobabilityStreaminAddress : __CODEGEN_BITFIELD( 0, 15) ; //!< CoeffProbability StreamIn Address, Decoder Only
9459 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
9460 };
9461 uint32_t Value;
9462 } DW17;
9463 union
9464 {
9465 //!< DWORD 18
9466 struct
9467 {
9468 uint32_t Reserved576 : __CODEGEN_BITFIELD( 0, 6) ; //!< Reserved
9469 uint32_t CoeffprobabilityStreaminArbitrationPriorityControl : __CODEGEN_BITFIELD(7, 8); //!< COEFFPROBABILITY_STREAMIN__ARBITRATION_PRIORITY_CONTROL, Decoder Only
9470 uint32_t CoeffprobabilityStreaminMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< CoeffProbability StreamIn - Memory Compression Enable, Decoder Only
9471 uint32_t CoeffprobabilityStreaminMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< COEFFPROBABILITY_STREAMIN__MEMORY_COMPRESSION_MODE, Decoder Only
9472 uint32_t Reserved587 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved, Decoder Only
9473 uint32_t CoeffprobabilityStreaminTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< COEFFPROBABILITY_STREAMIN__TILED_RESOURCE_MODE, Decoder Only
9474 uint32_t Reserved591 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
9475 };
9476 uint32_t Value;
9477 } DW18;
9478 union
9479 {
9480 //!< DWORD 19
9481 struct
9482 {
9483 uint32_t Mbsegmentidtreeprobs0 : __CODEGEN_BITFIELD( 0, 7) ; //!< MBSegmentIDTreeProbs[0]
9484 uint32_t Mbsegmentidtreeprobs1 : __CODEGEN_BITFIELD( 8, 15) ; //!< MBSegmentIDTreeProbs[1]
9485 uint32_t Mbsegmentidtreeprobs2 : __CODEGEN_BITFIELD(16, 23) ; //!< MBSegmentIDTreeProbs[2]
9486 uint32_t Reserved632 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9487 };
9488 uint32_t Value;
9489 } DW19;
9490 union
9491 {
9492 //!< DWORD 20
9493 struct
9494 {
9495 uint32_t Interpredfromgrefrefprob : __CODEGEN_BITFIELD( 0, 7) ; //!< InterPredFromGRefRefProb
9496 uint32_t Interpredfromlastrefprob : __CODEGEN_BITFIELD( 8, 15) ; //!< InterPredFromLastRefProb
9497 uint32_t Intrambprob : __CODEGEN_BITFIELD(16, 23) ; //!< IntraMBProb
9498 uint32_t Mbnocoeffskipfalseprob : __CODEGEN_BITFIELD(24, 31) ; //!< MBNoCoeffSkipFalseProb
9499 };
9500 uint32_t Value;
9501 } DW20;
9502 union
9503 {
9504 //!< DWORD 21
9505 struct
9506 {
9507 uint32_t Ymodeprob0 : __CODEGEN_BITFIELD( 0, 7) ; //!< YModeProb[0]
9508 uint32_t Ymodeprob1 : __CODEGEN_BITFIELD( 8, 15) ; //!< YModeProb[1]
9509 uint32_t Ymodeprob2 : __CODEGEN_BITFIELD(16, 23) ; //!< YModeProb[2]
9510 uint32_t Ymodeprob3 : __CODEGEN_BITFIELD(24, 31) ; //!< YModeProb[3]
9511 };
9512 uint32_t Value;
9513 } DW21;
9514 union
9515 {
9516 //!< DWORD 22
9517 struct
9518 {
9519 uint32_t Uvmodeprob0 : __CODEGEN_BITFIELD( 0, 7) ; //!< UVModeProb[0]
9520 uint32_t Uvmodeprob1 : __CODEGEN_BITFIELD( 8, 15) ; //!< UVModeProb[1]
9521 uint32_t Uvmodeprob2 : __CODEGEN_BITFIELD(16, 23) ; //!< UVModeProb[2]
9522 uint32_t Reserved728 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9523 };
9524 uint32_t Value;
9525 } DW22;
9526 union
9527 {
9528 //!< DWORD 23
9529 struct
9530 {
9531 uint32_t Mvupdateprobs00 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][0]
9532 uint32_t Mvupdateprobs01 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][1]
9533 uint32_t Mvupdateprobs02 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][2]
9534 uint32_t Mvupdateprobs03 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][3]
9535 };
9536 uint32_t Value;
9537 } DW23;
9538 union
9539 {
9540 //!< DWORD 24
9541 struct
9542 {
9543 uint32_t Mvupdateprobs04 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][4]
9544 uint32_t Mvupdateprobs05 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][5]
9545 uint32_t Mvupdateprobs06 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][6]
9546 uint32_t Mvupdateprobs07 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][7]
9547 };
9548 uint32_t Value;
9549 } DW24;
9550 union
9551 {
9552 //!< DWORD 25
9553 struct
9554 {
9555 uint32_t Mvupdateprobs08 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][8]
9556 uint32_t Mvupdateprobs09 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][9]
9557 uint32_t Mvupdateprobs010 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][10]
9558 uint32_t Mvupdateprobs011 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][11]
9559 };
9560 uint32_t Value;
9561 } DW25;
9562 union
9563 {
9564 //!< DWORD 26
9565 struct
9566 {
9567 uint32_t Mvupdateprobs012 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][12]
9568 uint32_t Mvupdateprobs013 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][13]
9569 uint32_t Mvupdateprobs014 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][14]
9570 uint32_t Mvupdateprobs015 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][15]
9571 };
9572 uint32_t Value;
9573 } DW26;
9574 union
9575 {
9576 //!< DWORD 27
9577 struct
9578 {
9579 uint32_t Mvupdateprobs016 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][16]
9580 uint32_t Mvupdateprobs017 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][17]
9581 uint32_t Mvupdateprobs018 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][18]
9582 uint32_t Reserved888 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9583 };
9584 uint32_t Value;
9585 } DW27;
9586 union
9587 {
9588 //!< DWORD 28
9589 struct
9590 {
9591 uint32_t Mvupdateprobs10 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][0]
9592 uint32_t Mvupdateprobs11 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][1]
9593 uint32_t Mvupdateprobs12 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][2]
9594 uint32_t Mvupdateprobs13 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][3]
9595 };
9596 uint32_t Value;
9597 } DW28;
9598 union
9599 {
9600 //!< DWORD 29
9601 struct
9602 {
9603 uint32_t Mvupdateprobs14 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][4]
9604 uint32_t Mvupdateprobs15 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][5]
9605 uint32_t Mvupdateprobs16 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][6]
9606 uint32_t Mvupdateprobs17 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][7]
9607 };
9608 uint32_t Value;
9609 } DW29;
9610 union
9611 {
9612 //!< DWORD 30
9613 struct
9614 {
9615 uint32_t Mvupdateprobs18 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][8]
9616 uint32_t Mvupdateprobs19 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][9]
9617 uint32_t Mvupdateprobs110 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][10]
9618 uint32_t Mvupdateprobs111 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][11]
9619 };
9620 uint32_t Value;
9621 } DW30;
9622 union
9623 {
9624 //!< DWORD 31
9625 struct
9626 {
9627 uint32_t Mvupdateprobs112 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][12]
9628 uint32_t Mvupdateprobs113 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][13]
9629 uint32_t Mvupdateprobs114 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][14]
9630 uint32_t Mvupdateprobs115 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][15]
9631 };
9632 uint32_t Value;
9633 } DW31;
9634 union
9635 {
9636 //!< DWORD 32
9637 struct
9638 {
9639 uint32_t Mvupdateprobs116 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][16]
9640 uint32_t Mvupdateprobs117 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][17]
9641 uint32_t Mvupdateprobs118 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][18]
9642 uint32_t Reserved1048 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9643 };
9644 uint32_t Value;
9645 } DW32;
9646 union
9647 {
9648 //!< DWORD 33
9649 struct
9650 {
9651 uint32_t Reflfdelta0ForIntraFrame : __CODEGEN_BITFIELD( 0, 6) ; //!< RefLFDelta0 (for INTRA FRAME)
9652 uint32_t Reserved1063 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
9653 uint32_t Reflfdelta1ForLastFrame : __CODEGEN_BITFIELD( 8, 14) ; //!< RefLFDelta1 (for LAST FRAME)
9654 uint32_t Reserved1071 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
9655 uint32_t Reflfdelta2ForGoldenFrame : __CODEGEN_BITFIELD(16, 22) ; //!< RefLFDelta2 (for GOLDEN FRAME)
9656 uint32_t Reserved1079 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
9657 uint32_t Reflfdelta3ForAltrefFrame : __CODEGEN_BITFIELD(24, 30) ; //!< RefLFDelta3 (for ALTREF FRAME)
9658 uint32_t Reserved1087 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
9659 };
9660 uint32_t Value;
9661 } DW33;
9662 union
9663 {
9664 //!< DWORD 34
9665 struct
9666 {
9667 uint32_t Modelfdelta0ForBPredMode : __CODEGEN_BITFIELD( 0, 6) ; //!< ModeLFDelta0 (for B_PRED mode)
9668 uint32_t Reserved1095 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
9669 uint32_t Modelfdelta1ForZeromvMode : __CODEGEN_BITFIELD( 8, 14) ; //!< ModeLFDelta1(for ZEROMV mode)
9670 uint32_t Reserved1103 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
9671 uint32_t Modelfdelta2ForNearestNearAndNewMode : __CODEGEN_BITFIELD(16, 22) ; //!< ModeLFDelta2 (for Nearest, Near and New mode)
9672 uint32_t Reserved1111 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
9673 uint32_t Modelfdelta3ForSplitmvMode : __CODEGEN_BITFIELD(24, 30) ; //!< ModeLFDelta3 (for SPLITMV mode)
9674 uint32_t Reserved1119 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
9675 };
9676 uint32_t Value;
9677 } DW34;
9678 union
9679 {
9680 //!< DWORD 35
9681 struct
9682 {
9683 uint32_t SegmentationIdStreamBaseAddress ; //!< Segmentation ID Stream Base Address
9684 };
9685 uint32_t Value;
9686 } DW35;
9687 union
9688 {
9689 //!< DWORD 36
9690 struct
9691 {
9692 uint32_t SegmentationIdStreamBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Segmentation ID Stream Base Address [47:32]
9693 uint32_t Reserved1168 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
9694 };
9695 uint32_t Value;
9696 } DW36;
9697 union
9698 {
9699 //!< DWORD 37
9700 struct
9701 {
9702 uint32_t Reserved1184 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
9703 uint32_t CoeffprobabilityStreaminAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< CoeffProbability StreamIn Address - Index to Memory Object Control State (MOCS) Tables
9704 uint32_t SegmentationIdStreamArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SEGMENTATION_ID_STREAM__ARBITRATION_PRIORITY_CONTROL
9705 uint32_t SegmentationIdStreamMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Segmentation ID Stream - Memory Compression Enable
9706 uint32_t SegmentationIdStreamMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SEGMENTATION_ID_STREAM__MEMORY_COMPRESSION_MODE
9707 uint32_t Reserved1195 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
9708 uint32_t SegmentationIdStreamTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SEGMENTATION_ID_STREAM__TILED_RESOURCE_MODE
9709 uint32_t Reserved1199 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
9710 };
9711 uint32_t Value;
9712 } DW37;
9713
9714 //! \name Local enumerations
9715
9716 enum SUB_OPCODE_B
9717 {
9718 SUB_OPCODE_B_MFXVP8PICSTATE = 0, //!< No additional details
9719 };
9720
9721 enum SUB_OPCODE_A
9722 {
9723 SUB_OPCODE_A_VP8COMMON = 0, //!< No additional details
9724 };
9725
9726 enum MEDIA_COMMAND_OPCODE
9727 {
9728 MEDIA_COMMAND_OPCODE_VP8 = 4, //!< No additional details
9729 };
9730
9731 enum PIPELINE
9732 {
9733 PIPELINE_VIDEOCODEC = 2, //!< No additional details
9734 };
9735
9736 enum COMMAND_TYPE
9737 {
9738 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
9739 };
9740
9741 //! \brief MC_FILTER_SELECT
9742 //! \details
9743 //! To specify VP8 Profile of operation.
9744 enum MC_FILTER_SELECT
9745 {
9746 MC_FILTER_SELECT_UNNAMED0 = 0, //!< 6-tap filter (regular filter mode)
9747 MC_FILTER_SELECT_UNNAMED1 = 1, //!< 2-tap bilinear filter (simple profile/version mode)
9748 };
9749
9750 //! \brief CHROMA_FULL_PIXEL_MC_FILTER_MODE
9751 //! \details
9752 //! To specify VP8 Profile of operation.
9753 enum CHROMA_FULL_PIXEL_MC_FILTER_MODE
9754 {
9755 CHROMA_FULL_PIXEL_MC_FILTER_MODE_UNNAMED0 = 0, //!< Chroma MC filter operates in sub-pixel mode
9756 CHROMA_FULL_PIXEL_MC_FILTER_MODE_UNNAMED1 = 1, //!< Chroma MC filter only operates in full pixel position, i.e. no sub-pixel interpolation.
9757 };
9758
9759 //! \brief DBLKFILTERTYPE
9760 //! \details
9761 //! To specify VP8 Profile of operation.
9762 enum DBLKFILTERTYPE
9763 {
9764 DBLKFILTERTYPE_UNNAMED0 = 0, //!< Use a full feature normal deblocking filter
9765 DBLKFILTERTYPE_UNNAMED1 = 1, //!< Use a simple filter for deblocking
9766 };
9767
9768 enum SKEYFRAMEFLAG
9769 {
9770 SKEYFRAMEFLAG_NON_KEYFRAMEP_FRAME = 0, //!< No additional details
9771 SKEYFRAMEFLAG_KEYFRAMEI_FRAME = 1, //!< No additional details
9772 };
9773
9774 //! \brief SEGMENTATION_ID_STREAMOUT_ENABLE
9775 //! \details
9776 //! When 0, no output needed.
9777 enum SEGMENTATION_ID_STREAMOUT_ENABLE
9778 {
9779 SEGMENTATION_ID_STREAMOUT_ENABLE_STREAMOUTDISABLED = 0, //!< No additional details
9780 SEGMENTATION_ID_STREAMOUT_ENABLE_STREAMOUTENABLED = 1, //!< No additional details
9781 };
9782
9783 //! \brief SEGMENTATION_ID_STREAMIN_ENABLE
9784 //! \details
9785 //! When 0, no input needed.
9786 enum SEGMENTATION_ID_STREAMIN_ENABLE
9787 {
9788 SEGMENTATION_ID_STREAMIN_ENABLE_STREAMINDISABLED = 0, //!< No additional details
9789 SEGMENTATION_ID_STREAMIN_ENABLE_STREAMINENABLED = 1, //!< No additional details
9790 };
9791
9792 enum SEGMENT_ENABLE_FLAG
9793 {
9794 SEGMENT_ENABLE_FLAG_UNNAMED0 = 0, //!< Disable Segmentation processing in the current frame
9795 SEGMENT_ENABLE_FLAG_UNNAMED1 = 1, //!< Enable Segmentation processing in the current frame
9796 };
9797
9798 enum UPDATE_MBSEGMENT_MAP_FLAG
9799 {
9800 UPDATE_MBSEGMENT_MAP_FLAG_UNNAMED0 = 0, //!< Disable segmentation update
9801 UPDATE_MBSEGMENT_MAP_FLAG_UNNAMED1 = 1, //!< Enable segmentation update, and to enable reading segment_id for each MB.
9802 };
9803
9804 //! \brief MB_NOCOEFF_SKIPFLAG
9805 //! \details
9806 //! Frame level control if Skip MB (with no non-zero coefficient) is allowed
9807 //! or not.
9808 enum MB_NOCOEFF_SKIPFLAG
9809 {
9810 MB_NOCOEFF_SKIPFLAG_UNNAMED0 = 0, //!< All MBs will have its MB level signaling mb_skip_coeff forced to 0. That is, no skip of coefficient record in the bitstream (even their values are all 0s)
9811 MB_NOCOEFF_SKIPFLAG_UNNAMED1 = 1, //!< Skip MB is enabled in the per MB record.
9812 };
9813
9814 enum MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED
9815 {
9816 MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED_UNNAMED0 = 0, //!< Mode or Reference Loop Filter Delta Adjustment for current frame is disabled.
9817 MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED_UNNAMED1 = 1, //!< Mode or Reference Loop Filter Delta Adjustment for current frame is enabled.
9818 };
9819
9820 enum LOG2_NUM_OF_PARTITION
9821 {
9822 LOG2_NUM_OF_PARTITION_1TOKENPARTITION = 0, //!< No additional details
9823 LOG2_NUM_OF_PARTITION_2TOKENPARTITION = 1, //!< No additional details
9824 LOG2_NUM_OF_PARTITION_4TOKENPARTITION = 2, //!< No additional details
9825 LOG2_NUM_OF_PARTITION_8TOKENPARTITION = 3, //!< No additional details
9826 };
9827
9828 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT0
9829 //! \details
9830 //! There are max 4 segments per frame, each segment can have its own
9831 //! deblocking filter level. When segmentation is disabled, only segment 0
9832 //! parameter is used for the entire frame.
9833 enum DBLKFILTERLEVEL_FOR_SEGMENT0
9834 {
9835 DBLKFILTERLEVEL_FOR_SEGMENT0_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9836 };
9837
9838 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT1
9839 //! \details
9840 //! There are max 4 segments per frame, each segment can have its own
9841 //! deblocking filter level. When segmentation is disabled, only segment 0
9842 //! parameter is used for the entire frame.
9843 enum DBLKFILTERLEVEL_FOR_SEGMENT1
9844 {
9845 DBLKFILTERLEVEL_FOR_SEGMENT1_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9846 };
9847
9848 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT2
9849 //! \details
9850 //! There are max 4 segments per frame, each segment can have its own
9851 //! deblocking filter level. When segmentation is disabled, only segment 0
9852 //! parameter is used for the entire frame.
9853 enum DBLKFILTERLEVEL_FOR_SEGMENT2
9854 {
9855 DBLKFILTERLEVEL_FOR_SEGMENT2_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9856 };
9857
9858 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT3
9859 //! \details
9860 //! There are max 4 segments per frame, each segment can have its own
9861 //! deblocking filter level. When segmentation is disabled, only segment 0
9862 //! parameter is used for the entire frame.
9863 enum DBLKFILTERLEVEL_FOR_SEGMENT3
9864 {
9865 DBLKFILTERLEVEL_FOR_SEGMENT3_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9866 };
9867
9868 //! \brief COEFFPROBABILITY_STREAMIN__ARBITRATION_PRIORITY_CONTROL
9869 //! \details
9870 //! This field controls the priority of arbitration used in the GAC/GAM
9871 //! pipeline for this surface.
9872 enum COEFFPROBABILITY_STREAMIN__ARBITRATION_PRIORITY_CONTROL
9873 {
9874 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
9875 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
9876 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
9877 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
9878 };
9879
9880 //! \brief COEFFPROBABILITY_STREAMIN__MEMORY_COMPRESSION_MODE
9881 //! \details
9882 //! Distinguishes Vertical from Horizontal compression. Please refer to
9883 //! vol1a
9884 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
9885 //! section for more details.
9886 enum COEFFPROBABILITY_STREAMIN__MEMORY_COMPRESSION_MODE
9887 {
9888 COEFFPROBABILITY_STREAMIN_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
9889 COEFFPROBABILITY_STREAMIN_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
9890 };
9891
9892 //! \brief COEFFPROBABILITY_STREAMIN__TILED_RESOURCE_MODE
9893 //! \details
9894 //! <b>For Media Surfaces:</b>
9895 //! This field specifies the tiled resource mode.
9896 enum COEFFPROBABILITY_STREAMIN__TILED_RESOURCE_MODE
9897 {
9898 COEFFPROBABILITY_STREAMIN_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
9899 COEFFPROBABILITY_STREAMIN_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
9900 COEFFPROBABILITY_STREAMIN_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
9901 };
9902
9903 //! \brief SEGMENTATION_ID_STREAM__ARBITRATION_PRIORITY_CONTROL
9904 //! \details
9905 //! This field controls the priority of arbitration used in the GAC/GAM
9906 //! pipeline for this surface.
9907 enum SEGMENTATION_ID_STREAM__ARBITRATION_PRIORITY_CONTROL
9908 {
9909 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
9910 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
9911 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
9912 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
9913 };
9914
9915 //! \brief SEGMENTATION_ID_STREAM__MEMORY_COMPRESSION_MODE
9916 //! \details
9917 //! Distinguishes Vertical from Horizontal compression. Please refer to
9918 //! vol1a
9919 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
9920 //! section for more details.
9921 enum SEGMENTATION_ID_STREAM__MEMORY_COMPRESSION_MODE
9922 {
9923 SEGMENTATION_ID_STREAM_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
9924 SEGMENTATION_ID_STREAM_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
9925 };
9926
9927 //! \brief SEGMENTATION_ID_STREAM__TILED_RESOURCE_MODE
9928 //! \details
9929 //! <b>For Media Surfaces:</b>
9930 //! This field specifies the tiled resource mode.
9931 enum SEGMENTATION_ID_STREAM__TILED_RESOURCE_MODE
9932 {
9933 SEGMENTATION_ID_STREAM_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
9934 SEGMENTATION_ID_STREAM_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
9935 SEGMENTATION_ID_STREAM_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
9936 };
9937
9938 //! \name Initializations
9939
9940 //! \brief Explicit member initialization function
9941 MFX_VP8_PIC_STATE_CMD();
9942
9943 static const size_t dwSize = 38;
9944 static const size_t byteSize = 152;
9945 };
9946
9947 //!
9948 //! \brief MFX_JPEG_HUFF_TABLE_STATE
9949 //! \details
9950 //! This Huffman table commands contains both DC and AC tables for either
9951 //! luma or chroma. Once a Huffman table has been defined for a particular
9952 //! destination, it replaces the previous tables stored in that destination
9953 //! and shall be used in the remaining Scans of the current image. A Huffman
9954 //! table will be sent to H/W only when it is loaded from bitstream.
9955 //!
9956 struct MFX_JPEG_HUFF_TABLE_STATE_CMD
9957 {
9958 union
9959 {
9960 //!< DWORD 0
9961 struct
9962 {
9963 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
9964 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
9965 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
9966 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
9967 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
9968 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
9969 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
9970 };
9971 uint32_t Value;
9972 } DW0;
9973 union
9974 {
9975 //!< DWORD 1
9976 struct
9977 {
9978 uint32_t Hufftableid1Bit : __CODEGEN_BITFIELD( 0, 0) ; //!< HUFFTABLEID_1_BIT
9979 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
9980 };
9981 uint32_t Value;
9982 } DW1;
9983
9984 uint32_t DcBits128BitArray[3]; //!< DC_BITS (12 8-bit array)
9985
9986
9987 uint32_t DcHuffval128BitArray[3]; //!< DC_HUFFVAL (12 8-bit array)
9988
9989
9990 uint32_t AcBits168BitArray[4]; //!< AC_BITS (16 8-bit array)
9991
9992
9993 uint32_t AcHuffval1608BitArray[40]; //!< AC_HUFFVAL (160 8-bit array)
9994
9995 union
9996 {
9997 //!< DWORD 52
9998 struct
9999 {
10000 uint32_t AcHuffval28BitArray : __CODEGEN_BITFIELD( 0, 15) ; //!< AC_HUFFVAL(2-8 bit array)
10001 uint32_t Reserved1680 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10002 };
10003 uint32_t Value;
10004 } DW52;
10005
10006 //! \name Local enumerations
10007
10008 enum SUBOPCODE_B
10009 {
10010 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
10011 };
10012
10013 enum SUBOPCODE_A
10014 {
10015 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
10016 };
10017
10018 enum MEDIA_COMMAND_OPCODE
10019 {
10020 MEDIA_COMMAND_OPCODE_JPEGCOMMON = 7, //!< No additional details
10021 };
10022
10023 enum PIPELINE
10024 {
10025 PIPELINE_MFXMULTIDW = 2, //!< No additional details
10026 };
10027
10028 enum COMMAND_TYPE
10029 {
10030 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
10031 };
10032
10033 //! \brief HUFFTABLEID_1_BIT
10034 //! \details
10035 //! Identifies the huffman table.
10036 enum HUFFTABLEID_1_BIT
10037 {
10038 HUFFTABLEID_1_BIT_Y = 0, //!< Huffman table for Y
10039 };
10040
10041 //! \name Initializations
10042
10043 //! \brief Explicit member initialization function
10044 MFX_JPEG_HUFF_TABLE_STATE_CMD();
10045
10046 static const size_t dwSize = 53;
10047 static const size_t byteSize = 212;
10048 };
10049
10050 //!
10051 //! \brief GRAPHICSADDRESS63_6
10052 //! \details
10053 //! This structure is intended to define the upper bits of the
10054 //! GraphicsAddress, when bits 5:0 are already defined in the referring
10055 //! register. So bit 0 of this structure should correspond to bit 6 of the
10056 //! full GraphicsAddress.
10057 //!
10058 struct GRAPHICSADDRESS63_6_CMD
10059 {
10060 union
10061 {
10062 //!< DWORD 0..1
10063 struct
10064 {
10065 uint64_t Reserved0 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10066 uint64_t Graphicsaddress476 : __CODEGEN_BITFIELD( 6, 47) ; //!< GraphicsAddress47-6
10067 uint64_t Reserved48 : __CODEGEN_BITFIELD(48, 63) ; //!< Reserved
10068 };
10069 uint32_t Value[2];
10070 } DW0_1;
10071
10072 //! \name Local enumerations
10073
10074 //! \name Initializations
10075
10076 //! \brief Explicit member initialization function
10077 GRAPHICSADDRESS63_6_CMD();
10078
10079 static const size_t dwSize = 2;
10080 static const size_t byteSize = 8;
10081 };
10082
10083 //!
10084 //! \brief MFX_PIPE_BUF_ADDR_STATE
10085 //! \details
10086 //! This state command provides the memory base addresses for all row
10087 //! stores, StreamOut buffer and reconstructed picture output buffers
10088 //! required by the MFD or MFC Engine (that are in addition to the row
10089 //! stores of the Bit Stream Decoding/Encoding Unit (BSD/BSE) and the
10090 //! reference picture buffers).
10091 //! This is a picture level state command and is common among all codec
10092 //! standards and for both encoder and decoder operating modes. However,
10093 //! some fields may only applicable to a specific codec standard. All Pixel
10094 //! Surfaces (original, reference frame and reconstructed frame) in the
10095 //! Encoder are programmed with the same surface state (NV12 and TileY
10096 //! format), except each has its own frame buffer base address. In the tile
10097 //! format, there is no need to provide buffer offset for each slice; since
10098 //! from each MB address, the hardware can calculated the corresponding
10099 //! memory location within the frame buffer directly.
10100 //!
10101 struct MFX_PIPE_BUF_ADDR_STATE_CMD
10102 {
10103 union
10104 {
10105 //!< DWORD 0
10106 struct
10107 {
10108 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
10109 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
10110 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
10111 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
10112 uint32_t CommonOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMON_OPCODE
10113 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
10114 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
10115 };
10116 uint32_t Value;
10117 } DW0;
10118 union
10119 {
10120 //!< DWORD 1
10121 struct
10122 {
10123 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10124 uint32_t PreDeblockingDestinationAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Pre Deblocking Destination Address
10125 };
10126 uint32_t Value;
10127 } DW1;
10128 union
10129 {
10130 //!< DWORD 2
10131 struct
10132 {
10133 uint32_t PreDeblockingDestinationAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Pre Deblocking Destination Address High
10134 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10135 };
10136 uint32_t Value;
10137 } DW2;
10138 union
10139 {
10140 //!< DWORD 3
10141 struct
10142 {
10143 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10144 uint32_t PreDeblockingArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< PRE_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10145 uint32_t PreDeblockingMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< PRE_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10146 uint32_t PreDeblockingMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< Pre Deblocking - Memory Compression Mode
10147 uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10148 uint32_t PreDeblockingTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< PRE_DEBLOCKING__TILED_RESOURCE_MODE
10149 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10150 };
10151 uint32_t Value;
10152 } DW3;
10153 union
10154 {
10155 //!< DWORD 4
10156 struct
10157 {
10158 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10159 uint32_t PostDeblockingDestinationAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Post Deblocking Destination Address
10160 };
10161 uint32_t Value;
10162 } DW4;
10163 union
10164 {
10165 //!< DWORD 5
10166 struct
10167 {
10168 uint32_t PostDeblockingDestinationAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Post Deblocking Destination Address High
10169 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10170 };
10171 uint32_t Value;
10172 } DW5;
10173 union
10174 {
10175 //!< DWORD 6
10176 struct
10177 {
10178 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10179 uint32_t PostDeblockingArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< POST_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10180 uint32_t PostDeblockingMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< POST_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10181 uint32_t PostDeblockingMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< POST_DEBLOCKING__MEMORY_COMPRESSION_MODE
10182 uint32_t Reserved203 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10183 uint32_t PostDeblockingTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< POST_DEBLOCKING__TILED_RESOURCE_MODE
10184 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10185 };
10186 uint32_t Value;
10187 } DW6;
10188 union
10189 {
10190 //!< DWORD 7
10191 struct
10192 {
10193 uint32_t Reserved224 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10194 uint32_t OriginalUncompressedPictureSourceAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Original Uncompressed Picture Source Address
10195 };
10196 uint32_t Value;
10197 } DW7;
10198 union
10199 {
10200 //!< DWORD 8
10201 struct
10202 {
10203 uint32_t OriginalUncompressedPictureSourceAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Original Uncompressed Picture Source Address High
10204 uint32_t Reserved272 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10205 };
10206 uint32_t Value;
10207 } DW8;
10208 union
10209 {
10210 //!< DWORD 9
10211 struct
10212 {
10213 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10214 uint32_t OriginalUncompressedPictureSourceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE__ARBITRATION_PRIORITY_CONTROL
10215 uint32_t OriginalUncompressedPictureMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_ENABLE
10216 uint32_t OriginalUncompressedPictureMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_MODE
10217 uint32_t Reserved299 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10218 uint32_t OriginalUncompressedPictureTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE__TILED_RESOURCE_MODE
10219 uint32_t Reserved303 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10220 };
10221 uint32_t Value;
10222 } DW9;
10223 union
10224 {
10225 //!< DWORD 10
10226 struct
10227 {
10228 uint32_t Reserved320 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10229 uint32_t StreamoutDataDestinationBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< StreamOut Data Destination Base Address
10230 };
10231 uint32_t Value;
10232 } DW10;
10233 union
10234 {
10235 //!< DWORD 11
10236 struct
10237 {
10238 uint32_t StreamoutDataDestinationBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< StreamOut Data Destination Base Address High
10239 uint32_t Reserved368 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10240 };
10241 uint32_t Value;
10242 } DW11;
10243 union
10244 {
10245 //!< DWORD 12
10246 struct
10247 {
10248 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10249 uint32_t StreamoutDataDestinationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10250 uint32_t StreamoutDataDestinationMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_ENABLE
10251 uint32_t StreamoutDataDestinationMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10252 uint32_t Reserved395 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10253 uint32_t StreamoutDataDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10254 uint32_t Reserved399 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10255 };
10256 uint32_t Value;
10257 } DW12;
10258 union
10259 {
10260 //!< DWORD 13
10261 struct
10262 {
10263 uint32_t Reserved416 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10264 uint32_t IntraRowStoreScratchBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Intra Row Store Scratch Buffer Base Address
10265 };
10266 uint32_t Value;
10267 } DW13;
10268 union
10269 {
10270 //!< DWORD 14
10271 struct
10272 {
10273 uint32_t IntraRowStoreScratchBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Intra Row Store Scratch Buffer Base Address High
10274 uint32_t Reserved464 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10275 };
10276 uint32_t Value;
10277 } DW14;
10278 union
10279 {
10280 //!< DWORD 15
10281 struct
10282 {
10283 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10284 uint32_t IntraRowStoreScratchBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
10285 uint32_t IntraRowStoreScratchBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_ENABLE
10286 uint32_t IntraRowStoreScratchBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_MODE
10287 uint32_t Reserved491 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
10288 uint32_t IntraRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10289 uint32_t IntraRowStoreScratchBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
10290 uint32_t Reserved495 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10291 };
10292 uint32_t Value;
10293 } DW15;
10294 union
10295 {
10296 //!< DWORD 16
10297 struct
10298 {
10299 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10300 uint32_t DeblockingFilterRowStoreScratchBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Deblocking Filter Row Store Scratch Base Address
10301 };
10302 uint32_t Value;
10303 } DW16;
10304 union
10305 {
10306 //!< DWORD 17
10307 struct
10308 {
10309 uint32_t DeblockingFilterRowStoreScratchBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Deblocking Filter Row Store Scratch Base Address High
10310 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10311 };
10312 uint32_t Value;
10313 } DW17;
10314 union
10315 {
10316 //!< DWORD 18
10317 struct
10318 {
10319 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10320 uint32_t DeblockingFilterRowStoreScratchArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH__ARBITRATION_PRIORITY_CONTROL
10321 uint32_t DeblockingFilterRowStoreScratchMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_ENABLE
10322 uint32_t DeblockingFilterRowStoreScratchMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_MODE
10323 uint32_t Reserved587 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
10324 uint32_t DeblockingFilterRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10325 uint32_t DeblockingFilterRowStoreTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DEBLOCKING_FILTER_ROW_STORE__TILED_RESOURCE_MODE
10326 uint32_t Reserved591 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10327 };
10328 uint32_t Value;
10329 } DW18;
10330
10331 mhw_vdbox_mfx_g11_X::GRAPHICSADDRESS63_6_CMD Refpicbaseaddr[16]; //!< RefPicBaseAddr
10332
10333 union
10334 {
10335 //!< DWORD 51
10336 struct
10337 {
10338 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10339 uint32_t ReferencePictureArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< REFERENCE_PICTURE__ARBITRATION_PRIORITY_CONTROL
10340 uint32_t Reserved1641 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
10341 uint32_t ReferencePictureTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< REFERENCE_PICTURE__TILED_RESOURCE_MODE
10342 uint32_t Reserved1647 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10343 };
10344 uint32_t Value;
10345 } DW51;
10346 union
10347 {
10348 //!< DWORD 52
10349 struct
10350 {
10351 uint32_t Reserved1664 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10352 uint32_t MacroblockBufferBaseAddressOrDecodedPictureErrorStatusBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Macroblock Buffer Base Address or Decoded Picture Error/Status Buffer Base Address
10353 };
10354 uint32_t Value;
10355 } DW52;
10356 union
10357 {
10358 //!< DWORD 53
10359 struct
10360 {
10361 uint32_t MacroblockBufferBaseAddressOrDecodedPictureErrorStatusBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Macroblock Buffer Base Address or Decoded Picture Error/Status Buffer Base Address High
10362 uint32_t Reserved1712 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10363 };
10364 uint32_t Value;
10365 } DW53;
10366 union
10367 {
10368 //!< DWORD 54
10369 struct
10370 {
10371 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10372 uint32_t MacroblockStatusBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MACROBLOCK_STATUS_BUFFER__ARBITRATION_PRIORITY_CONTROL
10373 uint32_t MacroblockStatusBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_ENABLE
10374 uint32_t MacroblockStatusBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_MODE
10375 uint32_t Reserved1739 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10376 uint32_t MacroblockStatusBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MACROBLOCK_STATUS_BUFFER__TILED_RESOURCE_MODE
10377 uint32_t Reserved1743 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10378 };
10379 uint32_t Value;
10380 } DW54;
10381 union
10382 {
10383 //!< DWORD 55
10384 struct
10385 {
10386 uint32_t Reserved1760 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10387 uint32_t MacroblockIldbStreamoutBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Macroblock ILDB StreamOut Buffer Base Address
10388 };
10389 uint32_t Value;
10390 } DW55;
10391 union
10392 {
10393 //!< DWORD 56
10394 struct
10395 {
10396 uint32_t MacroblockIldbStreamoutBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Macroblock ILDB StreamOut Buffer Base Address High
10397 uint32_t Reserved1808 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10398 };
10399 uint32_t Value;
10400 } DW56;
10401 union
10402 {
10403 //!< DWORD 57
10404 struct
10405 {
10406 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10407 uint32_t MacroblockIldbStreamoutBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MACROBLOCK_ILDB_STREAMOUT_BUFFER__ARBITRATION_PRIORITY_CONTROL
10408 uint32_t MacroblockIldbStreamoutBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10409 uint32_t MacroblockIldbStreamoutBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10410 uint32_t Reserved1835 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10411 uint32_t MacroblockIldbStreamoutTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MACROBLOCK_ILDB_STREAMOUT__TILED_RESOURCE_MODE
10412 uint32_t Reserved1839 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10413 };
10414 uint32_t Value;
10415 } DW57;
10416 union
10417 {
10418 //!< DWORD 58
10419 struct
10420 {
10421 uint32_t Reserved1856 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10422 uint32_t SecondMacroblockIldbStreamoutBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Second Macroblock ILDB StreamOut Buffer Base Address
10423 };
10424 uint32_t Value;
10425 } DW58;
10426 union
10427 {
10428 //!< DWORD 59
10429 struct
10430 {
10431 uint32_t SecondMacroblockIldbStreamoutBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Second Macroblock ILDB StreamOut Buffer Base Address High
10432 uint32_t Reserved1904 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10433 };
10434 uint32_t Value;
10435 } DW59;
10436 union
10437 {
10438 //!< DWORD 60
10439 struct
10440 {
10441 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10442 uint32_t SecondMacroblockIldbStreamoutBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< Second Macroblock ILDB StreamOut Buffer - Arbitration Priority Control
10443 uint32_t SecondMacroblockIldbStreamoutBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10444 uint32_t SecondMacroblockIldbStreamoutBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10445 uint32_t Reserved1931 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10446 uint32_t SecondMacroblockIldbStreamoutBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__TILED_RESOURCE_MODE
10447 uint32_t Reserved1935 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10448 };
10449 uint32_t Value;
10450 } DW60;
10451 union
10452 {
10453 //!< DWORD 61
10454 struct
10455 {
10456 uint32_t ReferencePicture0MemoryCompressionEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< REFERENCE_PICTURE_0__MEMORY_COMPRESSION_ENABLE
10457 uint32_t ReferencePicture0MemoryCompressionMode : __CODEGEN_BITFIELD( 1, 1) ; //!< REFERENCE_PICTURE_0__MEMORY_COMPRESSION_MODE
10458 uint32_t ReferencePicture1MemoryCompressionEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< REFERENCE_PICTURE_1__MEMORY_COMPRESSION_ENABLE
10459 uint32_t ReferencePicture1MemoryCompressionMode : __CODEGEN_BITFIELD( 3, 3) ; //!< REFERENCE_PICTURE_1__MEMORY_COMPRESSION_MODE
10460 uint32_t ReferencePicture2MemoryCompressionEnable : __CODEGEN_BITFIELD( 4, 4) ; //!< REFERENCE_PICTURE_2__MEMORY_COMPRESSION_ENABLE
10461 uint32_t ReferencePicture2MemoryCompressionMode : __CODEGEN_BITFIELD( 5, 5) ; //!< REFERENCE_PICTURE_2__MEMORY_COMPRESSION_MODE
10462 uint32_t ReferencePicture3MemoryCompressionEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< REFERENCE_PICTURE_3__MEMORY_COMPRESSION_ENABLE
10463 uint32_t ReferencePicture3MemoryCompressionMode : __CODEGEN_BITFIELD( 7, 7) ; //!< REFERENCE_PICTURE_3__MEMORY_COMPRESSION_MODE
10464 uint32_t ReferencePicture4MemoryCompressionEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< REFERENCE_PICTURE_4__MEMORY_COMPRESSION_ENABLE
10465 uint32_t ReferencePicture4MemoryCompressionMode : __CODEGEN_BITFIELD( 9, 9) ; //!< REFERENCE_PICTURE_4__MEMORY_COMPRESSION_MODE
10466 uint32_t ReferencePicture5MemoryCompressionEnable : __CODEGEN_BITFIELD(10, 10) ; //!< REFERENCE_PICTURE_5__MEMORY_COMPRESSION_ENABLE
10467 uint32_t ReferencePicture5MemoryCompressionMode : __CODEGEN_BITFIELD(11, 11) ; //!< REFERENCE_PICTURE_5__MEMORY_COMPRESSION_MODE
10468 uint32_t ReferencePicture6MemoryCompressionEnable : __CODEGEN_BITFIELD(12, 12) ; //!< REFERENCE_PICTURE_6__MEMORY_COMPRESSION_ENABLE
10469 uint32_t ReferencePicture6MemoryCompressionMode : __CODEGEN_BITFIELD(13, 13) ; //!< REFERENCE_PICTURE_6__MEMORY_COMPRESSION_MODE
10470 uint32_t ReferencePicture7MemoryCompressionEnable : __CODEGEN_BITFIELD(14, 14) ; //!< REFERENCE_PICTURE_7__MEMORY_COMPRESSION_ENABLE
10471 uint32_t ReferencePicture7MemoryCompressionMode : __CODEGEN_BITFIELD(15, 15) ; //!< REFERENCE_PICTURE_7__MEMORY_COMPRESSION_MODE
10472 uint32_t ReferencePicture8MemoryCompressionEnable : __CODEGEN_BITFIELD(16, 16) ; //!< REFERENCE_PICTURE_8__MEMORY_COMPRESSION_ENABLE
10473 uint32_t ReferencePicture8MemoryCompressionMode : __CODEGEN_BITFIELD(17, 17) ; //!< REFERENCE_PICTURE_8__MEMORY_COMPRESSION_MODE
10474 uint32_t ReferencePicture9MemoryCompressionEnable : __CODEGEN_BITFIELD(18, 18) ; //!< REFERENCE_PICTURE_9__MEMORY_COMPRESSION_ENABLE
10475 uint32_t ReferencePicture9MemoryCompressionMode : __CODEGEN_BITFIELD(19, 19) ; //!< REFERENCE_PICTURE_9__MEMORY_COMPRESSION_MODE
10476 uint32_t ReferencePicture10MemoryCompressionEnable : __CODEGEN_BITFIELD(20, 20) ; //!< REFERENCE_PICTURE_10__MEMORY_COMPRESSION_ENABLE
10477 uint32_t ReferencePicture10MemoryCompressionMode : __CODEGEN_BITFIELD(21, 21) ; //!< REFERENCE_PICTURE_10__MEMORY_COMPRESSION_MODE
10478 uint32_t ReferencePicture11MemoryCompressionEnable : __CODEGEN_BITFIELD(22, 22) ; //!< REFERENCE_PICTURE_11__MEMORY_COMPRESSION_ENABLE
10479 uint32_t ReferencePicture11MemoryCompressionMode : __CODEGEN_BITFIELD(23, 23) ; //!< REFERENCE_PICTURE_11__MEMORY_COMPRESSION_MODE
10480 uint32_t ReferencePicture12MemoryCompressionEnable : __CODEGEN_BITFIELD(24, 24) ; //!< REFERENCE_PICTURE_12__MEMORY_COMPRESSION_ENABLE
10481 uint32_t ReferencePicture12MemoryCompressionMode : __CODEGEN_BITFIELD(25, 25) ; //!< REFERENCE_PICTURE_12__MEMORY_COMPRESSION_MODE
10482 uint32_t ReferencePicture13MemoryCompressionEnable : __CODEGEN_BITFIELD(26, 26) ; //!< REFERENCE_PICTURE_13__MEMORY_COMPRESSION_ENABLE
10483 uint32_t ReferencePicture13MemoryCompressionMode : __CODEGEN_BITFIELD(27, 27) ; //!< REFERENCE_PICTURE_13__MEMORY_COMPRESSION_MODE
10484 uint32_t ReferencePicture14MemoryCompressionEnable : __CODEGEN_BITFIELD(28, 28) ; //!< REFERENCE_PICTURE_14__MEMORY_COMPRESSION_ENABLE
10485 uint32_t ReferencePicture14MemoryCompressionMode : __CODEGEN_BITFIELD(29, 29) ; //!< REFERENCE_PICTURE_14__MEMORY_COMPRESSION_MODE
10486 uint32_t ReferencePicture15MemoryCompressionEnable : __CODEGEN_BITFIELD(30, 30) ; //!< REFERENCE_PICTURE_15__MEMORY_COMPRESSION_ENABLE
10487 uint32_t ReferencePicture15MemoryCompressionMode : __CODEGEN_BITFIELD(31, 31) ; //!< REFERENCE_PICTURE_15__MEMORY_COMPRESSION_MODE
10488 };
10489 uint32_t Value;
10490 } DW61;
10491 union
10492 {
10493 //!< DWORD 62
10494 struct
10495 {
10496 uint32_t Reserved1984 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10497 uint32_t ScaledReferenceSurfaceBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Scaled Reference Surface Base Address
10498 };
10499 uint32_t Value;
10500 } DW62;
10501 union
10502 {
10503 //!< DWORD 63
10504 struct
10505 {
10506 uint32_t ScaledReferenceSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Scaled Reference Surface Base Address High
10507 uint32_t Reserved2032 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10508 };
10509 uint32_t Value;
10510 } DW63;
10511 union
10512 {
10513 //!< DWORD 64
10514 struct
10515 {
10516 uint32_t Reserved2048 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
10517 uint32_t ScaledReferenceSurfaceIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< Scaled Reference Surface - Index to Memory Object Control State (MOCS) Tables
10518 uint32_t ScaleReferenceSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SCALE_REFERENCE_SURFACE__ARBITRATION_PRIORITY_CONTROL
10519 uint32_t ScaledReferenceSurfaceMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Scaled Reference Surface - Memory Compression Enable
10520 uint32_t ScaledReferenceSurfaceMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SCALED_REFERENCE_SURFACE__MEMORY_COMPRESSION_MODE
10521 uint32_t Reserved2059 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10522 uint32_t ScaledReferenceSurfaceTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SCALED_REFERENCE_SURFACE__TILED_RESOURCE_MODE
10523 uint32_t Reserved2063 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10524 };
10525 uint32_t Value;
10526 } DW64;
10527 union
10528 {
10529 //!< DWORD 65
10530 struct
10531 {
10532 uint32_t Reserved2080 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10533 uint32_t SlicesizeStreamoutDataDestinationBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< SliceSize StreamOut Data Destination Base Address
10534 };
10535 uint32_t Value;
10536 } DW65;
10537 union
10538 {
10539 //!< DWORD 66
10540 struct
10541 {
10542 uint32_t SlicesizeStreamoutDataDestinationBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< SliceSize StreamOut Data Destination Base Address High
10543 uint32_t Reserved2128 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10544 };
10545 uint32_t Value;
10546 } DW66;
10547 union
10548 {
10549 //!< DWORD 67
10550 struct
10551 {
10552 uint32_t Reserved2144 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
10553 uint32_t SlicesizeStreamoutDataDestinationIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< SliceSize StreamOut Data Destination - Index to Memory Object Control State (MOCS) Tables
10554 uint32_t SlicesizeStreamoutDataDestinationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SLICESIZE_STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10555 uint32_t SlicesizeStreamoutDataDestinationMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< SliceSize StreamOut Data Destination - Memory Compression Enable
10556 uint32_t SlicesizeStreamoutDataDestinationMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SLICESIZE_STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10557 uint32_t Reserved2155 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10558 uint32_t SlicesizeStreamoutDataDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SLICESIZE_STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10559 uint32_t Reserved2159 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10560 };
10561 uint32_t Value;
10562 } DW67;
10563
10564 //! \name Local enumerations
10565
10566 enum SUBOPCODE_B
10567 {
10568 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
10569 };
10570
10571 enum SUBOPCODE_A
10572 {
10573 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
10574 };
10575
10576 enum COMMON_OPCODE
10577 {
10578 COMMON_OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
10579 };
10580
10581 enum PIPELINE
10582 {
10583 PIPELINE_MFXPIPEBUFADDRSTATE = 2, //!< No additional details
10584 };
10585
10586 enum COMMAND_TYPE
10587 {
10588 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
10589 };
10590
10591 //! \brief PRE_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10592 //! \details
10593 //! This field controls the priority of arbitration used in the GAC/GAM
10594 //! pipeline for this surface.
10595 enum PRE_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10596 {
10597 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10598 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10599 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10600 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10601 };
10602
10603 //! \brief PRE_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10604 //! \details
10605 //! Memory compression will be attempted for this surface.
10606 enum PRE_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10607 {
10608 PRE_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10609 PRE_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
10610 };
10611
10612 //! \brief PRE_DEBLOCKING__TILED_RESOURCE_MODE
10613 //! \details
10614 //! <b>For Media Surfaces:</b>
10615 //! This field specifies the tiled resource mode.
10616 enum PRE_DEBLOCKING__TILED_RESOURCE_MODE
10617 {
10618 PRE_DEBLOCKING_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10619 PRE_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10620 PRE_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10621 };
10622
10623 //! \brief POST_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10624 //! \details
10625 //! This field controls the priority of arbitration used in the GAC/GAM
10626 //! pipeline for this surface.
10627 enum POST_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10628 {
10629 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10630 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10631 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10632 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10633 };
10634
10635 //! \brief POST_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10636 //! \details
10637 //! Memory compression will be attempted for this surface.
10638 enum POST_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10639 {
10640 POST_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10641 POST_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
10642 };
10643
10644 //! \brief POST_DEBLOCKING__MEMORY_COMPRESSION_MODE
10645 //! \details
10646 //! Distinguishes Vertical from Horizontal compression. Please refer to
10647 //! vol1a <b>Memory Data Formats chapter -section</b> Media Memory
10648 //! Compression <b>for more details.</b>
10649 enum POST_DEBLOCKING__MEMORY_COMPRESSION_MODE
10650 {
10651 POST_DEBLOCKING_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10652 };
10653
10654 //! \brief POST_DEBLOCKING__TILED_RESOURCE_MODE
10655 //! \details
10656 //! <b>For Media Surfaces:</b>
10657 //! This field specifies the tiled resource mode.
10658 enum POST_DEBLOCKING__TILED_RESOURCE_MODE
10659 {
10660 POST_DEBLOCKING_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10661 POST_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10662 POST_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10663 };
10664
10665 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE__ARBITRATION_PRIORITY_CONTROL
10666 //! \details
10667 //! This field controls the priority of arbitration used in the GAC/GAM
10668 //! pipeline for this surface.
10669 enum ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE__ARBITRATION_PRIORITY_CONTROL
10670 {
10671 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10672 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10673 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10674 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10675 };
10676
10677 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_ENABLE
10678 //! \details
10679 //! Note: This is a READ Surface. The setting of this bit should match the
10680 //! settings on how this is written out before.
10681 enum ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_ENABLE
10682 {
10683 ORIGINAL_UNCOMPRESSED_PICTURE_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10684 };
10685
10686 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_MODE
10687 //! \details
10688 //! Distinguishes Vertical from Horizontal compression. Please refer to
10689 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10690 //! more details. Note: This bit is not used unless Memory Compression
10691 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10692 //! bit should match the settings on how this is written out before
10693 enum ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_MODE
10694 {
10695 ORIGINAL_UNCOMPRESSED_PICTURE_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10696 ORIGINAL_UNCOMPRESSED_PICTURE_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10697 };
10698
10699 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE__TILED_RESOURCE_MODE
10700 //! \details
10701 //! <b>For Media Surfaces:</b>
10702 //! This field specifies the tiled resource mode.
10703 enum ORIGINAL_UNCOMPRESSED_PICTURE__TILED_RESOURCE_MODE
10704 {
10705 ORIGINAL_UNCOMPRESSED_PICTURE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10706 ORIGINAL_UNCOMPRESSED_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10707 ORIGINAL_UNCOMPRESSED_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10708 };
10709
10710 //! \brief STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10711 //! \details
10712 //! This field controls the priority of arbitration used in the GAC/GAM
10713 //! pipeline for this surface.
10714 enum STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10715 {
10716 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10717 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10718 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10719 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10720 };
10721
10722 //! \brief STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_ENABLE
10723 //! \details
10724 //! Note: This is a READ Surface. The setting of this bit should match the
10725 //! settings on how this is written out before.
10726 enum STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_ENABLE
10727 {
10728 STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10729 };
10730
10731 //! \brief STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10732 //! \details
10733 //! Distinguishes Vertical from Horizontal compression. Please refer to
10734 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10735 //! more details. Note: This bit is not used unless Memory Compression
10736 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10737 //! bit should match the settings on how this is written out before
10738 enum STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10739 {
10740 STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10741 STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10742 };
10743
10744 //! \brief STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10745 //! \details
10746 //! <b>For Media Surfaces:</b>
10747 //! This field specifies the tiled resource mode.
10748 enum STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10749 {
10750 STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10751 STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10752 STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10753 };
10754
10755 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
10756 //! \details
10757 //! This field controls the priority of arbitration used in the GAC/GAM
10758 //! pipeline for this surface.
10759 enum INTRA_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
10760 {
10761 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10762 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10763 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10764 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10765 };
10766
10767 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_ENABLE
10768 //! \details
10769 //! This surface is linear surface. This bit must be set to "0" since only
10770 //! TileY/TileYf/TileYs surface is allowed to be compressed
10771 enum INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_ENABLE
10772 {
10773 INTRA_ROW_STORE_SCRATCH_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10774 };
10775
10776 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_MODE
10777 //! \details
10778 //! Distinguishes Vertical from Horizontal compression. Please refer to
10779 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10780 //! more details. Note: This bit is not used unless Memory Compression
10781 //! Enable is set to "1"
10782 enum INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_MODE
10783 {
10784 INTRA_ROW_STORE_SCRATCH_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10785 INTRA_ROW_STORE_SCRATCH_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10786 };
10787
10788 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10789 //! \details
10790 //! This field controls if Intra Row Store is going to store inside Media
10791 //! Cache or to LLC.
10792 enum INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10793 {
10794 INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC.
10795 INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage
10796 };
10797
10798 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
10799 //! \details
10800 //! <b>For Media Surfaces:</b>
10801 //! This field specifies the tiled resource mode.
10802 enum INTRA_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
10803 {
10804 INTRA_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10805 INTRA_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10806 INTRA_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10807 };
10808
10809 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH__ARBITRATION_PRIORITY_CONTROL
10810 //! \details
10811 //! This field controls the priority of arbitration used in the GAC/GAM
10812 //! pipeline for this surface.
10813 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH__ARBITRATION_PRIORITY_CONTROL
10814 {
10815 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10816 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10817 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10818 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10819 };
10820
10821 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_ENABLE
10822 //! \details
10823 //! This surface is linear surface. This bit must be set to "0" since only
10824 //! TileY/TileYf/TileYs surface is allowed to be compressed
10825 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_ENABLE
10826 {
10827 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10828 };
10829
10830 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_MODE
10831 //! \details
10832 //! Distinguishes Vertical from Horizontal compression. Please refer to
10833 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10834 //! more details. Note: This bit is not used unless Memory Compression
10835 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10836 //! bit should match the settings on how this is written out before.
10837 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_MODE
10838 {
10839 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10840 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10841 };
10842
10843 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10844 //! \details
10845 //! This field controls if Intra Row Store is going to store inside Media
10846 //! Internal Storage or to LLC.
10847 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10848 {
10849 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC
10850 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Media Internal Storage
10851 };
10852
10853 //! \brief DEBLOCKING_FILTER_ROW_STORE__TILED_RESOURCE_MODE
10854 //! \details
10855 //! <b>For Media Surfaces:</b>
10856 //! This field specifies the tiled resource mode.
10857 enum DEBLOCKING_FILTER_ROW_STORE__TILED_RESOURCE_MODE
10858 {
10859 DEBLOCKING_FILTER_ROW_STORE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10860 DEBLOCKING_FILTER_ROW_STORE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10861 DEBLOCKING_FILTER_ROW_STORE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10862 };
10863
10864 //! \brief REFERENCE_PICTURE__ARBITRATION_PRIORITY_CONTROL
10865 //! \details
10866 //! This field controls the priority of arbitration used in the GAC/GAM
10867 //! pipeline for this surface.
10868 enum REFERENCE_PICTURE__ARBITRATION_PRIORITY_CONTROL
10869 {
10870 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10871 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10872 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10873 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10874 };
10875
10876 //! \brief REFERENCE_PICTURE__TILED_RESOURCE_MODE
10877 //! \details
10878 //! <b>For Media Surfaces:</b>
10879 //! This field specifies the tiled resource mode.
10880 enum REFERENCE_PICTURE__TILED_RESOURCE_MODE
10881 {
10882 REFERENCE_PICTURE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10883 REFERENCE_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10884 REFERENCE_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10885 };
10886
10887 //! \brief MACROBLOCK_STATUS_BUFFER__ARBITRATION_PRIORITY_CONTROL
10888 //! \details
10889 //! This field controls the priority of arbitration used in the GAC/GAM
10890 //! pipeline for this surface.
10891 enum MACROBLOCK_STATUS_BUFFER__ARBITRATION_PRIORITY_CONTROL
10892 {
10893 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10894 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10895 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10896 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10897 };
10898
10899 //! \brief MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_ENABLE
10900 //! \details
10901 //! This surface is linear surface. This bit must be set to "0" since only
10902 //! TileY/TileYf/TileYs surface is allowed to be compressed
10903 enum MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_ENABLE
10904 {
10905 MACROBLOCK_STATUS_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10906 };
10907
10908 //! \brief MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_MODE
10909 //! \details
10910 //! Distinguishes Vertical from Horizontal compression. Please refer to
10911 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10912 //! more details. Note: This bit is not used unless Memory Compression
10913 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10914 //! bit should match the settings on how this is written out before.
10915 enum MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_MODE
10916 {
10917 MACROBLOCK_STATUS_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10918 MACROBLOCK_STATUS_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10919 };
10920
10921 //! \brief MACROBLOCK_STATUS_BUFFER__TILED_RESOURCE_MODE
10922 //! \details
10923 //! <b>For Media Surfaces:</b>
10924 //! This field specifies the tiled resource mode.
10925 enum MACROBLOCK_STATUS_BUFFER__TILED_RESOURCE_MODE
10926 {
10927 MACROBLOCK_STATUS_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10928 MACROBLOCK_STATUS_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10929 MACROBLOCK_STATUS_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10930 };
10931
10932 //! \brief MACROBLOCK_ILDB_STREAMOUT_BUFFER__ARBITRATION_PRIORITY_CONTROL
10933 //! \details
10934 //! This field controls the priority of arbitration used in the GAC/GAM
10935 //! pipeline for this surface.
10936 enum MACROBLOCK_ILDB_STREAMOUT_BUFFER__ARBITRATION_PRIORITY_CONTROL
10937 {
10938 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10939 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10940 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10941 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10942 };
10943
10944 //! \brief MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10945 //! \details
10946 //! This surface is linear surface. This bit must be set to "0" since only
10947 //! TileY/TileYf/TileYs surface is allowed to be compressed
10948 enum MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10949 {
10950 MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10951 };
10952
10953 //! \brief MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10954 //! \details
10955 //! Distinguishes Vertical from Horizontal compression. Please refer to
10956 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10957 //! more details. Note: This bit is not used unless Memory Compression
10958 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10959 //! bit should match the settings on how this is written out before.
10960 enum MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10961 {
10962 MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10963 MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10964 };
10965
10966 //! \brief MACROBLOCK_ILDB_STREAMOUT__TILED_RESOURCE_MODE
10967 //! \details
10968 //! <b>For Media Surfaces:</b>
10969 //! This field specifies the tiled resource mode.
10970 enum MACROBLOCK_ILDB_STREAMOUT__TILED_RESOURCE_MODE
10971 {
10972 MACROBLOCK_ILDB_STREAMOUT_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10973 MACROBLOCK_ILDB_STREAMOUT_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10974 MACROBLOCK_ILDB_STREAMOUT_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10975 };
10976
10977 //! \brief SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10978 //! \details
10979 //! This surface is linear surface. This bit must be set to "0" since only
10980 //! TileY/TileYf/TileYs surface is allowed to be compressed
10981 enum SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10982 {
10983 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10984 };
10985
10986 //! \brief SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10987 //! \details
10988 //! Distinguishes Vertical from Horizontal compression. Please refer to
10989 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10990 //! more details. Note: This bit is not used unless Memory Compression
10991 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10992 //! bit should match the settings on how this is written out before.
10993 enum SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10994 {
10995 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10996 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10997 };
10998
10999 //! \brief SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__TILED_RESOURCE_MODE
11000 //! \details
11001 //! <b>For Media Surfaces:</b>
11002 //! This field specifies the tiled resource mode.
11003 enum SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__TILED_RESOURCE_MODE
11004 {
11005 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11006 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
11007 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
11008 };
11009
11010 enum REFERENCE_PICTURE_0__MEMORY_COMPRESSION_ENABLE
11011 {
11012 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11013 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11014 };
11015
11016 //! \brief REFERENCE_PICTURE_0__MEMORY_COMPRESSION_MODE
11017 //! \details
11018 //! Distinguishes Vertical from Horizontal compression. Please refer to
11019 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11020 //! more details. Note: This bit is not used unless Memory Compression
11021 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11022 //! bit should match the settings on how this is written out before.
11023 enum REFERENCE_PICTURE_0__MEMORY_COMPRESSION_MODE
11024 {
11025 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11026 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11027 };
11028
11029 enum REFERENCE_PICTURE_1__MEMORY_COMPRESSION_ENABLE
11030 {
11031 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11032 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11033 };
11034
11035 //! \brief REFERENCE_PICTURE_1__MEMORY_COMPRESSION_MODE
11036 //! \details
11037 //! Distinguishes Vertical from Horizontal compression. Please refer to
11038 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11039 //! more details. Note: This bit is not used unless Memory Compression
11040 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11041 //! bit should match the settings on how this is written out before.
11042 enum REFERENCE_PICTURE_1__MEMORY_COMPRESSION_MODE
11043 {
11044 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11045 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11046 };
11047
11048 enum REFERENCE_PICTURE_2__MEMORY_COMPRESSION_ENABLE
11049 {
11050 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11051 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11052 };
11053
11054 //! \brief REFERENCE_PICTURE_2__MEMORY_COMPRESSION_MODE
11055 //! \details
11056 //! Distinguishes Vertical from Horizontal compression. Please refer to
11057 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11058 //! more details. Note: This bit is not used unless Memory Compression
11059 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11060 //! bit should match the settings on how this is written out before.
11061 enum REFERENCE_PICTURE_2__MEMORY_COMPRESSION_MODE
11062 {
11063 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11064 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11065 };
11066
11067 enum REFERENCE_PICTURE_3__MEMORY_COMPRESSION_ENABLE
11068 {
11069 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11070 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11071 };
11072
11073 //! \brief REFERENCE_PICTURE_3__MEMORY_COMPRESSION_MODE
11074 //! \details
11075 //! Distinguishes Vertical from Horizontal compression. Please refer to
11076 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11077 //! more details. Note: This bit is not used unless Memory Compression
11078 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11079 //! bit should match the settings on how this is written out before.
11080 enum REFERENCE_PICTURE_3__MEMORY_COMPRESSION_MODE
11081 {
11082 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11083 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11084 };
11085
11086 enum REFERENCE_PICTURE_4__MEMORY_COMPRESSION_ENABLE
11087 {
11088 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11089 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11090 };
11091
11092 //! \brief REFERENCE_PICTURE_4__MEMORY_COMPRESSION_MODE
11093 //! \details
11094 //! Distinguishes Vertical from Horizontal compression. Please refer to
11095 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11096 //! more details. Note: This bit is not used unless Memory Compression
11097 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11098 //! bit should match the settings on how this is written out before.
11099 enum REFERENCE_PICTURE_4__MEMORY_COMPRESSION_MODE
11100 {
11101 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11102 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11103 };
11104
11105 enum REFERENCE_PICTURE_5__MEMORY_COMPRESSION_ENABLE
11106 {
11107 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11108 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11109 };
11110
11111 //! \brief REFERENCE_PICTURE_5__MEMORY_COMPRESSION_MODE
11112 //! \details
11113 //! Distinguishes Vertical from Horizontal compression. Please refer to
11114 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11115 //! more details. Note: This bit is not used unless Memory Compression
11116 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11117 //! bit should match the settings on how this is written out before.
11118 enum REFERENCE_PICTURE_5__MEMORY_COMPRESSION_MODE
11119 {
11120 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11121 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11122 };
11123
11124 enum REFERENCE_PICTURE_6__MEMORY_COMPRESSION_ENABLE
11125 {
11126 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11127 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11128 };
11129
11130 //! \brief REFERENCE_PICTURE_6__MEMORY_COMPRESSION_MODE
11131 //! \details
11132 //! Distinguishes Vertical from Horizontal compression. Please refer to
11133 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11134 //! more details. Note: This bit is not used unless Memory Compression
11135 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11136 //! bit should match the settings on how this is written out before.
11137 enum REFERENCE_PICTURE_6__MEMORY_COMPRESSION_MODE
11138 {
11139 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11140 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11141 };
11142
11143 enum REFERENCE_PICTURE_7__MEMORY_COMPRESSION_ENABLE
11144 {
11145 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11146 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11147 };
11148
11149 //! \brief REFERENCE_PICTURE_7__MEMORY_COMPRESSION_MODE
11150 //! \details
11151 //! Distinguishes Vertical from Horizontal compression. Please refer to
11152 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11153 //! more details. Note: This bit is not used unless Memory Compression
11154 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11155 //! bit should match the settings on how this is written out before.
11156 enum REFERENCE_PICTURE_7__MEMORY_COMPRESSION_MODE
11157 {
11158 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11159 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11160 };
11161
11162 enum REFERENCE_PICTURE_8__MEMORY_COMPRESSION_ENABLE
11163 {
11164 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11165 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11166 };
11167
11168 //! \brief REFERENCE_PICTURE_8__MEMORY_COMPRESSION_MODE
11169 //! \details
11170 //! Distinguishes Vertical from Horizontal compression. Please refer to
11171 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11172 //! more details. Note: This bit is not used unless Memory Compression
11173 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11174 //! bit should match the settings on how this is written out before.
11175 enum REFERENCE_PICTURE_8__MEMORY_COMPRESSION_MODE
11176 {
11177 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11178 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11179 };
11180
11181 enum REFERENCE_PICTURE_9__MEMORY_COMPRESSION_ENABLE
11182 {
11183 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11184 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11185 };
11186
11187 //! \brief REFERENCE_PICTURE_9__MEMORY_COMPRESSION_MODE
11188 //! \details
11189 //! Distinguishes Vertical from Horizontal compression. Please refer to
11190 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11191 //! more details. Note: This bit is not used unless Memory Compression
11192 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11193 //! bit should match the settings on how this is written out before.
11194 enum REFERENCE_PICTURE_9__MEMORY_COMPRESSION_MODE
11195 {
11196 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11197 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11198 };
11199
11200 enum REFERENCE_PICTURE_10__MEMORY_COMPRESSION_ENABLE
11201 {
11202 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11203 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11204 };
11205
11206 //! \brief REFERENCE_PICTURE_10__MEMORY_COMPRESSION_MODE
11207 //! \details
11208 //! Distinguishes Vertical from Horizontal compression. Please refer to
11209 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11210 //! more details. Note: This bit is not used unless Memory Compression
11211 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11212 //! bit should match the settings on how this is written out before.
11213 enum REFERENCE_PICTURE_10__MEMORY_COMPRESSION_MODE
11214 {
11215 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11216 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11217 };
11218
11219 enum REFERENCE_PICTURE_11__MEMORY_COMPRESSION_ENABLE
11220 {
11221 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11222 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11223 };
11224
11225 //! \brief REFERENCE_PICTURE_11__MEMORY_COMPRESSION_MODE
11226 //! \details
11227 //! Distinguishes Vertical from Horizontal compression. Please refer to
11228 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11229 //! more details.
11230 //! Note: This bit is not used unless Memory Compression Enable is set
11231 //! to "1"
11232 //! Note: This is a READ Surface. The setting of this bit should
11233 //! match the settings on how this is written out before.
11234 enum REFERENCE_PICTURE_11__MEMORY_COMPRESSION_MODE
11235 {
11236 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11237 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11238 };
11239
11240 enum REFERENCE_PICTURE_12__MEMORY_COMPRESSION_ENABLE
11241 {
11242 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11243 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11244 };
11245
11246 //! \brief REFERENCE_PICTURE_12__MEMORY_COMPRESSION_MODE
11247 //! \details
11248 //! Distinguishes Vertical from Horizontal compression. Please refer to
11249 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11250 //! more details. Note: This bit is not used unless Memory Compression
11251 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11252 //! bit should match the settings on how this is written out before.
11253 enum REFERENCE_PICTURE_12__MEMORY_COMPRESSION_MODE
11254 {
11255 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11256 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11257 };
11258
11259 enum REFERENCE_PICTURE_13__MEMORY_COMPRESSION_ENABLE
11260 {
11261 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11262 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11263 };
11264
11265 //! \brief REFERENCE_PICTURE_13__MEMORY_COMPRESSION_MODE
11266 //! \details
11267 //! Distinguishes Vertical from Horizontal compression. Please refer to
11268 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11269 //! more details. Note: This bit is not used unless Memory Compression
11270 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11271 //! bit should match the settings on how this is written out before.
11272 enum REFERENCE_PICTURE_13__MEMORY_COMPRESSION_MODE
11273 {
11274 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11275 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11276 };
11277
11278 enum REFERENCE_PICTURE_14__MEMORY_COMPRESSION_ENABLE
11279 {
11280 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11281 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11282 };
11283
11284 //! \brief REFERENCE_PICTURE_14__MEMORY_COMPRESSION_MODE
11285 //! \details
11286 //! Distinguishes Vertical from Horizontal compression. Please refer to
11287 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11288 //! more details. Note: This bit is not used unless Memory Compression
11289 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11290 //! bit should match the settings on how this is written out before.
11291 enum REFERENCE_PICTURE_14__MEMORY_COMPRESSION_MODE
11292 {
11293 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11294 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11295 };
11296
11297 enum REFERENCE_PICTURE_15__MEMORY_COMPRESSION_ENABLE
11298 {
11299 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11300 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11301 };
11302
11303 //! \brief REFERENCE_PICTURE_15__MEMORY_COMPRESSION_MODE
11304 //! \details
11305 //! Distinguishes Vertical from Horizontal compression. Please refer to
11306 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11307 //! more details. Note: This bit is not used unless Memory Compression
11308 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11309 //! bit should match the settings on how this is written out before.
11310 enum REFERENCE_PICTURE_15__MEMORY_COMPRESSION_MODE
11311 {
11312 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11313 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11314 };
11315
11316 //! \brief SCALE_REFERENCE_SURFACE__ARBITRATION_PRIORITY_CONTROL
11317 //! \details
11318 //! This field controls the priority of arbitration used in the GAC/GAM
11319 //! pipeline for this surface.
11320 enum SCALE_REFERENCE_SURFACE__ARBITRATION_PRIORITY_CONTROL
11321 {
11322 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11323 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11324 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11325 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11326 };
11327
11328 //! \brief SCALED_REFERENCE_SURFACE__MEMORY_COMPRESSION_MODE
11329 //! \details
11330 //! Distinguishes Vertical from Horizontal compression. Please refer to
11331 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11332 //! more details.
11333 enum SCALED_REFERENCE_SURFACE__MEMORY_COMPRESSION_MODE
11334 {
11335 SCALED_REFERENCE_SURFACE_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11336 SCALED_REFERENCE_SURFACE_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11337 };
11338
11339 //! \brief SCALED_REFERENCE_SURFACE__TILED_RESOURCE_MODE
11340 //! \details
11341 //! For Media Surfaces:
11342 //! This field specifies the tiled resource mode
11343 enum SCALED_REFERENCE_SURFACE__TILED_RESOURCE_MODE
11344 {
11345 SCALED_REFERENCE_SURFACE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11346 SCALED_REFERENCE_SURFACE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< No tiled resource
11347 SCALED_REFERENCE_SURFACE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< No tiled resource
11348 };
11349
11350 //! \brief SLICESIZE_STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
11351 //! \details
11352 //! This field controls the priority of arbitration used in the GAC/GAM
11353 //! pipeline for this surface.
11354 enum SLICESIZE_STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
11355 {
11356 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11357 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11358 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11359 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11360 };
11361
11362 //! \brief SLICESIZE_STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
11363 //! \details
11364 //! Distinguishes Vertical from Horizontal compression. Please refer to
11365 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11366 //! more details.
11367 enum SLICESIZE_STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
11368 {
11369 SLICESIZE_STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11370 SLICESIZE_STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11371 };
11372
11373 //! \brief SLICESIZE_STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
11374 //! \details
11375 //! For Media Surfaces: This Surface is never tiled.
11376 enum SLICESIZE_STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
11377 {
11378 SLICESIZE_STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11379 SLICESIZE_STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< No tiled resource
11380 SLICESIZE_STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< No tiled resource
11381 };
11382
11383 //! \name Initializations
11384
11385 //! \brief Explicit member initialization function
11386 MFX_PIPE_BUF_ADDR_STATE_CMD();
11387
11388 static const size_t dwSize = 68;
11389 static const size_t byteSize = 272;
11390 };
11391
11392 //!
11393 //! \brief MFX_AVC_DIRECTMODE_STATE
11394 //! \details
11395 //! This is a picture level command and is issued once per picture. All DMV
11396 //! buffers are treated as standard media surfaces, in which the lower 6
11397 //! bits are used for conveying surface states.Current Pic POC number is
11398 //! assumed to be available in POCList[32 and 33] of the
11399 //! MFX_AVC_DIRECTMODE_STATE Command.This command is only valid in the AVC
11400 //! decoding in VLD and IT modes, and AVC encoder mode. The same command
11401 //! supports both Long and Short AVC Interface. The DMV buffers are
11402 //! not required to be programmed for encoder mode.
11403 //!
11404 struct MFX_AVC_DIRECTMODE_STATE_CMD
11405 {
11406 union
11407 {
11408 //!< DWORD 0
11409 struct
11410 {
11411 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
11412 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
11413 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
11414 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
11415 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
11416 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
11417 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
11418 };
11419 uint32_t Value;
11420 } DW0;
11421
11422 mhw_vdbox_mfx_g11_X::GRAPHICSADDRESS63_6_CMD DirectMvBufferBaseAddress[16]; //!< Direct MV Buffer Base Address
11423
11424 union
11425 {
11426 //!< DWORD 33
11427 struct
11428 {
11429 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
11430 uint32_t DirectMvBufferBaseAddressForReferenceFrameArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__ARBITRATION_PRIORITY_CONTROL
11431 uint32_t DirectMvBufferBaseAddressForReferenceFrameMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_ENABLE
11432 uint32_t DirectMvBufferBaseAddressForReferenceFrameMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_MODE
11433 uint32_t Reserved1067 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
11434 uint32_t DirectMvBufferBaseAddressForReferenceFrameTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__TILED_RESOURCE_MODE
11435 uint32_t Reserved1071 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
11436 };
11437 uint32_t Value;
11438 } DW33;
11439
11440 mhw_vdbox_mfx_g11_X::GRAPHICSADDRESS63_6_CMD DirectMvBufferBaseAddressForWrite[1]; //!< Direct MV Buffer Base Address for Write
11441
11442 union
11443 {
11444 //!< DWORD 36
11445 struct
11446 {
11447 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
11448 uint32_t DirectMvBufferBaseAddressForWriteArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__ARBITRATION_PRIORITY_CONTROL
11449 uint32_t DirectMvBufferBaseAddressForWriteMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_ENABLE
11450 uint32_t DirectMvBufferBaseAddressForWriteMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_MODE
11451 uint32_t Reserved1163 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
11452 uint32_t DirectMvBufferBaseAddressForWriteTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__TILED_RESOURCE_MODE
11453 uint32_t Reserved1167 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
11454 };
11455 uint32_t Value;
11456 } DW36;
11457
11458 uint32_t PocList[34]; //!< POC List
11459
11460
11461 //! \name Local enumerations
11462
11463 enum SUBOPCODEB
11464 {
11465 SUBOPCODEB_UNNAMED2 = 2, //!< No additional details
11466 };
11467
11468 enum SUBOPCODEA
11469 {
11470 SUBOPCODEA_UNNAMED0 = 0, //!< No additional details
11471 };
11472
11473 enum MEDIA_COMMAND_OPCODE
11474 {
11475 MEDIA_COMMAND_OPCODE_AVCCOMMON = 1, //!< No additional details
11476 };
11477
11478 enum PIPELINE
11479 {
11480 PIPELINE_MFXSINGLEDW = 2, //!< No additional details
11481 };
11482
11483 enum COMMAND_TYPE
11484 {
11485 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
11486 };
11487
11488 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__ARBITRATION_PRIORITY_CONTROL
11489 //! \details
11490 //! This field controls the priority of arbitration used in the GAC/GAM
11491 //! pipeline for this surface.
11492 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__ARBITRATION_PRIORITY_CONTROL
11493 {
11494 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11495 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11496 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11497 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11498 };
11499
11500 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_ENABLE
11501 //! \details
11502 //! This surface is linear surface. This bit must be set to "0" since only
11503 //! TileY/TileYf/TileYs surface is allowed to be compressed
11504 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_ENABLE
11505 {
11506 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11507 };
11508
11509 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_MODE
11510 //! \details
11511 //! Distinguishes Vertical from Horizontal compression. Please refer to
11512 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11513 //! more details.
11514 //! Note: This bit is not used unless Memory Compression Enable is set
11515 //! to "1"
11516 //! Note: This is a READ Surface. The setting of this bit should
11517 //! match the settings on how this is written out before.
11518 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_MODE
11519 {
11520 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11521 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11522 };
11523
11524 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__TILED_RESOURCE_MODE
11525 //! \details
11526 //! <b>For Media Surfaces:</b>
11527 //! This field specifies the tiled resource mode.
11528 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__TILED_RESOURCE_MODE
11529 {
11530 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11531 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
11532 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
11533 };
11534
11535 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__ARBITRATION_PRIORITY_CONTROL
11536 //! \details
11537 //! This field controls the priority of arbitration used in the GAC/GAM
11538 //! pipeline for this surface.
11539 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__ARBITRATION_PRIORITY_CONTROL
11540 {
11541 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11542 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11543 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11544 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11545 };
11546
11547 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_ENABLE
11548 //! \details
11549 //! This surface is linear surface. This bit must be set to "0" since only
11550 //! TileY/TileYf/TileYs surface is allowed to be compressed
11551 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_ENABLE
11552 {
11553 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11554 };
11555
11556 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_MODE
11557 //! \details
11558 //! Distinguishes Vertical from Horizontal compression. Please refer to
11559 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11560 //! more details.
11561 //! Note: This bit is not used unless Memory Compression Enable is set
11562 //! to "1"
11563 //! Note: This is a READ Surface. The setting of this bit should
11564 //! match the settings on how this is written out before.
11565 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_MODE
11566 {
11567 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11568 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11569 };
11570
11571 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__TILED_RESOURCE_MODE
11572 //! \details
11573 //! <b>For Media Surfaces:</b>
11574 //! This field specifies the tiled resource mode.
11575 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__TILED_RESOURCE_MODE
11576 {
11577 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11578 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
11579 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
11580 };
11581
11582 //! \name Initializations
11583
11584 //! \brief Explicit member initialization function
11585 MFX_AVC_DIRECTMODE_STATE_CMD();
11586
11587 static const size_t dwSize = 71;
11588 static const size_t byteSize = 284;
11589 };
11590
11591 };
11592
11593 #pragma pack()
11594
11595 #endif // __MHW_VDBOX_MFX_HWCMD_G11_X_H__