Debian Codegraph @

media_driver/agnostic/gen12/hw/vdbox/mhw_vdbox_mfx_hwcmd_g12_X.h

raw
1 /*
2 * Copyright (c) 2017-2019, 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_g12_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_G12_X_H__
29 #define __MHW_VDBOX_MFX_HWCMD_G12_X_H__
30
31 #pragma once
32 #include <cstdint>
33 #include <cstddef>
34
35
36 #pragma pack(1)
37
38 class mhw_vdbox_mfx_g12_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, 4) ; //!< Reserved
359 uint32_t ClockGateEnableForSignals : __CODEGEN_BITFIELD( 5, 5) ; //!< Clock gate Enable for signals
360 uint32_t ClockGateEnableAtSliceLevel : __CODEGEN_BITFIELD( 6, 6) ; //!< CLOCK_GATE_ENABLE_AT_SLICE_LEVEL
361 uint32_t Reserved71 : __CODEGEN_BITFIELD( 7, 9) ; //!< Reserved
362 uint32_t MpcPref08X8DisableFlagDefault0 : __CODEGEN_BITFIELD(10, 10) ; //!< MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0
363 uint32_t Reserved75 : __CODEGEN_BITFIELD(11, 13) ; //!< Reserved
364 uint32_t Vlf720IOddHeightInVc1Mode : __CODEGEN_BITFIELD(14, 14) ; //!< VLF_720I_ODD_HEIGHT_IN_VC1_MODE_
365 uint32_t Reserved79 : __CODEGEN_BITFIELD(15, 26) ; //!< Reserved
366 uint32_t VmbSvcTlbDummyFetchDisableForPerformance : __CODEGEN_BITFIELD(27, 27) ; //!< VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE
367 uint32_t VmbSvcMvReplicationFor8X8EnableErrorHandling : __CODEGEN_BITFIELD(28, 28) ; //!< VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING
368 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
369 };
370 uint32_t Value;
371 } DW2;
372 union
373 {
374 //!< DWORD 3
375 struct
376 {
377 uint32_t PicStatusErrorReportId ; //!< PIC_STATUSERROR_REPORT_ID
378 };
379 uint32_t Value;
380 } DW3;
381 union
382 {
383 //!< DWORD 4
384 struct
385 {
386 uint32_t MediaSoftResetCounterPer1000Clocks ; //!< MEDIA_SOFT_RESET_COUNTER_PER_1000_CLOCKS ; //!< Reserved
387 };
388 uint32_t Value;
389 } DW4;
390
391 //! \name Local enumerations
392
393 enum SUBOPB
394 {
395 SUBOPB_MFXPIPEMODESELECT = 0, //!< No additional details
396 };
397
398 enum SUBOPA
399 {
400 SUBOPA_UNNAMED0 = 0, //!< No additional details
401 };
402
403 enum OPCODE
404 {
405 OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
406 };
407
408 enum PIPELINE
409 {
410 PIPELINE_MFXCOMMON = 2, //!< No additional details
411 };
412
413 enum COMMAND_TYPE
414 {
415 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
416 };
417
418 enum STANDARD_SELECT
419 {
420 STANDARD_SELECT_MPEG2 = 0, //!< No additional details
421 STANDARD_SELECT_VC1 = 1, //!< No additional details
422 STANDARD_SELECT_AVC = 2, //!< Covers both AVC and MVC
423 STANDARD_SELECT_JPEG = 3, //!< No additional details
424 STANDARD_SELECT_SVC = 4, //!< No additional details
425 STANDARD_SELECT_VP8 = 5, //!< Decoder starting from BDW, Encoder starting from CHV
426 STANDARD_SELECT_UVLD = 15, //!< SW decoder w/ embedded micro-controller and co-processor
427 };
428
429 enum CODEC_SELECT
430 {
431 CODEC_SELECT_DECODE = 0, //!< No additional details
432 CODEC_SELECT_ENCODE = 1, //!< Valid only if StandardSel is AVC, MPEG2 and SVC)
433 };
434
435 enum STITCH_MODE
436 {
437 STITCH_MODE_NOTINSTITCHMODE = 0, //!< No additional details
438 STITCH_MODE_INTHESPECIALSTITCHMODE = 1, //!< This mode can be used for any Codec as long as bitfield conditions are met.
439 };
440
441 //! \brief FRAME_STATISTICS_STREAMOUT_ENABLE
442 //! \details
443 //! This field controls the frame level statistics streamout from the PAK.
444 //! <p><b>Note</b>: This field needs to be always "Enabled" in VD_Enc
445 //! mode. In case of non-VDEnc mode,
446 //! this can be used to control the frame statistics output from the
447 //! PAK.</p>
448 enum FRAME_STATISTICS_STREAMOUT_ENABLE
449 {
450 FRAME_STATISTICS_STREAMOUT_ENABLE_DISABLE = 0, //!< No additional details
451 FRAME_STATISTICS_STREAMOUT_ENABLE_ENABLE = 1, //!< No additional details
452 };
453
454 //! \brief SCALED_SURFACE_ENABLE
455 //! \details
456 //! This field indicates if the scaled surface is enabled. This field
457 //! enables the 4x HME downscalar of the reconstructed image. Only
458 //! supported for AVC and VP8 formats.
459 enum SCALED_SURFACE_ENABLE
460 {
461 SCALED_SURFACE_ENABLE_DISABLE = 0, //!< No additional details
462 SCALED_SURFACE_ENABLE_ENABLE = 1, //!< No additional details
463 };
464
465 //! \brief PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE
466 //! \details
467 //! This field controls the output write for the reconstructed pixels BEFORE
468 //! the deblocking filter.
469 enum PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE
470 {
471 PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE_DISABLE = 0, //!< No additional details
472 PRE_DEBLOCKING_OUTPUT_ENABLE_PREDEBLOCKOUTENABLE_ENABLE = 1, //!< No additional details
473 };
474
475 //! \brief POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE
476 //! \details
477 //! This field controls the output write for the reconstructed pixels AFTER
478 //! the deblocking filter.In MPEG2 decoding mode, if this is enabled, VC1
479 //! deblocking filter is used.
480 enum POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE
481 {
482 POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE_DISABLE = 0, //!< No additional details
483 POST_DEBLOCKING_OUTPUT_ENABLE_POSTDEBLOCKOUTENABLE_ENABLE = 1, //!< No additional details
484 };
485
486 //! \brief STREAM_OUT_ENABLE
487 //! \details
488 //! This field controls whether the macroblock parameter stream-out is
489 //! enabled during VLD decoding for transcoding purpose.
490 enum STREAM_OUT_ENABLE
491 {
492 STREAM_OUT_ENABLE_DISABLE = 0, //!< No additional details
493 STREAM_OUT_ENABLE_ENABLE = 1, //!< No additional details
494 };
495
496 //! \brief PIC_ERRORSTATUS_REPORT_ENABLE
497 //! \details
498 //! <p>This field control whether the error/status reporting is enable or
499 //! not.0: Disable1: EnableIn decoder modes: Error reporting is written out
500 //! once per frame. The Error Report frame ID listed in DW3 along with the
501 //! VLD/IT error status bits are packed into one cache and written to the
502 //! "Decoded Picture Error/Status Buffer address" listed in the
503 //! MFX_PIPE_BUF_ADDR_STATE Command. Note: driver shall program different
504 //! error buffer addresses between pictrues; otherwise, hardware might
505 //! overwrite previous written data if driver does not read it fast
506 //! enough.In encoder modes: Not used</p>
507 //! <p>Please refer to "Media VDBOX -&gt; Video Codec -&gt; Other Codec
508 //! Functions -&gt; MFX Error Handling -&gt; Decoder" session for the output
509 //! format.</p>
510 enum PIC_ERRORSTATUS_REPORT_ENABLE
511 {
512 PIC_ERRORSTATUS_REPORT_ENABLE_DISABLE = 0, //!< No additional details
513 PIC_ERRORSTATUS_REPORT_ENABLE_ENABLE = 1, //!< No additional details
514 };
515
516 //! \brief DEBLOCKER_STREAM_OUT_ENABLE
517 //! \details
518 //! This field indicates if Deblocker information is going to be streamout
519 //! during VLD decoding.
520 //! For AVC, it is needed to enable the deblocker streamout as the AVC
521 //! Disable_DLKFilterIdc is a slice level parameters. Driver needs to
522 //! determine ahead of time if at least one slice of the current frame/ has
523 //! deblocker ON.
524 //! For SVC, there are two deblocking control streamout buffers
525 //! (specified in MFX_BUF_ADDR State Command). This field is still
526 //! associated with the slice level SVC Disable.DLK_Filter_Idc.
527 enum DEBLOCKER_STREAM_OUT_ENABLE
528 {
529 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).
530 DEBLOCKER_STREAM_OUT_ENABLE_ENABLE = 1, //!< No additional details
531 };
532
533 //! \brief VDENC_MODE
534 //! \details
535 //! This field indicates if PAK is working in legacy MBEnc mode or the VDEnc
536 //! mode.
537 enum VDENC_MODE
538 {
539 VDENC_MODE_MBENCMODE = 0, //!< PAK is working in legacy mode
540 VDENC_MODE_VDENCMODE = 1, //!< PAK is working in VDEnc mode
541 };
542
543 //! \brief STANDALONE_VDENC_MODE_ENABLE
544 //! \details
545 //! This field indicates to PAK if this is standalone VDEnc mode. This is
546 //! primarily a validation mode.
547 enum STANDALONE_VDENC_MODE_ENABLE
548 {
549 STANDALONE_VDENC_MODE_ENABLE_VDENCPAK = 0, //!< No additional details
550 STANDALONE_VDENC_MODE_ENABLE_PAKONLY = 1, //!< No additional details
551 };
552
553 //! \brief DECODER_MODE_SELECT
554 //! \details
555 //! Each coding standard supports two entry points: VLD entry point and IT
556 //! (IDCT) entry point. This field selects which one is in use.This field is
557 //! only valid if Codec Select is 0 (decoder).
558 enum DECODER_MODE_SELECT
559 {
560 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
561 DECODER_MODE_SELECT_ITMODE = 1, //!< Configure the MFD Engine for IT ModeNote: Only VC1 and MPEG2 support this mode
562 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.
563 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.>
564 };
565
566 //! \brief DECODER_SHORT_FORMAT_MODE
567 //! \details
568 //! For IT mode, this bit must be 0.
569 enum DECODER_SHORT_FORMAT_MODE
570 {
571 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.
572 DECODER_SHORT_FORMAT_MODE_LONGFORMATDRIVERINTERFACE = 1, //!< AVC/VC1/MVC/SVC/VP8 Long Format Mode is in use.
573 };
574
575 //! \brief VDS_ILDB_CALCULATION
576 //! \details
577 //! This bit forces all MB into INTRA MBs before doing ILDB control
578 //! generation in VDS.
579 enum VDS_ILDB_CALCULATION
580 {
581 VDS_ILDB_CALCULATION_DISABLE = 0, //!< Use original definition for ILDB calculation.
582 VDS_ILDB_CALCULATION_ENABLE = 1, //!< Force neighbor Intra MB = 1 on ILDB BS calculation.
583 };
584
585 //! \brief CLOCK_GATE_ENABLE_AT_SLICE_LEVEL
586 //! \details
587 //! BitFieldDesc:
588 enum CLOCK_GATE_ENABLE_AT_SLICE_LEVEL
589 {
590 CLOCK_GATE_ENABLE_AT_SLICE_LEVEL_DISABLE = 0, //!< Disable Slice-level Clock gating, Unit-level Clock gating will apply
591 CLOCK_GATE_ENABLE_AT_SLICE_LEVEL_ENABLE = 1, //!< Enable Slice-level Clock gating, overrides any Unit level Clock gating
592 };
593
594 enum MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0
595 {
596 MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0_DISABLE = 0, //!< No additional details
597 MPC_PREF08X8_DISABLE_FLAG_DEFAULT_0_ENABLE = 1, //!< No additional details
598 };
599
600 //! \brief VLF_720I_ODD_HEIGHT_IN_VC1_MODE_
601 //! \details
602 //! This bit indicates VLF write out VC1 picture with odd height (in MBs).
603 enum VLF_720I_ODD_HEIGHT_IN_VC1_MODE_
604 {
605 VLF_720I_ODD_HEIGHT_IN_VC1_MODE_DISABLE = 0, //!< No additional details
606 VLF_720I_ODD_HEIGHT_IN_VC1_MODE_ENABLE = 1, //!< 720i Enable
607 };
608
609 //! \brief VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE
610 //! \details
611 //! This bit disables TLB dummy fetch in SVC mode in VMB.
612 enum VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE
613 {
614 VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE_ENABLE = 0, //!< Enable VMB TLB Dummy Fetch for Performance
615 VMB_SVC_TLB_DUMMY_FETCH_DISABLE_FOR_PERFORMANCE_DISABLE = 1, //!< Disable VMB TLB Dummy Fetch
616 };
617
618 //! \brief VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING
619 //! \details
620 //! This bit enables Motion Vector replication on 8x8 level during SVC mode
621 //! for error handling.
622 enum VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING
623 {
624 VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING_DISABLE = 0, //!< Disable MV 8x8 replication in SVC mode
625 VMB_SVC_MV_REPLICATION_FOR_8X8_ENABLE_ERROR_HANDLING_ENABLE = 1, //!< Enable MV 8x8 Replication in SVC Mode
626 };
627
628 //! \brief PIC_STATUSERROR_REPORT_ID
629 //! \details
630 //! In decoder modes: Error reporting is written out once per frame. This
631 //! field along with the VLD error status bits are packed into one cache and
632 //! written to the memory location specified by "Decoded Picture
633 //! Error/Status Buffer address" listed in the MFX_PIPE_BUF_ADDR_STATE
634 //! Command.
635 enum PIC_STATUSERROR_REPORT_ID
636 {
637 PIC_STATUSERROR_REPORT_ID_32_BITUNSIGNED = 0, //!< Unique ID Number
638 };
639
640 //! \brief MEDIA_SOFT_RESET_COUNTER_PER_1000_CLOCKS
641 //! \details
642 //! In decoder modes, this counter value specifies the number of clocks (per
643 //! 1000) of GAC inactivity
644 //! before a media soft-reset is applied to the HCP and HuC. If counter
645 //! value is set to 0, the media
646 //! soft-reset feature is disabled and no reset will occur.
647 //! <p>In encoder modes, this counter must be set to 0 to disable media
648 //! soft reset. This feature is not
649 //! supported for the encoder.</p>
650 enum MEDIA_SOFT_RESET_COUNTER_PER_1000_CLOCKS
651 {
652 MEDIA_SOFT_RESET_COUNTER_PER_1000_CLOCKS_DISABLE = 0, //!< No additional details
653 MEDIA_SOFT_RESET_COUNTER_PER_1000_CLOCKS_ENABLE = 500, //!< number of clocks (per 1000) of GAC inactivity
654 };
655
656 //! \name Initializations
657
658 //! \brief Explicit member initialization function
659 MFX_PIPE_MODE_SELECT_CMD();
660
661 static const size_t dwSize = 5;
662 static const size_t byteSize = 20;
663 };
664
665 //!
666 //! \brief MFX_SURFACE_STATE
667 //! \details
668 //! This command is common for all encoding/decoding modes, to specify the
669 //! uncompressed YUV picture (i.e. destination surface) or intermediate
670 //! streamout in/out surface (e.g. coefficient/residual) (field, frame or
671 //! interleaved frame) format for reading and writing: Uncompressed,
672 //! original input picture to be encoded
673 //! Reconstructed non-filtered/filtered display picturec(becoming reference
674 //! pictures as well for subsequent temporal inter-prediction)
675 //! Residual in SVC
676 //! Reconstructed Intra pixel in SVC
677 //! CoeffPred in SVC
678 //! Since there is only one media surface state being active during the
679 //! entire encoding/decoding process, all the uncompressed/reconstructed
680 //! pictures are defined to have the same surface state. For each media
681 //! object call (decoding or encoding), multiple SVC surfaces can be active
682 //! concurrently, to distinguish among them, a surfaceID is added to
683 //! specify for each type of surface. The primary difference among picture
684 //! surface states is their individual programmed base addresses, which are
685 //! provided by other state commands and not included in this command. MFX
686 //! engine is making the association of surface states and corresponding
687 //! buffer base addresses. MFX engine currently supports only one media
688 //! surface type for video and that is the NV12 (Planar YUV420 with
689 //! interleaved U (Cb) and V (Cr). For optimizing memory efficiency based on
690 //! access patterns, only TileY is supported. For JPEG decoder, only IMC1
691 //! and IMC3 are supported. Pitch can be wider than the Picture Width in
692 //! pixels and garbage will be there at the end of each line. The following
693 //! describes all the different formats that are supported and not supported
694 //! in Gen7 MFX : NV12 - 4:2:0 only; UV interleaved; Full Pitch, U and V
695 //! offset is set to 0 (the only format supported for video codec); vertical
696 //! UV offset is MB aligned; UV xoffsets = 0. JPEG does not support NV12
697 //! format because non-interleave JPEG has performance issue with partial
698 //! write (in interleaved UV format)
699 //! IMC 1 &amp; 3 - Full Pitch, U and V are separate plane; (JPEG only; U
700 //! plane + garbage first in full pitch followed by V plane + garbage in
701 //! full pitch). U and V vertical offsets are block aligned; U and V xoffset
702 //! = 0; there is no gap between Y, U and V planes. IMC1 and IMC3 are
703 //! different by a swap of U and V. This is the only format supported in
704 //! JPEG for all video subsampling types (4:4:4, 4:2:2 and 4:2:0)
705 //! We are not supporting IMC 2 &amp; 4 - Full Pitch, U and V are separate
706 //! plane (JPEG only; U plane first in full pitch followed by V plane in
707 //! full pitch - U and V plane are side-by-side). U and V vertical offsets
708 //! are 16-pixel aligned; V xoffset is half-pitch aligned; U xoffset is 0;
709 //! there is no gap between Y, U and V planes. IMC2 and IMC4 are different
710 //! by a swap of U and V.
711 //! We are not supporting YV12 - half pitch for each U and V plane, and
712 //! separate planes for Y, U and V (U plane first in half pitch followed by
713 //! V plane in half pitch). For YV12, U and V vertical offsets are block
714 //! aligned; U and V xoffset = 0; there is no gap between Y, U and V planes
715 //! Note that the following data structures are not specified through the
716 //! media surface state 1D buffers for row-store and other miscellaneous
717 //! information.
718 //! 2D buffers for per-MB data-structures (e.g. DMV biffer, MB info record,
719 //! ILDB Control and Tcoeff/Stocoeff).
720 //! This surface state here is identical to the Surface State for
721 //! deinterlace and sample_8x8 messages described in the Shared Function
722 //! Volume and Sampler Chapter. For non pixel data, such as row stores,
723 //! indirect data (Compressed Slice Data, AVC MV record, Coeff record and
724 //! AVC ILDB record) and streamin/out and output compressed bitstream, a
725 //! linear buffer is employed. For row stores, the H/W is designed to
726 //! guarantee legal memory accesses (read and write). For the remaining
727 //! cases, indirect object base address, indirect object address upper
728 //! bound, object data start address (offset) and object data length are
729 //! used to fully specified their corresponding buffer. This mechanism is
730 //! chosen over the pixel surface type because of their variable record
731 //! sizes. All row store surfaces are linear surface. Their addresses are
732 //! programmed in Pipe_Buf_Base_State or Bsp_Buf_Base_Addr_State
733 //!
734 //! VC1 I picture scaling: Even though VC1 allows I reconstructed picture
735 //! scaling (via RESPIC), as such scaling is only allowed at I picture. All
736 //! subsequent P (and B) pictures must have the same picture dimensions with
737 //! the preceding I picture. Therefore, all reference pictures for P or B
738 //! picture can share the same surface state with the current P and B
739 //! picture. Note : H/W is not processing RESPIC. Application is no longer
740 //! expecting intel decoder pipelineand kernel to perform this function, it
741 //! is going to be done in the video post-processing scaler or display
742 //! controller scale as a separate step and controller.
743 //!
744 //! All video codec surfaces must be NV12 Compliant, except JPEG. U/V
745 //! vertical must be MB aligned for all video codec (further contrained for
746 //! field picture), but JPEG can be block aligned. All video codec and JPEG
747 //! uses Tiled - Y format only, for uncompressed pixel surfaces.
748 //!
749 //! Even for JPEG planar 420 surface, application may provide only 1
750 //! buffers, but there is still only one single surface state for all of
751 //! them. If IMC equal to 1, 2, 3 or 4, U and V have the pitch same as Y.
752 //! And U and V will have different offset, each offset is block aligned.
753 //!
754 struct MFX_SURFACE_STATE_CMD
755 {
756 union
757 {
758 //!< DWORD 0
759 struct
760 {
761 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
762 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
763 uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB
764 uint32_t Subopa : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPA
765 uint32_t Opcode : __CODEGEN_BITFIELD(24, 26) ; //!< OPCODE
766 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
767 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
768 };
769 uint32_t Value;
770 } DW0;
771 union
772 {
773 //!< DWORD 1
774 struct
775 {
776 uint32_t SurfaceId : __CODEGEN_BITFIELD( 0, 3) ; //!< SURFACE_ID
777 uint32_t Reserved36 : __CODEGEN_BITFIELD( 4, 31) ; //!< Reserved
778 };
779 uint32_t Value;
780 } DW1;
781 union
782 {
783 //!< DWORD 2
784 struct
785 {
786 uint32_t CrVCbUPixelOffsetVDirection : __CODEGEN_BITFIELD( 0, 1) ; //!< Cr(V)/Cb(U) Pixel Offset V Direction
787 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
788 uint32_t Width : __CODEGEN_BITFIELD( 4, 17) ; //!< Width
789 uint32_t Height : __CODEGEN_BITFIELD(18, 31) ; //!< Height
790 };
791 uint32_t Value;
792 } DW2;
793 union
794 {
795 //!< DWORD 3
796 struct
797 {
798 uint32_t TileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< TILE_WALK
799 uint32_t TiledSurface : __CODEGEN_BITFIELD( 1, 1) ; //!< TILED_SURFACE
800 uint32_t HalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< Half Pitch for Chroma
801 uint32_t SurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Surface Pitch
802 uint32_t Reserved116 : __CODEGEN_BITFIELD( 20,26) ; //!< Reserved
803 uint32_t InterleaveChroma : __CODEGEN_BITFIELD(27, 27) ; //!< INTERLEAVE_CHROMA_
804 uint32_t SurfaceFormat : __CODEGEN_BITFIELD(28, 31) ; //!< SURFACE_FORMAT
805 };
806 uint32_t Value;
807 } DW3;
808 union
809 {
810 //!< DWORD 4
811 struct
812 {
813 uint32_t YOffsetForUCb : __CODEGEN_BITFIELD( 0, 14) ; //!< Y Offset for U(Cb)
814 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
815 uint32_t XOffsetForUCb : __CODEGEN_BITFIELD(16, 30) ; //!< X Offset for U(Cb)
816 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
817 };
818 uint32_t Value;
819 } DW4;
820 union
821 {
822 //!< DWORD 5
823 struct
824 {
825 uint32_t YOffsetForVCr : __CODEGEN_BITFIELD( 0, 15) ; //!< Y Offset for V(Cr)
826 uint32_t XOffsetForVCr : __CODEGEN_BITFIELD(16, 28) ; //!< X Offset for V(Cr)
827 uint32_t Reserved189 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
828 };
829 uint32_t Value;
830 } DW5;
831
832 //! \name Local enumerations
833
834 enum SUBOPB
835 {
836 SUBOPB_UNNAMED1 = 1, //!< No additional details
837 };
838
839 enum SUBOPA
840 {
841 SUBOPA_UNNAMED0 = 0, //!< No additional details
842 };
843
844 enum OPCODE
845 {
846 OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
847 };
848
849 enum PIPELINE
850 {
851 PIPELINE_MFXCOMMON = 2, //!< No additional details
852 };
853
854 enum COMMAND_TYPE
855 {
856 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
857 };
858
859 enum SURFACE_ID
860 {
861 SURFACE_ID_DECODEDPICTUREANDREFERENCEPICTURES_SVCUPSAMPLINGSTREAMOUTRECONSTRUCTEDPIXELSCOEFFPREDUPPERLAYERSIZE = 0, //!< 8-bit uncompressed data
862 SURFACE_ID_SVCRESIDUALUPSAMPLINGSTREAMOUTSURFACEUPPERLAYERSIZE = 1, //!< 16-bit uncompressed data
863 SURFACE_ID_SVCRECONSTRUCTEDPIXELANDCOEFFPREDUPSAMPLINGSTREAMINSURFACELOWERLAYERSIZE = 2, //!< 8-bit uncompressed data.
864 SURFACE_ID_SVCRESIDUALUPSAMPLINGSTREAMINSURFACELOWERLAYERSIZE = 3, //!< 16-bit uncompressed data
865 SURFACE_ID_SOURCEINPUTPICTUREENCODER = 4, //!< 8-bit uncompressed data
866 SURFACE_ID_RECONSTRUCTEDSCALEDREFERENCEPICTURE = 5, //!< 8-bit data
867 };
868
869 //! \brief TILE_WALK
870 //! \details
871 //! (This field must be set to 1: TILEWALK_YMAJOR)This field specifies the
872 //! type of memory tiling (XMajor or YMajor) employed to tile this surface.
873 //! See Memory Interface Functions for details on memory tiling and
874 //! restrictions.This field is ignored when the surface is linear.This field
875 //! is ignored by MFX. Internally H/W is always treated this set to 1 for
876 //! all video codec and for JPEG.
877 enum TILE_WALK
878 {
879 TILE_WALK_XMAJOR = 0, //!< TILEWALK_XMAJOR
880 TILE_WALK_YMAJOR = 1, //!< TILEWALK_YMAJOR
881 };
882
883 //! \brief TILED_SURFACE
884 //! \details
885 //! (This field must be set to TRUE: Tiled)This field specifies whether the
886 //! surface is tiled.This field is ignored by MFX
887 enum TILED_SURFACE
888 {
889 TILED_SURFACE_FALSE = 0, //!< Linear
890 TILED_SURFACE_TRUE = 1, //!< Tiled
891 };
892
893 //! \brief INTERLEAVE_CHROMA_
894 //! \details
895 //! This field indicates that the chroma fields are interleaved in a single
896 //! plane rather than stored as two separate planes. This field is only used
897 //! for PLANAR surface formats.For AVC/VC1/MPEG VLD and IT modes : set to
898 //! Enable to support interleave U/V only.For JPEG : set to Disable for all
899 //! formats (including 4:2:0) - because JPEG does not support NV12. (This
900 //! field is needed only if JPEG will support NV12; otherwise is ignored.)
901 enum INTERLEAVE_CHROMA_
902 {
903 INTERLEAVE_CHROMA_DISABLE = 0, //!< No additional details
904 INTERLEAVE_CHROMA_ENABLE = 1, //!< No additional details
905 };
906
907 //! \brief SURFACE_FORMAT
908 //! \details
909 //! Specifies the format of the surface. All of the Y and G channels will
910 //! use table 0 and all of the Cr/Cb/R/B channels will use table 1.Usage:
911 //! For 420 planar YUV surface, use 4; for monochrome surfaces, use 12. For
912 //! monochrome surfaces, hardware ignores control fields for Chroma
913 //! planes.This field must be set to 4 - PLANAR_420_8, or 12 - Y8_UNORMNot
914 //! used for MFX, and is ignored. But for JPEG decoding, this field should
915 //! be programmed to the same format as JPEG_PIC_STATE. For video codec, it
916 //! should set to 4 always.
917 enum SURFACE_FORMAT
918 {
919 SURFACE_FORMAT_YCRCBNORMAL = 0, //!< No additional details
920 SURFACE_FORMAT_YCRCBSWAPUVY = 1, //!< No additional details
921 SURFACE_FORMAT_YCRCBSWAPUV = 2, //!< No additional details
922 SURFACE_FORMAT_YCRCBSWAPY = 3, //!< No additional details
923 SURFACE_FORMAT_PLANAR_4208 = 4, //!< (NV12, IMC1,2,3,4, YV12)
924 SURFACE_FORMAT_PLANAR_4118 = 5, //!< Deinterlace Only
925 SURFACE_FORMAT_PLANAR_4228 = 6, //!< Deinterlace Only
926 SURFACE_FORMAT_STMMDNSTATISTICS = 7, //!< Deinterlace Only
927 SURFACE_FORMAT_R10G10B10A2UNORM = 8, //!< Sample_8x8 Only
928 SURFACE_FORMAT_R8G8B8A8UNORM = 9, //!< Sample_8x8 Only
929 SURFACE_FORMAT_R8B8UNORMCRCB = 10, //!< Sample_8x8 Only
930 SURFACE_FORMAT_R8UNORMCRCB = 11, //!< Sample_8x8 Only
931 SURFACE_FORMAT_Y8UNORM = 12, //!< Sample_8x8 Only
932 };
933
934 //! \name Initializations
935
936 //! \brief Explicit member initialization function
937 MFX_SURFACE_STATE_CMD();
938
939 static const size_t dwSize = 6;
940 static const size_t byteSize = 24;
941 };
942
943 //!
944 //! \brief MFX_IND_OBJ_BASE_ADDR_STATE
945 //! \details
946 //! This state command provides the memory base addresses for all row
947 //! stores, StreamOut buffer and reconstructed picture output buffers
948 //! required by the MFD or MFC Engine (that are in addition to the row
949 //! stores of the Bit Stream Decoding/Encoding Unit (BSD/BSE) and the
950 //! reference picture buffers). This is a picture level state command and is
951 //! common among all codec standards and for both encoder and decoder
952 //! operating modes. However, some fields may only applicable to a specific
953 //! codec standard. All Pixel Surfaces (original, reference frame and
954 //! reconstructed frame) in the Encoder are programmed with the same surface
955 //! state (NV12 and TileY format), except each has its own frame buffer base
956 //! address. In the tile format, there is no need to provide buffer offset
957 //! for each slice; since from each MB address, the hardware can calculated
958 //! the corresponding memory location within the frame buffer directly.
959 //!
960 //! The MFX_IND_OBJ_BASE_ADDR command sets the memory base address pointers
961 //! for the corresponding Indirect Object Data Start Addresses (Offsets)
962 //! specified in each OBJECT commands. The characteristic of these indirect
963 //! object data is their variable size (per MB or per Slice). Hence, each
964 //! OBJECT command must specify the indirect object data offset from the
965 //! base address to start fetching or writing object data.
966 //!
967 //! While the use of base address is unconditional, the indirection can be
968 //! effectively disabled by setting the base address to zero. For decoder,
969 //! there are: 1 read-only per-slice indirect object in the BSD_OBJECT
970 //! Command, and
971 //! 2 read-only per-MB indirect objects in the IT_OBJECT Command.
972 //! For decoder: the Video Command Streamer (VCS) will perform the memory
973 //! access bound check automatically using the corresponding MFC Indirect
974 //! Object Access Upper Bound specification. If any access is at or beyond
975 //! the upper bound, zero value is returned. The request to memory is still
976 //! being sent, but the corresponding codec's BSD unit will detect this
977 //! condition and perform the zeroing return. If the Upper Bound is turned
978 //! off, the beyond bound request will return whatever on the bus (invalid
979 //! data). For encoder, there are: 1 read-only per-MB indirect object in
980 //! the PAK_OBJECT Command, and
981 //! 1 write-only per-slice indirect object in the PAK Slice_State Command
982 //! For encoder: whenever an out of bound address accessing request is
983 //! generated, VMX will detect such requests and snap the address to the
984 //! corresponding [indirect object base address + indirect data start
985 //! address]. VMX will return all 0s as the data to the requestor.
986 //! NotationDefinitionPhysicalAddress[n:m] Corresponding bits of a physical
987 //! graphics memory byte address (not mapped by a GTT) GraphicsAddress[n:m]
988 //! Corresponding bits of an absolute, virtual graphics memory byte address
989 //! (mapped by a GTT).
990 //!
991 struct MFX_IND_OBJ_BASE_ADDR_STATE_CMD
992 {
993 union
994 {
995 //!< DWORD 0
996 struct
997 {
998 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
999 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1000 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
1001 uint32_t SubOpcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODEA
1002 uint32_t CommonOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMON_OPCODE
1003 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1004 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1005 };
1006 uint32_t Value;
1007 } DW0;
1008 union
1009 {
1010 //!< DWORD 1
1011 struct
1012 {
1013 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1014 uint32_t MfxIndirectBitstreamObjectBaseAddressDecoderAndStitchModes : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect Bitstream Object - Base Address (Decoder and Stitch Modes)
1015 };
1016 uint32_t Value;
1017 } DW1;
1018 union
1019 {
1020 //!< DWORD 2
1021 struct
1022 {
1023 uint32_t MfxIndirectBitstreamObjectDestinationAddressDecoderAndStitchModes4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect Bitstream Object - Destination Address (Decoder and Stitch Modes)[47:32]
1024 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1025 };
1026 uint32_t Value;
1027 } DW2;
1028 union
1029 {
1030 //!< DWORD 3
1031 struct
1032 {
1033 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1034 uint32_t MfxIndirectBitstreamObjectbaseArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFX_INDIRECT_BITSTREAM_OBJECTBASE__ARBITRATION_PRIORITY_CONTROL
1035 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1036 uint32_t MfxIndirectBitstreamObjectTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFX_INDIRECT_BITSTREAM_OBJECT__TILED_RESOURCE_MODE
1037 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1038 };
1039 uint32_t Value;
1040 } DW3;
1041 union
1042 {
1043 //!< DWORD 4
1044 struct
1045 {
1046 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1047 uint32_t MfxIndirectBitstreamObjectAccessUpperBoundDecoderAndStitchModes : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect Bitstream Object - Access Upper Bound (Decoder and Stitch Modes)
1048 };
1049 uint32_t Value;
1050 } DW4;
1051 union
1052 {
1053 //!< DWORD 5
1054 struct
1055 {
1056 uint32_t MfxIndirectBitstreamObjectUpperboundDecoderAndStitchModes4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect Bitstream Object UpperBound (Decoder and Stitch Modes)[47:32]
1057 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1058 };
1059 uint32_t Value;
1060 } DW5;
1061 union
1062 {
1063 //!< DWORD 6
1064 struct
1065 {
1066 uint32_t Reserved192 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1067 uint32_t MfxIndirectMvObjectBaseAddress : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect MV Object - Base Address
1068 };
1069 uint32_t Value;
1070 } DW6;
1071 union
1072 {
1073 //!< DWORD 7
1074 struct
1075 {
1076 uint32_t MfxIndirectMvObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect MV Object Base Address [47:32]
1077 uint32_t Reserved240 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1078 };
1079 uint32_t Value;
1080 } DW7;
1081 union
1082 {
1083 //!< DWORD 8
1084 struct
1085 {
1086 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1087 uint32_t MfxIndirectMvObjectArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFX_INDIRECT_MV_OBJECT__ARBITRATION_PRIORITY_CONTROL
1088 uint32_t Reserved265 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1089 uint32_t MfxIndirectMvObjectDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFX_INDIRECT_MV_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1090 uint32_t Reserved271 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1091 };
1092 uint32_t Value;
1093 } DW8;
1094 union
1095 {
1096 //!< DWORD 9
1097 struct
1098 {
1099 uint32_t Reserved288 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1100 uint32_t MfxIndirectMvObjectAccessUpperBound : __CODEGEN_BITFIELD(12, 31) ; //!< MFX Indirect MV Object Access Upper Bound
1101 };
1102 uint32_t Value;
1103 } DW9;
1104 union
1105 {
1106 //!< DWORD 10
1107 struct
1108 {
1109 uint32_t MfxIndirectMvObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFX Indirect MV Object UpperBound [47:32]
1110 uint32_t Reserved336 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1111 };
1112 uint32_t Value;
1113 } DW10;
1114 union
1115 {
1116 //!< DWORD 11
1117 struct
1118 {
1119 uint32_t Reserved352 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1120 uint32_t MfdIndirectItCoeffObjectBaseAddressDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-COEFF Object - Base Address (Decoder Only)
1121 };
1122 uint32_t Value;
1123 } DW11;
1124 union
1125 {
1126 //!< DWORD 12
1127 struct
1128 {
1129 uint32_t MfdIndirectItCoeffObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-COEFF Object Base Address [47:32]
1130 uint32_t Reserved400 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1131 };
1132 uint32_t Value;
1133 } DW12;
1134 union
1135 {
1136 //!< DWORD 13
1137 struct
1138 {
1139 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1140 uint32_t MfdIndirectItCoeffObjectDesitnationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1141 uint32_t Reserved425 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1142 uint32_t MfdIndirectItCoeffTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFD_INDIRECT_IT_COEFF__TILED_RESOURCE_MODE
1143 uint32_t Reserved431 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1144 };
1145 uint32_t Value;
1146 } DW13;
1147 union
1148 {
1149 //!< DWORD 14
1150 struct
1151 {
1152 uint32_t Reserved448 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1153 uint32_t MfdIndirectItCoeffObjectAccessUpperBoundDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-COEFF Object - Access Upper Bound (Decoder Only)
1154 };
1155 uint32_t Value;
1156 } DW14;
1157 union
1158 {
1159 //!< DWORD 15
1160 struct
1161 {
1162 uint32_t MfdIndirectItCoeffObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-COEFF Object UpperBound [47:32]
1163 uint32_t Reserved496 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1164 };
1165 uint32_t Value;
1166 } DW15;
1167 union
1168 {
1169 //!< DWORD 16
1170 struct
1171 {
1172 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1173 uint32_t MfdIndirectItDblkObjectBaseAddressDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-DBLK Object - Base Address (Decoder Only)
1174 };
1175 uint32_t Value;
1176 } DW16;
1177 union
1178 {
1179 //!< DWORD 17
1180 struct
1181 {
1182 uint32_t MfdIndirectItDblkObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-DBLK Object Base Address [47:32]
1183 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1184 };
1185 uint32_t Value;
1186 } DW17;
1187 union
1188 {
1189 //!< DWORD 18
1190 struct
1191 {
1192 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1193 uint32_t MfdIndirectItDblkObjectArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFD_INDIRECT_IT_DBLK_OBJECT__ARBITRATION_PRIORITY_CONTROL
1194 uint32_t Reserved585 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1195 uint32_t MfdIndirectItDblkObjectDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1196 uint32_t Reserved591 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1197 };
1198 uint32_t Value;
1199 } DW18;
1200 union
1201 {
1202 //!< DWORD 19
1203 struct
1204 {
1205 uint32_t Reserved608 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1206 uint32_t MfdIndirectItDblkObjectAccessUpperBoundDecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFD Indirect IT-DBLK Object - Access Upper Bound (Decoder Only)
1207 };
1208 uint32_t Value;
1209 } DW19;
1210 union
1211 {
1212 //!< DWORD 20
1213 struct
1214 {
1215 uint32_t MfdIndirectItDblkObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFD Indirect IT-DBLK Object UpperBound [47:32]
1216 uint32_t Reserved656 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1217 };
1218 uint32_t Value;
1219 } DW20;
1220 union
1221 {
1222 //!< DWORD 21
1223 struct
1224 {
1225 uint32_t Reserved672 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1226 uint32_t MfcIndirectPakBseObjectBaseAddressEncoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFC Indirect PAK-BSE Object - Base Address (Encoder Only)
1227 };
1228 uint32_t Value;
1229 } DW21;
1230 union
1231 {
1232 //!< DWORD 22
1233 struct
1234 {
1235 uint32_t MfcIndirectPakBseObjectBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFC Indirect PAK-BSE Object Base Address [47:32]
1236 uint32_t Reserved720 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1237 };
1238 uint32_t Value;
1239 } DW22;
1240 union
1241 {
1242 //!< DWORD 23
1243 struct
1244 {
1245 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1246 uint32_t MfcIndirectPakBseObjectDesitnationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1247 uint32_t Reserved745 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1248 uint32_t MfcIndirectPakBseObjectDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1249 uint32_t Reserved751 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1250 };
1251 uint32_t Value;
1252 } DW23;
1253 union
1254 {
1255 //!< DWORD 24
1256 struct
1257 {
1258 uint32_t Reserved768 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved
1259 uint32_t MfcIndirectPakBseObjectAccessUpperBoundEecoderOnly : __CODEGEN_BITFIELD(12, 31) ; //!< MFC Indirect PAK-BSE Object - Access Upper Bound (Eecoder Only)
1260 };
1261 uint32_t Value;
1262 } DW24;
1263 union
1264 {
1265 //!< DWORD 25
1266 struct
1267 {
1268 uint32_t MfcIndirectPakBseObjectUpperbound4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MFC Indirect PAK-BSE Object UpperBound [47:32]
1269 uint32_t Reserved816 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1270 };
1271 uint32_t Value;
1272 } DW25;
1273
1274 //! \name Local enumerations
1275
1276 enum SUBOPCODEB
1277 {
1278 SUBOPCODEB_MFXINDOBJBASEADDRSTATE = 3, //!< No additional details
1279 };
1280
1281 enum SUB_OPCODEA
1282 {
1283 SUB_OPCODEA_MFXINDOBJBASEADDRSTATE = 0, //!< No additional details
1284 };
1285
1286 enum COMMON_OPCODE
1287 {
1288 COMMON_OPCODE_MFXINDOBJBASEADDRSTATE = 0, //!< No additional details
1289 };
1290
1291 enum PIPELINE
1292 {
1293 PIPELINE_MFXINDOBJBASEADDRSTATE = 2, //!< No additional details
1294 };
1295
1296 enum COMMAND_TYPE
1297 {
1298 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1299 };
1300
1301 //! \brief MFX_INDIRECT_BITSTREAM_OBJECTBASE__ARBITRATION_PRIORITY_CONTROL
1302 //! \details
1303 //! This field controls the priority of arbitration used in the GAC/GAM
1304 //! pipeline for this surface.
1305 enum MFX_INDIRECT_BITSTREAM_OBJECTBASE__ARBITRATION_PRIORITY_CONTROL
1306 {
1307 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1308 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1309 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1310 MFX_INDIRECT_BITSTREAM_OBJECTBASE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1311 };
1312
1313 //! \brief MFX_INDIRECT_BITSTREAM_OBJECT__TILED_RESOURCE_MODE
1314 //! \details
1315 //! <b>For Media Surfaces:</b>
1316 //! This field specifies the tiled resource mode.
1317 enum MFX_INDIRECT_BITSTREAM_OBJECT__TILED_RESOURCE_MODE
1318 {
1319 MFX_INDIRECT_BITSTREAM_OBJECT_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1320 MFX_INDIRECT_BITSTREAM_OBJECT_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1321 MFX_INDIRECT_BITSTREAM_OBJECT_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1322 };
1323
1324 //! \brief MFX_INDIRECT_MV_OBJECT__ARBITRATION_PRIORITY_CONTROL
1325 //! \details
1326 //! This field controls the priority of arbitration used in the GAC/GAM
1327 //! pipeline for this surface.
1328 enum MFX_INDIRECT_MV_OBJECT__ARBITRATION_PRIORITY_CONTROL
1329 {
1330 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1331 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1332 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1333 MFX_INDIRECT_MV_OBJECT_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1334 };
1335
1336 //! \brief MFX_INDIRECT_MV_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1337 //! \details
1338 //! <b>For Media Surfaces:</b>
1339 //! This field specifies the tiled resource mode.
1340 enum MFX_INDIRECT_MV_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1341 {
1342 MFX_INDIRECT_MV_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1343 MFX_INDIRECT_MV_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1344 MFX_INDIRECT_MV_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1345 };
1346
1347 //! \brief MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1348 //! \details
1349 //! This field controls the priority of arbitration used in the GAC/GAM
1350 //! pipeline for this surface.
1351 enum MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1352 {
1353 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1354 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1355 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1356 MFD_INDIRECT_IT_COEFF_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1357 };
1358
1359 //! \brief MFD_INDIRECT_IT_COEFF__TILED_RESOURCE_MODE
1360 //! \details
1361 //! <b>For Media Surfaces:</b>
1362 //! This field specifies the tiled resource mode.
1363 enum MFD_INDIRECT_IT_COEFF__TILED_RESOURCE_MODE
1364 {
1365 MFD_INDIRECT_IT_COEFF_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1366 MFD_INDIRECT_IT_COEFF_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1367 MFD_INDIRECT_IT_COEFF_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1368 };
1369
1370 //! \brief MFD_INDIRECT_IT_DBLK_OBJECT__ARBITRATION_PRIORITY_CONTROL
1371 //! \details
1372 //! This field controls the priority of arbitration used in the GAC/GAM
1373 //! pipeline for this surface.
1374 enum MFD_INDIRECT_IT_DBLK_OBJECT__ARBITRATION_PRIORITY_CONTROL
1375 {
1376 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1377 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1378 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1379 MFD_INDIRECT_IT_DBLK_OBJECT_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1380 };
1381
1382 //! \brief MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1383 //! \details
1384 //! <b>For Media Surfaces:</b>
1385 //! This field specifies the tiled resource mode.
1386 enum MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1387 {
1388 MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1389 MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1390 MFD_INDIRECT_IT_DBLK_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1391 };
1392
1393 //! \brief MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1394 //! \details
1395 //! This field controls the priority of arbitration used in the GAC/GAM
1396 //! pipeline for this surface.
1397 enum MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION__ARBITRATION_PRIORITY_CONTROL
1398 {
1399 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1400 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1401 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1402 MFC_INDIRECT_PAK_BSE_OBJECT_DESITNATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1403 };
1404
1405 //! \brief MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1406 //! \details
1407 //! <b>For Media Surfaces:</b>
1408 //! This field specifies the tiled resource mode.
1409 enum MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION__TILED_RESOURCE_MODE
1410 {
1411 MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1412 MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1413 MFC_INDIRECT_PAK_BSE_OBJECT_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1414 };
1415
1416 //! \name Initializations
1417
1418 //! \brief Explicit member initialization function
1419 MFX_IND_OBJ_BASE_ADDR_STATE_CMD();
1420
1421 static const size_t dwSize = 26;
1422 static const size_t byteSize = 104;
1423 };
1424
1425 //!
1426 //! \brief MFX_BSP_BUF_BASE_ADDR_STATE
1427 //! \details
1428 //! This frame-level state command is used to specify all the buffer base
1429 //! addresses needed for the operation of the AVC Bit Stream Processing
1430 //! Units (for decoder, it is BSD Unit; for encoder, it is BSE Unit) For
1431 //! both encoder and decoder, currently it is assumed that all codec
1432 //! standards can share the same BSP_BUF_BASE_STATE. The simplicity of this
1433 //! command is the result of moving all the direct MV related processing
1434 //! into the ENC Subsystem. Since all implicit weight calculations and
1435 //! directMV calculations are done in ENC and all picture buffer management
1436 //! are done in the Host, there is no need to provide POC (POC List -
1437 //! FieldOrderCntList, CurrPic POC - CurrFieldOrderCnt) information to PAK.
1438 //! For decoder, all the direct mode information are sent in a separate
1439 //! slice-level command (AVC_DIRECTMODE_STATE command). In addition, in
1440 //! Encoder, the row stores for CABAC encoding and MB Parameters
1441 //! Construction (MPC) are combined into one single row store. The row
1442 //! stores specified in this command do not combine with those specified in
1443 //! the MFC_PIPE_BUF_ADDR_STATE command for hardware simplification reason.
1444 //!
1445 struct MFX_BSP_BUF_BASE_ADDR_STATE_CMD
1446 {
1447 union
1448 {
1449 //!< DWORD 0
1450 struct
1451 {
1452 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1453 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1454 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
1455 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
1456 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
1457 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1458 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1459 };
1460 uint32_t Value;
1461 } DW0;
1462 union
1463 {
1464 //!< DWORD 1
1465 struct
1466 {
1467 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
1468 uint32_t BsdMpcRowStoreScratchBufferBaseAddressReadWrite : __CODEGEN_BITFIELD( 6, 31) ; //!< BSD/MPC Row Store Scratch Buffer Base Address - Read/Write
1469 };
1470 uint32_t Value;
1471 } DW1;
1472 union
1473 {
1474 //!< DWORD 2
1475 struct
1476 {
1477 uint32_t BsdMpcRowStoreScratchBufferBaseAddressReadWrite4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< BSD/MPC Row Store Scratch Buffer Base Address - Read/Write [47:32]
1478 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1479 };
1480 uint32_t Value;
1481 } DW2;
1482 union
1483 {
1484 //!< DWORD 3
1485 struct
1486 {
1487 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1488 uint32_t BsdMpcRowStoreScratchBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< BSDMPC_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1489 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 11) ; //!< Reserved
1490 uint32_t BsdMpcRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1491 uint32_t BsdMpcRowStoreScratchBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< BSDMPC_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1492 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1493 };
1494 uint32_t Value;
1495 } DW3;
1496 union
1497 {
1498 //!< DWORD 4
1499 struct
1500 {
1501 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
1502 uint32_t MprRowStoreScratchBufferBaseAddressReadWriteDecoderOnly : __CODEGEN_BITFIELD( 6, 31) ; //!< MPR Row Store Scratch Buffer Base Address - Read/Write (Decoder Only)
1503 };
1504 uint32_t Value;
1505 } DW4;
1506 union
1507 {
1508 //!< DWORD 5
1509 struct
1510 {
1511 uint32_t MprRowStoreScratchBufferBaseAddressReadWrite4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< MPR Row Store Scratch Buffer Base Address - Read/Write [47:32]
1512 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1513 };
1514 uint32_t Value;
1515 } DW5;
1516 union
1517 {
1518 //!< DWORD 6
1519 struct
1520 {
1521 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1522 uint32_t MprRowStoreScratchBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MPR_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1523 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 11) ; //!< Reserved
1524 uint32_t MprRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1525 uint32_t MprRowStoreScratchBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MPR_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1526 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1527 };
1528 uint32_t Value;
1529 } DW6;
1530 union
1531 {
1532 //!< DWORD 7
1533 struct
1534 {
1535 uint32_t Reserved224 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
1536 uint32_t BitplaneReadBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Bitplane Read Buffer Base Address
1537 };
1538 uint32_t Value;
1539 } DW7;
1540 union
1541 {
1542 //!< DWORD 8
1543 struct
1544 {
1545 uint32_t BitplaneReadBufferBaseAddressReadWrite4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Bitplane Read Buffer Base Address - Read/Write [47:32]
1546 uint32_t Reserved272 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1547 };
1548 uint32_t Value;
1549 } DW8;
1550 union
1551 {
1552 //!< DWORD 9
1553 struct
1554 {
1555 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
1556 uint32_t BitplaneReadBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< BITPLANE_READ_BUFFER__ARBITRATION_PRIORITY_CONTROL
1557 uint32_t Reserved297 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
1558 uint32_t BitplaneReadBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< BITPLANE_READ_BUFFER__TILED_RESOURCE_MODE
1559 uint32_t Reserved303 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
1560 };
1561 uint32_t Value;
1562 } DW9;
1563
1564 //! \name Local enumerations
1565
1566 enum SUBOPCODE_B
1567 {
1568 SUBOPCODE_B_UNNAMED_4 = 4, //!< No additional details
1569 };
1570
1571 enum SUBOPCODE_A
1572 {
1573 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
1574 };
1575
1576 enum MEDIA_COMMAND_OPCODE
1577 {
1578 MEDIA_COMMAND_OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
1579 };
1580
1581 enum PIPELINE
1582 {
1583 PIPELINE_PIPELINE = 2, //!< No additional details
1584 };
1585
1586 enum COMMAND_TYPE
1587 {
1588 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1589 };
1590
1591 //! \brief BSDMPC_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1592 //! \details
1593 //! This field controls the priority of arbitration used in the GAC/GAM
1594 //! pipeline for this surface.
1595 enum BSDMPC_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1596 {
1597 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1598 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1599 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1600 BSDMPC_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1601 };
1602
1603 //! \brief BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1604 //! \details
1605 //! This field controls if Intra Row Store is going to store inside Media
1606 //! Internal Storage or to LLC.
1607 enum BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1608 {
1609 BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC
1610 BSDMPC_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage
1611 };
1612
1613 //! \brief BSDMPC_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1614 //! \details
1615 //! <b>For Media Surfaces:</b>
1616 //! This field specifies the tiled resource mode.
1617 enum BSDMPC_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1618 {
1619 BSDMPC_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1620 BSDMPC_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1621 BSDMPC_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1622 };
1623
1624 //! \brief MPR_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1625 //! \details
1626 //! This field controls the priority of arbitration used in the GAC/GAM
1627 //! pipeline for this surface.
1628 enum MPR_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
1629 {
1630 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1631 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1632 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1633 MPR_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1634 };
1635
1636 //! \brief MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1637 //! \details
1638 //! This field controls if Intra Row Store is going to store inside Media
1639 //! Internal Storage or to LLC.
1640 enum MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
1641 {
1642 MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC
1643 MPR_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage
1644 };
1645
1646 //! \brief MPR_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1647 //! \details
1648 //! <b>For Media Surfaces:</b>
1649 //! This field specifies the tiled resource mode.
1650 enum MPR_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
1651 {
1652 MPR_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1653 MPR_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1654 MPR_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1655 };
1656
1657 //! \brief BITPLANE_READ_BUFFER__ARBITRATION_PRIORITY_CONTROL
1658 //! \details
1659 //! This field controls the priority of arbitration used in the GAC/GAM
1660 //! pipeline for this surface.
1661 enum BITPLANE_READ_BUFFER__ARBITRATION_PRIORITY_CONTROL
1662 {
1663 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
1664 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
1665 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
1666 BITPLANE_READ_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
1667 };
1668
1669 //! \brief BITPLANE_READ_BUFFER__TILED_RESOURCE_MODE
1670 //! \details
1671 //! <b>For Media Surfaces:</b>
1672 //! This field specifies the tiled resource mode.
1673 enum BITPLANE_READ_BUFFER__TILED_RESOURCE_MODE
1674 {
1675 BITPLANE_READ_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
1676 BITPLANE_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
1677 BITPLANE_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
1678 };
1679
1680 //! \name Initializations
1681
1682 //! \brief Explicit member initialization function
1683 MFX_BSP_BUF_BASE_ADDR_STATE_CMD();
1684
1685 static const size_t dwSize = 10;
1686 static const size_t byteSize = 40;
1687 };
1688
1689 //!
1690 //! \brief MFD_AVC_PICID_STATE
1691 //! \details
1692 //! This is a frame level state command used for both AVC Long and Short
1693 //! Format in VLD mode.PictureID[16] contains the pictureID of each
1694 //! reference picture (16 maximum) so hardware can uniquely identify the
1695 //! reference picture across frames (this will be used for DMV
1696 //! operation).This command will be needed for both short and long format.
1697 //!
1698 struct MFD_AVC_PICID_STATE_CMD
1699 {
1700 union
1701 {
1702 //!< DWORD 0
1703 struct
1704 {
1705 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1706 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1707 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
1708 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
1709 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
1710 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1711 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1712 };
1713 uint32_t Value;
1714 } DW0;
1715 union
1716 {
1717 //!< DWORD 1
1718 struct
1719 {
1720 uint32_t PictureidRemappingDisable : __CODEGEN_BITFIELD( 0, 0) ; //!< PICTUREID_REMAPPING_DISABLE
1721 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
1722 };
1723 uint32_t Value;
1724 } DW1;
1725
1726 uint32_t Pictureidlist1616Bits[8]; //!< PictureIDList[16][16 bits]
1727
1728
1729 //! \name Local enumerations
1730
1731 enum SUBOPCODE_B
1732 {
1733 SUBOPCODE_B_MEDIA = 5, //!< No additional details
1734 };
1735
1736 enum SUBOPCODE_A
1737 {
1738 SUBOPCODE_A_DEC = 1, //!< No additional details
1739 };
1740
1741 enum MEDIA_COMMAND_OPCODE
1742 {
1743 MEDIA_COMMAND_OPCODE_MFDAVCDPBSTATE = 1, //!< No additional details
1744 };
1745
1746 enum PIPELINE
1747 {
1748 PIPELINE_MFXMULTIDW = 2, //!< No additional details
1749 };
1750
1751 enum COMMAND_TYPE
1752 {
1753 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
1754 };
1755
1756 //! \brief PICTUREID_REMAPPING_DISABLE
1757 //! \details
1758 //! If Picture ID Remapping Disable is "1", PictureIDList will not be used.
1759 enum PICTUREID_REMAPPING_DISABLE
1760 {
1761 PICTUREID_REMAPPING_DISABLE_AVCDECODERWILLUSE16BITSPICTUREIDTOHANDLEDMVANDIDENTIFYTHEREFERENCEPICTURE = 0, //!< Desc
1762 PICTUREID_REMAPPING_DISABLE_AVCDECODERWILLUSE_4BITSFRAMESTOREIDINDEXTOREFFRAMELISTTOHANDLEDMVANDIDENTIFYTHEREFERENCEPICTURETHISCAUSESDMVLOGICTOFUNCTIONTHESAMEINPROJECTIVBANDBEFORE = 1, //!< Desc
1763 };
1764
1765 //! \name Initializations
1766
1767 //! \brief Explicit member initialization function
1768 MFD_AVC_PICID_STATE_CMD();
1769
1770 static const size_t dwSize = 10;
1771 static const size_t byteSize = 40;
1772 };
1773
1774 //!
1775 //! \brief MFX_AVC_IMG_STATE
1776 //! \details
1777 //! This must be the very first command to issue after the surface state,
1778 //! the pipe select and base address setting commands. This command supports
1779 //! both Long and Short VLD and IT AVC Decoding Interface.
1780 //!
1781 struct MFX_AVC_IMG_STATE_CMD
1782 {
1783 union
1784 {
1785 //!< DWORD 0
1786 struct
1787 {
1788 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
1789 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1790 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
1791 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
1792 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
1793 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
1794 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
1795 };
1796 uint32_t Value;
1797 } DW0;
1798 union
1799 {
1800 //!< DWORD 1
1801 struct
1802 {
1803 uint32_t FrameSize : __CODEGEN_BITFIELD( 0, 15) ; //!< Frame Size
1804 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
1805 };
1806 uint32_t Value;
1807 } DW1;
1808 union
1809 {
1810 //!< DWORD 2
1811 struct
1812 {
1813 uint32_t FrameWidth : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Width
1814 uint32_t Reserved72 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
1815 uint32_t FrameHeight : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Height
1816 uint32_t Reserved88 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
1817 };
1818 uint32_t Value;
1819 } DW2;
1820 union
1821 {
1822 //!< DWORD 3
1823 struct
1824 {
1825 uint32_t Reserved96 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved
1826 uint32_t ImgstructImageStructureImgStructure10 : __CODEGEN_BITFIELD( 8, 9) ; //!< IMGSTRUCT__IMAGE_STRUCTURE_IMG_STRUCTURE10
1827 uint32_t WeightedBipredIdc : __CODEGEN_BITFIELD(10, 11) ; //!< WEIGHTED_BIPRED_IDC
1828 uint32_t WeightedPredFlag : __CODEGEN_BITFIELD(12, 12) ; //!< WEIGHTED_PRED_FLAG
1829 uint32_t RhodomainRateControlEnable : __CODEGEN_BITFIELD(13, 13) ; //!< RHODOMAIN_RATE_CONTROL_ENABLE
1830 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1831 uint32_t FirstChromaQpOffset : __CODEGEN_BITFIELD(16, 20) ; //!< First Chroma QP Offset
1832 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 23) ; //!< Reserved
1833 uint32_t SecondChromaQpOffset : __CODEGEN_BITFIELD(24, 28) ; //!< Second Chroma QP Offset
1834 uint32_t Reserved125 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
1835 };
1836 uint32_t Value;
1837 } DW3;
1838 union
1839 {
1840 //!< DWORD 4
1841 struct
1842 {
1843 uint32_t Fieldpicflag : __CODEGEN_BITFIELD( 0, 0) ; //!< FIELDPICFLAG
1844 uint32_t Mbaffflameflag : __CODEGEN_BITFIELD( 1, 1) ; //!< MBAFFFLAMEFLAG
1845 uint32_t Framembonlyflag : __CODEGEN_BITFIELD( 2, 2) ; //!< FRAMEMBONLYFLAG
1846 uint32_t Transform8X8Flag : __CODEGEN_BITFIELD( 3, 3) ; //!< TRANSFORM8X8FLAG
1847 uint32_t Direct8X8Infflag : __CODEGEN_BITFIELD( 4, 4) ; //!< DIRECT8X8INFFLAG
1848 uint32_t Constrainedipredflag : __CODEGEN_BITFIELD( 5, 5) ; //!< CONSTRAINEDIPREDFLAG
1849 uint32_t Imgdisposableflag : __CODEGEN_BITFIELD( 6, 6) ; //!< IMGDISPOSABLEFLAG
1850 uint32_t Entropycodingflag : __CODEGEN_BITFIELD( 7, 7) ; //!< ENTROPYCODINGFLAG
1851 uint32_t Mbmvformatflag : __CODEGEN_BITFIELD( 8, 8) ; //!< MBMVFORMATFLAG
1852 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved
1853 uint32_t Chromaformatidc : __CODEGEN_BITFIELD(10, 11) ; //!< CHROMAFORMATIDC
1854 uint32_t Mvunpackedflag : __CODEGEN_BITFIELD(12, 12) ; //!< MVUNPACKEDFLAG
1855 uint32_t Reserved141 : __CODEGEN_BITFIELD(13, 13) ; //!< Reserved
1856 uint32_t Loadslicepointerflag : __CODEGEN_BITFIELD(14, 14) ; //!< LOADSLICEPOINTERFLAG
1857 uint32_t Mbstatenabled : __CODEGEN_BITFIELD(15, 15) ; //!< MBSTATENABLED
1858 uint32_t Minframewsize : __CODEGEN_BITFIELD(16, 31) ; //!< MINFRAMEWSIZE
1859 };
1860 uint32_t Value;
1861 } DW4;
1862 union
1863 {
1864 //!< DWORD 5
1865 struct
1866 {
1867 uint32_t IntrambmaxbitflagIntrambmaxsizereportmask : __CODEGEN_BITFIELD( 0, 0) ; //!< INTRAMBMAXBITFLAG__INTRAMBMAXSIZEREPORTMASK
1868 uint32_t IntermbmaxbitflagIntermbmaxsizereportmask : __CODEGEN_BITFIELD( 1, 1) ; //!< INTERMBMAXBITFLAG__INTERMBMAXSIZEREPORTMASK
1869 uint32_t FrameszoverflagFramebitratemaxreportmask : __CODEGEN_BITFIELD( 2, 2) ; //!< FRAMESZOVERFLAG__FRAMEBITRATEMAXREPORTMASK
1870 uint32_t FrameszunderflagFramebitrateminreportmask : __CODEGEN_BITFIELD( 3, 3) ; //!< FRAMESZUNDERFLAG__FRAMEBITRATEMINREPORTMASK
1871 uint32_t Reserved164 : __CODEGEN_BITFIELD( 4, 6) ; //!< Reserved
1872 uint32_t IntraIntermbipcmflagForceipcmcontrolmask : __CODEGEN_BITFIELD( 7, 7) ; //!< INTRAINTERMBIPCMFLAG__FORCEIPCMCONTROLMASK
1873 uint32_t Reserved168 : __CODEGEN_BITFIELD( 8, 8) ; //!< Reserved
1874 uint32_t MbratectrlflagMbLevelRateControlEnablingFlag : __CODEGEN_BITFIELD( 9, 9) ; //!< MBRATECTRLFLAG__MB_LEVEL_RATE_CONTROL_ENABLING_FLAG
1875 uint32_t Minframewsizeunits : __CODEGEN_BITFIELD(10, 11) ; //!< MINFRAMEWSIZEUNITS
1876 uint32_t Reserved172 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1877 uint32_t Nonfirstpassflag : __CODEGEN_BITFIELD(16, 16) ; //!< NONFIRSTPASSFLAG
1878 uint32_t Reserved177 : __CODEGEN_BITFIELD(17, 26) ; //!< Reserved
1879 uint32_t TrellisQuantizationChromaDisableTqchromadisable : __CODEGEN_BITFIELD(27, 27) ; //!< TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE
1880 uint32_t TrellisQuantizationRoundingTqr : __CODEGEN_BITFIELD(28, 30) ; //!< TRELLIS_QUANTIZATION_ROUNDING_TQR
1881 uint32_t TrellisQuantizationEnabledTqenb : __CODEGEN_BITFIELD(31, 31) ; //!< TRELLIS_QUANTIZATION_ENABLED_TQENB
1882 };
1883 uint32_t Value;
1884 } DW5;
1885 union
1886 {
1887 //!< DWORD 6
1888 struct
1889 {
1890 uint32_t Intrambmaxsz : __CODEGEN_BITFIELD( 0, 11) ; //!< IntraMbMaxSz
1891 uint32_t Reserved204 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
1892 uint32_t Intermbmaxsz : __CODEGEN_BITFIELD(16, 27) ; //!< InterMbMaxSz
1893 uint32_t Reserved220 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
1894 };
1895 uint32_t Value;
1896 } DW6;
1897 union
1898 {
1899 //!< DWORD 7
1900 struct
1901 {
1902 uint32_t VslTopMbTrans8X8Flag : __CODEGEN_BITFIELD( 0, 0) ; //!< VSL_TOP_MB_TRANS8X8FLAG
1903 uint32_t Reserved225 : __CODEGEN_BITFIELD( 1, 15) ; //!< Reserved
1904 uint32_t BspEncoderEcoEnable : __CODEGEN_BITFIELD(16, 16) ; //!< BSP_ENCODER_ECO_ENABLE
1905 uint32_t Reserved241 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved
1906 };
1907 uint32_t Value;
1908 } DW7;
1909 union
1910 {
1911 //!< DWORD 8
1912 struct
1913 {
1914 uint32_t Slicedeltaqppmax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQpPMax[0]
1915 uint32_t Slicedeltaqpmax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQpMax[1]
1916 uint32_t Slicedeltaqpmax2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQpMax[2]
1917 uint32_t Slicedeltaqpmax3 : __CODEGEN_BITFIELD(24, 31) ; //!< SliceDeltaQpMax[3]
1918 };
1919 uint32_t Value;
1920 } DW8;
1921 union
1922 {
1923 //!< DWORD 9
1924 struct
1925 {
1926 uint32_t Slicedeltaqpmin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQpMin[0]
1927 uint32_t Slicedeltaqpmin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQpMin[1]
1928 uint32_t Slicedeltaqpmin2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQpMin[2]
1929 uint32_t Slicedeltaqpmin3 : __CODEGEN_BITFIELD(24, 31) ; //!< SliceDeltaQpMin[3]
1930 };
1931 uint32_t Value;
1932 } DW9;
1933 union
1934 {
1935 //!< DWORD 10
1936 struct
1937 {
1938 uint32_t Framebitratemin : __CODEGEN_BITFIELD( 0, 13) ; //!< FrameBitRateMin
1939 uint32_t Framebitrateminunitmode : __CODEGEN_BITFIELD(14, 14) ; //!< FRAMEBITRATEMINUNITMODE
1940 uint32_t Framebitrateminunit : __CODEGEN_BITFIELD(15, 15) ; //!< FRAMEBITRATEMINUNIT
1941 uint32_t Framebitratemax : __CODEGEN_BITFIELD(16, 29) ; //!< FrameBitRateMax
1942 uint32_t Framebitratemaxunitmode : __CODEGEN_BITFIELD(30, 30) ; //!< FRAMEBITRATEMAXUNITMODE
1943 uint32_t Framebitratemaxunit : __CODEGEN_BITFIELD(31, 31) ; //!< FRAMEBITRATEMAXUNIT_
1944 };
1945 uint32_t Value;
1946 } DW10;
1947 union
1948 {
1949 //!< DWORD 11
1950 struct
1951 {
1952 uint32_t Framebitratemindelta : __CODEGEN_BITFIELD( 0, 14) ; //!< FrameBitRateMinDelta
1953 uint32_t Reserved367 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
1954 uint32_t Framebitratemaxdelta : __CODEGEN_BITFIELD(16, 30) ; //!< FRAMEBITRATEMAXDELTA
1955 uint32_t SliceStatsStreamoutEnable : __CODEGEN_BITFIELD(31, 31) ; //!< Slice Stats Streamout Enable
1956 };
1957 uint32_t Value;
1958 } DW11;
1959 union
1960 {
1961 //!< DWORD 12
1962 struct
1963 {
1964 uint32_t Reserved384 ; //!< Reserved
1965 };
1966 uint32_t Value;
1967 } DW12;
1968 union
1969 {
1970 //!< DWORD 13
1971 struct
1972 {
1973 uint32_t InitialQpValue : __CODEGEN_BITFIELD( 0, 7) ; //!< Initial QP Value
1974 uint32_t NumberOfActiveReferencePicturesFromL0 : __CODEGEN_BITFIELD( 8, 13) ; //!< Number of Active Reference Pictures from L0
1975 uint32_t Reserved430 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
1976 uint32_t NumberOfActiveReferencePicturesFromL1 : __CODEGEN_BITFIELD(16, 21) ; //!< Number of Active Reference Pictures from L1
1977 uint32_t Reserved438 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
1978 uint32_t NumberOfReferenceFrames : __CODEGEN_BITFIELD(24, 28) ; //!< Number of Reference Frames
1979 uint32_t CurrentPictureHasPerformedMmco5 : __CODEGEN_BITFIELD(29, 29) ; //!< Current Picture Has Performed MMCO5
1980 uint32_t Reserved446 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
1981 };
1982 uint32_t Value;
1983 } DW13;
1984 union
1985 {
1986 //!< DWORD 14
1987 struct
1988 {
1989 uint32_t PicOrderPresentFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< Pic_order_present_flag
1990 uint32_t DeltaPicOrderAlwaysZeroFlag : __CODEGEN_BITFIELD( 1, 1) ; //!< Delta_pic_order_always_zero_flag
1991 uint32_t PicOrderCntType : __CODEGEN_BITFIELD( 2, 3) ; //!< Pic_order_cnt_type
1992 uint32_t Reserved452 : __CODEGEN_BITFIELD( 4, 7) ; //!< Reserved
1993 uint32_t SliceGroupMapType : __CODEGEN_BITFIELD( 8, 10) ; //!< slice_group_map_type
1994 uint32_t RedundantPicCntPresentFlag : __CODEGEN_BITFIELD(11, 11) ; //!< redundant_pic_cnt_present_flag
1995 uint32_t NumSliceGroupsMinus1 : __CODEGEN_BITFIELD(12, 14) ; //!< num_slice_groups_minus1
1996 uint32_t DeblockingFilterControlPresentFlag : __CODEGEN_BITFIELD(15, 15) ; //!< deblocking_filter_control_present_flag
1997 uint32_t Log2MaxFrameNumMinus4 : __CODEGEN_BITFIELD(16, 23) ; //!< Log2_max_frame_num_minus4
1998 uint32_t Log2MaxPicOrderCntLsbMinus4 : __CODEGEN_BITFIELD(24, 31) ; //!< Log2_max_pic_order_cnt_lsb_minus4
1999 };
2000 uint32_t Value;
2001 } DW14;
2002 union
2003 {
2004 //!< DWORD 15
2005 struct
2006 {
2007 uint32_t SliceGroupChangeRate : __CODEGEN_BITFIELD( 0, 15) ; //!< Slice Group Change Rate
2008 uint32_t CurrPicFrameNum : __CODEGEN_BITFIELD(16, 31) ; //!< Curr Pic Frame Num
2009 };
2010 uint32_t Value;
2011 } DW15;
2012 union
2013 {
2014 //!< DWORD 16
2015 struct
2016 {
2017 uint32_t CurrentFrameViewId : __CODEGEN_BITFIELD( 0, 9) ; //!< Current Frame View ID
2018 uint32_t Reserved522 : __CODEGEN_BITFIELD(10, 11) ; //!< Reserved
2019 uint32_t MaxViewIdxl0 : __CODEGEN_BITFIELD(12, 15) ; //!< Max View IDXL0
2020 uint32_t Reserved528 : __CODEGEN_BITFIELD(16, 17) ; //!< Reserved
2021 uint32_t MaxViewIdxl1 : __CODEGEN_BITFIELD(18, 21) ; //!< Max View IDXL1
2022 uint32_t Reserved534 : __CODEGEN_BITFIELD(22, 30) ; //!< Reserved
2023 uint32_t InterViewOrderDisable : __CODEGEN_BITFIELD(31, 31) ; //!< INTER_VIEW_ORDER_DISABLE
2024 };
2025 uint32_t Value;
2026 } DW16;
2027 union
2028 {
2029 //!< DWORD 17
2030 struct
2031 {
2032 uint32_t FractionalQpInput : __CODEGEN_BITFIELD( 0, 2) ; //!< Fractional QP input
2033 uint32_t FractionalQpOffset : __CODEGEN_BITFIELD( 3, 5) ; //!< Fractional QP offset
2034 uint32_t Reserved550 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
2035 uint32_t ExtendedRhodomainStatisticsEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< Extended RhoDomain Statistics Enable
2036 uint32_t Reserved553 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
2037 uint32_t RhodomainAveragemacroblockqp : __CODEGEN_BITFIELD(16, 21) ; //!< RhoDomain AverageMacroblockQP
2038 uint32_t Reserved566 : __CODEGEN_BITFIELD(22, 31) ; //!< Reserved
2039 };
2040 uint32_t Value;
2041 } DW17;
2042 union
2043 {
2044 //!< DWORD 18
2045 struct
2046 {
2047 uint32_t Reserved576 ; //!< Reserved
2048 };
2049 uint32_t Value;
2050 } DW18;
2051 union
2052 {
2053 //!< DWORD 19
2054 struct
2055 {
2056 uint32_t ThresholdSizeInBytes ; //!< Threshold Size in Bytes
2057 };
2058 uint32_t Value;
2059 } DW19;
2060 union
2061 {
2062 //!< DWORD 20
2063 struct
2064 {
2065 uint32_t TargetSliceSizeInBytes ; //!< Target Slice Size in Bytes
2066 };
2067 uint32_t Value;
2068 } DW20;
2069
2070 //! \name Local enumerations
2071
2072 enum SUBOPCODE_B
2073 {
2074 SUBOPCODE_B_UNNAMED0 = 0, //!< No additional details
2075 };
2076
2077 enum SUBOPCODE_A
2078 {
2079 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
2080 };
2081
2082 enum MEDIA_COMMAND_OPCODE
2083 {
2084 MEDIA_COMMAND_OPCODE_AVCCOMMON = 1, //!< No additional details
2085 };
2086
2087 enum PIPELINE
2088 {
2089 PIPELINE_MFXAVCIMGSTATE = 2, //!< No additional details
2090 };
2091
2092 enum COMMAND_TYPE
2093 {
2094 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2095 };
2096
2097 //! \brief IMGSTRUCT__IMAGE_STRUCTURE_IMG_STRUCTURE10
2098 //! \details
2099 //! The current encoding picture structure can only takes on 3 possible
2100 //! values
2101 enum IMGSTRUCT__IMAGE_STRUCTURE_IMG_STRUCTURE10
2102 {
2103 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_FRAMEPICTURE = 0, //!< No additional details
2104 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_TOPFIELDPICTURE = 1, //!< No additional details
2105 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_INVALID_NOTALLOWED = 2, //!< No additional details
2106 IMGSTRUCT_IMAGE_STRUCTURE_IMG_STRUCTURE10_BOTTOMFIELDPICTURE = 3, //!< No additional details
2107 };
2108
2109 //! \brief WEIGHTED_BIPRED_IDC
2110 //! \details
2111 //! (This field is defined differently from DevSNB; DevIVB follows strictly
2112 //! AVC interface.)
2113 enum WEIGHTED_BIPRED_IDC
2114 {
2115 WEIGHTED_BIPRED_IDC_DEFAULT = 0, //!< Specifies that the default weighted prediction is used for B slices
2116 WEIGHTED_BIPRED_IDC_EXPLICIT = 1, //!< Specifies that explicit weighted prediction is used for B slices
2117 WEIGHTED_BIPRED_IDC_IMPLICIT = 2, //!< Specifies that implicit weighted prediction is used for B slices.
2118 };
2119
2120 //! \brief WEIGHTED_PRED_FLAG
2121 //! \details
2122 //! (This field is defined differently from Gen6, Gen7 follows strictly
2123 //! AVC interface.)
2124 enum WEIGHTED_PRED_FLAG
2125 {
2126 WEIGHTED_PRED_FLAG_DISABLE = 0, //!< specifies that weighted prediction is not used for P and SP slices
2127 WEIGHTED_PRED_FLAG_ENABLE = 1, //!< specifies that weighted prediction is used for P and SP slices
2128 };
2129
2130 //! \brief RHODOMAIN_RATE_CONTROL_ENABLE
2131 //! \details
2132 //! This field indicates if RhoDomain related parameters are present in the
2133 //! MFX_AVC_IMAGE_STATE. (AverageMacroblockQP). It enables the Rho Domain
2134 //! statistics collection.
2135 enum RHODOMAIN_RATE_CONTROL_ENABLE
2136 {
2137 RHODOMAIN_RATE_CONTROL_ENABLE_DISABLE = 0, //!< RhoDomain rate control parameters are not present in MFX_AVC_IMAGE_STATE
2138 RHODOMAIN_RATE_CONTROL_ENABLE_ENABLE = 1, //!< RhoDomain rate control parameters are present in MFX_AVC_IMAGE_STATE.
2139 };
2140
2141 //! \brief FIELDPICFLAG
2142 //! \details
2143 //! Field picture flag, field_pic_flag, specifies the current slice is a
2144 //! coded field or not.It is set to the same value as the syntax element in
2145 //! the Slice Header. It must be consistent with the img_structure[1:0] and
2146 //! the frame_mbs_only_flag settings.Although field_pic_flag is a Slice
2147 //! Header parameter, its value is expected to be the same for all the
2148 //! slices of a picture.
2149 enum FIELDPICFLAG
2150 {
2151 FIELDPICFLAG_FRAME = 0, //!< a slice of a coded frame
2152 FIELDPICFLAG_FIELD = 1, //!< a slice of a coded field
2153 };
2154
2155 //! \brief MBAFFFLAMEFLAG
2156 //! \details
2157 //! MBAFF mode is active, mbaff_frame_flag.It is derived from MbaffFrameFlag
2158 //! = (mb_adaptive_frame_field_flag &amp;&amp; ! field_pic_flag ).
2159 //! mb_adaptive_frame_field_flag is a syntax element in the current active
2160 //! SPS and field_pic_flag is a syntax element in the current Slice Header.
2161 //! They both are present only if frame_mbs_only_flag is 0. Although
2162 //! mbaff_frame_flag is a Slice Header parameter, its value is expected to
2163 //! be the same for all the slices of a picture.It must be consistent with
2164 //! the mb_adaptive_frame_field_flag, the field_pic_flag and the
2165 //! frame_mbs_only_flag settings.This bit is valid only when the
2166 //! img_structure[1:0] indicates the current picture is a frame.
2167 enum MBAFFFLAMEFLAG
2168 {
2169 MBAFFFLAMEFLAG_FALSE = 0, //!< not in MBAFF mode
2170 MBAFFFLAMEFLAG_TRUE = 1, //!< in MBAFF mode
2171 };
2172
2173 //! \brief FRAMEMBONLYFLAG
2174 //! \details
2175 //! Frame MB only flag, frame_mbs_only_flagIt is set to the value of the
2176 //! syntax element in the current active SPS.
2177 enum FRAMEMBONLYFLAG
2178 {
2179 FRAMEMBONLYFLAG_FALSE = 0, //!< not true ; effectively enables the possibility of MBAFF mode.
2180 FRAMEMBONLYFLAG_TRUE = 1, //!< true, only frame MBs can occur in this sequence, hence disallows the MBAFF mode and field picture.
2181 };
2182
2183 //! \brief TRANSFORM8X8FLAG
2184 //! \details
2185 //! 8x8 IDCT Transform Mode Flag, trans8x8_mode_flagSpecifies 8x8 IDCT
2186 //! transform may be used in this pictureIt is set to the value of the
2187 //! syntax element in the current active PPS.
2188 enum TRANSFORM8X8FLAG
2189 {
2190 TRANSFORM8X8FLAG_4X_4 = 0, //!< no 8x8 IDCT Transform, only 4x4 IDCT transform blocks are present
2191 TRANSFORM8X8FLAG_8X8 = 1, //!< 8x8 Transform is allowed
2192 };
2193
2194 //! \brief DIRECT8X8INFFLAG
2195 //! \details
2196 //! Direct 8x8 Inference Flag, direct_8x8_inference_flagIt is set to the
2197 //! value of the syntax element in the current active SPS.It specifies the
2198 //! derivation process for luma motion vectors in the Direct MV coding modes
2199 //! (B_Skip, B_Direct_16x16 and B_Direct_8x8). When frame_mbs_only_flag is
2200 //! equal to 0, direct_8x8_inference_flag shall be equal to 1.It must be
2201 //! consistent with the frame_mbs_only_flag and transform_8x8_mode_flag
2202 //! settings.
2203 enum DIRECT8X8INFFLAG
2204 {
2205 DIRECT8X8INFFLAG_SUBBLOCK = 0, //!< allows subpartitioning to go below 8x8 block size (i.e. 4x4, 8x4 or 4x8)
2206 DIRECT8X8INFFLAG_BLOCK = 1, //!< allows processing only at 8x8 block size. MB Info is stored for 8x8 block size.
2207 };
2208
2209 //! \brief CONSTRAINEDIPREDFLAG
2210 //! \details
2211 //! Constrained Intra Prediction Flag, constrained_ipred_flagIt is set to
2212 //! the value of the syntax element in the current active PPS.
2213 enum CONSTRAINEDIPREDFLAG
2214 {
2215 CONSTRAINEDIPREDFLAG_INTRAANDINTER = 0, //!< allows both intra and inter neighboring MB to be used in the intra-prediction encoding of the current MB.
2216 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.
2217 };
2218
2219 //! \brief IMGDISPOSABLEFLAG
2220 //! \details
2221 //! Current Img Disposable Flag or Non-Reference Picture Flag
2222 enum IMGDISPOSABLEFLAG
2223 {
2224 IMGDISPOSABLEFLAG_REFERENCE = 0, //!< the current decoding picture may be used as a reference picture for others
2225 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)
2226 };
2227
2228 //! \brief ENTROPYCODINGFLAG
2229 //! \details
2230 //! Entropy Coding Flag, entropy_coding_flag
2231 enum ENTROPYCODINGFLAG
2232 {
2233 ENTROPYCODINGFLAG_CAVLCBIT_SERIALENCODINGMODE = 0, //!< Desc
2234 ENTROPYCODINGFLAG_CABACBIT_SERIALENCODINGMODE = 1, //!< Desc
2235 };
2236
2237 //! \brief MBMVFORMATFLAG
2238 //! \details
2239 //! Use MB level MvFormat flag (Encoder Only)(This bit must be set to zero
2240 //! in IVB:GT2:A0)
2241 enum MBMVFORMATFLAG
2242 {
2243 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 vectors.
2244 MBMVFORMATFLAG_FOLLOW = 1, //!< HW PAK will follow MvFormat value set within each MB data.
2245 };
2246
2247 //! \brief CHROMAFORMATIDC
2248 //! \details
2249 //! Chroma Format IDC, ChromaFormatIdc[1:0]It specifies the sampling of
2250 //! chroma component (Cb, Cr) in the current picture as follows :
2251 enum CHROMAFORMATIDC
2252 {
2253 CHROMAFORMATIDC_MONOCHROMEPICTURE = 0, //!< Desc
2254 CHROMAFORMATIDC_420PICTURE = 1, //!< Desc
2255 CHROMAFORMATIDC_422PICTURENOTSUPPORTED = 2, //!< No additional details
2256 CHROMAFORMATIDC_4_4_4PICTURENOTSUPPORTED = 3, //!< No additional details
2257 };
2258
2259 //! \brief MVUNPACKEDFLAG
2260 //! \details
2261 //! MVUnPackedEnable (Encoder Only)This field is reserved in Decode mode.
2262 enum MVUNPACKEDFLAG
2263 {
2264 MVUNPACKEDFLAG_PACKED = 0, //!< use packed MV format (compliant to )
2265 MVUNPACKEDFLAG_UNPACKED = 1, //!< use unpacked 8MV/32MV format only
2266 };
2267
2268 //! \brief LOADSLICEPOINTERFLAG
2269 //! \details
2270 //! LoadBitStreamPointerPerSlice (Encoder-only)To support multiple slice
2271 //! picture and additional header/data insertion before and after an encoded
2272 //! slice.When this field is set to 0, bitstream pointer is only loaded once
2273 //! for the first slice of a frame. For subsequent slices in the frame,
2274 //! bitstream data are stitched together to form a single output data
2275 //! stream.When this field is set to 1, bitstream pointer is loaded for each
2276 //! slice of a frame. Basically bitstream data for different slices of a
2277 //! frame will be written to different memory locations.
2278 enum LOADSLICEPOINTERFLAG
2279 {
2280 LOADSLICEPOINTERFLAG_DISABLE = 0, //!< Load BitStream Pointer only once for the first slice of a frame
2281 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
2282 };
2283
2284 //! \brief MBSTATENABLED
2285 //! \details
2286 //! <p>Enable reading in MB status buffer (a.k.a. encoding stream-out
2287 //! buffer) Note: For multi-pass encoder, all passes except the first one
2288 //! need to set this value to 1. By setting the first pass to 0, it does
2289 //! save some memory bandwidth.</p>
2290 //! <p><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif;
2291 //! line-height: normal;">In VDenc mode this must be set to zero as no MB
2292 //! level rate control is used. </span></p>
2293 enum MBSTATENABLED
2294 {
2295 MBSTATENABLED_DISABLE = 0, //!< Disable Reading of Macroblock Status Buffer
2296 MBSTATENABLED_ENABLE = 1, //!< Enable Reading of Macroblock Status Buffer
2297 };
2298
2299 //! \brief MINFRAMEWSIZE
2300 //! \details
2301 //! <p><b>Minimum Frame Size [15:0] (in Word, 16-bit)(Encoder Only)</b>
2302 //! Mininum Frame Size is specified to compensate for intel Rate
2303 //! Control Currently zero fill (no need to perform emulation byte
2304 //! insertion) is done
2305 //! only to the end of the CABAC_ZERO_WORD insertion (if any) at the
2306 //! last slice of a
2307 //! picture. Intel encoder parameter, not part of . The caller
2308 //! should always make
2309 //! sure that the value, represented by Mininum Frame Size, is always
2310 //! less than maximum
2311 //! frame size <b>FrameBitRateMax (DWORD 10 bits</b> 29:16).This field
2312 //! is reserved in
2313 //! Decode mode.</p>
2314 //! <p>The programmable range 0…2^18-1</p>
2315 //! <p>When MinFrameWSizeUnits is 00.</p>
2316 //! <p>Programmable range is 0…2^20-1 when MinFrameWSizeUnits is
2317 //! 01.</p>
2318 //! <p>Programmable range is 0…2^26-1 when MinFrameWSizeUnits is
2319 //! 10.</p>
2320 //! <p>Programmable range is 0…2^32-1 when MinFrameWSizeUnits is
2321 //! 11.</p>
2322 enum MINFRAMEWSIZE
2323 {
2324 MINFRAMEWSIZE_UNNAMED0 = 0, //!< No additional details
2325 };
2326
2327 //! \brief INTRAMBMAXBITFLAG__INTRAMBMAXSIZEREPORTMASK
2328 //! \details
2329 //! This is a mask bit controlling if the condition of any intra MB in the
2330 //! frame exceeds IntraMBMaxSize.
2331 enum INTRAMBMAXBITFLAG__INTRAMBMAXSIZEREPORTMASK
2332 {
2333 INTRAMBMAXBITFLAG_INTRAMBMAXSIZEREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2334 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.
2335 };
2336
2337 //! \brief INTERMBMAXBITFLAG__INTERMBMAXSIZEREPORTMASK
2338 //! \details
2339 //! This is a mask bit controlling if the condition of any inter MB in the
2340 //! frame exceeds InterMBMaxSize.
2341 enum INTERMBMAXBITFLAG__INTERMBMAXSIZEREPORTMASK
2342 {
2343 INTERMBMAXBITFLAG_INTERMBMAXSIZEREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2344 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.
2345 };
2346
2347 //! \brief FRAMESZOVERFLAG__FRAMEBITRATEMAXREPORTMASK
2348 //! \details
2349 //! This is a mask bit controlling if the condition of frame level bit count
2350 //! exceeds FrameBitRateMax.
2351 enum FRAMESZOVERFLAG__FRAMEBITRATEMAXREPORTMASK
2352 {
2353 FRAMESZOVERFLAG_FRAMEBITRATEMAXREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2354 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.
2355 };
2356
2357 //! \brief FRAMESZUNDERFLAG__FRAMEBITRATEMINREPORTMASK
2358 //! \details
2359 //! This is a mask bit controlling if the condition of frame level bit count
2360 //! is less than FrameBitRateMin
2361 enum FRAMESZUNDERFLAG__FRAMEBITRATEMINREPORTMASK
2362 {
2363 FRAMESZUNDERFLAG_FRAMEBITRATEMINREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
2364 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.
2365 };
2366
2367 //! \brief INTRAINTERMBIPCMFLAG__FORCEIPCMCONTROLMASK
2368 //! \details
2369 //! This field is to Force <b>IPCM</b> for Intra or Inter Macroblock size
2370 //! conformance mask.
2371 enum INTRAINTERMBIPCMFLAG__FORCEIPCMCONTROLMASK
2372 {
2373 INTRAINTERMBIPCMFLAG_FORCEIPCMCONTROLMASK_DISABLE = 0, //!< Do not change intra or Inter macroblocks even
2374 INTRAINTERMBIPCMFLAG_FORCEIPCMCONTROLMASK_ENABLE = 1, //!< Change intra or Inter macroblocks MB_type to IPCM
2375 };
2376
2377 //! \brief MBRATECTRLFLAG__MB_LEVEL_RATE_CONTROL_ENABLING_FLAG
2378 //! \details
2379 //! <p>MB Rate Control conformance mask</p>
2380 //! <p>In VDenc mode, this field must be zero as frame level rate control is
2381 //! used.</p>
2382 enum MBRATECTRLFLAG__MB_LEVEL_RATE_CONTROL_ENABLING_FLAG
2383 {
2384 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
2385 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.
2386 };
2387
2388 //! \brief MINFRAMEWSIZEUNITS
2389 //! \details
2390 //! This field is the Minimum Frame Size Units
2391 enum MINFRAMEWSIZEUNITS
2392 {
2393 MINFRAMEWSIZEUNITS_COMPATIBILITYMODE = 0, //!< Minimum Frame Size is in old mode (words, 2bytes)
2394 MINFRAMEWSIZEUNITS_16BYTE = 1, //!< Minimum Frame Size is in 16bytes
2395 MINFRAMEWSIZEUNITS_4KB = 2, //!< Minimum Frame Size is in 4Kbytes
2396 MINFRAMEWSIZEUNITS_16KB = 3, //!< Minimum Frame Size is in 16Kbytes
2397 };
2398
2399 //! \brief NONFIRSTPASSFLAG
2400 //! \details
2401 //! This signals the current pass is not the first pass. It will imply
2402 //! designate HW behavior: e.g
2403 enum NONFIRSTPASSFLAG
2404 {
2405 NONFIRSTPASSFLAG_DISABLE = 0, //!< Always use the MbQpY from initial PAK inline object for all passes of PAK
2406 NONFIRSTPASSFLAG_ENABLE = 1, //!< Use MbQpY from stream-out buffer if MbRateCtrlFlag is set to 1
2407 };
2408
2409 //! \brief TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE
2410 //! \details
2411 //! This signal is used to disable chroma TQ. To enable TQ for both luma and
2412 //! chroma, TQEnb=1, TQChromaDisable=0. To enable TQ only for luma, TQEnb=1,
2413 //! TQChromaDisable=1.
2414 enum TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE
2415 {
2416 TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE_UNNAMED0 = 0, //!< Enable Trellis Quantization chroma
2417 TRELLIS_QUANTIZATION_CHROMA_DISABLE_TQCHROMADISABLE_DEFAULT = 1, //!< Disable Trellis Quantization chroma
2418 };
2419
2420 //! \brief TRELLIS_QUANTIZATION_ROUNDING_TQR
2421 //! \details
2422 //! This rounding scheme is only applied to the quantized coefficients
2423 //! ranging from 0 to 1 when TQEnb is set to 1 in AVC CABAC mode. One of the
2424 //! following values is added to quantized coefficients before truncating
2425 //! fractional part.
2426 enum TRELLIS_QUANTIZATION_ROUNDING_TQR
2427 {
2428 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED0 = 0, //!< Add 1/8
2429 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED1 = 1, //!< Add 2/8
2430 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED2 = 2, //!< Add 3/8
2431 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED3 = 3, //!< Add 4/8 (rounding 0.5)
2432 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED_4 = 4, //!< Add 5/8
2433 TRELLIS_QUANTIZATION_ROUNDING_TQR_UNNAMED5 = 5, //!< Add 6/8
2434 TRELLIS_QUANTIZATION_ROUNDING_TQR_DEFAULT = 6, //!< Add 7/8 (Default rounding 0.875)
2435 };
2436
2437 //! \brief TRELLIS_QUANTIZATION_ENABLED_TQENB
2438 //! \details
2439 //! The TQ improves output video quality of AVC CABAC encoder by selecting
2440 //! quantized values for each non-zero coefficient so as to minimize the
2441 //! total R-D cost.This flag is only valid AVC CABAC mode. Otherwise, this
2442 //! flag should be disabled.
2443 enum TRELLIS_QUANTIZATION_ENABLED_TQENB
2444 {
2445 TRELLIS_QUANTIZATION_ENABLED_TQENB_DISABLE = 0, //!< Use Normal
2446 TRELLIS_QUANTIZATION_ENABLED_TQENB_ENABLE = 1, //!< Use Trellis quantization
2447 };
2448
2449 enum VSL_TOP_MB_TRANS8X8FLAG
2450 {
2451 VSL_TOP_MB_TRANS8X8FLAG_DISABLE = 0, //!< VSL will only fetch the current MB data.
2452 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.
2453 };
2454
2455 //! \brief BSP_ENCODER_ECO_ENABLE
2456 //! \details
2457 //! <p>Enable AVC Encoder BSP Bit Outstanding ECO</p>
2458 //! <p>This bit must be same as bit9 of Dword2 of MFX_PIPE_MODE_SELECT</p>
2459 enum BSP_ENCODER_ECO_ENABLE
2460 {
2461 BSP_ENCODER_ECO_ENABLE_DISABLE = 0, //!< No additional details
2462 BSP_ENCODER_ECO_ENABLE_ENABLE = 1, //!< No additional details
2463 };
2464
2465 //! \brief FRAMEBITRATEMINUNITMODE
2466 //! \details
2467 //! This field is the Frame Bitrate Minimum Limit Units.
2468 enum FRAMEBITRATEMINUNITMODE
2469 {
2470 FRAMEBITRATEMINUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
2471 FRAMEBITRATEMINUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
2472 };
2473
2474 //! \brief FRAMEBITRATEMINUNIT
2475 //! \details
2476 //! This field is the Frame Bitrate Minimum Limit Units.
2477 enum FRAMEBITRATEMINUNIT
2478 {
2479 FRAMEBITRATEMINUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMinUnitMode is 1 and in units of 128 Bytes if FrameBitrateMinUnitMode is 0
2480 FRAMEBITRATEMINUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
2481 };
2482
2483 //! \brief FRAMEBITRATEMAXUNITMODE
2484 //! \details
2485 //! This field is the Frame Bitrate Maximum Limit Units.
2486 enum FRAMEBITRATEMAXUNITMODE
2487 {
2488 FRAMEBITRATEMAXUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
2489 FRAMEBITRATEMAXUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
2490 };
2491
2492 //! \brief FRAMEBITRATEMAXUNIT_
2493 //! \details
2494 //! This field is the Frame Bitrate Maximum Limit Units.
2495 enum FRAMEBITRATEMAXUNIT_
2496 {
2497 FRAMEBITRATEMAXUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMaxUnitMode is 1 and in units of 128 Bytes if FrameBitrateMaxUnitMode is 0
2498 FRAMEBITRATEMAXUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
2499 };
2500
2501 //! \brief FRAMEBITRATEMAXDELTA
2502 //! \details
2503 //! This field is used to select the slice delta QP when FrameBitRateMax Is
2504 //! exceeded. It shares the same FrameBitrateMaxUnit. When
2505 //! FrameBitrateMaxUnitMode is 0(compatibility mode) bits 16:27 should be
2506 //! used, bits 28, 29 and 30 should be 0.
2507 enum FRAMEBITRATEMAXDELTA
2508 {
2509 FRAMEBITRATEMAXDELTA_UNNAMED0 = 0, //!< No additional details
2510 };
2511
2512 enum VAD_ERROR_LOGIC
2513 {
2514 VAD_ERROR_LOGIC_ENABLE = 0, //!< Error reporting ON in case of premature Slice done
2515 VAD_ERROR_LOGIC_DISABLE = 1, //!< CABAC Engine will auto decode the bitstream in case of premature slice done.
2516 };
2517
2518 //! \brief INTER_VIEW_ORDER_DISABLE
2519 //! \details
2520 //! It indicates how to append inter-view picture into initial sorted
2521 //! reference list. (due to ambiguity in the MVC Spec)
2522 enum INTER_VIEW_ORDER_DISABLE
2523 {
2524 INTER_VIEW_ORDER_DISABLE_DEFAULT = 0, //!< View Order Ascending
2525 INTER_VIEW_ORDER_DISABLE_DISABLE = 1, //!< View ID Ascending
2526 };
2527
2528 //! \name Initializations
2529
2530 //! \brief Explicit member initialization function
2531 MFX_AVC_IMG_STATE_CMD();
2532
2533 static const size_t dwSize = 21;
2534 static const size_t byteSize = 84;
2535 };
2536
2537 //!
2538 //! \brief MFX_AVC_REF_IDX_STATE
2539 //! \details
2540 //! This is a slice level command and can be issued multiple times within a
2541 //! picture that is comprised of multiple slices. The same command is used
2542 //! for AVC encoder (PAK mode) and decoder (VLD mode); it is not need in
2543 //! decoder IT mode. The inline data of this command is interpreted
2544 //! differently for encoder as for decoder. For decoder, it is interpreted
2545 //! as RefIdx List L0/L1 as in AVC spec., and it matches with the AVC
2546 //! API data structure for decoder in VLD mode : RefPicList[2][32] (L0:L1,
2547 //! 0:31 RefPic). But for encoder, it is interpreted as a Reference Index
2548 //! Mapping Table for L0 and L1 reference pictures. For packing the bits at
2549 //! the output of PAK, the syntax elements must follow the definition of
2550 //! RefIdxL0/L1 list according to the AVC spec. However, the decoder
2551 //! pipeline was designed to use a variation of that standard definition, as
2552 //! such a conversion (mapping) is needed to support the hardware design.
2553 //! The Reference lists are needed in processing both P and B slice in AVC
2554 //! codec. For P-MB, only L0 list is used; for B-MB both L0 and L1 lists are
2555 //! needed. For a B-MB that is coded in L1-only Prediction, only L1 list is
2556 //! used.
2557 //!
2558 //! specifies that an application will create the RefPicList L0 and L1
2559 //! and pass onto the driver. The content of each entry of RefPicList
2560 //! L0/L1[ ] is a 7-bit picture index. This picture index is the same as
2561 //! that of RefFrameList[ ] content. This picture index, however, is not
2562 //! defined the same as the frame store ID (0 to 16, 5-bits) we have
2563 //! implemented in H/W. Hence, driver is required to manage a table to
2564 //! convert between picture index and intel frame store ID. As such,
2565 //! the final RefPicList L0/L1[ ] that the driver passes onto the H/W is not
2566 //! the same as that defined.
2567 //!
2568 struct MFX_AVC_REF_IDX_STATE_CMD
2569 {
2570 union
2571 {
2572 //!< DWORD 0
2573 struct
2574 {
2575 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2576 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2577 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
2578 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
2579 uint32_t CommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMAND_OPCODE
2580 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2581 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2582 };
2583 uint32_t Value;
2584 } DW0;
2585 union
2586 {
2587 //!< DWORD 1
2588 struct
2589 {
2590 uint32_t RefpiclistSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< REFPICLIST_SELECT
2591 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
2592 };
2593 uint32_t Value;
2594 } DW1;
2595
2596 uint32_t ReferenceListEntry[8]; //!< Reference List Entry
2597
2598
2599 //! \name Local enumerations
2600
2601 enum SUBOPCODEB
2602 {
2603 SUBOPCODEB_MFXAVCREFIDXSTATE = 4, //!< No additional details
2604 };
2605
2606 enum SUBOPCODEA
2607 {
2608 SUBOPCODEA_MFXAVCREFIDXSTATE = 0, //!< No additional details
2609 };
2610
2611 enum COMMAND_OPCODE
2612 {
2613 COMMAND_OPCODE_AVC = 1, //!< No additional details
2614 };
2615
2616 enum PIPELINE
2617 {
2618 PIPELINE_MFXAVCREFIDXSTATE = 2, //!< No additional details
2619 };
2620
2621 enum COMMAND_TYPE
2622 {
2623 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2624 };
2625
2626 //! \brief REFPICLIST_SELECT
2627 //! \details
2628 //! <p>Num_ref_idx_l1_active is resulted from the specifications in both PPS
2629 //! and Slice Header for the current slice. However, since the full
2630 //! reference list L0 and/or L1 are always sent, only present flags are
2631 //! specified instead.</p>
2632 //! <p>This parameter is specified for Intel interface only, not
2633 //! present in the .</p>
2634 enum REFPICLIST_SELECT
2635 {
2636 REFPICLIST_SELECT_REFPICLIST0 = 0, //!< The list that followed represents RefList L0 (Decoder VLD mode) or Ref Idx Mapping Table L0 (Encoder PAK mode)
2637 REFPICLIST_SELECT_REFPICLIST1 = 1, //!< The list that followed represents RefList L1 (Decoder VLD mode) or Ref Idx Mapping Table L1 (Encoder PAK mode)
2638 };
2639
2640 //! \name Initializations
2641
2642 //! \brief Explicit member initialization function
2643 MFX_AVC_REF_IDX_STATE_CMD();
2644
2645 static const size_t dwSize = 10;
2646 static const size_t byteSize = 40;
2647 };
2648
2649 //!
2650 //! \brief MFX_AVC_WEIGHTOFFSET_STATE
2651 //! \details
2652 //! This is a slice level command and can be issued multiple times within a
2653 //! picture that is comprised of multiple slices. The same command is used
2654 //! for AVC encoder (PAK mode) and decoder (VLD and IT modes). However,
2655 //! since for AVC decoder VLD and IT modes, and AVC encoder mode, the
2656 //! implicit weights are computed in hardware, this command is not issued.
2657 //! For encoder, regardless of the type of weight calculation is active for
2658 //! the current slice (default, implicit or explicit), they are all sent to
2659 //! the PAK as if they were all in explicit mode. However, for implicit
2660 //! weight and offset, each entry contains only a 16-bit weight and no
2661 //! offset (offset = 0 always in implicit mode and can be hard-coded inside
2662 //! the hardware).The weights (and offsets) are needed in processing both P
2663 //! and B slice in AVC codec. For P-MB, at most only L0 list is used; for
2664 //! B-MB both L0 and L1 lists may be needed. For a B-MB that is coded in
2665 //! L1-only Prediction, only L1 list is sent.The content of this command
2666 //! matches with the AVC API data structure for explicit prediction
2667 //! mode only : Weights[2][32][3][2] (L0:L1, 0:31 RefPic, Y:Cb:Cr, W:0)
2668 //!
2669 struct MFX_AVC_WEIGHTOFFSET_STATE_CMD
2670 {
2671 union
2672 {
2673 //!< DWORD 0
2674 struct
2675 {
2676 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2677 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2678 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
2679 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
2680 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
2681 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2682 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2683 };
2684 uint32_t Value;
2685 } DW0;
2686 union
2687 {
2688 //!< DWORD 1
2689 struct
2690 {
2691 uint32_t WeightAndOffsetSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< WEIGHT_AND_OFFSET_SELECT
2692 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
2693 };
2694 uint32_t Value;
2695 } DW1;
2696
2697 uint32_t Weightoffset[96]; //!< WeightOffset
2698
2699
2700 //! \name Local enumerations
2701
2702 enum SUBOPCODE_B
2703 {
2704 SUBOPCODE_B_UNNAMED5 = 5, //!< No additional details
2705 };
2706
2707 enum SUBOPCODE_A
2708 {
2709 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
2710 };
2711
2712 enum MEDIA_COMMAND_OPCODE
2713 {
2714 MEDIA_COMMAND_OPCODE_AVCCOMMON = 1, //!< No additional details
2715 };
2716
2717 enum PIPELINE
2718 {
2719 PIPELINE_MFXAVCWEIGHTOFFSETSTATE = 2, //!< No additional details
2720 };
2721
2722 enum COMMAND_TYPE
2723 {
2724 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2725 };
2726
2727 //! \brief WEIGHT_AND_OFFSET_SELECT
2728 //! \details
2729 //! It must be set in consistent with the WeightedPredFlag and
2730 //! WeightedBiPredIdc in the Img_State command.
2731 //! This parameter is specified for Intel interface only, not present
2732 //! in the .
2733 //! For implicit even though only one entry may be used, still loading
2734 //! the whole 32-entry table.
2735 enum WEIGHT_AND_OFFSET_SELECT
2736 {
2737 WEIGHT_AND_OFFSET_SELECT_WEIGHTANDOFFSETL0TABLE = 0, //!< The list that followed is associated with the weight and offset for RefPicList L0
2738 WEIGHT_AND_OFFSET_SELECT_WEIGHTANDOFFSETL1TABLE = 1, //!< The list that followed is associated with the weight and offset for RefPicList L1
2739 };
2740
2741 //! \name Initializations
2742
2743 //! \brief Explicit member initialization function
2744 MFX_AVC_WEIGHTOFFSET_STATE_CMD();
2745
2746 static const size_t dwSize = 98;
2747 static const size_t byteSize = 392;
2748 };
2749
2750 //!
2751 //! \brief MFX_AVC_SLICE_STATE
2752 //! \details
2753 //! This is a slice level command and can be issued multiple times within a
2754 //! picture that is comprised of multiple slices. The same command is used
2755 //! for AVC encoder (PAK mode) and decoder (VLD and IT modes).
2756 //!
2757 //! In VDEnc mode, this command is programmed for every super-slice. However
2758 //! not all parameters are allowed to change across super-slices.
2759 //!
2760 //! MFX_AVC_SLICE_STATE command is not issued for AVC Short Format
2761 //! Bitstream decode, instead MFD_AVC_SLICEADDR command is executed to
2762 //! retrieve the next slice MB Start Address X and Y by H/W itself.
2763 //!
2764 struct MFX_AVC_SLICE_STATE_CMD
2765 {
2766 union
2767 {
2768 //!< DWORD 0
2769 struct
2770 {
2771 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
2772 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2773 uint32_t CommandSubopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< COMMAND_SUBOPCODEB
2774 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
2775 uint32_t CommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMAND_OPCODE
2776 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
2777 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
2778 };
2779 uint32_t Value;
2780 } DW0;
2781 union
2782 {
2783 //!< DWORD 1
2784 struct
2785 {
2786 uint32_t SliceType : __CODEGEN_BITFIELD( 0, 3) ; //!< SLICE_TYPE
2787 uint32_t Reserved36 : __CODEGEN_BITFIELD( 4, 31) ; //!< Reserved
2788 };
2789 uint32_t Value;
2790 } DW1;
2791 union
2792 {
2793 //!< DWORD 2
2794 struct
2795 {
2796 uint32_t Log2WeightDenomLuma : __CODEGEN_BITFIELD( 0, 2) ; //!< Log 2 Weight Denom Luma
2797 uint32_t Reserved67 : __CODEGEN_BITFIELD( 3, 7) ; //!< Reserved
2798 uint32_t Log2WeightDenomChroma : __CODEGEN_BITFIELD( 8, 10) ; //!< Log 2 Weight Denom Chroma
2799 uint32_t Reserved75 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved
2800 uint32_t NumberOfReferencePicturesInInterPredictionList0 : __CODEGEN_BITFIELD(16, 21) ; //!< Number of Reference Pictures in Inter-prediction List 0
2801 uint32_t Reserved86 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
2802 uint32_t NumberOfReferencePicturesInInterPredictionList1 : __CODEGEN_BITFIELD(24, 29) ; //!< Number of Reference Pictures in Inter-prediction List 1
2803 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
2804 };
2805 uint32_t Value;
2806 } DW2;
2807 union
2808 {
2809 //!< DWORD 3
2810 struct
2811 {
2812 uint32_t SliceAlphaC0OffsetDiv2 : __CODEGEN_BITFIELD( 0, 3) ; //!< Slice Alpha C0 Offset Div2
2813 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 7) ; //!< Reserved
2814 uint32_t SliceBetaOffsetDiv2 : __CODEGEN_BITFIELD( 8, 11) ; //!< Slice Beta Offset Div2
2815 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
2816 uint32_t SliceQuantizationParameter : __CODEGEN_BITFIELD(16, 21) ; //!< Slice Quantization Parameter
2817 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
2818 uint32_t CabacInitIdc10 : __CODEGEN_BITFIELD(24, 25) ; //!< Cabac Init Idc[1:0]
2819 uint32_t Reserved122 : __CODEGEN_BITFIELD(26, 26) ; //!< Reserved
2820 uint32_t DisableDeblockingFilterIndicator : __CODEGEN_BITFIELD(27, 28) ; //!< DISABLE_DEBLOCKING_FILTER_INDICATOR
2821 uint32_t DirectPredictionType : __CODEGEN_BITFIELD(29, 29) ; //!< DIRECT_PREDICTION_TYPE
2822 uint32_t WeightedPredictionIndicator : __CODEGEN_BITFIELD(30, 31) ; //!< Weighted Prediction Indicator
2823 };
2824 uint32_t Value;
2825 } DW3;
2826 union
2827 {
2828 //!< DWORD 4
2829 struct
2830 {
2831 uint32_t SliceStartMbNum : __CODEGEN_BITFIELD( 0, 14) ; //!< Slice Start Mb Num
2832 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
2833 uint32_t SliceHorizontalPosition : __CODEGEN_BITFIELD(16, 23) ; //!< Slice Horizontal Position
2834 uint32_t SliceVerticalPosition : __CODEGEN_BITFIELD(24, 31) ; //!< Slice Vertical Position
2835 };
2836 uint32_t Value;
2837 } DW4;
2838 union
2839 {
2840 //!< DWORD 5
2841 struct
2842 {
2843 uint32_t NextSliceHorizontalPosition : __CODEGEN_BITFIELD( 0, 8) ; //!< Next Slice Horizontal Position
2844 uint32_t Reserved168 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
2845 uint32_t NextSliceVerticalPosition : __CODEGEN_BITFIELD(16, 24) ; //!< Next Slice Vertical Position
2846 uint32_t Reserved184 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
2847 };
2848 uint32_t Value;
2849 } DW5;
2850 union
2851 {
2852 //!< DWORD 6
2853 struct
2854 {
2855 uint32_t StreamId10 : __CODEGEN_BITFIELD( 0, 1) ; //!< Stream ID [1:0]
2856 uint32_t Reserved194 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
2857 uint32_t SliceId30 : __CODEGEN_BITFIELD( 4, 7) ; //!< Slice ID [3:0]
2858 uint32_t Reserved200 : __CODEGEN_BITFIELD( 8, 11) ; //!< Reserved
2859 uint32_t Cabaczerowordinsertionenable : __CODEGEN_BITFIELD(12, 12) ; //!< CABACZEROWORDINSERTIONENABLE
2860 uint32_t Emulationbytesliceinsertenable : __CODEGEN_BITFIELD(13, 13) ; //!< EMULATIONBYTESLICEINSERTENABLE
2861 uint32_t Reserved206 : __CODEGEN_BITFIELD(14, 14) ; //!< Reserved
2862 uint32_t TailInsertionPresentInBitstream : __CODEGEN_BITFIELD(15, 15) ; //!< TAIL_INSERTION_PRESENT_IN_BITSTREAM
2863 uint32_t SlicedataInsertionPresentInBitstream : __CODEGEN_BITFIELD(16, 16) ; //!< SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM
2864 uint32_t HeaderInsertionPresentInBitstream : __CODEGEN_BITFIELD(17, 17) ; //!< HEADER_INSERTION_PRESENT_IN_BITSTREAM
2865 uint32_t Reserved210 : __CODEGEN_BITFIELD(18, 18) ; //!< Reserved
2866 uint32_t IsLastSlice : __CODEGEN_BITFIELD(19, 19) ; //!< IS_LAST_SLICE
2867 uint32_t MbTypeSkipConversionDisable : __CODEGEN_BITFIELD(20, 20) ; //!< MB_TYPE_SKIP_CONVERSION_DISABLE
2868 uint32_t MbTypeDirectConversionDisable : __CODEGEN_BITFIELD(21, 21) ; //!< MB_TYPE_DIRECT_CONVERSION_DISABLE
2869 uint32_t RcPanicType : __CODEGEN_BITFIELD(22, 22) ; //!< RC_PANIC_TYPE
2870 uint32_t RcPanicEnable : __CODEGEN_BITFIELD(23, 23) ; //!< RC_PANIC_ENABLE
2871 uint32_t RcStableTolerance : __CODEGEN_BITFIELD(24, 27) ; //!< RC Stable Tolerance
2872 uint32_t RcTriggleMode : __CODEGEN_BITFIELD(28, 29) ; //!< RC_TRIGGLE_MODE
2873 uint32_t Resetratecontrolcounter : __CODEGEN_BITFIELD(30, 30) ; //!< RESETRATECONTROLCOUNTER
2874 uint32_t RateControlCounterEnable : __CODEGEN_BITFIELD(31, 31) ; //!< RATE_CONTROL_COUNTER_ENABLE
2875 };
2876 uint32_t Value;
2877 } DW6;
2878 union
2879 {
2880 //!< DWORD 7
2881 struct
2882 {
2883 uint32_t IndirectPakBseDataStartAddressWrite : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect PAK-BSE Data Start Address (Write)
2884 uint32_t Reserved253 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
2885 };
2886 uint32_t Value;
2887 } DW7;
2888 union
2889 {
2890 //!< DWORD 8
2891 struct
2892 {
2893 uint32_t GrowParamGrowInit : __CODEGEN_BITFIELD( 0, 3) ; //!< Grow Param - Grow Init
2894 uint32_t GrowParamGrowResistance : __CODEGEN_BITFIELD( 4, 7) ; //!< Grow Param - Grow Resistance
2895 uint32_t ShrinkParamShrinkInit : __CODEGEN_BITFIELD( 8, 11) ; //!< Shrink Param - Shrink Init
2896 uint32_t ShrinkParamShrinkResistance : __CODEGEN_BITFIELD(12, 15) ; //!< Shrink Param - Shrink Resistance
2897 uint32_t MagnitudeOfQpMaxPositiveModifier : __CODEGEN_BITFIELD(16, 23) ; //!< Magnitude of QP Max Positive Modifier
2898 uint32_t MagnitudeOfQpMaxNegativeModifier : __CODEGEN_BITFIELD(24, 31) ; //!< Magnitude of QP Max Negative Modifier
2899 };
2900 uint32_t Value;
2901 } DW8;
2902 union
2903 {
2904 //!< DWORD 9
2905 struct
2906 {
2907 uint32_t Correct1 : __CODEGEN_BITFIELD( 0, 3) ; //!< Correct 1
2908 uint32_t Correct2 : __CODEGEN_BITFIELD( 4, 7) ; //!< Correct 2
2909 uint32_t Correct3 : __CODEGEN_BITFIELD( 8, 11) ; //!< Correct 3
2910 uint32_t Correct4 : __CODEGEN_BITFIELD(12, 15) ; //!< Correct 4
2911 uint32_t Correct5 : __CODEGEN_BITFIELD(16, 19) ; //!< Correct 5
2912 uint32_t Correct6 : __CODEGEN_BITFIELD(20, 23) ; //!< Correct 6
2913 uint32_t Roundintra : __CODEGEN_BITFIELD(24, 26) ; //!< ROUNDINTRA
2914 uint32_t Roundintraenable : __CODEGEN_BITFIELD(27, 27) ; //!< RoundIntraEnable
2915 uint32_t Roundinter : __CODEGEN_BITFIELD(28, 30) ; //!< ROUNDINTER
2916 uint32_t Roundinterenable : __CODEGEN_BITFIELD(31, 31) ; //!< RoundInterEnable
2917 };
2918 uint32_t Value;
2919 } DW9;
2920 union
2921 {
2922 //!< DWORD 10
2923 struct
2924 {
2925 uint32_t Cv0ClampValue0 : __CODEGEN_BITFIELD( 0, 3) ; //!< CV0 - Clamp Value 0
2926 uint32_t Cv1 : __CODEGEN_BITFIELD( 4, 7) ; //!< CV1
2927 uint32_t Cv2 : __CODEGEN_BITFIELD( 8, 11) ; //!< CV2
2928 uint32_t Cv3 : __CODEGEN_BITFIELD(12, 15) ; //!< CV3
2929 uint32_t Cv4 : __CODEGEN_BITFIELD(16, 19) ; //!< CV4
2930 uint32_t Cv5 : __CODEGEN_BITFIELD(20, 23) ; //!< CV5
2931 uint32_t Cv6 : __CODEGEN_BITFIELD(24, 27) ; //!< CV6
2932 uint32_t ClampvaluesCv7 : __CODEGEN_BITFIELD(28, 31) ; //!< ClampValues - CV7
2933 };
2934 uint32_t Value;
2935 } DW10;
2936
2937 //! \name Local enumerations
2938
2939 enum COMMAND_SUBOPCODEB
2940 {
2941 COMMAND_SUBOPCODEB_MFXAVCSLICESTATE = 3, //!< No additional details
2942 };
2943
2944 enum SUBOPCODEA
2945 {
2946 SUBOPCODEA_MFXAVCSLICESTATE = 0, //!< No additional details
2947 };
2948
2949 enum COMMAND_OPCODE
2950 {
2951 COMMAND_OPCODE_AVC = 1, //!< No additional details
2952 };
2953
2954 enum PIPELINE
2955 {
2956 PIPELINE_MFXAVCSLICESTATE = 2, //!< No additional details
2957 };
2958
2959 enum COMMAND_TYPE
2960 {
2961 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
2962 };
2963
2964 //! \brief SLICE_TYPE
2965 //! \details
2966 //! It is set to the value of the syntax element read from the Slice Header.
2967 enum SLICE_TYPE
2968 {
2969 SLICE_TYPE_PSLICE = 0, //!< No additional details
2970 SLICE_TYPE_BSLICE = 1, //!< No additional details
2971 SLICE_TYPE_ISLICE = 2, //!< No additional details
2972 };
2973
2974 enum DISABLE_DEBLOCKING_FILTER_INDICATOR
2975 {
2976 DISABLE_DEBLOCKING_FILTER_INDICATOR_UNNAMED0 = 0, //!< FilterInternalEdgesFlag is set equal to 1
2977 DISABLE_DEBLOCKING_FILTER_INDICATOR_UNNAMED1 = 1, //!< Disable all deblocking operation, no deblocking parameter syntax element is read; filterInternalEdgesFlag is set equal to 0
2978 DISABLE_DEBLOCKING_FILTER_INDICATOR_UNNAMED2 = 2, //!< Macroblocks in different slices are considered not available; filterInternalEdgesFlag is set equal to 1
2979 };
2980
2981 //! \brief DIRECT_PREDICTION_TYPE
2982 //! \details
2983 //! Type of direct prediction used for B Slices. This field is valid only
2984 //! for Slice_Type = B Slice; otherwise, it must be set to 0.
2985 enum DIRECT_PREDICTION_TYPE
2986 {
2987 DIRECT_PREDICTION_TYPE_TEMPORAL = 0, //!< No additional details
2988 DIRECT_PREDICTION_TYPE_SPATIAL = 1, //!< No additional details
2989 };
2990
2991 //! \brief CABACZEROWORDINSERTIONENABLE
2992 //! \details
2993 //! To pad the end of a SliceLayer RBSP to meet the encoded size
2994 //! requirement.
2995 enum CABACZEROWORDINSERTIONENABLE
2996 {
2997 CABACZEROWORDINSERTIONENABLE_UNNAMED0 = 0, //!< No Cabac_Zero_Word Insertion
2998 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.
2999 };
3000
3001 //! \brief EMULATIONBYTESLICEINSERTENABLE
3002 //! \details
3003 //! To have PAK outputting SODB or EBSP to the output bitstream buffer
3004 enum EMULATIONBYTESLICEINSERTENABLE
3005 {
3006 EMULATIONBYTESLICEINSERTENABLE_UNNAMED0 = 0, //!< outputting RBSP
3007 EMULATIONBYTESLICEINSERTENABLE_UNNAMED1 = 1, //!< outputting EBSP
3008 };
3009
3010 //! \brief TAIL_INSERTION_PRESENT_IN_BITSTREAM
3011 //! \details
3012 //! <p>This bit should only be set for the last super slice.</p>
3013 //! <p><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif;
3014 //! line-height: normal;">SKL Restriction: In VDENC mode, SW should insert
3015 //! 1000 </span><b style="color: rgb(0, 0, 0); font-family: Arial,
3016 //! sans-serif; line-height: normal;">VD_PIPELINE_FLUSH commands with
3017 //! VDENC_pipeline_Done set to 1 before inserting tail command. This is for
3018 //! delaying the tail insertion in HW. The HW recommendation is to insert
3019 //! tail only at the end of sequence to avoid performance loss since this
3020 //! restriction potentially cause performance degradation.</b></p>
3021 enum TAIL_INSERTION_PRESENT_IN_BITSTREAM
3022 {
3023 TAIL_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED0 = 0, //!< No tail insertion into the output bitstream buffer, after the current slice encoded bits
3024 TAIL_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED1 = 1, //!< Tail insertion into the output bitstream buffer is present, and is after the current slice encoded bits.
3025 };
3026
3027 //! \brief SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM
3028 //! \details
3029 //! <p>This bit should be set for all super-slices.</p>
3030 enum SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM
3031 {
3032 SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED0 = 0, //!< No Slice Data insertion into the output bitstream buffer
3033 SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED1 = 1, //!< Slice Data insertion into the output bitstream buffer is present.
3034 };
3035
3036 //! \brief HEADER_INSERTION_PRESENT_IN_BITSTREAM
3037 //! \details
3038 //! Note: In VDEnc mode, the slice header PAK object maximum size is 25 DWs.
3039 enum HEADER_INSERTION_PRESENT_IN_BITSTREAM
3040 {
3041 HEADER_INSERTION_PRESENT_IN_BITSTREAM_UNNAMED0 = 0, //!< No header insertion into the output bitstream buffer, in front of the current slice encoded bits.
3042 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.
3043 };
3044
3045 //! \brief IS_LAST_SLICE
3046 //! \details
3047 //! It is used by the zero filling in the Minimum Frame Size test.
3048 enum IS_LAST_SLICE
3049 {
3050 IS_LAST_SLICE_UNNAMED0 = 0, //!< Current slice is NOT the last slice of a picture
3051 IS_LAST_SLICE_UNNAMED1 = 1, //!< Current slice is the last slice of a picture
3052 };
3053
3054 //! \brief MB_TYPE_SKIP_CONVERSION_DISABLE
3055 //! \details
3056 //! For all Macroblock type conversions in different slices, refer to
3057 //! Section "Macroblock Type Conversion Rules" in the same volume.
3058 enum MB_TYPE_SKIP_CONVERSION_DISABLE
3059 {
3060 MB_TYPE_SKIP_CONVERSION_DISABLE_ENABLESKIPTYPECONVERSION = 0, //!< No additional details
3061 MB_TYPE_SKIP_CONVERSION_DISABLE_DISABLESKIPTYPECONVERSION = 1, //!< No additional details
3062 };
3063
3064 //! \brief MB_TYPE_DIRECT_CONVERSION_DISABLE
3065 //! \details
3066 //! For all Macroblock type conversions in different slices, refer to
3067 //! Section "Macroblock Type Conversion Rules" in the same volume.
3068 enum MB_TYPE_DIRECT_CONVERSION_DISABLE
3069 {
3070 MB_TYPE_DIRECT_CONVERSION_DISABLE_ENABLEDIRECTMODECONVERSION = 0, //!< No additional details
3071 MB_TYPE_DIRECT_CONVERSION_DISABLE_DISABLEDIRECTMODECONVERSION = 1, //!< No additional details
3072 };
3073
3074 //! \brief RC_PANIC_TYPE
3075 //! \details
3076 //! This field selects between two RC Panic methods
3077 enum RC_PANIC_TYPE
3078 {
3079 RC_PANIC_TYPE_QPPANIC = 0, //!< No additional details
3080 RC_PANIC_TYPE_CBPPANIC = 1, //!< No additional details
3081 };
3082
3083 //! \brief RC_PANIC_ENABLE
3084 //! \details
3085 //! If this field is set to 1, RC enters panic mode when sum_act &gt;
3086 //! sum_max. RC Panic Type field controls what type of panic behavior is
3087 //! invoked.
3088 enum RC_PANIC_ENABLE
3089 {
3090 RC_PANIC_ENABLE_DISABLE = 0, //!< No additional details
3091 RC_PANIC_ENABLE_ENABLE = 1, //!< No additional details
3092 };
3093
3094 enum RC_TRIGGLE_MODE
3095 {
3096 RC_TRIGGLE_MODE_ALWAYSRATECONTROL = 0, //!< Whereas RC becomes active if sum_act > sum_target or sum_act < sum_target
3097 RC_TRIGGLE_MODE_GENTLERATECONTROL = 1, //!< whereas RC becomes active if sum_act > upper_midpt or sum_act < lower_midpt
3098 RC_TRIGGLE_MODE_LOOSERATECONTROL = 2, //!< whereas RC becomes active if sum_act > sum_max or sum_act < sum_min
3099 };
3100
3101 //! \brief RESETRATECONTROLCOUNTER
3102 //! \details
3103 //! To reset the bit allocation accumulation counter to 0 to restart the
3104 //! rate control.
3105 enum RESETRATECONTROLCOUNTER
3106 {
3107 RESETRATECONTROLCOUNTER_NOTRESET = 0, //!< No additional details
3108 RESETRATECONTROLCOUNTER_RESET = 1, //!< No additional details
3109 };
3110
3111 //! \brief RATE_CONTROL_COUNTER_ENABLE
3112 //! \details
3113 //! To enable the accumulation of bit allocation for rate control
3114 //! This field enables hardware Rate Control logic. The rest of the RC
3115 //! control fields are only valid when this field is set to 1. Otherwise,
3116 //! hardware ignores these fields.
3117 enum RATE_CONTROL_COUNTER_ENABLE
3118 {
3119 RATE_CONTROL_COUNTER_ENABLE_DISABLE = 0, //!< No additional details
3120 RATE_CONTROL_COUNTER_ENABLE_ENABLE = 1, //!< No additional details
3121 };
3122
3123 //! \brief ROUNDINTRA
3124 //! \details
3125 //! Rounding precision for Intra quantized coefficients
3126 enum ROUNDINTRA
3127 {
3128 ROUNDINTRA_116 = 0, //!< No additional details
3129 ROUNDINTRA_216 = 1, //!< No additional details
3130 ROUNDINTRA_316 = 2, //!< No additional details
3131 ROUNDINTRA_416 = 3, //!< No additional details
3132 ROUNDINTRA_516 = 4, //!< No additional details
3133 ROUNDINTRA_616 = 5, //!< No additional details
3134 ROUNDINTRA_716 = 6, //!< No additional details
3135 ROUNDINTRA_816 = 7, //!< No additional details
3136 };
3137
3138 //! \brief ROUNDINTER
3139 //! \details
3140 //! Rounding precision for Inter quantized coefficients
3141 enum ROUNDINTER
3142 {
3143 ROUNDINTER_116 = 0, //!< No additional details
3144 ROUNDINTER_216 = 1, //!< No additional details
3145 ROUNDINTER_316 = 2, //!< No additional details
3146 ROUNDINTER_416 = 3, //!< No additional details
3147 ROUNDINTER_516 = 4, //!< No additional details
3148 ROUNDINTER_616 = 5, //!< No additional details
3149 ROUNDINTER_716 = 6, //!< No additional details
3150 ROUNDINTER_816 = 7, //!< No additional details
3151 };
3152
3153 //! \name Initializations
3154
3155 //! \brief Explicit member initialization function
3156 MFX_AVC_SLICE_STATE_CMD();
3157
3158 static const size_t dwSize = 11;
3159 static const size_t byteSize = 44;
3160 };
3161
3162 //!
3163 //! \brief MFD_AVC_DPB_STATE
3164 //! \details
3165 //! This is a frame level state command used only in AVC Short Slice
3166 //! Bitstream Format VLD mode. RefFrameList[16] of interface is
3167 //! replaced with intel Reference Picture Addresses[16] of
3168 //! MFX_PIPE_BUF_ADDR_STATE command. The LongTerm Picture flag indicator of
3169 //! all reference pictures are collected into LongTermPic_Flag[16].
3170 //! FieldOrderCntList[16][2] and CurrFieldOrderCnt[2] of interface are
3171 //! replaced with intel POCList[34] of MFX_AVC_DIRECTMODE_STATE command.
3172 //!
3173 struct MFD_AVC_DPB_STATE_CMD
3174 {
3175 union
3176 {
3177 //!< DWORD 0
3178 struct
3179 {
3180 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3181 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3182 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3183 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3184 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3185 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3186 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3187 };
3188 uint32_t Value;
3189 } DW0;
3190 union
3191 {
3192 //!< DWORD 1
3193 struct
3194 {
3195 uint32_t NonExistingframeFlag161Bit : __CODEGEN_BITFIELD( 0, 15) ; //!< NON_EXISTINGFRAME_FLAG161_BIT
3196 uint32_t LongtermframeFlag161Bit : __CODEGEN_BITFIELD(16, 31) ; //!< LONGTERMFRAME_FLAG161_BIT
3197 };
3198 uint32_t Value;
3199 } DW1;
3200 union
3201 {
3202 //!< DWORD 2
3203 struct
3204 {
3205 uint32_t UsedforreferenceFlag162Bits ; //!< USEDFORREFERENCE_FLAG162_BITS
3206 };
3207 uint32_t Value;
3208 } DW2;
3209
3210 uint32_t Ltstframenumlist1616Bits[8]; //!< LTSTFRAMENUMLIST1616_BITS
3211
3212
3213 uint32_t Viewidlist1616Bits[8]; //!< ViewIDList[16][16 bits]
3214
3215
3216 uint32_t Vieworderlistl0168Bits[4]; //!< ViewOrderListL0[16][8 bits]
3217
3218
3219 uint32_t Vieworderlistl1168Bits[4]; //!< ViewOrderListL1[16][8 bits]
3220
3221
3222 //! \name Local enumerations
3223
3224 enum SUBOPCODE_B
3225 {
3226 SUBOPCODE_B_UNNAMED6 = 6, //!< No additional details
3227 };
3228
3229 enum SUBOPCODE_A
3230 {
3231 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
3232 };
3233
3234 enum MEDIA_COMMAND_OPCODE
3235 {
3236 MEDIA_COMMAND_OPCODE_AVCDEC = 1, //!< No additional details
3237 };
3238
3239 enum PIPELINE
3240 {
3241 PIPELINE_MFXMULTIDW = 2, //!< No additional details
3242 };
3243
3244 enum COMMAND_TYPE
3245 {
3246 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3247 };
3248
3249 //! \brief NON_EXISTINGFRAME_FLAG161_BIT
3250 //! \details
3251 //! One-to-one correspondence with the entries of the Intel
3252 //! RefFrameList[16]. 1 bit per reference frame.
3253 enum NON_EXISTINGFRAME_FLAG161_BIT
3254 {
3255 NON_EXISTINGFRAME_FLAG161_BIT_VALID = 0, //!< the reference picture in that entry of RefFrameList[] is a valid reference
3256 NON_EXISTINGFRAME_FLAG161_BIT_INVALID = 1, //!< the reference picture in that entry of RefFrameList[] does not exist anymore.
3257 };
3258
3259 //! \brief LONGTERMFRAME_FLAG161_BIT
3260 //! \details
3261 //! One-to-one correspondence with the entries of the Intel
3262 //! RefFrameList[16]. 1 bit per reference frame.
3263 enum LONGTERMFRAME_FLAG161_BIT
3264 {
3265 LONGTERMFRAME_FLAG161_BIT_THEPICTUREISASHORTTERMREFERENCEPICTURE = 0, //!< No additional details
3266 LONGTERMFRAME_FLAG161_BIT_THEPICTUREISALONGTERMREFERENCEPICTURE = 1, //!< No additional details
3267 };
3268
3269 //! \brief USEDFORREFERENCE_FLAG162_BITS
3270 //! \details
3271 //! One-to-one correspondence with the entries of the Intel
3272 //! RefFrameList[16]. 2 bits per reference frame.
3273 enum USEDFORREFERENCE_FLAG162_BITS
3274 {
3275 USEDFORREFERENCE_FLAG162_BITS_NOTREFERENCE = 0, //!< indicates a frame is "not used for reference".
3276 USEDFORREFERENCE_FLAG162_BITS_TOPFIELD = 1, //!< bit[0] indicates that the top field of a frame is marked as "used for reference".
3277 USEDFORREFERENCE_FLAG162_BITS_BOTTOMFIELD = 2, //!< bit[1] indicates that the bottom field of a frame is marked as "used for reference".
3278 USEDFORREFERENCE_FLAG162_BITS_FRAME = 3, //!< bit[1:0] indicates that a frame (or field pair) is marked as "used for reference".
3279 };
3280
3281 //! \brief LTSTFRAMENUMLIST1616_BITS
3282 //! \details
3283 //! One-to-one correspondence with the entries of the Intel
3284 //! RefFrameList[16]. 16 bits per reference frame.Depending on the
3285 //! corresponding LongTermFrame_Flag[], the content of this field is
3286 //! interpreted differently.
3287 enum LTSTFRAMENUMLIST1616_BITS
3288 {
3289 LTSTFRAMENUMLIST1616_BITS_SHORTTERMFRAMEFLAGI = 0, //!< LTSTFrameNumList[i]represent Short Term Picture FrameNum.
3290 LTSTFRAMENUMLIST1616_BITS_LONGTERMFRAMEFLAGI = 1, //!< LTSTFrameNumList[i] represent LongTermFrameIdx.
3291 };
3292
3293 //! \name Initializations
3294
3295 //! \brief Explicit member initialization function
3296 MFD_AVC_DPB_STATE_CMD();
3297
3298 static const size_t dwSize = 27;
3299 static const size_t byteSize = 108;
3300 };
3301
3302 //!
3303 //! \brief MFD_AVC_SLICEADDR
3304 //! \details
3305 //! This is a Slice level command used only for AVC Short Slice
3306 //! Bitstream Format VLD mode.When decoding a slice, H/W needs to know the
3307 //! last MB of the slice has reached in order to start decoding the next
3308 //! slice. It also needs to know if a slice is terminated but the last MB
3309 //! has not reached, error conealment should be invoked to generate those
3310 //! missing MBs. For AVC Short Format, the only way to know the last
3311 //! MB position of the current slice, H/W needs to snoop into the next
3312 //! slice's start MB address (a linear address encoded in the Slice Header).
3313 //! Since each BSD Object command can have only one indirect bitstream
3314 //! buffer address, this command is added to help H/W to snoop into the next
3315 //! slice's slice header and retrieve its Start MB Address. This command
3316 //! will take the next slice's bitstream buffer address as input (exactly
3317 //! the same way as a BSD Object command), and parse only the
3318 //! first_mb_in_slice syntax element. The result will stored inside the H/W,
3319 //! and will be used to decode the current slice specified in the BSD Object
3320 //! command.Only the very first few bytes (max 5 bytes for a max 4K picture)
3321 //! of the Slice Header will be decoded, the rest of the bitstream are don't
3322 //! care. This is because the first_mb_in_slice is encoded in Exponential
3323 //! Golomb, and will take 33 bits to represent the max 256 x 256 = 64K-1
3324 //! value. The indirect data of MFD_AVC_SLICEADDR is a valid BSD object and
3325 //! is decoded as in BSD OBJECT command.The next Slice Start MB Address is
3326 //! also exposed to the MMIO interface.The Slice Start MB Address
3327 //! (first_mb_in_slice) is a linear MB address count; but it is translated
3328 //! into the corresponding 2D MB X and Y raster position, and are stored
3329 //! internally as NextSliceMbY and NextSliceMbX.
3330 //!
3331 struct MFD_AVC_SLICEADDR_CMD
3332 {
3333 union
3334 {
3335 //!< DWORD 0
3336 struct
3337 {
3338 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3339 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3340 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3341 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3342 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3343 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3344 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3345 };
3346 uint32_t Value;
3347 } DW0;
3348 union
3349 {
3350 //!< DWORD 1
3351 struct
3352 {
3353 uint32_t IndirectBsdDataLength ; //!< Indirect BSD Data Length
3354 };
3355 uint32_t Value;
3356 } DW1;
3357 union
3358 {
3359 //!< DWORD 2
3360 struct
3361 {
3362 uint32_t IndirectBsdDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect BSD Data Start Address
3363 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
3364 };
3365 uint32_t Value;
3366 } DW2;
3367 union
3368 {
3369 //!< DWORD 3
3370 struct
3371 {
3372 uint32_t DriverProvidedNalTypeValue : __CODEGEN_BITFIELD( 0, 7) ; //!< Driver Provided NAL Type Value
3373 uint32_t AvcNalTypeFirstByteOverrideBit : __CODEGEN_BITFIELD( 8, 8) ; //!< AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3374 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
3375 };
3376 uint32_t Value;
3377 } DW3;
3378
3379 //! \name Local enumerations
3380
3381 enum SUBOPCODE_B
3382 {
3383 SUBOPCODE_B_UNNAMED7 = 7, //!< No additional details
3384 };
3385
3386 enum SUBOPCODE_A
3387 {
3388 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
3389 };
3390
3391 enum MEDIA_COMMAND_OPCODE
3392 {
3393 MEDIA_COMMAND_OPCODE_AVCDEC = 1, //!< No additional details
3394 };
3395
3396 enum PIPELINE
3397 {
3398 PIPELINE_MFDAVCSLICEADDR = 2, //!< No additional details
3399 };
3400
3401 enum COMMAND_TYPE
3402 {
3403 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3404 };
3405
3406 //! \brief AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3407 //! \details
3408 //! <p>This bit indicates hardware should use the NAL Type (provided below)
3409 //! programmed by driver instead of using the one from bitstream.  The NAL
3410 //! byte from bitstream will not be correct.</p>
3411 enum AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3412 {
3413 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEBITSTREAMDECODEDNALTYPE = 0, //!< NAL Type should come from first byte of decoded bitstream.
3414 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEDRIVERPROGRAMMEDNALTYPE = 1, //!< NAL Type should come from "Driver Provided NAL Type Values" programmed by driver.
3415 };
3416
3417 //! \name Initializations
3418
3419 //! \brief Explicit member initialization function
3420 MFD_AVC_SLICEADDR_CMD();
3421
3422 static const size_t dwSize = 4;
3423 static const size_t byteSize = 16;
3424 };
3425
3426 //!
3427 //! \brief MFD_AVC_BSD_OBJECT
3428 //! \details
3429 //! The MFD_AVC_BSD_OBJECT command is the only primitive command for the AVC
3430 //! Decoding Pipeline. The same command is used for both CABAC and CAVLD
3431 //! modes. The Slice Data portion of the bitstream is loaded as indirect
3432 //! data object.Before issuing a MFD_AVC_BSD_OBJECT command, all AVC states
3433 //! of the MFD Engine need to be valid. Therefore the commands used to set
3434 //! these states need to have been issued prior to the issue of a
3435 //! MFD_AVC_BSD_OBJECT command.
3436 //!
3437 //! Context switch interrupt is not supported by this command.
3438 //!
3439 struct MFD_AVC_BSD_OBJECT_CMD
3440 {
3441 union
3442 {
3443 //!< DWORD 0
3444 struct
3445 {
3446 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3447 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3448 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3449 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3450 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3451 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3452 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3453 };
3454 uint32_t Value;
3455 } DW0;
3456 union
3457 {
3458 //!< DWORD 1
3459 struct
3460 {
3461 uint32_t IndirectBsdDataLength ; //!< Indirect BSD Data Length
3462 };
3463 uint32_t Value;
3464 } DW1;
3465 union
3466 {
3467 //!< DWORD 2
3468 struct
3469 {
3470 uint32_t IndirectBsdDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect BSD Data Start Address
3471 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
3472 };
3473 uint32_t Value;
3474 } DW2;
3475 union
3476 {
3477 //!< DWORD 3
3478 struct
3479 {
3480 uint32_t MbErrorConcealmentPSliceWeightPredictionDisableFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG
3481 uint32_t MbErrorConcealmentPSliceMotionVectorsOverrideDisableFlag : __CODEGEN_BITFIELD( 1, 1) ; //!< MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3482 uint32_t Reserved98 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
3483 uint32_t MbErrorConcealmentBSpatialWeightPredictionDisableFlag : __CODEGEN_BITFIELD( 3, 3) ; //!< MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG
3484 uint32_t MbErrorConcealmentBSpatialMotionVectorsOverrideDisableFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3485 uint32_t Reserved101 : __CODEGEN_BITFIELD( 5, 5) ; //!< Reserved
3486 uint32_t MbErrorConcealmentBSpatialPredictionMode : __CODEGEN_BITFIELD( 6, 7) ; //!< MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_
3487 uint32_t MbHeaderErrorHandling : __CODEGEN_BITFIELD( 8, 8) ; //!< MB_HEADER_ERROR_HANDLING_
3488 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved
3489 uint32_t EntropyErrorHandling : __CODEGEN_BITFIELD(10, 10) ; //!< ENTROPY_ERROR_HANDLING
3490 uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
3491 uint32_t MprErrorMvOutOfRangeHandling : __CODEGEN_BITFIELD(12, 12) ; //!< MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
3492 uint32_t Reserved109 : __CODEGEN_BITFIELD(13, 13) ; //!< Reserved
3493 uint32_t BsdPrematureCompleteErrorHandling : __CODEGEN_BITFIELD(14, 14) ; //!< BSD_PREMATURE_COMPLETE_ERROR_HANDLING
3494 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
3495 uint32_t ConcealmentPictureId : __CODEGEN_BITFIELD(16, 21) ; //!< Concealment Picture ID
3496 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
3497 uint32_t MbErrorConcealmentBTemporalWeightPredictionDisableFlag : __CODEGEN_BITFIELD(24, 24) ; //!< MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG
3498 uint32_t MbErrorConcealmentBTemporalMotionVectorsOverrideEnableFlag : __CODEGEN_BITFIELD(25, 25) ; //!< MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG
3499 uint32_t Reserved122 : __CODEGEN_BITFIELD(26, 26) ; //!< Reserved
3500 uint32_t MbErrorConcealmentBTemporalPredictionMode : __CODEGEN_BITFIELD(27, 28) ; //!< MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE
3501 uint32_t IntraPredmode4X48X8LumaErrorControlBit : __CODEGEN_BITFIELD(29, 29) ; //!< INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT
3502 uint32_t InitCurrentMbNumber : __CODEGEN_BITFIELD(30, 30) ; //!< Init Current MB Number
3503 uint32_t ConcealmentMethod : __CODEGEN_BITFIELD(31, 31) ; //!< CONCEALMENT_METHOD
3504 };
3505 uint32_t Value;
3506 } DW3;
3507 union
3508 {
3509 //!< DWORD 4
3510 struct
3511 {
3512 uint32_t FirstMacroblockMbBitOffset : __CODEGEN_BITFIELD( 0, 2) ; //!< First Macroblock (MB)Bit Offset
3513 uint32_t LastsliceFlag : __CODEGEN_BITFIELD( 3, 3) ; //!< LASTSLICE_FLAG
3514 uint32_t EmulationPreventionBytePresent : __CODEGEN_BITFIELD( 4, 4) ; //!< EMULATION_PREVENTION_BYTE_PRESENT
3515 uint32_t Reserved133 : __CODEGEN_BITFIELD( 5, 6) ; //!< Reserved
3516 uint32_t FixPrevMbSkipped : __CODEGEN_BITFIELD( 7, 7) ; //!< Fix Prev Mb Skipped
3517 uint32_t Reserved136 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
3518 uint32_t FirstMbByteOffsetOfSliceDataOrSliceHeader : __CODEGEN_BITFIELD(16, 31) ; //!< First MB Byte Offset of Slice Data or Slice Header
3519 };
3520 uint32_t Value;
3521 } DW4;
3522 union
3523 {
3524 //!< DWORD 5
3525 struct
3526 {
3527 uint32_t IntraPredictionErrorControlBitAppliedToIntra16X16Intra8X8Intra4X4LumaAndChroma : __CODEGEN_BITFIELD( 0, 0) ; //!< INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA
3528 uint32_t Intra8X84X4PredictionErrorConcealmentControlBit : __CODEGEN_BITFIELD( 1, 1) ; //!< INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT
3529 uint32_t Reserved162 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
3530 uint32_t BSliceTemporalInterConcealmentMode : __CODEGEN_BITFIELD( 4, 6) ; //!< B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE
3531 uint32_t Reserved167 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
3532 uint32_t BSliceSpatialInterConcealmentMode : __CODEGEN_BITFIELD( 8, 10) ; //!< B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE
3533 uint32_t Reserved171 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
3534 uint32_t BSliceInterDirectTypeConcealmentMode : __CODEGEN_BITFIELD(12, 13) ; //!< B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE
3535 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 14) ; //!< Reserved
3536 uint32_t BSliceConcealmentMode : __CODEGEN_BITFIELD(15, 15) ; //!< B_SLICE_CONCEALMENT_MODE
3537 uint32_t PSliceInterConcealmentMode : __CODEGEN_BITFIELD(16, 18) ; //!< P_SLICE_INTER_CONCEALMENT_MODE
3538 uint32_t Reserved179 : __CODEGEN_BITFIELD(19, 22) ; //!< Reserved
3539 uint32_t PSliceConcealmentMode : __CODEGEN_BITFIELD(23, 23) ; //!< P_SLICE_CONCEALMENT_MODE
3540 uint32_t ConcealmentReferencePictureFieldBit : __CODEGEN_BITFIELD(24, 29) ; //!< Concealment Reference Picture + Field Bit
3541 uint32_t Reserved190 : __CODEGEN_BITFIELD(30, 30) ; //!< Reserved
3542 uint32_t ISliceConcealmentMode : __CODEGEN_BITFIELD(31, 31) ; //!< I_SLICE_CONCEALMENT_MODE
3543 };
3544 uint32_t Value;
3545 } DW5;
3546 union
3547 {
3548 //!< DWORD 6
3549 struct
3550 {
3551 uint32_t DriverProvidedNalTypeValue : __CODEGEN_BITFIELD( 0, 7) ; //!< Driver Provided Nal Type Value
3552 uint32_t AvcNalTypeFirstByteOverrideBit : __CODEGEN_BITFIELD( 8, 8) ; //!< AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3553 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
3554 };
3555 uint32_t Value;
3556 } DW6;
3557
3558 //! \name Local enumerations
3559
3560 enum SUBOPCODE_B
3561 {
3562 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
3563 };
3564
3565 enum SUBOPCODE_A
3566 {
3567 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
3568 };
3569
3570 enum MEDIA_COMMAND_OPCODE
3571 {
3572 MEDIA_COMMAND_OPCODE_AVCDEC = 1, //!< No additional details
3573 };
3574
3575 enum PIPELINE
3576 {
3577 PIPELINE_MFDAVCBSDOBJECT = 2, //!< No additional details
3578 };
3579
3580 enum COMMAND_TYPE
3581 {
3582 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3583 };
3584
3585 //! \brief MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG
3586 //! \details
3587 //! During MB Error Concealment on P slice, weight prediction is disabled to
3588 //! improve image quality.
3589 //! This bit can be set to preserve the original weight prediction.
3590 //! This bit does not affect normal decoded MB.
3591 enum MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG
3592 {
3593 MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED0 = 0, //!< Weight Prediction is Disabled during MB Concealment.
3594 MB_ERROR_CONCEALMENT_P_SLICE_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED1 = 1, //!< Weight Prediction will not be overridden during MB Concealment.
3595 };
3596
3597 //! \brief MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3598 //! \details
3599 //! During MB Error Concealment on P slice, motion vectors are forced to 0
3600 //! to improve image quality.
3601 //! This bit can be set to use the predicted motion vectors instead.
3602 //! This bit does not affect normal decoded MB.
3603 enum MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3604 {
3605 MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED0 = 0, //!< Motion Vectors are Overridden to 0 during MB Concealment
3606 MB_ERROR_CONCEALMENT_P_SLICE_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED1 = 1, //!< Predicted Motion Vectors are used during MB Concealment
3607 };
3608
3609 //! \brief MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG
3610 //! \details
3611 //! During MB Error Concealment on B slice with Spatial Direct Prediction,
3612 //! weight prediction is disabled to improve image quality.
3613 //! This bit can be set to preserve the original weight prediction.
3614 //! This bit does not affect normal decoded MB.
3615 enum MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG
3616 {
3617 MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED0 = 0, //!< Weight Prediction is Disabled during MB Concealment.
3618 MB_ERROR_CONCEALMENT_B_SPATIAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED1 = 1, //!< Weight Prediction will not be overridden during MB Concealment.
3619 };
3620
3621 //! \brief MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3622 //! \details
3623 //! During MB Error Concealment on B slice with Spatial Direct Prediction,
3624 //! motion vectors are forced to 0 to improve image quality.
3625 //! This bit can be set to use the predicted motion vectors instead.
3626 //! This bit does not affect normal decoded MB.
3627 enum MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG
3628 {
3629 MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED0 = 0, //!< Motion Vectors are Overridden to 0 during MB Concealment
3630 MB_ERROR_CONCEALMENT_B_SPATIAL_MOTION_VECTORS_OVERRIDE_DISABLE_FLAG_UNNAMED1 = 1, //!< Predicted Motion Vectors are used during MB Concealment
3631 };
3632
3633 //! \brief MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_
3634 //! \details
3635 //! These two bits control how the reference L0/L1 are overridden in B
3636 //! spatial slice.
3637 enum MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_
3638 {
3639 MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_UNNAMED0 = 0, //!< Both Reference Indexes L0/L1 are forced to 0 during Concealment
3640 MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_UNNAMED1 = 1, //!< Only Reference Index L1 is forced to 0; Reference Index L0 is forced to -1
3641 MB_ERROR_CONCEALMENT_B_SPATIAL_PREDICTION_MODE_UNNAMED2 = 2, //!< Only Reference Index L0 is forced to 0; Reference Index L1 is forced to -1
3642 };
3643
3644 //! \brief MB_HEADER_ERROR_HANDLING_
3645 //! \details
3646 //! Software must follow the action for each Value as follow:
3647 enum MB_HEADER_ERROR_HANDLING_
3648 {
3649 MB_HEADER_ERROR_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically perform the error concealment.
3650 MB_HEADER_ERROR_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W).
3651 };
3652
3653 //! \brief ENTROPY_ERROR_HANDLING
3654 //! \details
3655 //! Software must follow the action for each Value as follow:
3656 enum ENTROPY_ERROR_HANDLING
3657 {
3658 ENTROPY_ERROR_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically perform the error handling.
3659 ENTROPY_ERROR_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W).
3660 };
3661
3662 //! \brief MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
3663 //! \details
3664 //! Software must follow the action for each Value as follow:
3665 enum MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
3666 {
3667 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
3668 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W)
3669 };
3670
3671 //! \brief BSD_PREMATURE_COMPLETE_ERROR_HANDLING
3672 //! \details
3673 //! BSD Premature Complete Error occurs in situation where the Slice decode
3674 //! is completed but there are still data in the bitstream.
3675 enum BSD_PREMATURE_COMPLETE_ERROR_HANDLING
3676 {
3677 BSD_PREMATURE_COMPLETE_ERROR_HANDLING_UNNAMED0 = 0, //!< Ignore the error and continue (masked the interrupt), assume the hardware automatically performs the error handling
3678 BSD_PREMATURE_COMPLETE_ERROR_HANDLING_UNNAMED1 = 1, //!< Set the interrupt to the driver (provide MMIO registers for MB address R/W)
3679 };
3680
3681 //! \brief MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG
3682 //! \details
3683 //! During MB Error Concealment on B slice with Temporal Direct Prediction,
3684 //! weight prediction is disabled to improve image quality.
3685 //! This bit can be set to preserve the original weight prediction.
3686 enum MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG
3687 {
3688 MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED0 = 0, //!< Weight Prediction is Disabled during MB Concealment
3689 MB_ERROR_CONCEALMENT_B_TEMPORAL_WEIGHT_PREDICTION_DISABLE_FLAG_UNNAMED1 = 1, //!< Weight Prediction will not be overridden during MB Concealment
3690 };
3691
3692 //! \brief MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG
3693 //! \details
3694 //! During MB Error Concealment on B slice with Temporal Direct Prediction,
3695 //! motion vectors are forced to 0 to improve image quality.
3696 //! This bit can be set to preserve the original weight prediction.
3697 enum MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG
3698 {
3699 MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG_UNNAMED0 = 0, //!< Predicted Motion Vectors are used during MB Concealment
3700 MB_ERROR_CONCEALMENT_B_TEMPORAL_MOTION_VECTORS_OVERRIDE_ENABLE_FLAG_UNNAMED1 = 1, //!< Motion Vectors are Overridden to 0 during MB Concealment
3701 };
3702
3703 //! \brief MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE
3704 //! \details
3705 //! These two bits control how the reference L0/L1 are overridden in B
3706 //! temporal slice.
3707 enum MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE
3708 {
3709 MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE_UNNAMED0 = 0, //!< Both Reference Indexes L0/L1 are forced to 0 during Concealment
3710 MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE_UNNAMED1 = 1, //!< Only Reference Index L1 is forced to 0; Reference Index L0 is forced to -1
3711 MB_ERROR_CONCEALMENT_B_TEMPORAL_PREDICTION_MODE_UNNAMED2 = 2, //!< Only Reference Index L0 is forced to 0; Reference Index L1 is forced to -1
3712 };
3713
3714 //! \brief INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT
3715 //! \details
3716 //! This field controls if AVC decoder will fix Intra Prediction Mode if the
3717 //! decoded value is incorrect according to MB position
3718 enum INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT
3719 {
3720 INTRA_PREDMODE_4X48X8_LUMA_ERROR_CONTROL_BIT_UNNAMED0 = 0, //!< AVC decoder will detect and fix IntraPredMode (4x4/8x8 Luma) Errors.
3721 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.
3722 };
3723
3724 //! \brief CONCEALMENT_METHOD
3725 //! \details
3726 //! This field specifies the method used for concealment when error is
3727 //! detected. If set, a copy from collocated macroblock location is
3728 //! performed from the concealment reference indicated by the ConCeal_Pic_Id
3729 //! field. If it is not set, a copy from the current picture is performed
3730 //! using Intra 16x16 Prediction method.
3731 enum CONCEALMENT_METHOD
3732 {
3733 CONCEALMENT_METHOD_UNNAMED0 = 0, //!< Intra 16x16 Prediction
3734 CONCEALMENT_METHOD_UNNAMED1 = 1, //!< Inter P Copy
3735 };
3736
3737 //! \brief LASTSLICE_FLAG
3738 //! \details
3739 //! It is needed for both error concealment at the end of a picture (so, no
3740 //! more phantom slice as in DevSNB). It is also needed to know to set the
3741 //! last MB in a picture correctly.
3742 enum LASTSLICE_FLAG
3743 {
3744 LASTSLICE_FLAG_UNNAMED0 = 0, //!< If the current Slice to be decoded is any slice other than the very last slice of the current picture
3745 LASTSLICE_FLAG_UNNAMED1 = 1, //!< If the current Slice to be decoded is the very last slice of the current picture.
3746 };
3747
3748 enum EMULATION_PREVENTION_BYTE_PRESENT
3749 {
3750 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED0 = 0, //!< H/W needs to perform Emulation Byte Removal
3751 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED1 = 1, //!< H/W does not need to perform Emulation Byte Removal
3752 };
3753
3754 //! \brief INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA
3755 //! \details
3756 //! This field controls if AVC decoder will fix Intra Prediction Mode if the
3757 //! decoded value is incorrect according to MB position.
3758 enum INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA
3759 {
3760 INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA_UNNAMED0 = 0, //!< AVC decoder will detect and fix Intra Prediction Mode Errors.
3761 INTRA_PREDICTION_ERROR_CONTROL_BIT_APPLIED_TO_INTRA16X16INTRA8X8INTRA4X4_LUMA_AND_CHROMA_UNNAMED1 = 1, //!< AVC decoder will retain the Intra Prediction value decoded from bitstream.
3762 };
3763
3764 //! \brief INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT
3765 //! \details
3766 //! This field controls if AVC goes into MB concealment mode (next MB) when
3767 //! an error is detected on Intra8x8/4x4 Prediction Mode (these 2 modes have
3768 //! fixed coding so it may not affect the bitstream.
3769 enum INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT
3770 {
3771 INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT_UNNAMED0 = 0, //!< AVC decoder will NOT go into MB concealment when Intra8x8/4x4 Prediction mode is incorrect.
3772 INTRA_8X84X4_PREDICTION_ERROR_CONCEALMENT_CONTROL_BIT_UNNAMED1 = 1, //!< AVC decoder will go into MB concealment when Intra8x8/4x4 Prediction mode is incorrect.
3773 };
3774
3775 //! \brief B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE
3776 //! \details
3777 //! This field controls how AVC decoder select reference picture for
3778 //! Temporal Inter Concealment in B Slice
3779 enum B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE
3780 {
3781 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Top of Reference List L0/L1 (Use top entry of Reference List L0/L1)
3782 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Driver Specified Concealment Reference
3783 B_SLICE_TEMPORAL_INTER_CONCEALMENT_MODE_UNNAMED2 = 2, //!< Predicted Reference (Use reference picture predicted using B-Skip Algorithm)
3784 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]
3785 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)
3786 };
3787
3788 //! \brief B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE
3789 //! \details
3790 //! This field controls how AVC decoder select reference picture for Spatial
3791 //! Inter Concealment in B Slice.
3792 enum B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE
3793 {
3794 B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Top of Reference List L0/L1 (Use top entry of Reference List L0/L1).
3795 B_SLICE_SPATIAL_INTER_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Driver Specified Concealment Reference
3796 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]
3797 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)
3798 };
3799
3800 //! \brief B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE
3801 //! \details
3802 //! AVC decoder can use Spatial or Temporal Direct for B Skip/Direct.
3803 //! This field determine can override the mode on how AVC decoder
3804 //! handles MB concealment in B slice.
3805 enum B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE
3806 {
3807 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Use Default Direct Type (slice programmed direct type)
3808 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Forced to Spatial Direct Only
3809 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED2 = 2, //!< Forced to Temporal Direct Only
3810 B_SLICE_INTER_DIRECT_TYPE_CONCEALMENT_MODE_UNNAMED3 = 3, //!< Spatial Direct without Temporal Componenet (MovingBlock information)
3811 };
3812
3813 //! \brief B_SLICE_CONCEALMENT_MODE
3814 //! \details
3815 //! This field controls how AVC decoder handle MB concealment in B Slice
3816 enum B_SLICE_CONCEALMENT_MODE
3817 {
3818 B_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 0, //!< No additional details
3819 B_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 1, //!< No additional details
3820 };
3821
3822 //! \brief P_SLICE_INTER_CONCEALMENT_MODE
3823 //! \details
3824 //! This field controls how AVC decoder select reference picture for
3825 //! Concealment in P Slice.
3826 enum P_SLICE_INTER_CONCEALMENT_MODE
3827 {
3828 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED0 = 0, //!< Top of Reference List L0 (Use top entry of Reference List L0)
3829 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED1 = 1, //!< Driver Specified Concealment Reference
3830 P_SLICE_INTER_CONCEALMENT_MODE_UNNAMED2 = 2, //!< Predicted Reference (Use reference picture predicted using P-Skip Algorithm)
3831 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]
3832 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)
3833 };
3834
3835 //! \brief P_SLICE_CONCEALMENT_MODE
3836 //! \details
3837 //! This field controls how AVC decoder handle MB concealment in P Slice
3838 enum P_SLICE_CONCEALMENT_MODE
3839 {
3840 P_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 0, //!< No additional details
3841 P_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 1, //!< No additional details
3842 };
3843
3844 //! \brief I_SLICE_CONCEALMENT_MODE
3845 //! \details
3846 //! This field controls how AVC decoder handle MB concealment in I Slice
3847 enum I_SLICE_CONCEALMENT_MODE
3848 {
3849 I_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 0, //!< No additional details
3850 I_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 1, //!< No additional details
3851 };
3852
3853 //! \brief AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3854 //! \details
3855 //! <p>This bit indicates hardware should use the NAL Type (provided below)
3856 //! programmed by driver instead of using the one from bitstream.  The NAL
3857 //! byte from bitstream will not be correct.</p>
3858 enum AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT
3859 {
3860 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEBITSTREAMDECODEDNALTYPE = 0, //!< NAL Type should come from the first byte of Decoded Bitstream
3861 AVC_NAL_TYPE_FIRST_BYTE_OVERRIDE_BIT_USEDRIVERPROGRAMMEDNALTYPE = 1, //!< NAL Type should come from "Driver Provided Nal Type" programmed by driver.
3862 };
3863
3864 //! \name Initializations
3865
3866 //! \brief Explicit member initialization function
3867 MFD_AVC_BSD_OBJECT_CMD();
3868
3869 static const size_t dwSize = 7;
3870 static const size_t byteSize = 28;
3871 };
3872
3873 //!
3874 //! \brief MFX_PAK_INSERT_OBJECT
3875 //! \details
3876 //! The MFX_PAK_INSERT_OBJECT command is the first primitive command for the
3877 //! AVC, MPEG2, JPEG, SVC and VP8 Encoding Pipeline.
3878 //!
3879 //! This command is issued to setup the control and parameters of inserting
3880 //! a chunk of compressed/encoded bits into the current bitstream output
3881 //! buffer starting at the specified bit locationto perform the actual
3882 //! insertion by transferring the command inline data to the output buffer
3883 //! max, 32 bits at a time. It is a variable length command as the data to
3884 //! be inserted are presented as inline data of this command. It is a
3885 //! multiple of 32-bit (1 DW), as the data bus to the bitstream buffer is
3886 //! 32-bit wide. Multiple insertion commands can be issued back to back in a
3887 //! series. It is host software's responsibility to make sure their
3888 //! corresponding data will properly stitch together to form a valid H.264
3889 //! bitstream. Internally, MFX hardware will keep track of the very last two
3890 //! bytes' (the very last byte can be a partial byte) values of the previous
3891 //! insertion. It is required that the next Insertion Object Command or the
3892 //! next PAK Object Command to perform the start code emulation sequence
3893 //! check and prevention 0x03 byte insertion with this end condition of the
3894 //! previous insertion. Hardware will keep track of an output bitstream
3895 //! buffer current byte position and the associated next bit insertion
3896 //! position index. Data to be inserted can be a valid H.264 NAL units or a
3897 //! partial NAL unit. Certain NAL unit has a minimum byte size requirement.
3898 //! As such the hardware will optionally (enabled by STATE Command)
3899 //! determines the number of CABAC_ZERO_WORD to be inserted to the end of
3900 //! the current NAL, based on the minimum byte size of a NAL and the actual
3901 //! bin count of the encoded Slice. Since prior to the CABAC_ZERO_WORD
3902 //! insertion, the RBSP or EBSP is already byte-aligned, so each
3903 //! CABAC_ZERO_WORD insertion is actually a 3-byte sequence 0x00 00 03. The
3904 //! inline data may have already been processed for start code emulation
3905 //! byte insertion, except the possibility of the last 2 bytes plus the very
3906 //! last partial byte (if any). Hence, when hardware performing the
3907 //! concatenation of multiple consecutive insertion commands, or
3908 //! concatenation of an insertion command and a PAK object command, it must
3909 //! check and perform the necessary start code emulation byte insert at the
3910 //! junction.The inline data is required to be byte aligned on the left
3911 //! (first transmitted bit order) and may or may not be byte aligned on the
3912 //! right (last transmitted bits). The command will specify the bit offset
3913 //! of the last valid DW.Each insertion state command defines a chunk of
3914 //! bits (compressed data) to be inserted at a specific location of the
3915 //! output compressed bitstream in the output buffer.Depend on CABAC or
3916 //! CAVLC encoding mode (from Slice State), PAK Object Command is always
3917 //! ended in byte aligned output bitstream except for CABAC header insertion
3918 //! which is bit aligned. In the aligned cases, PAK will perform 0 filling
3919 //! in CAVLC mode, and 1 filling in CABAC mode. Insertion data can
3920 //! include:any encoded syntax elements bit data before the encoded Slice
3921 //! Data (PAK Object Command) of the current SliceSPS NALPPS NALSEI NALOther
3922 //! Non-Slice NALLeading_Zero_8_bits (as many bytes as there is)Start Code
3923 //! PrefixNAL Header ByteSlice HeaderAny encoded syntax elements bit data
3924 //! after the encoded Slice Data (PAK Object Command) of the current Slice
3925 //! and prior to the next encoded Slice Data of the next Slice or prior to
3926 //! the end of the bistream, whichever comes firstCabac_Zero_Word or
3927 //! Trailing_Zero_8bits (as many bytes as there is). Anything listed above
3928 //! before a Slice DataContext switch interrupt is not supported by this
3929 //! command.
3930 //!
3931 struct MFX_PAK_INSERT_OBJECT_CMD
3932 {
3933 union
3934 {
3935 //!< DWORD 0
3936 struct
3937 {
3938 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
3939 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
3940 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
3941 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
3942 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
3943 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
3944 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
3945 };
3946 uint32_t Value;
3947 } DW0;
3948 union
3949 {
3950 //!< DWORD 1
3951 struct
3952 {
3953 uint32_t BitstreamstartresetResetbitstreamstartingpos : __CODEGEN_BITFIELD( 0, 0) ; //!< BITSTREAMSTARTRESET__RESETBITSTREAMSTARTINGPOS
3954 uint32_t EndofsliceflagLastdstdatainsertcommandflag : __CODEGEN_BITFIELD( 1, 1) ; //!< EndOfSliceFlag - LastDstDataInsertCommandFlag
3955 uint32_t LastheaderflagLastsrcheaderdatainsertcommandflag : __CODEGEN_BITFIELD( 2, 2) ; //!< LastHeaderFlag - LastSrcHeaderDataInsertCommandFlag
3956 uint32_t EmulationflagEmulationbytebitsinsertenable : __CODEGEN_BITFIELD( 3, 3) ; //!< EMULATIONFLAG__EMULATIONBYTEBITSINSERTENABLE
3957 uint32_t SkipemulbytecntSkipEmulationByteCount : __CODEGEN_BITFIELD( 4, 7) ; //!< SkipEmulByteCnt - Skip Emulation Byte Count
3958 uint32_t DatabitsinlastdwSrcdataendingbitinclusion50 : __CODEGEN_BITFIELD( 8, 13) ; //!< DataBitsInLastDW - SrCDataEndingBitInclusion[5:0]
3959 uint32_t SliceHeaderIndicator : __CODEGEN_BITFIELD(14, 14) ; //!< SLICE_HEADER_INDICATOR
3960 uint32_t Headerlengthexcludefrmsize : __CODEGEN_BITFIELD(15, 15) ; //!< HEADERLENGTHEXCLUDEFRMSIZE_
3961 uint32_t DatabyteoffsetSrcdatastartingbyteoffset10 : __CODEGEN_BITFIELD(16, 17) ; //!< DataByteOffset - SrcDataStartingByteOffset[1:0]
3962 uint32_t Reserved50 : __CODEGEN_BITFIELD(18, 31) ; //!< Reserved
3963 };
3964 uint32_t Value;
3965 } DW1;
3966
3967 //! \name Local enumerations
3968
3969 enum SUBOPCODE_B
3970 {
3971 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
3972 };
3973
3974 enum SUBOPCODE_A
3975 {
3976 SUBOPCODE_A_UNNAMED2 = 2, //!< No additional details
3977 };
3978
3979 enum MEDIA_COMMAND_OPCODE
3980 {
3981 MEDIA_COMMAND_OPCODE_MFXCOMMON = 0, //!< No additional details
3982 };
3983
3984 enum PIPELINE
3985 {
3986 PIPELINE_MFXPAKINSERTOBJECT = 2, //!< No additional details
3987 };
3988
3989 enum COMMAND_TYPE
3990 {
3991 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
3992 };
3993
3994 //! \brief BITSTREAMSTARTRESET__RESETBITSTREAMSTARTINGPOS
3995 //! \details
3996 //! Must be set to 1 for JPEG encoder
3997 enum BITSTREAMSTARTRESET__RESETBITSTREAMSTARTINGPOS
3998 {
3999 BITSTREAMSTARTRESET_RESETBITSTREAMSTARTINGPOS_INSERT = 0, //!< Insert the current command inline data starting at the current bitstream buffer insertion position
4000 BITSTREAMSTARTRESET_RESETBITSTREAMSTARTINGPOS_RESET = 1, //!< Reset the bitstream buffer insertion position to the bitstream buffer starting position.
4001 };
4002
4003 //! \brief EMULATIONFLAG__EMULATIONBYTEBITSINSERTENABLE
4004 //! \details
4005 //! Must be set to 0 for JPEG encoder
4006 enum EMULATIONFLAG__EMULATIONBYTEBITSINSERTENABLE
4007 {
4008 EMULATIONFLAG_EMULATIONBYTEBITSINSERTENABLE_NONE = 0, //!< No emulation
4009 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.
4010 };
4011
4012 //! \brief SLICE_HEADER_INDICATOR
4013 //! \details
4014 //! This bit indicates if the insert object is a slice header. In the VDEnc
4015 //! mode, PAK only gets this command at the beginning of the frame for slice
4016 //! position X=0, Y=0. It internally generates the header that needs to be
4017 //! inserted per slice. For VDEnc mode, this bit should always be set.
4018 enum SLICE_HEADER_INDICATOR
4019 {
4020 SLICE_HEADER_INDICATOR_LEGACY = 0, //!< Legacy Insertion Object command. The PAK Insertion Object command is not stored in HW.
4021 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.
4022 };
4023
4024 //! \brief HEADERLENGTHEXCLUDEFRMSIZE_
4025 //! \details
4026 //! In case this flag is on, bits are NOT accumulated during current access
4027 //! unit coding neither for Cabac Zero Word insertion bits counting or for
4028 //! output in MMIO register MFC_BITSTREAM_BYTECOUNT_FRAME_NO_HEADER.
4029 //! When using HeaderLenghtExcludeFrmSize for header insertion, the
4030 //! software needs to make sure that data comes already with inserted start
4031 //! code emulation bytes. SW shouldn't set EmulationFlag bit ( Bit 3 of
4032 //! DWORD1 of MFX_PAK_INSERT_OBJECT).
4033 enum HEADERLENGTHEXCLUDEFRMSIZE_
4034 {
4035 HEADERLENGTHEXCLUDEFRMSIZE_ACCUMULATE = 0, //!< All bits accumulated
4036 HEADERLENGTHEXCLUDEFRMSIZE_NOACCUMULATION = 1, //!< Bits during current call are not accumulated
4037 };
4038
4039 //! \name Initializations
4040
4041 //! \brief Explicit member initialization function
4042 MFX_PAK_INSERT_OBJECT_CMD();
4043
4044 static const size_t dwSize = 2;
4045 static const size_t byteSize = 8;
4046 };
4047
4048 //!
4049 //! \brief MFX_MPEG2_PIC_STATE
4050 //! \details
4051 //! This must be the very first command to issue after the surface state,
4052 //! the pipe select and base address setting commands. For MPEG-2 the
4053 //! encoder is called per slice-group, however the picture state is called
4054 //! per picture.Notice that a slice-group is a group of consecutive slices
4055 //! that no non-trivial slice headers are inserted in between.
4056 //!
4057 struct MFX_MPEG2_PIC_STATE_CMD
4058 {
4059 union
4060 {
4061 //!< DWORD 0
4062 struct
4063 {
4064 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
4065 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4066 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
4067 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
4068 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
4069 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
4070 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
4071 };
4072 uint32_t Value;
4073 } DW0;
4074 union
4075 {
4076 //!< DWORD 1
4077 struct
4078 {
4079 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
4080 uint32_t ScanOrder : __CODEGEN_BITFIELD( 6, 6) ; //!< SCAN_ORDER
4081 uint32_t IntraVlcFormat : __CODEGEN_BITFIELD( 7, 7) ; //!< Intra VLC Format
4082 uint32_t QuantizerScaleType : __CODEGEN_BITFIELD( 8, 8) ; //!< QUANTIZER_SCALE_TYPE
4083 uint32_t ConcealmentMotionVectorFlag : __CODEGEN_BITFIELD( 9, 9) ; //!< Concealment Motion Vector Flag
4084 uint32_t FramePredictionFrameDct : __CODEGEN_BITFIELD(10, 10) ; //!< Frame Prediction Frame DCT
4085 uint32_t TffTopFieldFirst : __CODEGEN_BITFIELD(11, 11) ; //!< TFF (Top Field First)
4086 uint32_t PictureStructure : __CODEGEN_BITFIELD(12, 13) ; //!< Picture Structure
4087 uint32_t IntraDcPrecision : __CODEGEN_BITFIELD(14, 15) ; //!< Intra DC Precision
4088 uint32_t FCode00 : __CODEGEN_BITFIELD(16, 19) ; //!< f_code[0][0]
4089 uint32_t FCode01 : __CODEGEN_BITFIELD(20, 23) ; //!< f_code[0][1]
4090 uint32_t FCode10 : __CODEGEN_BITFIELD(24, 27) ; //!< f_code[1][0].
4091 uint32_t FCode11 : __CODEGEN_BITFIELD(28, 31) ; //!< f_code[1][1].
4092 };
4093 uint32_t Value;
4094 } DW1;
4095 union
4096 {
4097 //!< DWORD 2
4098 struct
4099 {
4100 uint32_t DisableMismatch : __CODEGEN_BITFIELD( 0, 0) ; //!< Disable Mismatch
4101 uint32_t Mismatchcontroldisabled : __CODEGEN_BITFIELD( 1, 1) ; //!< MISMATCHCONTROLDISABLED
4102 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 8) ; //!< Reserved
4103 uint32_t PictureCodingType : __CODEGEN_BITFIELD( 9, 10) ; //!< PICTURE_CODING_TYPE
4104 uint32_t Reserved75 : __CODEGEN_BITFIELD(11, 13) ; //!< Reserved
4105 uint32_t LoadslicepointerflagLoadbitstreampointerperslice : __CODEGEN_BITFIELD(14, 14) ; //!< LOADSLICEPOINTERFLAG__LOADBITSTREAMPOINTERPERSLICE
4106 uint32_t Reserved79 : __CODEGEN_BITFIELD(15, 23) ; //!< Reserved
4107 uint32_t PBSlicePredictedMotionVectorOverrideFinalMvValueOverride : __CODEGEN_BITFIELD(24, 24) ; //!< PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE
4108 uint32_t PBSlicePredictedBidirMotionTypeOverrideBiDirectionMvTypeOverride : __CODEGEN_BITFIELD(25, 26) ; //!< PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE__BI_DIRECTION_MV_TYPE_OVERRIDE
4109 uint32_t Reserved91 : __CODEGEN_BITFIELD(27, 27) ; //!< Reserved
4110 uint32_t PBSliceConcealmentMode : __CODEGEN_BITFIELD(28, 29) ; //!< PB_SLICE_CONCEALMENT_MODE_
4111 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 30) ; //!< Reserved
4112 uint32_t ISliceConcealmentMode : __CODEGEN_BITFIELD(31, 31) ; //!< I_SLICE_CONCEALMENT_MODE_
4113 };
4114 uint32_t Value;
4115 } DW2;
4116 union
4117 {
4118 //!< DWORD 3
4119 struct
4120 {
4121 uint32_t Framewidthinmbsminus170PictureWidthInMacroblocks : __CODEGEN_BITFIELD( 0, 7) ; //!< FrameWidthInMBsMinus1[7:0] (Picture Width in Macroblocks)
4122 uint32_t Reserved104 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
4123 uint32_t Frameheightinmbsminus170PictureHeightInMacroblocks : __CODEGEN_BITFIELD(16, 23) ; //!< FrameHeightInMBsMinus1[7:0] (Picture Height in Macroblocks)
4124 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 30) ; //!< Reserved
4125 uint32_t SliceConcealmentDisableBit : __CODEGEN_BITFIELD(31, 31) ; //!< SLICE_CONCEALMENT_DISABLE_BIT
4126 };
4127 uint32_t Value;
4128 } DW3;
4129 union
4130 {
4131 //!< DWORD 4
4132 struct
4133 {
4134 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
4135 uint32_t Roundintradc : __CODEGEN_BITFIELD( 1, 2) ; //!< RoundIntraDC
4136 uint32_t Reserved131 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
4137 uint32_t Roundinterdc : __CODEGEN_BITFIELD( 4, 6) ; //!< RoundInterDC
4138 uint32_t Reserved135 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
4139 uint32_t Roundintraac : __CODEGEN_BITFIELD( 8, 10) ; //!< RoundIntraAC
4140 uint32_t Reserved139 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
4141 uint32_t Roundinterac : __CODEGEN_BITFIELD(12, 14) ; //!< RoundInterAC,
4142 uint32_t Mbstatenabled : __CODEGEN_BITFIELD(15, 15) ; //!< MBSTATENABLED
4143 uint32_t Minframewsize : __CODEGEN_BITFIELD(16, 31) ; //!< MINFRAMEWSIZE
4144 };
4145 uint32_t Value;
4146 } DW4;
4147 union
4148 {
4149 //!< DWORD 5
4150 struct
4151 {
4152 uint32_t Intrambmaxsizereportmask : __CODEGEN_BITFIELD( 0, 0) ; //!< INTRAMBMAXSIZEREPORTMASK
4153 uint32_t Intermbmaxsizereportmask : __CODEGEN_BITFIELD( 1, 1) ; //!< INTERMBMAXSIZEREPORTMASK
4154 uint32_t Framebitratemaxreportmask : __CODEGEN_BITFIELD( 2, 2) ; //!< FRAMEBITRATEMAXREPORTMASK_
4155 uint32_t Framebitrateminreportmask : __CODEGEN_BITFIELD( 3, 3) ; //!< FRAMEBITRATEMINREPORTMASK
4156 uint32_t Reserved164 : __CODEGEN_BITFIELD( 4, 8) ; //!< Reserved
4157 uint32_t Mbratecontrolmask : __CODEGEN_BITFIELD( 9, 9) ; //!< MBRATECONTROLMASK
4158 uint32_t Minframewsizeunits : __CODEGEN_BITFIELD(10, 11) ; //!< MINFRAMEWSIZEUNITS
4159 uint32_t Intermbforcecbpzerocontrolmask : __CODEGEN_BITFIELD(12, 12) ; //!< INTERMBFORCECBPZEROCONTROLMASK
4160 uint32_t Reserved173 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
4161 uint32_t Framesizecontrolmask : __CODEGEN_BITFIELD(16, 16) ; //!< FRAMESIZECONTROLMASK
4162 uint32_t Reserved177 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved
4163 };
4164 uint32_t Value;
4165 } DW5;
4166 union
4167 {
4168 //!< DWORD 6
4169 struct
4170 {
4171 uint32_t Intrambmaxsize : __CODEGEN_BITFIELD( 0, 11) ; //!< INTRAMBMAXSIZE
4172 uint32_t Reserved204 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4173 uint32_t Intermbmaxsize : __CODEGEN_BITFIELD(16, 27) ; //!< INTERMBMAXSIZE
4174 uint32_t Reserved220 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
4175 };
4176 uint32_t Value;
4177 } DW6;
4178 union
4179 {
4180 //!< DWORD 7
4181 struct
4182 {
4183 uint32_t VslTopMbTrans8X8Flag : __CODEGEN_BITFIELD( 0, 0) ; //!< VSL_TOP_MB_TRANS8X8FLAG
4184 uint32_t Reserved225 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
4185 };
4186 uint32_t Value;
4187 } DW7;
4188 union
4189 {
4190 //!< DWORD 8
4191 struct
4192 {
4193 uint32_t Slicedeltaqpmax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQPMax[0]
4194 uint32_t Slicedeltaqpmax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQPMax[1]
4195 uint32_t Slicedeltaqpmax2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQPMax[2]
4196 uint32_t Slicedeltaqpmax3 : __CODEGEN_BITFIELD(24, 31) ; //!< SLICEDELTAQPMAX3
4197 };
4198 uint32_t Value;
4199 } DW8;
4200 union
4201 {
4202 //!< DWORD 9
4203 struct
4204 {
4205 uint32_t Slicedeltaqpmin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< SliceDeltaQPMin[0]
4206 uint32_t Slicedeltaqpmin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< SliceDeltaQPMin[1]
4207 uint32_t Slicedeltaqpmin2 : __CODEGEN_BITFIELD(16, 23) ; //!< SliceDeltaQPMin[2]
4208 uint32_t Slicedeltaqpmin3 : __CODEGEN_BITFIELD(24, 31) ; //!< SliceDeltaQPMin[3]
4209 };
4210 uint32_t Value;
4211 } DW9;
4212 union
4213 {
4214 //!< DWORD 10
4215 struct
4216 {
4217 uint32_t Framebitratemin : __CODEGEN_BITFIELD( 0, 13) ; //!< FrameBitRateMin
4218 uint32_t Framebitrateminunitmode : __CODEGEN_BITFIELD(14, 14) ; //!< FRAMEBITRATEMINUNITMODE
4219 uint32_t Framebitrateminunit : __CODEGEN_BITFIELD(15, 15) ; //!< FRAMEBITRATEMINUNIT
4220 uint32_t Framebitratemax : __CODEGEN_BITFIELD(16, 29) ; //!< FrameBitRateMax
4221 uint32_t Framebitratemaxunitmode : __CODEGEN_BITFIELD(30, 30) ; //!< FRAMEBITRATEMAXUNITMODE
4222 uint32_t Framebitratemaxunit : __CODEGEN_BITFIELD(31, 31) ; //!< FRAMEBITRATEMAXUNIT_
4223 };
4224 uint32_t Value;
4225 } DW10;
4226 union
4227 {
4228 //!< DWORD 11
4229 struct
4230 {
4231 uint32_t Framebitratemindelta : __CODEGEN_BITFIELD( 0, 14) ; //!< FrameBitRateMinDelta
4232 uint32_t Reserved367 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
4233 uint32_t Framebitratemaxdelta : __CODEGEN_BITFIELD(16, 30) ; //!< FRAMEBITRATEMAXDELTA
4234 uint32_t Reserved383 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
4235 };
4236 uint32_t Value;
4237 } DW11;
4238 union
4239 {
4240 //!< DWORD 12
4241 struct
4242 {
4243 uint32_t Reserved384 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved
4244 };
4245 uint32_t Value;
4246 } DW12;
4247
4248 //! \name Local enumerations
4249
4250 enum SUBOPCODE_B
4251 {
4252 SUBOPCODE_B_UNNAMED0 = 0, //!< No additional details
4253 };
4254
4255 enum SUBOPCODE_A
4256 {
4257 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
4258 };
4259
4260 enum MEDIA_COMMAND_OPCODE
4261 {
4262 MEDIA_COMMAND_OPCODE_MPEG2COMMON = 3, //!< No additional details
4263 };
4264
4265 enum PIPELINE
4266 {
4267 PIPELINE_MFXMPEG2PICSTATE = 2, //!< No additional details
4268 };
4269
4270 enum COMMAND_TYPE
4271 {
4272 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
4273 };
4274
4275 //! \brief SCAN_ORDER
4276 //! \details
4277 //! This field specifies the Inverse Scan method for the DCT-domain
4278 //! coefficients in the blocks of the current picture.
4279 enum SCAN_ORDER
4280 {
4281 SCAN_ORDER_UNNAMED0 = 0, //!< MPEG_ZIGZAG_SCAN
4282 SCAN_ORDER_UNNAMED1 = 1, //!< MPEG_ALTERNATE_VERTICAL_SCAN
4283 };
4284
4285 //! \brief QUANTIZER_SCALE_TYPE
4286 //! \details
4287 //! This field specifies the quantizer scaling type.
4288 enum QUANTIZER_SCALE_TYPE
4289 {
4290 QUANTIZER_SCALE_TYPE_UNNAMED0 = 0, //!< MPEG_QSCALE_LINEAR
4291 QUANTIZER_SCALE_TYPE_UNNAMED1 = 1, //!< D MPEG_QSCALE_NONLINEAR esc
4292 };
4293
4294 //! \brief MISMATCHCONTROLDISABLED
4295 //! \details
4296 //! These 2 bits flag disables mismatch control of the inverse
4297 //! transformation for some specific cases during reference reconstruction.
4298 enum MISMATCHCONTROLDISABLED
4299 {
4300 MISMATCHCONTROLDISABLED_UNNAMED0 = 0, //!< Mismatch control applies to all MBs
4301 MISMATCHCONTROLDISABLED_UNNAMED1 = 1, //!< Disable mismatch control to all intra MBs whose all AC-coefficients are zero.
4302 MISMATCHCONTROLDISABLED_UNNAMED2 = 2, //!< Disable mismatch control to all MBs whose all AC-coefficients are zero.
4303 MISMATCHCONTROLDISABLED_UNNAMED3 = 3, //!< Disable mismatch control to all MBs.
4304 };
4305
4306 //! \brief PICTURE_CODING_TYPE
4307 //! \details
4308 //! This field identifies whether the picture is an intra-coded picture (I),
4309 //! predictive-coded picture (P) or bi-directionally predictive-coded
4310 //! picture (B). See ISO/IEC 13818-2 6.3.9 for details.
4311 enum PICTURE_CODING_TYPE
4312 {
4313 PICTURE_CODING_TYPE_MPEGIPICTURE = 1, //!< No additional details
4314 PICTURE_CODING_TYPE_10MPEGPPICTURE = 2, //!< No additional details
4315 PICTURE_CODING_TYPE_MPEGBPICTURE = 3, //!< No additional details
4316 };
4317
4318 //! \brief LOADSLICEPOINTERFLAG__LOADBITSTREAMPOINTERPERSLICE
4319 //! \details
4320 //! To support multiple slice picture and additional header/data insertion
4321 //! before and after an encoded slice.When this field is set to 0, bitstream
4322 //! pointer is only loaded once for the first slice of a frame. For
4323 //! subsequent slices in the frame, bitstream data are stitched together to
4324 //! form a single output data stream.When this field is set to 1, bitstream
4325 //! pointer is loaded for each slice of a frame. Basically bitstream data
4326 //! for different slices of a frame will be written to different memory
4327 //! locations.
4328 enum LOADSLICEPOINTERFLAG__LOADBITSTREAMPOINTERPERSLICE
4329 {
4330 LOADSLICEPOINTERFLAG_LOADBITSTREAMPOINTERPERSLICE_UNNAMED0 = 0, //!< Load BitStream Pointer only once for the first slice of a frame
4331 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
4332 };
4333
4334 //! \brief PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE
4335 //! \details
4336 //! This field is only applicable if the Concealment Motion Vectors are
4337 //! non-zero.
4338 //! It is only possible if "P/B Slice Concealment Mode" is set to "00"
4339 //! or "01" and left MB has non-zero motion vectors).
4340 enum PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE
4341 {
4342 PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE_PREDICTED = 0, //!< Motion Vectors use predicted values
4343 PB_SLICE_PREDICTED_MOTION_VECTOR_OVERRIDE_FINAL_MV_VALUE_OVERRIDE_ZERO = 1, //!< Motion Vectors force to 0
4344 };
4345
4346 //! \brief PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE__BI_DIRECTION_MV_TYPE_OVERRIDE
4347 //! \details
4348 //! This field is only applicable if the Concealment Motion Type is
4349 //! predicted to be Bi-directional.
4350 //! (It is only possible if "P/B Slice Concealment Mode" is set to "00"
4351 //! or "01" and left MB is a bi-directional MB).
4352 enum PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE__BI_DIRECTION_MV_TYPE_OVERRIDE
4353 {
4354 PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE_BI_DIRECTION_MV_TYPE_OVERRIDE_BID = 0, //!< Keep Bi-direction Prediction
4355 PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE_BI_DIRECTION_MV_TYPE_OVERRIDE_FWD = 2, //!< Only use Forward Prediction (Backward MV is forced to invalid
4356 PB_SLICE_PREDICTED_BIDIR_MOTION_TYPE_OVERRIDE_BI_DIRECTION_MV_TYPE_OVERRIDE_BWD = 3, //!< Only use Backward Prediction (Forward MV is forced to invalid)
4357 };
4358
4359 //! \brief PB_SLICE_CONCEALMENT_MODE_
4360 //! \details
4361 //! This field controls how MPEG decoder handles MB concealment in P/B
4362 //! Slice.
4363 enum PB_SLICE_CONCEALMENT_MODE_
4364 {
4365 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.
4366 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)
4367 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)
4368 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
4369 };
4370
4371 //! \brief I_SLICE_CONCEALMENT_MODE_
4372 //! \details
4373 //! This field controls how MPEG decoder handles MB concealment in I Slice
4374 enum I_SLICE_CONCEALMENT_MODE_
4375 {
4376 I_SLICE_CONCEALMENT_MODE_INTRACONCEALMENT = 0, //!< Using Coefficient values to handle MB concealment
4377 I_SLICE_CONCEALMENT_MODE_INTERCONCEALMENT = 1, //!< Using Motion Vectors to handle MB concealment
4378 };
4379
4380 //! \brief SLICE_CONCEALMENT_DISABLE_BIT
4381 //! \details
4382 //! If VINunit detects the next slice starting position is either
4383 //! out-of-bound or smaller than or equal to the current slice starting
4384 //! position, VIN will set the current slice to be 1 MB and force VMDunit to
4385 //! do slice concealment on the next slice.
4386 //! This bit will disable this feature and the MB data from the next
4387 //! slice will be decoded from bitstream.
4388 enum SLICE_CONCEALMENT_DISABLE_BIT
4389 {
4390 SLICE_CONCEALMENT_DISABLE_BIT_ENABLE = 0, //!< VIN will force next slice to be concealment if detects slice boundary error
4391 SLICE_CONCEALMENT_DISABLE_BIT_DISABLE = 1, //!< VIN will not force next slice to be in concealment
4392 };
4393
4394 //! \brief MINFRAMEWSIZE
4395 //! \details
4396 //! - Minimum Frame Size [15:0] (16-bit) (Encoder Only)Mininum Frame Size is
4397 //! specified to compensate for intel Rate ControlCurrently zero fill (no
4398 //! need to perform emulation byte insertion) is done only to the end of the
4399 //! CABAC_ZERO_WORD insertion (if any) at the last slice of a picture. Intel
4400 //! encoder parameter, not part of . The caller should always make sure
4401 //! that the value, represented by Mininum Frame Size, is always less than
4402 //! maximum frame size FrameBitRateMax (DWORD 10 bits 29:16). This field is
4403 //! reserved in Decode mode.
4404 enum MINFRAMEWSIZE
4405 {
4406 MINFRAMEWSIZE_UNNAMED0 = 0, //!< No additional details
4407 };
4408
4409 //! \brief INTRAMBMAXSIZEREPORTMASK
4410 //! \details
4411 //! This is a mask bit controlling if the condition of any intra MB in the
4412 //! frame exceeds IntraMBMaxSize.
4413 enum INTRAMBMAXSIZEREPORTMASK
4414 {
4415 INTRAMBMAXSIZEREPORTMASK_UNNAMED0 = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4416 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.
4417 };
4418
4419 //! \brief INTERMBMAXSIZEREPORTMASK
4420 //! \details
4421 //! This is a mask bit controlling if the condition of any inter MB in the
4422 //! frame exceeds InterMBMaxSize.
4423 enum INTERMBMAXSIZEREPORTMASK
4424 {
4425 INTERMBMAXSIZEREPORTMASK_UNNAMED0 = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4426 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.
4427 };
4428
4429 //! \brief FRAMEBITRATEMAXREPORTMASK_
4430 //! \details
4431 //! This is a mask bit controlling if the condition of frame level bit count
4432 //! exceeds FrameBitRateMax.
4433 enum FRAMEBITRATEMAXREPORTMASK_
4434 {
4435 FRAMEBITRATEMAXREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4436 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.
4437 };
4438
4439 //! \brief FRAMEBITRATEMINREPORTMASK
4440 //! \details
4441 //! This is a mask bit controlling if the condition of frame level bit count
4442 //! is less than FrameBitRateMin.
4443 enum FRAMEBITRATEMINREPORTMASK
4444 {
4445 FRAMEBITRATEMINREPORTMASK_DISABLE = 0, //!< Do not update bit0 of MFC_IMAGE_STATUS control register.
4446 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.
4447 };
4448
4449 //! \brief MBRATECONTROLMASK
4450 //! \details
4451 //! MB Rate Control conformance maskThis field is ignored when
4452 //! MacroblockStatEnable is disabled or MB level Rate control flag for the
4453 //! current MB is disable in Macroblock Status Buffer.
4454 enum MBRATECONTROLMASK
4455 {
4456 MBRATECONTROLMASK_UNNAMED0 = 0, //!< Do not change QP values of inter macroblock with suggested QP values in Macroblock Status Buffer
4457 MBRATECONTROLMASK_UNNAMED1 = 1, //!< Apply RC QP delta for all macroblock
4458 };
4459
4460 //! \brief MINFRAMEWSIZEUNITS
4461 //! \details
4462 //! This field is the Minimum Frame Size Units
4463 enum MINFRAMEWSIZEUNITS
4464 {
4465 MINFRAMEWSIZEUNITS_COMPATIBILITYMODE = 0, //!< Minimum Frame Size is in old mode (words, 2bytes)
4466 MINFRAMEWSIZEUNITS_16BYTE = 1, //!< Minimum Frame Size is in 16bytes
4467 MINFRAMEWSIZEUNITS_4KB = 2, //!< Minimum Frame Size is in 4Kbytes
4468 MINFRAMEWSIZEUNITS_16KB = 3, //!< Minimum Frame Size is in 16Kbytes
4469 };
4470
4471 //! \brief INTERMBFORCECBPZEROCONTROLMASK
4472 //! \details
4473 //! Inter MB Force CBP ZERO mask.
4474 enum INTERMBFORCECBPZEROCONTROLMASK
4475 {
4476 INTERMBFORCECBPZEROCONTROLMASK_UNNAMED0 = 0, //!< No effect
4477 INTERMBFORCECBPZEROCONTROLMASK_UNNAMED1 = 1, //!< Zero out all A/C coefficients for the inter MB violating Inter Confirmance
4478 };
4479
4480 //! \brief FRAMESIZECONTROLMASK
4481 //! \details
4482 //! Frame size conformance maskThis field is used when MacroblockStatEnable
4483 //! is set to 1.
4484 enum FRAMESIZECONTROLMASK
4485 {
4486 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
4487 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.
4488 };
4489
4490 //! \brief INTRAMBMAXSIZE
4491 //! \details
4492 //! This field, Intra MB Conformance Max size limit,indicates the allowed
4493 //! max bit count size for Intra MB
4494 enum INTRAMBMAXSIZE
4495 {
4496 INTRAMBMAXSIZE_UNNAMED_4095 = 4095, //!< No additional details
4497 };
4498
4499 //! \brief INTERMBMAXSIZE
4500 //! \details
4501 //! This field, Inter MB Conformance Max size limit,indicates the allowed
4502 //! max bit count size for Inter MB
4503 enum INTERMBMAXSIZE
4504 {
4505 INTERMBMAXSIZE_UNNAMED_4095 = 4095, //!< No additional details
4506 };
4507
4508 enum VSL_TOP_MB_TRANS8X8FLAG
4509 {
4510 VSL_TOP_MB_TRANS8X8FLAG_DISABLE = 0, //!< VSL will only fetch the current MB data.
4511 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.
4512 };
4513
4514 //! \brief SLICEDELTAQPMAX3
4515 //! \details
4516 //! This field is the Slice level delta QP for total
4517 //! bit-count above FrameBitRateMax - first 1/8 regionThis field is
4518 //! used to
4519 //! calculate the suggested slice QP into the MFC_IMAGE_STATUS control
4520 //! register when
4521 //! total bit count for the entire frame exceeds FrameBitRateMax but is
4522 //! within 1/8
4523 //! of FrameBitRateMaxDelta above FrameBitRateMax, i.e., in the range
4524 //! of
4525 //! (FrameBitRateMax, (FrameBitRateMax+
4526 //! FrameBitRateMaxDelta&gt;&gt;3).
4527 enum SLICEDELTAQPMAX3
4528 {
4529 SLICEDELTAQPMAX3_DISABLE = 0, //!< No additional details
4530 SLICEDELTAQPMAX3_ENABLE = 1, //!< No additional details
4531 };
4532
4533 //! \brief FRAMEBITRATEMINUNITMODE
4534 //! \details
4535 //! This field is the Frame Bitrate Minimum Limit
4536 //! Units.ValueNameDescriptionProject
4537 enum FRAMEBITRATEMINUNITMODE
4538 {
4539 FRAMEBITRATEMINUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
4540 FRAMEBITRATEMINUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
4541 };
4542
4543 //! \brief FRAMEBITRATEMINUNIT
4544 //! \details
4545 //! This field is the Frame Bitrate Minimum Limit Units.
4546 enum FRAMEBITRATEMINUNIT
4547 {
4548 FRAMEBITRATEMINUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMinUnitMode is 1 and in units of 128 Bytes if FrameBitrateMinUnitMode is 0
4549 FRAMEBITRATEMINUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
4550 };
4551
4552 //! \brief FRAMEBITRATEMAXUNITMODE
4553 //! \details
4554 //! BitFiel This field is the Frame Bitrate Maximum Limit Units.dDesc
4555 enum FRAMEBITRATEMAXUNITMODE
4556 {
4557 FRAMEBITRATEMAXUNITMODE_COMPATIBILITYMODE = 0, //!< FrameBitRateMaxUnit is in old mode (128b/16Kb)
4558 FRAMEBITRATEMAXUNITMODE_NEWMODE = 1, //!< FrameBitRateMaxUnit is in new mode (32byte/4Kb)
4559 };
4560
4561 //! \brief FRAMEBITRATEMAXUNIT_
4562 //! \details
4563 //! This field is the Frame Bitrate Maximum Limit Units.
4564 enum FRAMEBITRATEMAXUNIT_
4565 {
4566 FRAMEBITRATEMAXUNIT_BYTE = 0, //!< FrameBitRateMax is in units of 32 Bytes when FrameBitrateMaxUnitMode is 1 and in units of 128 Bytes if FrameBitrateMaxUnitMode is 0
4567 FRAMEBITRATEMAXUNIT_KILOBYTE = 1, //!< FrameBitRateMax is in units of 4KBytes Bytes when FrameBitrateMaxUnitMode is 1 and in units of 16KBytes if FrameBitrateMaxUnitMode is 0
4568 };
4569
4570 //! \brief FRAMEBITRATEMAXDELTA
4571 //! \details
4572 //! This field is used to select the slice delta QP when FrameBitRateMax Is
4573 //! exceeded. It shares the same FrameBitrateMaxUnit.
4574 //! The programmable range is either 0- 512KB or 4MBB in
4575 //! FrameBitrateMaxUnit of 128 Bytes or 16KB respectively.
4576 enum FRAMEBITRATEMAXDELTA
4577 {
4578 FRAMEBITRATEMAXDELTA_UNNAMED0 = 0, //!< No additional details
4579 };
4580
4581 //! \name Initializations
4582
4583 //! \brief Explicit member initialization function
4584 MFX_MPEG2_PIC_STATE_CMD();
4585
4586 static const size_t dwSize = 13;
4587 static const size_t byteSize = 52;
4588 };
4589
4590 //!
4591 //! \brief MFD_MPEG2_BSD_OBJECT
4592 //! \details
4593 //! Different from AVC and VC1, MFD_MPEG2_BSD_OBJECT command is pipelinable.
4594 //! This is for performance purpose as in MPEG2 a slice is defined as a
4595 //! group of MBs of any size that must be within a macroblock row.Slice
4596 //! header parameters are passed in as inline data and the bitstream data
4597 //! for the slice is passed in as indirect data. Of the inline data,
4598 //! slice_horizontal_position and slice_vertical_position determines the
4599 //! location within the destination picture of the first macroblock in the
4600 //! slice. The content in this command is identical to that in the
4601 //! MEDIA_OBJECT command in VLD mode described in the Media Chapter.
4602 //!
4603 struct MFD_MPEG2_BSD_OBJECT_CMD
4604 {
4605 union
4606 {
4607 //!< DWORD 0
4608 struct
4609 {
4610 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
4611 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
4612 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
4613 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
4614 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
4615 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
4616 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
4617 };
4618 uint32_t Value;
4619 } DW0;
4620 union
4621 {
4622 //!< DWORD 1
4623 struct
4624 {
4625 uint32_t IndirectBsdDataLength ; //!< Indirect BSD Data Length
4626 };
4627 uint32_t Value;
4628 } DW1;
4629 union
4630 {
4631 //!< DWORD 2
4632 struct
4633 {
4634 uint32_t IndirectDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect Data Start Address
4635 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
4636 };
4637 uint32_t Value;
4638 } DW2;
4639 union
4640 {
4641 //!< DWORD 3
4642 struct
4643 {
4644 uint32_t FirstMacroblockBitOffset : __CODEGEN_BITFIELD( 0, 2) ; //!< First Macroblock Bit Offset
4645 uint32_t IsLastMb : __CODEGEN_BITFIELD( 3, 3) ; //!< IS_LAST_MB
4646 uint32_t Reserved100 : __CODEGEN_BITFIELD( 4, 4) ; //!< Reserved
4647 uint32_t LastPicSlice : __CODEGEN_BITFIELD( 5, 5) ; //!< LAST_PIC_SLICE
4648 uint32_t SliceConcealmentTypeBit : __CODEGEN_BITFIELD( 6, 6) ; //!< SLICE_CONCEALMENT_TYPE_BIT
4649 uint32_t SliceConcealmentOverrideBit : __CODEGEN_BITFIELD( 7, 7) ; //!< SLICE_CONCEALMENT_OVERRIDE_BIT
4650 uint32_t MacroblockCount : __CODEGEN_BITFIELD( 8, 15) ; //!< Macroblock Count
4651 uint32_t SliceVerticalPosition : __CODEGEN_BITFIELD(16, 23) ; //!< Slice Vertical Position
4652 uint32_t SliceHorizontalPosition : __CODEGEN_BITFIELD(24, 31) ; //!< Slice Horizontal Position
4653 };
4654 uint32_t Value;
4655 } DW3;
4656 union
4657 {
4658 //!< DWORD 4
4659 struct
4660 {
4661 uint32_t NextSliceHorizontalPosition : __CODEGEN_BITFIELD( 0, 7) ; //!< Next Slice Horizontal Position
4662 uint32_t NextSliceVerticalPosition : __CODEGEN_BITFIELD( 8, 16) ; //!< Next Slice Vertical Position
4663 uint32_t Reserved145 : __CODEGEN_BITFIELD(17, 23) ; //!< Reserved
4664 uint32_t QuantizerScaleCode : __CODEGEN_BITFIELD(24, 28) ; //!< Quantizer Scale Code
4665 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
4666 };
4667 uint32_t Value;
4668 } DW4;
4669
4670 //! \name Local enumerations
4671
4672 enum SUBOPCODE_B
4673 {
4674 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
4675 };
4676
4677 enum SUBOPCODE_A
4678 {
4679 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
4680 };
4681
4682 enum MEDIA_COMMAND_OPCODE
4683 {
4684 MEDIA_COMMAND_OPCODE_MPEG2DEC = 3, //!< No additional details
4685 };
4686
4687 enum PIPELINE
4688 {
4689 PIPELINE_MFDMPEG2BSDOBJECT = 2, //!< No additional details
4690 };
4691
4692 enum COMMAND_TYPE
4693 {
4694 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
4695 };
4696
4697 enum IS_LAST_MB
4698 {
4699 IS_LAST_MB_UNNAMED0 = 0, //!< The current MB is not the last MB in the current Slice
4700 IS_LAST_MB_UNNAMED1 = 1, //!< The current MB is the last MB in the current Slice
4701 };
4702
4703 //! \brief LAST_PIC_SLICE
4704 //! \details
4705 //! This bit is added to support error concealment at the end of a picture.
4706 enum LAST_PIC_SLICE
4707 {
4708 LAST_PIC_SLICE_UNNAMED0 = 0, //!< The current Slice is not the last Slice of current picture
4709 LAST_PIC_SLICE_UNNAMED1 = 1, //!< The current Slice is the last Slice of the entire picture
4710 };
4711
4712 //! \brief SLICE_CONCEALMENT_TYPE_BIT
4713 //! \details
4714 //! This bit can be forced by driver ("Slice Concealment Override Bit") or
4715 //! set by VINunit depending on slice boundary errors.
4716 enum SLICE_CONCEALMENT_TYPE_BIT
4717 {
4718 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.
4719 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)
4720 };
4721
4722 //! \brief SLICE_CONCEALMENT_OVERRIDE_BIT
4723 //! \details
4724 //! This bit forces hardware to handle the current slice in Conceal or
4725 //! Deocde Mode. If this bit is set to one, VIN will force the current
4726 //! slice to do concealment or to decode from bitstream regardless if the
4727 //! slice boundary has errors or not.
4728 enum SLICE_CONCEALMENT_OVERRIDE_BIT
4729 {
4730 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
4731 SLICE_CONCEALMENT_OVERRIDE_BIT_UNNAMED1 = 1, //!< VIN will use driver-provided "Slice Concealment Type" regardless of valid slice boundary
4732 };
4733
4734 //! \name Initializations
4735
4736 //! \brief Explicit member initialization function
4737 MFD_MPEG2_BSD_OBJECT_CMD();
4738
4739 static const size_t dwSize = 5;
4740 static const size_t byteSize = 20;
4741 };
4742
4743 //!
4744 //! \brief MFD_IT_OBJECT_MPEG2_INLINE_DATA
4745 //! \details
4746 //! The content in this command is similar to that in the MEDIA_OBJECT
4747 //! command in IS mode described in the Media Chapter. Each MFD_IT_OBJECT
4748 //! command corresponds to the processing of one macroblock. Macroblock
4749 //! parameters are passed in as inline data and the non-zero DCT coefficient
4750 //! data for the macroblock is passed in as indirect data. Inline data
4751 //! starts at dword 7 of MFD_IT_OBJECT command. There are 7 dwords total.
4752 //!
4753 struct MFD_IT_OBJECT_MPEG2_INLINE_DATA_CMD
4754 {
4755 union
4756 {
4757 //!< DWORD 0
4758 struct
4759 {
4760 uint32_t Reserved0 : __CODEGEN_BITFIELD(0, 2); //!< Reserved
4761 uint32_t Lastmbinrow : __CODEGEN_BITFIELD(3, 3); //!< LastMBInRow
4762 uint32_t Reserved4 : __CODEGEN_BITFIELD(4, 5); //!< Reserved
4763 uint32_t CodedBlockPattern : __CODEGEN_BITFIELD(6, 11); //!< Coded Block Pattern
4764 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15); //!< Reserved
4765 uint32_t MacroblockIntraType : __CODEGEN_BITFIELD(16, 16); //!< MACROBLOCK_INTRA_TYPE
4766 uint32_t MacroblockMotionForward : __CODEGEN_BITFIELD(17, 17); //!< MACROBLOCK_MOTION_FORWARD
4767 uint32_t MacroblockMotionBackward : __CODEGEN_BITFIELD(18, 18); //!< MACROBLOCK_MOTION_BACKWARD
4768 uint32_t Reserved19 : __CODEGEN_BITFIELD(19, 20); //!< Reserved
4769 uint32_t DctType : __CODEGEN_BITFIELD(21, 21); //!< DCT_TYPE
4770 uint32_t Reserved22 : __CODEGEN_BITFIELD(22, 23); //!< Reserved
4771 uint32_t MotionType : __CODEGEN_BITFIELD(24, 25); //!< Motion Type
4772 uint32_t Reserved26 : __CODEGEN_BITFIELD(26, 27); //!< Reserved
4773 uint32_t MotionVerticalFieldSelect : __CODEGEN_BITFIELD(28, 31); //!< MOTION_VERTICAL_FIELD_SELECT
4774 };
4775 uint32_t Value;
4776 } DW0;
4777 union
4778 {
4779 //!< DWORD 1
4780 struct
4781 {
4782 uint32_t Horzorigin : __CODEGEN_BITFIELD(0, 7); //!< HorzOrigin
4783 uint32_t Vertorigin : __CODEGEN_BITFIELD(8, 15); //!< VertOrigin
4784 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
4785 };
4786 uint32_t Value;
4787 } DW1;
4788 union
4789 {
4790 //!< DWORD 2
4791 struct
4792 {
4793 uint32_t MotionVectorsField0ForwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 0, Forward, Horizontal Component
4794 uint32_t MotionVectorsField0ForwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 0, Forward, Vertical Component
4795 };
4796 uint32_t Value;
4797 } DW2;
4798 union
4799 {
4800 //!< DWORD 3
4801 struct
4802 {
4803 uint32_t MotionVectorsField0BackwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 0, Backward, Horizontal Component
4804 uint32_t MotionVectorsField0BackwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 0, Backward, Vertical Component
4805 };
4806 uint32_t Value;
4807 } DW3;
4808 union
4809 {
4810 //!< DWORD 4
4811 struct
4812 {
4813 uint32_t MotionVectorsField1ForwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 1, Forward, Horizontal Component
4814 uint32_t MotionVectorsField1ForwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 1, Forward, Vertical Component
4815 };
4816 uint32_t Value;
4817 } DW4;
4818 union
4819 {
4820 //!< DWORD 5
4821 struct
4822 {
4823 uint32_t MotionVectorsField1BackwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 1, Backward, Horizontal Component
4824 uint32_t MotionVectorsField1BackwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 1, Backward, Vertical Component
4825 };
4826 uint32_t Value;
4827 } DW5;
4828
4829 //! \name Local enumerations
4830
4831 //! \brief MACROBLOCK_INTRA_TYPE
4832 //! \details
4833 //! This field specifies if the current macroblock is intra-coded. When set,
4834 //! Coded Block Pattern is ignored and no prediction is performed (i.e., no
4835 //! motion vectors are used). See ISO/IEC 13818-2 Tables B-2 through B-4.
4836 enum MACROBLOCK_INTRA_TYPE
4837 {
4838 MACROBLOCK_INTRA_TYPE_NON_INTRAMACROBLOCK = 0, //!< No additional details
4839 MACROBLOCK_INTRA_TYPE_INTRAMACROBLOCK = 1, //!< No additional details
4840 };
4841
4842 //! \brief MACROBLOCK_MOTION_FORWARD
4843 //! \details
4844 //! This field specifies if the forward motion vector is active. See ISO/IEC
4845 //! 13818-2 Tables B-2 through B-4.
4846 enum MACROBLOCK_MOTION_FORWARD
4847 {
4848 MACROBLOCK_MOTION_FORWARD_NOFORWARDMOTIONVECTOR = 0, //!< No additional details
4849 MACROBLOCK_MOTION_FORWARD_USEFORWARDMOTIONVECTORS = 1, //!< No additional details
4850 };
4851
4852 //! \brief MACROBLOCK_MOTION_BACKWARD
4853 //! \details
4854 //! This field specifies if the backward motion vector is active. See
4855 //! ISO/IEC 13818-2 Tables B-2 through B-4.
4856 enum MACROBLOCK_MOTION_BACKWARD
4857 {
4858 MACROBLOCK_MOTION_BACKWARD_NOBACKWARDMOTIONVECTOR = 0, //!< No additional details
4859 MACROBLOCK_MOTION_BACKWARD_USEBACKWARDMOTIONVECTORS = 1, //!< No additional details
4860 };
4861
4862 //! \brief DCT_TYPE
4863 //! \details
4864 //! This field specifies the DCT type of the current macroblock. The kernel
4865 //! should ignore this field when processing Cb/Cr data. See ISO/IEC 13818-2
4866 //! #167;6.3.17.1. This field is zero if Coded Block Pattern is also zero
4867 //! (no coded blocks present).
4868 enum DCT_TYPE
4869 {
4870 DCT_TYPE_MCFRAMEDCT = 0, //!< Macroblock is frame DCT coded
4871 DCT_TYPE_MCFIELDDCT = 1, //!< Macroblock is field DCT coded
4872 };
4873
4874 //! \brief MOTION_VERTICAL_FIELD_SELECT
4875 //! \details
4876 //! A bit-wise representation of a long [2][2] array as defined in
4877 //! #167;6.3.17.2 of the ISO/IEC 13818-2 (see also #167;7.6.4).
4878 //! <table>
4879 //! <thead>
4880 //!
4881 //! <tr><td>Bit</td><td>MVector[r]</td><td>MVector[s]</td><td>MotionVerticalFieldSelect
4882 //! Index</td></tr>
4883 //! </thead>
4884 //! <tbody>
4885 //! <tr><td>28</td><td>0</td><td>0</td><td>0</td></tr>
4886 //! <tr><td>29</td><td>0</td><td>1</td><td>1</td></tr>
4887 //! <tr><td>30</td><td>1</td><td>0</td><td>2</td></tr>
4888 //! <tr><td>31</td><td>1</td><td>1</td><td>3</td></tr>
4889 //! </tbody>
4890 //! </table>
4891 enum MOTION_VERTICAL_FIELD_SELECT
4892 {
4893 MOTION_VERTICAL_FIELD_SELECT_TOPFIELD = 0, //!< The prediction is taken from the top reference field.
4894 MOTION_VERTICAL_FIELD_SELECT_BOTTOMFIELD = 1, //!< The prediction is taken from the bottom reference field.
4895 };
4896
4897 //! \name Initializations
4898
4899 //! \brief Explicit member initialization function
4900 MFD_IT_OBJECT_MPEG2_INLINE_DATA_CMD();
4901
4902 static const size_t dwSize = 6;
4903 static const size_t byteSize = 24;
4904 };
4905
4906 //!
4907 //! \brief MFD_IT_OBJECT_VC1_INLINE_DATA
4908 //! \details
4909 //! The content in this command is similar to that in the MEDIA_OBJECT
4910 //! command in IS mode described in the Media Chapter. Each MFD_IT_OBJECT
4911 //! command corresponds to the processing of one macroblock. Macroblock
4912 //! parameters are passed in as inline data and the non-zero DCT coefficient
4913 //! data for the macroblock is passed in as indirect data. Inline data
4914 //! starts at dword 7 of MFD_IT_OBJECT command. There are 7 dwords total.
4915 //!
4916 struct MFD_IT_OBJECT_VC1_INLINE_DATA_CMD
4917 {
4918 union
4919 {
4920 //!< DWORD 0
4921 struct
4922 {
4923 uint32_t Reserved0 : __CODEGEN_BITFIELD(0, 2); //!< Reserved
4924 uint32_t Lastmbinrow : __CODEGEN_BITFIELD(3, 3); //!< LastMBInRow
4925 uint32_t LastRowFlag : __CODEGEN_BITFIELD(4, 4); //!< Last Row Flag
4926 uint32_t ChromaIntraFlag : __CODEGEN_BITFIELD(5, 5); //!< Chroma Intra Flag
4927 uint32_t CodedBlockPattern : __CODEGEN_BITFIELD(6, 11); //!< Coded Block Pattern
4928 uint32_t LumaIntra8X8Flag : __CODEGEN_BITFIELD(12, 15); //!< Luma Intra 8x8 Flag
4929 uint32_t MacroblockIntraType : __CODEGEN_BITFIELD(16, 16); //!< MACROBLOCK_INTRA_TYPE
4930 uint32_t MacroblockMotionForward : __CODEGEN_BITFIELD(17, 17); //!< MACROBLOCK_MOTION_FORWARD
4931 uint32_t MacroblockMotionBackward : __CODEGEN_BITFIELD(18, 18); //!< MACROBLOCK_MOTION_BACKWARD
4932 uint32_t Motion4Mv : __CODEGEN_BITFIELD(19, 19); //!< MOTION4MV
4933 uint32_t Overlaptransform : __CODEGEN_BITFIELD(20, 20); //!< OVERLAPTRANSFORM
4934 uint32_t DctType : __CODEGEN_BITFIELD(21, 21); //!< DCT_TYPE
4935 uint32_t Mvswitch : __CODEGEN_BITFIELD(22, 22); //!< MvSwitch
4936 uint32_t Reserved23 : __CODEGEN_BITFIELD(23, 23); //!< Reserved
4937 uint32_t MotionType : __CODEGEN_BITFIELD(24, 25); //!< Motion Type
4938 uint32_t Mvfieldselectchroma : __CODEGEN_BITFIELD(26, 26); //!< MvFieldSelectChroma
4939 uint32_t Reserved27 : __CODEGEN_BITFIELD(27, 27); //!< Reserved
4940 uint32_t MotionVerticalFieldSelect : __CODEGEN_BITFIELD(28, 31); //!< MOTION_VERTICAL_FIELD_SELECT
4941 };
4942 uint32_t Value;
4943 } DW0;
4944 union
4945 {
4946 //!< DWORD 1
4947 struct
4948 {
4949 uint32_t Horzorigin : __CODEGEN_BITFIELD(0, 7); //!< HorzOrigin
4950 uint32_t Vertorigin : __CODEGEN_BITFIELD(8, 15); //!< VertOrigin
4951 uint32_t Osedgemaskluma : __CODEGEN_BITFIELD(16, 23); //!< OSEdgeMaskLuma
4952 uint32_t Osedgemaskchroma : __CODEGEN_BITFIELD(24, 25); //!< OSEdgeMaskChroma
4953 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31); //!< Reserved
4954 };
4955 uint32_t Value;
4956 } DW1;
4957 union
4958 {
4959 //!< DWORD 2
4960 struct
4961 {
4962 uint32_t MotionVectorsField0ForwardHorizontalComponent : __CODEGEN_BITFIELD(0, 15); //!< Motion Vectors - Field 0, Forward, Horizontal Component
4963 uint32_t MotionVectorsField0ForwardVerticalComponent : __CODEGEN_BITFIELD(16, 31); //!< Motion Vectors - Field 0, Forward, Vertical Component
4964 };
4965 uint32_t Value;
4966 } DW2;
4967 union
4968 {
4969 //!< DWORD 3
4970 struct
4971 {
4972 uint32_t Motionvector1; //!< MotionVector1
4973 };
4974 uint32_t Value;
4975 } DW3;
4976 union
4977 {
4978 //!< DWORD 4
4979 struct
4980 {
4981 uint32_t Motionvector2; //!< MotionVector2
4982 };
4983 uint32_t Value;
4984 } DW4;
4985 union
4986 {
4987 //!< DWORD 5
4988 struct
4989 {
4990 uint32_t Motionvector3; //!< MotionVector3
4991 };
4992 uint32_t Value;
4993 } DW5;
4994 union
4995 {
4996 //!< DWORD 6
4997 struct
4998 {
4999 uint32_t Motionvectorchroma; //!< MotionVectorChroma
5000 };
5001 uint32_t Value;
5002 } DW6;
5003 union
5004 {
5005 //!< DWORD 7
5006 struct
5007 {
5008 uint32_t SubblockCodeForY0 : __CODEGEN_BITFIELD(0, 7); //!< Subblock Code for Y0
5009 uint32_t SubblockCodeForY1 : __CODEGEN_BITFIELD(8, 15); //!< Subblock Code for Y1
5010 uint32_t SubblockCodeForY2 : __CODEGEN_BITFIELD(16, 23); //!< Subblock Code for Y2
5011 uint32_t SubblockCodeForY3 : __CODEGEN_BITFIELD(24, 31); //!< Subblock Code for Y3
5012 };
5013 uint32_t Value;
5014 } DW7;
5015 union
5016 {
5017 //!< DWORD 8
5018 struct
5019 {
5020 uint32_t SubblockCodeForCb : __CODEGEN_BITFIELD(0, 7); //!< Subblock Code for Cb
5021 uint32_t SubblockCodeForCr : __CODEGEN_BITFIELD(8, 15); //!< Subblock Code for Cr
5022 uint32_t Reserved272 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
5023 };
5024 uint32_t Value;
5025 } DW8;
5026 union
5027 {
5028 //!< DWORD 9
5029 struct
5030 {
5031 uint32_t IldbControlDataForBlockY0 : __CODEGEN_BITFIELD(0, 7); //!< ILDB control data for block Y0
5032 uint32_t IldbControlDataForBlockY1 : __CODEGEN_BITFIELD(8, 15); //!< ILDB control data for block Y1
5033 uint32_t IldbControlDataForBlockY2 : __CODEGEN_BITFIELD(16, 23); //!< ILDB control data for block Y2
5034 uint32_t IldbControlDataForBlockY3 : __CODEGEN_BITFIELD(24, 31); //!< ILDB control data for block Y3
5035 };
5036 uint32_t Value;
5037 } DW9;
5038 union
5039 {
5040 //!< DWORD 10
5041 struct
5042 {
5043 uint32_t IldbControlDataForCbBlock : __CODEGEN_BITFIELD(0, 7); //!< ILDB control data for Cb block
5044 uint32_t IldbControlDataForCrBlock : __CODEGEN_BITFIELD(8, 15); //!< ILDB control data for Cr block
5045 uint32_t Reserved336 : __CODEGEN_BITFIELD(16, 31); //!< Reserved
5046 };
5047 uint32_t Value;
5048 } DW10;
5049
5050 //! \name Local enumerations
5051
5052 //! \brief MACROBLOCK_INTRA_TYPE
5053 //! \details
5054 //! This field specifies if the current macroblock is intra-coded. When set,
5055 //! Coded Block Pattern is ignored and no prediction is performed (i.e., no
5056 //! motion vectors are used). See ISO/IEC 13818-2 Tables B-2 through B-4.
5057 enum MACROBLOCK_INTRA_TYPE
5058 {
5059 MACROBLOCK_INTRA_TYPE_NON_INTRAMACROBLOCK = 0, //!< No additional details
5060 MACROBLOCK_INTRA_TYPE_INTRAMACROBLOCK = 1, //!< No additional details
5061 };
5062
5063 //! \brief MACROBLOCK_MOTION_FORWARD
5064 //! \details
5065 //! This field specifies if the forward motion vector is active. See ISO/IEC
5066 //! 13818-2 Tables B-2 through B-4.
5067 enum MACROBLOCK_MOTION_FORWARD
5068 {
5069 MACROBLOCK_MOTION_FORWARD_NOFORWARDMOTIONVECTOR = 0, //!< No additional details
5070 MACROBLOCK_MOTION_FORWARD_USEFORWARDMOTIONVECTORS = 1, //!< No additional details
5071 };
5072
5073 //! \brief MACROBLOCK_MOTION_BACKWARD
5074 //! \details
5075 //! This field specifies if the backward motion vector is active. See
5076 //! ISO/IEC 13818-2 Tables B-2 through B-4.
5077 enum MACROBLOCK_MOTION_BACKWARD
5078 {
5079 MACROBLOCK_MOTION_BACKWARD_NOBACKWARDMOTIONVECTOR = 0, //!< No additional details
5080 MACROBLOCK_MOTION_BACKWARD_USEBACKWARDMOTIONVECTORS = 1, //!< No additional details
5081 };
5082
5083 enum MOTION4MV
5084 {
5085 MOTION4MV_1MV_MODE = 0, //!< No additional details
5086 MOTION4MV_4MV_MODE = 1, //!< No additional details
5087 };
5088
5089 //! \brief OVERLAPTRANSFORM
5090 //! \details
5091 //! Was Overlap Transform - H261 Loop Filter
5092 enum OVERLAPTRANSFORM
5093 {
5094 OVERLAPTRANSFORM_NOOVERLAPSMOOTHINGFILTER = 0, //!< This field indicates whether overlap smoothing filter should be performed on I-block boundaries.
5095 OVERLAPTRANSFORM_OVERLAPSMOOTHINGFILTERPERFORMED = 1, //!< Macroblock is field DCT coded
5096 };
5097
5098 //! \brief DCT_TYPE
5099 //! \details
5100 //! This field specifies the DCT type of the current macroblock. The kernel
5101 //! should ignore this field when processing Cb/Cr data. See ISO/IEC 13818-2
5102 //! #167;6.3.17.1. This field is zero if Coded Block Pattern is also zero
5103 //! (no coded blocks present).
5104 enum DCT_TYPE
5105 {
5106 DCT_TYPE_MCFRAMEDCT = 0, //!< Macroblock is frame DCT coded
5107 DCT_TYPE_MCFIELDDCT = 1, //!< Macroblock is field DCT coded
5108 };
5109
5110 //! \brief MOTION_VERTICAL_FIELD_SELECT
5111 //! \details
5112 //! A bit-wise representation of a long [2][2] array as defined in
5113 //! #167;6.3.17.2 of the ISO/IEC 13818-2 (see also #167;7.6.4).
5114 //! <table>
5115 //! <thead>
5116 //!
5117 //! <tr><td>Bit</td><td>MVector[r]</td><td>MVector[s]</td><td>MotionVerticalFieldSelect
5118 //! Index</td></tr>
5119 //! </thead>
5120 //! <tbody>
5121 //! <tr><td>28</td><td>0</td><td>0</td><td>0</td></tr>
5122 //! <tr><td>29</td><td>0</td><td>1</td><td>1</td></tr>
5123 //! <tr><td>30</td><td>1</td><td>0</td><td>2</td></tr>
5124 //! <tr><td>31</td><td>1</td><td>1</td><td>3</td></tr>
5125 //! </tbody>
5126 //! </table>
5127 enum MOTION_VERTICAL_FIELD_SELECT
5128 {
5129 MOTION_VERTICAL_FIELD_SELECT_TOPFIELD = 0, //!< The prediction is taken from the top reference field.
5130 MOTION_VERTICAL_FIELD_SELECT_BOTTOMFIELD = 1, //!< The prediction is taken from the bottom reference field.
5131 };
5132
5133 //! \name Initializations
5134
5135 //! \brief Explicit member initialization function
5136 MFD_IT_OBJECT_VC1_INLINE_DATA_CMD();
5137
5138 static const size_t dwSize = 11;
5139 static const size_t byteSize = 44;
5140 };
5141
5142 //!
5143 //! \brief MFD_IT_OBJECT
5144 //! \details
5145 //! All weight mode (default and implicit) are mapped to explicit mode. But
5146 //! the weights come in either as explicit or implicit.
5147 //!
5148 struct MFD_IT_OBJECT_CMD
5149 {
5150 union
5151 {
5152 //!< DWORD 0
5153 struct
5154 {
5155 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5156 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5157 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5158 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5159 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5160 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5161 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5162 };
5163 uint32_t Value;
5164 } DW0;
5165 union
5166 {
5167 //!< DWORD 1
5168 struct
5169 {
5170 uint32_t IndirectItMvDataLength : __CODEGEN_BITFIELD( 0, 9) ; //!< Indirect IT-MV Data Length
5171 uint32_t Reserved42 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved
5172 };
5173 uint32_t Value;
5174 } DW1;
5175 union
5176 {
5177 //!< DWORD 2
5178 struct
5179 {
5180 uint32_t IndirectItMvDataStartAddressOffset : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect IT-MV Data Start Address Offset
5181 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5182 };
5183 uint32_t Value;
5184 } DW2;
5185 union
5186 {
5187 //!< DWORD 3
5188 struct
5189 {
5190 uint32_t IndirectItCoeffDataLength : __CODEGEN_BITFIELD( 0, 11) ; //!< Indirect IT-COEFF Data Length
5191 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 31) ; //!< Reserved
5192 };
5193 uint32_t Value;
5194 } DW3;
5195 union
5196 {
5197 //!< DWORD 4
5198 struct
5199 {
5200 uint32_t IndirectItCoeffDataStartAddressOffset : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect IT-COEFF Data Start Address Offset
5201 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5202 };
5203 uint32_t Value;
5204 } DW4;
5205 union
5206 {
5207 //!< DWORD 5
5208 struct
5209 {
5210 uint32_t IndirectItDblkControlDataLength : __CODEGEN_BITFIELD( 0, 5) ; //!< Indirect IT-DBLK Control Data Length
5211 uint32_t Reserved166 : __CODEGEN_BITFIELD( 6, 31) ; //!< Reserved
5212 };
5213 uint32_t Value;
5214 } DW5;
5215 union
5216 {
5217 //!< DWORD 6
5218 struct
5219 {
5220 uint32_t IndirectItDblkControlDataStartAddressOffset : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect IT-DBLK Control Data Start Address Offset
5221 uint32_t Reserved221 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5222 };
5223 uint32_t Value;
5224 } DW6;
5225
5226 //! \name Local enumerations
5227
5228 enum SUBOPCODE_B
5229 {
5230 SUBOPCODE_B_UNNAMED9 = 9, //!< No additional details
5231 };
5232
5233 enum SUBOPCODE_A
5234 {
5235 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
5236 };
5237
5238 enum MEDIA_COMMAND_OPCODE
5239 {
5240 MEDIA_COMMAND_OPCODE_MFXCOMMONDEC = 0, //!< No additional details
5241 };
5242
5243 enum PIPELINE
5244 {
5245 PIPELINE_MFDITOBJECT = 2, //!< No additional details
5246 };
5247
5248 enum COMMAND_TYPE
5249 {
5250 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5251 };
5252
5253 //! \name Initializations
5254
5255 //! \brief Explicit member initialization function
5256 MFD_IT_OBJECT_CMD();
5257
5258 static const size_t dwSize = 7;
5259 static const size_t byteSize = 28;
5260 };
5261
5262 //!
5263 //! \brief MFC_MPEG2_SLICEGROUP_STATE
5264 //! \details
5265 //! This is a slice group level command and can be issued multiple times
5266 //! within a picture that is comprised of multiple slice groups. The same
5267 //! command is used for AVC encoder (PAK mode) and decoder (VLD and IT
5268 //! modes).
5269 //!
5270 struct MFC_MPEG2_SLICEGROUP_STATE_CMD
5271 {
5272 union
5273 {
5274 //!< DWORD 0
5275 struct
5276 {
5277 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5278 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5279 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5280 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5281 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5282 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5283 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5284 };
5285 uint32_t Value;
5286 } DW0;
5287 union
5288 {
5289 //!< DWORD 1
5290 struct
5291 {
5292 uint32_t Streamid10EncoderOnly : __CODEGEN_BITFIELD( 0, 1) ; //!< StreamID[1:0] (Encoder-only)
5293 uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved
5294 uint32_t Sliceid30EncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< SliceID[3:0] (Encoder-only)
5295 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 11) ; //!< Reserved
5296 uint32_t Intrasliceflag : __CODEGEN_BITFIELD(12, 12) ; //!< IntraSliceFlag
5297 uint32_t Intraslice : __CODEGEN_BITFIELD(13, 13) ; //!< IntraSlice
5298 uint32_t Firstslicehdrdisabled : __CODEGEN_BITFIELD(14, 14) ; //!< FirstSliceHdrDisabled
5299 uint32_t TailpresentflagTailInsertionPresentInBitstreamEncoderOnly : __CODEGEN_BITFIELD(15, 15) ; //!< TAILPRESENTFLAG__TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5300 uint32_t SlicedataPresentflagSlicedataInsertionPresentInBitstreamEncoderOnly : __CODEGEN_BITFIELD(16, 16) ; //!< SLICEDATA_PRESENTFLAG__SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5301 uint32_t HeaderpresentflagHeaderInsertionPresentInBitstreamEncoderOnly : __CODEGEN_BITFIELD(17, 17) ; //!< HEADERPRESENTFLAG__HEADER_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5302 uint32_t BitstreamoutputflagCompressedBitstreamOutputDisableFlagEncoderOnly : __CODEGEN_BITFIELD(18, 18) ; //!< BITSTREAMOUTPUTFLAG__COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY
5303 uint32_t Islastslicegrp : __CODEGEN_BITFIELD(19, 19) ; //!< IsLastSliceGrp
5304 uint32_t SkipconvdisabledMbTypeSkipConversionDisableEncoderOnly : __CODEGEN_BITFIELD(20, 20) ; //!< SKIPCONVDISABLED__MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY
5305 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 21) ; //!< Reserved
5306 uint32_t RatectrlpanictypeRcPanicTypeEncoderOnly : __CODEGEN_BITFIELD(22, 22) ; //!< RATECTRLPANICTYPE__RC_PANIC_TYPE_ENCODER_ONLY
5307 uint32_t RatectrlpanicflagRcPanicEnableEncoderOnly : __CODEGEN_BITFIELD(23, 23) ; //!< RATECTRLPANICFLAG__RC_PANIC_ENABLE_ENCODER_ONLY
5308 uint32_t MbratectrlparamRcStableToleranceEncoderOnly : __CODEGEN_BITFIELD(24, 27) ; //!< MbRateCtrlParam- RC Stable Tolerance (Encoder-only)
5309 uint32_t MbratectrlmodeRcTriggleModeEncoderOnly : __CODEGEN_BITFIELD(28, 29) ; //!< MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY
5310 uint32_t MbratectrlresetResetratecontrolcounterEncoderOnly : __CODEGEN_BITFIELD(30, 30) ; //!< MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY
5311 uint32_t MbratectrlflagRatecontrolcounterenableEncoderOnly : __CODEGEN_BITFIELD(31, 31) ; //!< MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY
5312 };
5313 uint32_t Value;
5314 } DW1;
5315 union
5316 {
5317 //!< DWORD 2
5318 struct
5319 {
5320 uint32_t FirstmbxcntAlsoCurrstarthorzpos : __CODEGEN_BITFIELD( 0, 7) ; //!< FirstMbXcnt - also CurrStartHorzPos
5321 uint32_t FirstmbycntAlsoCurrstartvertpos : __CODEGEN_BITFIELD( 8, 15) ; //!< FirstMbYcnt - also CurrStartVertPos
5322 uint32_t NextsgmbxcntAlsoNextstarthorzpos : __CODEGEN_BITFIELD(16, 23) ; //!< NextSgMbXcnt - also NextStartHorzPos
5323 uint32_t NextsgmbycntAlsoNextstartvertpos : __CODEGEN_BITFIELD(24, 31) ; //!< NextSgMbYcnt - also NextStartVertPos
5324 };
5325 uint32_t Value;
5326 } DW2;
5327 union
5328 {
5329 //!< DWORD 3
5330 struct
5331 {
5332 uint32_t Slicegroupqp : __CODEGEN_BITFIELD( 0, 5) ; //!< SliceGroupQp
5333 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5334 uint32_t Slicegroupskip : __CODEGEN_BITFIELD( 8, 8) ; //!< SliceGroupSkip
5335 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
5336 };
5337 uint32_t Value;
5338 } DW3;
5339 union
5340 {
5341 //!< DWORD 4
5342 struct
5343 {
5344 uint32_t BitstreamoffsetIndirectPakBseDataStartAddressWrite : __CODEGEN_BITFIELD( 0, 28) ; //!< BitstreamOffset - Indirect PAK-BSE Data Start Address (Write)
5345 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
5346 };
5347 uint32_t Value;
5348 } DW4;
5349 union
5350 {
5351 //!< DWORD 5
5352 struct
5353 {
5354 uint32_t GrowparamGrowInitEncoderOnly : __CODEGEN_BITFIELD( 0, 3) ; //!< GrowParam - Grow Init (Encoder-only)
5355 uint32_t GrowparamGrowResistanceEncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< GrowParam - Grow Resistance (Encoder-only)
5356 uint32_t ShrinkaramShrinkInitEncoderOnly : __CODEGEN_BITFIELD( 8, 11) ; //!< Shrinkaram - Shrink Init (Encoder-only)
5357 uint32_t ShrinkparamShrinkResistanceEncoderOnly : __CODEGEN_BITFIELD(12, 15) ; //!< ShrinkParam - Shrink Resistance (Encoder-only)
5358 uint32_t MaxqpposmodifierMagnitudeOfQpMaxPositiveModifierEncoderOnly : __CODEGEN_BITFIELD(16, 23) ; //!< MaxQpPosModifier - Magnitude of QP Max Positive Modifier (Encoder-only)
5359 uint32_t MaxqpnegmodifierMagnitudeOfQpMaxNegativeModifierEncoderOnly : __CODEGEN_BITFIELD(24, 31) ; //!< MaxQpNegModifier - Magnitude of QP Max Negative Modifier (Encoder-only)
5360 };
5361 uint32_t Value;
5362 } DW5;
5363 union
5364 {
5365 //!< DWORD 6
5366 struct
5367 {
5368 uint32_t CorrectpointsCorrect1EncoderOnly : __CODEGEN_BITFIELD( 0, 3) ; //!< CorrectPoints - Correct 1 (Encoder-only)
5369 uint32_t CorrectpointsCorrect2EncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< CorrectPoints - Correct 2 (Encoder-only)
5370 uint32_t CorrectpointsCorrect3EncoderOnly : __CODEGEN_BITFIELD( 8, 11) ; //!< CorrectPoints - Correct 3 (Encoder-only)
5371 uint32_t CorrectpointsCorrect4EncoderOnly : __CODEGEN_BITFIELD(12, 15) ; //!< CorrectPoints - Correct 4 (Encoder-only)
5372 uint32_t CorrectpointsCorrect5EncoderOnly : __CODEGEN_BITFIELD(16, 19) ; //!< CorrectPoints - Correct 5 (Encoder-only)
5373 uint32_t CorrectpointsCorrect6EncoderOnly : __CODEGEN_BITFIELD(20, 23) ; //!< CorrectPoints - Correct 6 (Encoder-only)
5374 uint32_t Reserved216 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
5375 };
5376 uint32_t Value;
5377 } DW6;
5378 union
5379 {
5380 //!< DWORD 7
5381 struct
5382 {
5383 uint32_t Cv0ClampValue0EncoderOnly : __CODEGEN_BITFIELD( 0, 3) ; //!< CV0 - Clamp Value 0 (Encoder-only)
5384 uint32_t Cv1ClampValue1EncoderOnly : __CODEGEN_BITFIELD( 4, 7) ; //!< CV1 - Clamp Value 1 (Encoder-only)
5385 uint32_t Cv2ClampValue2EncoderOnly : __CODEGEN_BITFIELD( 8, 11) ; //!< CV2 - Clamp Value 2 (Encoder-only)
5386 uint32_t Cv3ClampValue3EncoderOnly : __CODEGEN_BITFIELD(12, 15) ; //!< CV3 - Clamp Value 3 (Encoder-only)
5387 uint32_t Cv4ClampValue4EncoderOnly : __CODEGEN_BITFIELD(16, 19) ; //!< CV4 - Clamp Value 4 (Encoder-only)
5388 uint32_t Cv5ClampValue5EncoderOnly : __CODEGEN_BITFIELD(20, 23) ; //!< CV5 - Clamp Value 5 (Encoder-only)
5389 uint32_t Cv6ClampValue6EncoderOnly : __CODEGEN_BITFIELD(24, 27) ; //!< CV6 - Clamp Value 6 (Encoder-only)
5390 uint32_t Cv7ClampValue7EncoderOnly : __CODEGEN_BITFIELD(28, 31) ; //!< CV7 - Clamp Value 7 (Encoder-only)
5391 };
5392 uint32_t Value;
5393 } DW7;
5394
5395 //! \name Local enumerations
5396
5397 enum SUBOPCODE_B
5398 {
5399 SUBOPCODE_B_MEDIA = 3, //!< No additional details
5400 };
5401
5402 enum SUBOPCODE_A
5403 {
5404 SUBOPCODE_A_MEDIA = 2, //!< No additional details
5405 };
5406
5407 enum MEDIA_COMMAND_OPCODE
5408 {
5409 MEDIA_COMMAND_OPCODE_MPEG2 = 3, //!< No additional details
5410 };
5411
5412 enum PIPELINE
5413 {
5414 PIPELINE_MFXMPEG2SLICEGROUPSTATE = 2, //!< No additional details
5415 };
5416
5417 enum COMMAND_TYPE
5418 {
5419 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5420 };
5421
5422 enum TAILPRESENTFLAG__TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5423 {
5424 TAILPRESENTFLAG_TAIL_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_UNNAMED0 = 0, //!< no tail insertion into the output bitstream buffer, after the current slice encoded bits
5425 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.
5426 };
5427
5428 enum SLICEDATA_PRESENTFLAG__SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5429 {
5430 SLICEDATA_PRESENTFLAG_SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_DISABLE = 0, //!< no Slice Data insertion into the output bitstream buffer
5431 SLICEDATA_PRESENTFLAG_SLICEDATA_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY_ENABLE = 1, //!< Slice Data insertion into the output bitstream buffer is present.
5432 };
5433
5434 enum HEADERPRESENTFLAG__HEADER_INSERTION_PRESENT_IN_BITSTREAM_ENCODER_ONLY
5435 {
5436 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
5437 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.
5438 };
5439
5440 enum BITSTREAMOUTPUTFLAG__COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY
5441 {
5442 BITSTREAMOUTPUTFLAG_COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY_ENABLE = 0, //!< enable the writing of the output compressed bitstream
5443 BITSTREAMOUTPUTFLAG_COMPRESSED_BITSTREAM_OUTPUT_DISABLE_FLAG_ENCODER_ONLY_DISABLE = 1, //!< disable the writing of the output compressed bitstream
5444 };
5445
5446 //! \brief SKIPCONVDISABLED__MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY
5447 //! \details
5448 //! This field is only valid for a P or B slice. It must be zero for other
5449 //! slice types. Rules are provided in Section 2.3.3.1.6
5450 enum SKIPCONVDISABLED__MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY
5451 {
5452 SKIPCONVDISABLED_MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY_ENABLE = 0, //!< Enable skip type conversion
5453 SKIPCONVDISABLED_MB_TYPE_SKIP_CONVERSION_DISABLE_ENCODER_ONLY_DISABLE = 1, //!< Disable skip type conversion
5454 };
5455
5456 //! \brief RATECTRLPANICTYPE__RC_PANIC_TYPE_ENCODER_ONLY
5457 //! \details
5458 //! This field selects between two RC Panic methods. If it is set to 0, in
5459 //! panic mode, the macroblock QP is maxed out, setting to requested QP +
5460 //! QP_max_pos_mod. If it is set to 1, for an intra macroblock, AC CBPs are
5461 //! set to zero (note that DC CBPs are not modified). For inter macroblocks,
5462 //! AC and DC CBPs are forced to zero.
5463 enum RATECTRLPANICTYPE__RC_PANIC_TYPE_ENCODER_ONLY
5464 {
5465 RATECTRLPANICTYPE_RC_PANIC_TYPE_ENCODER_ONLY_UNNAMED0 = 0, //!< QP Panic
5466 RATECTRLPANICTYPE_RC_PANIC_TYPE_ENCODER_ONLY_UNNAMED1 = 1, //!< CBP Panic
5467 };
5468
5469 //! \brief RATECTRLPANICFLAG__RC_PANIC_ENABLE_ENCODER_ONLY
5470 //! \details
5471 //! If this field is set to 1, RC enters panic mode
5472 //! when sum_act &gt; sum_max. RC Panic Type field controls what type
5473 //! of panic
5474 //! behavior is invoked.
5475 enum RATECTRLPANICFLAG__RC_PANIC_ENABLE_ENCODER_ONLY
5476 {
5477 RATECTRLPANICFLAG_RC_PANIC_ENABLE_ENCODER_ONLY_DISABLE = 0, //!< No additional details
5478 RATECTRLPANICFLAG_RC_PANIC_ENABLE_ENCODER_ONLY_ENABLE = 1, //!< No additional details
5479 };
5480
5481 enum MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY
5482 {
5483 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED0 = 0, //!< Always Rate Control, whereas RC becomes activeif sum_act > sum_target or sum_act < sum_target
5484 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED1 = 1, //!< Gentle Rate Control, whereas RC becomes activeif sum_act > upper_midpt or sum_act < lower_midpt
5485 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED2 = 2, //!< Loose Rate Control, whereas RC becomes activeif sum_act > sum_max or sum_act < sum_min
5486 MBRATECTRLMODE_RC_TRIGGLE_MODE_ENCODER_ONLY_UNNAMED3 = 3, //!< Reserved
5487 };
5488
5489 //! \brief MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY
5490 //! \details
5491 //! To reset the bit allocation accumulation counter to 0 to restart the
5492 //! rate control.
5493 enum MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY
5494 {
5495 MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY_DISABLE = 0, //!< Not reset
5496 MBRATECTRLRESET_RESETRATECONTROLCOUNTER_ENCODER_ONLY_ENABLE = 1, //!< reset
5497 };
5498
5499 //! \brief MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY
5500 //! \details
5501 //! To enable the accumulation of bit allocation for rate controlThis field
5502 //! enables hardware Rate Control logic. The rest of the RC control fields
5503 //! are only valid when this field is set to 1. Otherwise, hardware ignores
5504 //! these fields.Note: To reset MB level rate control (QRC), we need to set
5505 //! both bits MbRateCtrlFlag and MbRateCtrlReset to 1 in the new slice
5506 enum MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY
5507 {
5508 MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY_DISABLE = 0, //!< No additional details
5509 MBRATECTRLFLAG_RATECONTROLCOUNTERENABLE_ENCODER_ONLY_ENABLE = 1, //!< No additional details
5510 };
5511
5512 //! \name Initializations
5513
5514 //! \brief Explicit member initialization function
5515 MFC_MPEG2_SLICEGROUP_STATE_CMD();
5516
5517 static const size_t dwSize = 8;
5518 static const size_t byteSize = 32;
5519 };
5520
5521 //!
5522 //! \brief MFX_VC1_PRED_PIPE_STATE
5523 //! \details
5524 //! This command is used to set the operating states of the MFD Engine
5525 //! beyond the BSD unit. It is used with both VC1 Long and Short
5526 //! format.Driver is responsible to take the intensity compensation enable
5527 //! signal, the LumScale and the LumShift provided from the VC1
5528 //! interface, and maintain a history of these values for reference
5529 //! pictures. Together with these three parameters specified for the current
5530 //! picture being decoded, driver will derive and supply the above sets of
5531 //! LumScaleX, LumShiftX and intensity compensation enable (single or
5532 //! double, forward or backward) signals. H/W is responsible to take these
5533 //! state values, and use them to build the lookup table (including the
5534 //! derivation of iScale and iShift) for remapping the reference frame
5535 //! pixels, as well as perfoming the actual pixel remapping
5536 //! calculations/process.
5537 //!
5538 struct MFX_VC1_PRED_PIPE_STATE_CMD
5539 {
5540 union
5541 {
5542 //!< DWORD 0
5543 struct
5544 {
5545 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5546 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5547 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5548 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5549 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5550 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5551 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5552 };
5553 uint32_t Value;
5554 } DW0;
5555 union
5556 {
5557 //!< DWORD 1
5558 struct
5559 {
5560 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 3) ; //!< Reserved
5561 uint32_t ReferenceFrameBoundaryReplicationMode : __CODEGEN_BITFIELD( 4, 7) ; //!< Reference Frame Boundary Replication Mode
5562 uint32_t VinIntensitycompSingleBwden : __CODEGEN_BITFIELD( 8, 9) ; //!< vin_intensitycomp_Single_BWDen
5563 uint32_t VinIntensitycompSingleFwden : __CODEGEN_BITFIELD(10, 11) ; //!< vin_intensitycomp_Single_FWDen
5564 uint32_t VinIntensitycompDoubleBwden : __CODEGEN_BITFIELD(12, 13) ; //!< vin_intensitycomp_Double_BWDen
5565 uint32_t VinIntensitycompDoubleFwden : __CODEGEN_BITFIELD(14, 15) ; //!< vin_intensitycomp_Double_FWDen
5566 uint32_t Reserved48 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
5567 };
5568 uint32_t Value;
5569 } DW1;
5570 union
5571 {
5572 //!< DWORD 2
5573 struct
5574 {
5575 uint32_t Lumscale1SingleFwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - Single - FWD
5576 uint32_t Reserved70 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5577 uint32_t Lumscale2SingleFwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - single - FWD
5578 uint32_t Reserved78 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5579 uint32_t Lumshift1SingleFwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - single - FWD
5580 uint32_t Reserved86 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5581 uint32_t Lumshift2SingleFwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- single - FWD
5582 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5583 };
5584 uint32_t Value;
5585 } DW2;
5586 union
5587 {
5588 //!< DWORD 3
5589 struct
5590 {
5591 uint32_t Lumscale1DoubleFwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - double - FWD
5592 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5593 uint32_t Lumscale2DoubleFwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - double - FWD
5594 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5595 uint32_t Lumshift1DoubleFwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - double -FWD
5596 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5597 uint32_t Lumshift2DoubleFwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- double - FWD
5598 uint32_t Reserved126 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5599 };
5600 uint32_t Value;
5601 } DW3;
5602 union
5603 {
5604 //!< DWORD 4
5605 struct
5606 {
5607 uint32_t Lumscale1SingleBwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - Single - BWD
5608 uint32_t Reserved134 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5609 uint32_t Lumscale2SingleBwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - single - BWD
5610 uint32_t Reserved142 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5611 uint32_t Lumshift1SingleBwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - single - BWD
5612 uint32_t Reserved150 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5613 uint32_t Lumshift2SingleBwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- single - BWD
5614 uint32_t Reserved158 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5615 };
5616 uint32_t Value;
5617 } DW4;
5618 union
5619 {
5620 //!< DWORD 5
5621 struct
5622 {
5623 uint32_t Lumscale1DoubleBwd : __CODEGEN_BITFIELD( 0, 5) ; //!< LumScale1 - double - BWD
5624 uint32_t Reserved166 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
5625 uint32_t Lumscale2DoubleBwd : __CODEGEN_BITFIELD( 8, 13) ; //!< LumScale2 - double - BWD
5626 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5627 uint32_t Lumshift1DoubleBwd : __CODEGEN_BITFIELD(16, 21) ; //!< LumShift1 - double -BWD
5628 uint32_t Reserved182 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
5629 uint32_t Lumshift2DoubleBwd : __CODEGEN_BITFIELD(24, 29) ; //!< LumShift2- double - BWD
5630 uint32_t Reserved190 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5631 };
5632 uint32_t Value;
5633 } DW5;
5634
5635 //! \name Local enumerations
5636
5637 enum SUBOPCODE_B
5638 {
5639 SUBOPCODE_B_UNNAMED1 = 1, //!< No additional details
5640 };
5641
5642 enum SUBOPCODE_A
5643 {
5644 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
5645 };
5646
5647 enum MEDIA_COMMAND_OPCODE
5648 {
5649 MEDIA_COMMAND_OPCODE_VC1COMMON = 2, //!< No additional details
5650 };
5651
5652 enum PIPELINE
5653 {
5654 PIPELINE_MFXVC1PREDPIPESTATE = 2, //!< No additional details
5655 };
5656
5657 enum COMMAND_TYPE
5658 {
5659 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5660 };
5661
5662 //! \name Initializations
5663
5664 //! \brief Explicit member initialization function
5665 MFX_VC1_PRED_PIPE_STATE_CMD();
5666
5667 static const size_t dwSize = 6;
5668 static const size_t byteSize = 24;
5669 };
5670
5671 //!
5672 //! \brief MFD_VC1_LONG_PIC_STATE
5673 //! \details
5674 //! MFX_VC1_LONG PIC_STATE command encapsulates the decoding parameters that
5675 //! are read or derived from bitstream syntax elements above (inclusive)
5676 //! picture header layer. These parameters are static for a picture and when
5677 //! slice structure is present, these parameters are not changed from slice
5678 //! to slice of the same picture. Hence, this command is only issued at the
5679 //! beginning of processing a new picture and prior to the VC1_*_OBJECT
5680 //! command. The values set for these state variables are retained
5681 //! internally across slices.Only the parameters needed by hardware (BSD
5682 //! unit) to decode bit sequence for the macroblocks in a picture layer or a
5683 //! slice layer are presented in this command. Other parameters such as the
5684 //! ones used for inverse transform or motion compensation are provided in
5685 //! MFX_VC1_PRED_PIPE_STATE command.This Long interface format is intel
5686 //! proprietary interface. Driver will need to perform addition operations
5687 //! to generate all the fields in this command.
5688 //!
5689 struct MFD_VC1_LONG_PIC_STATE_CMD
5690 {
5691 union
5692 {
5693 //!< DWORD 0
5694 struct
5695 {
5696 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
5697 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5698 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
5699 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
5700 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
5701 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
5702 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
5703 };
5704 uint32_t Value;
5705 } DW0;
5706 union
5707 {
5708 //!< DWORD 1
5709 struct
5710 {
5711 uint32_t Picturewidthinmbsminus1PictureWidthMinus1InMacroblocks : __CODEGEN_BITFIELD( 0, 7) ; //!< PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS
5712 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
5713 uint32_t Pictureheightinmbsminus1PictureHeightMinus1InMacroblocks : __CODEGEN_BITFIELD(16, 23) ; //!< PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_
5714 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
5715 };
5716 uint32_t Value;
5717 } DW1;
5718 union
5719 {
5720 //!< DWORD 2
5721 struct
5722 {
5723 uint32_t Vc1Profile : __CODEGEN_BITFIELD( 0, 0) ; //!< VC1_PROFILE
5724 uint32_t Reserved65 : __CODEGEN_BITFIELD( 1, 2) ; //!< Reserved
5725 uint32_t Secondfield : __CODEGEN_BITFIELD( 3, 3) ; //!< Secondfield
5726 uint32_t OverlapSmoothingEnableFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< OVERLAP_SMOOTHING_ENABLE_FLAG
5727 uint32_t LoopfilterEnableFlag : __CODEGEN_BITFIELD( 5, 5) ; //!< LOOPFILTER_ENABLE_FLAG
5728 uint32_t RangereductionEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< RANGEREDUCTION_ENABLE
5729 uint32_t Rangereductionscale : __CODEGEN_BITFIELD( 7, 7) ; //!< RANGEREDUCTIONSCALE
5730 uint32_t MotionVectorMode : __CODEGEN_BITFIELD( 8, 11) ; //!< MOTION_VECTOR_MODE
5731 uint32_t Syncmarker : __CODEGEN_BITFIELD(12, 12) ; //!< SYNCMARKER
5732 uint32_t InterpolationRounderContro : __CODEGEN_BITFIELD(13, 13) ; //!< Interpolation Rounder Contro
5733 uint32_t Implicitquantizer : __CODEGEN_BITFIELD(14, 14) ; //!< ImplicitQuantizer
5734 uint32_t Dmvsurfacevalid : __CODEGEN_BITFIELD(15, 15) ; //!< DmvSurfaceValid
5735 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 23) ; //!< Reserved
5736 uint32_t BitplaneBufferPitchMinus1 : __CODEGEN_BITFIELD(24, 31) ; //!< Bitplane Buffer Pitch Minus 1
5737 };
5738 uint32_t Value;
5739 } DW2;
5740 union
5741 {
5742 //!< DWORD 3
5743 struct
5744 {
5745 uint32_t Bscalefactor : __CODEGEN_BITFIELD( 0, 7) ; //!< BScaleFactor
5746 uint32_t PquantPictureQuantizationValue : __CODEGEN_BITFIELD( 8, 12) ; //!< PQuant (Picture Quantization Value)
5747 uint32_t Reserved109 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
5748 uint32_t AltpquantAlternativePictureQuantizationValue : __CODEGEN_BITFIELD(16, 20) ; //!< AltPQuant (Alternative Picture Quantization Value)
5749 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 23) ; //!< Reserved
5750 uint32_t FcmFrameCodingMode : __CODEGEN_BITFIELD(24, 25) ; //!< FCM_FRAME_CODING_MODE
5751 uint32_t PictypePictureType : __CODEGEN_BITFIELD(26, 28) ; //!< PicType (Picture Type)
5752 uint32_t Condover : __CODEGEN_BITFIELD(29, 30) ; //!< CONDOVER
5753 uint32_t Reserved127 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
5754 };
5755 uint32_t Value;
5756 } DW3;
5757 union
5758 {
5759 //!< DWORD 4
5760 struct
5761 {
5762 uint32_t Pquantuniform : __CODEGEN_BITFIELD( 0, 0) ; //!< PQUANTUNIFORM
5763 uint32_t Halfqp : __CODEGEN_BITFIELD( 1, 1) ; //!< HalfQP
5764 uint32_t AltpquantconfigAlternativePictureQuantizationConfiguration : __CODEGEN_BITFIELD( 2, 3) ; //!< ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION
5765 uint32_t AltpquantedgemaskAlternativePictureQuantizationEdgeMask : __CODEGEN_BITFIELD( 4, 7) ; //!< AltPQuantEdgeMask (Alternative Picture Quantization Edge Mask)
5766 uint32_t ExtendedmvrangeExtendedMotionVectorRangeFlag : __CODEGEN_BITFIELD( 8, 9) ; //!< EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG
5767 uint32_t ExtendeddmvrangeExtendedDifferentialMotionVectorRangeFlag : __CODEGEN_BITFIELD(10, 11) ; //!< EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG
5768 uint32_t Reserved140 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
5769 uint32_t FwdrefdistReferenceDistance : __CODEGEN_BITFIELD(16, 19) ; //!< FwdRefDist (Reference Distance)
5770 uint32_t BwdrefdistReferenceDistance : __CODEGEN_BITFIELD(20, 23) ; //!< BwdRefDist (Reference Distance)
5771 uint32_t NumrefNumberOfReferences : __CODEGEN_BITFIELD(24, 24) ; //!< NUMREF_NUMBER_OF_REFERENCES
5772 uint32_t ReffieldpicpolarityReferenceFieldPicturePolarity : __CODEGEN_BITFIELD(25, 25) ; //!< REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY
5773 uint32_t FastuvmcflagFastUvMotionCompensationFlag : __CODEGEN_BITFIELD(26, 26) ; //!< FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
5774 uint32_t FourmvswitchFourMotionVectorSwitch : __CODEGEN_BITFIELD(27, 27) ; //!< FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH
5775 uint32_t UnifiedmvmodeUnifiedMotionVectorMode : __CODEGEN_BITFIELD(28, 29) ; //!< UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE
5776 uint32_t Reserved158 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
5777 };
5778 uint32_t Value;
5779 } DW4;
5780 union
5781 {
5782 //!< DWORD 5
5783 struct
5784 {
5785 uint32_t CbptabCodedBlockPatternTable : __CODEGEN_BITFIELD( 0, 2) ; //!< CbpTab (Coded Block Pattern Table)
5786 uint32_t TransdctabIntraTransformDcTable : __CODEGEN_BITFIELD( 3, 3) ; //!< TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE
5787 uint32_t TransacuvPictureLevelTransformChromaAcCodingSetIndexTransactable : __CODEGEN_BITFIELD( 4, 5) ; //!< TransAcUV (Picture-level Transform Chroma AC Coding Set Index, TRANSACTABLE)
5788 uint32_t TransacyPictureLevelTransformLumaAcCodingSetIndexTransactable2 : __CODEGEN_BITFIELD( 6, 7) ; //!< TransAcY (Picture-level Transform Luma AC Coding Set Index, TRANSACTABLE2
5789 uint32_t MbmodetabMacroblockModeTable : __CODEGEN_BITFIELD( 8, 10) ; //!< MbModeTab (Macroblock Mode Table)
5790 uint32_t TranstypembflagMacroblockTransformTypeFlag : __CODEGEN_BITFIELD(11, 11) ; //!< TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG
5791 uint32_t TranstypePictureLevelTransformType : __CODEGEN_BITFIELD(12, 13) ; //!< TransType (Picture-level Transform Type)
5792 uint32_t Reserved174 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
5793 uint32_t Twomvbptab2MvBlockPatternTable : __CODEGEN_BITFIELD(16, 17) ; //!< TwoMvBpTab (2MV Block Pattern Table)
5794 uint32_t Fourmvbptab4MvBlockPatternTable : __CODEGEN_BITFIELD(18, 19) ; //!< FourMvBpTab (4-MV Block Pattern Table)
5795 uint32_t MvtabMotionVectorTable : __CODEGEN_BITFIELD(20, 22) ; //!< MvTab (Motion Vector Table)
5796 uint32_t Reserved183 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
5797 uint32_t Fieldtxraw : __CODEGEN_BITFIELD(24, 24) ; //!< FIELDTXRAW
5798 uint32_t Acpredraw : __CODEGEN_BITFIELD(25, 25) ; //!< ACPREDRAW
5799 uint32_t Overflagsraw : __CODEGEN_BITFIELD(26, 26) ; //!< OVERFLAGSRAW
5800 uint32_t Directmbraw : __CODEGEN_BITFIELD(27, 27) ; //!< DIRECTMBRAW
5801 uint32_t Skipmbraw : __CODEGEN_BITFIELD(28, 28) ; //!< SKIPMBRAW
5802 uint32_t Mvtypembraw : __CODEGEN_BITFIELD(29, 29) ; //!< MVTYPEMBRAW
5803 uint32_t Forwardmbraw : __CODEGEN_BITFIELD(30, 30) ; //!< FORWARDMBRAW
5804 uint32_t BitplanepresentflagBitplaneBufferPresentFlag : __CODEGEN_BITFIELD(31, 31) ; //!< BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG
5805 };
5806 uint32_t Value;
5807 } DW5;
5808
5809 //! \name Local enumerations
5810
5811 enum SUBOPCODE_B
5812 {
5813 SUBOPCODE_B_UNNAMED1 = 1, //!< No additional details
5814 };
5815
5816 enum SUBOPCODE_A
5817 {
5818 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
5819 };
5820
5821 enum MEDIA_COMMAND_OPCODE
5822 {
5823 MEDIA_COMMAND_OPCODE_VC1DEC = 2, //!< No additional details
5824 };
5825
5826 enum PIPELINE
5827 {
5828 PIPELINE_MFDVC1LONGPICSTATE = 2, //!< No additional details
5829 };
5830
5831 enum COMMAND_TYPE
5832 {
5833 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
5834 };
5835
5836 //! \brief PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS
5837 //! \details
5838 //! This field indicates the width of the picture in unit of macroblocks.
5839 //! For example, for a 1920x1080 frame picture, PictureWidthInMBs equals 120
5840 //! (1920 divided by 16).This field is used in VLD and IT modes
5841 enum PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS
5842 {
5843 PICTUREWIDTHINMBSMINUS1_PICTURE_WIDTH_MINUS_1_IN_MACROBLOCKS_VALUE255 = 255, //!< No additional details
5844 };
5845
5846 //! \brief PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_
5847 //! \details
5848 //! This field indicates the height of the picture in unit of macroblocks.
5849 //! For example, for a 1920x1080 frame picture, PictureHeightInMBs equals 68
5850 //! (1080 divided by 16, and rounded up, i.e. effectively specified as 1088
5851 //! instead).This field is used in VLD and IT modes.
5852 enum PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_
5853 {
5854 PICTUREHEIGHTINMBSMINUS1_PICTURE_HEIGHT_MINUS_1_IN_MACROBLOCKS_VALUE255 = 255, //!< No additional details
5855 };
5856
5857 //! \brief VC1_PROFILE
5858 //! \details
5859 //! specifies the bitstream profile.This field is used in both VLD and IT
5860 //! modes.
5861 enum VC1_PROFILE
5862 {
5863 VC1_PROFILE_DISABLE = 0, //!< current picture is in Simple or Main Profile (No need to distinguish Simple and Main Profile)
5864 VC1_PROFILE_ENABLE = 1, //!< current picture is in Advanced Profile
5865 };
5866
5867 //! \brief OVERLAP_SMOOTHING_ENABLE_FLAG
5868 //! \details
5869 //! This field is the decoded syntax element OVERLAP in bitstreamIndicates
5870 //! if Overlap smoothing is ON at the picture levelThis field is used in
5871 //! both VLD and IT modes.
5872 enum OVERLAP_SMOOTHING_ENABLE_FLAG
5873 {
5874 OVERLAP_SMOOTHING_ENABLE_FLAG_DISABLE = 0, //!< to disable overlap smoothing filter
5875 OVERLAP_SMOOTHING_ENABLE_FLAG_ENABLE = 1, //!< to enable overlap smoothing filter
5876 };
5877
5878 //! \brief LOOPFILTER_ENABLE_FLAG
5879 //! \details
5880 //! This filed is the decoded syntax element LOOPFILTER in bitstream. It
5881 //! indicates if In-loop Deblocking is ON according to picture level
5882 //! bitstream syntax control. This bit affects BSD unit and also the loop
5883 //! filter unit.When this bit is set to 1, PostDeblockOutEnable field in
5884 //! MFX_PIPE_MODE_SELECT command must also be set to 1. In this case,
5885 //! in-loop deblocking operation follows the VC1 standard - deblocking
5886 //! doesn't cross slice boundary.When this bit is set to 0, but
5887 //! PostDeblockOutEnable field in MFX_PIPE_MODE_SELECT command is set to 1.
5888 //! It indicates the loop filter unit is used for out-of-loop deblocking. In
5889 //! this case, deblocking operation does cross slice boundary.This field is
5890 //! used in VLD mode only, not in IT mode.
5891 enum LOOPFILTER_ENABLE_FLAG
5892 {
5893 LOOPFILTER_ENABLE_FLAG_DISABLE = 0, //!< Disables loop filter
5894 LOOPFILTER_ENABLE_FLAG_ENABLE = 1, //!< Enables loop filter
5895 };
5896
5897 //! \brief RANGEREDUCTION_ENABLE
5898 //! \details
5899 //! This field specifies whether on-the-fly pixel value range reduction
5900 //! should be performed for the preceding (or forward) reference picture.
5901 //! Along with RangeReductionScale to specify whether scale up or down
5902 //! should be performed. It is not the same value as RANGEREDFRM Syntax
5903 //! Element (_PictureParameters bPicDeblocked bit 5) in the Picture
5904 //! Header.
5905 enum RANGEREDUCTION_ENABLE
5906 {
5907 RANGEREDUCTION_ENABLE_DISABLE = 0, //!< Range reduction is not performed
5908 RANGEREDUCTION_ENABLE_ENABLE = 1, //!< Range reduction is performed
5909 };
5910
5911 //! \brief RANGEREDUCTIONSCALE
5912 //! \details
5913 //! This field specifies whether the reference picture pixel values should
5914 //! be scaled up or scaled down on-the-fly, if RangeReduction is Enabled.
5915 enum RANGEREDUCTIONSCALE
5916 {
5917 RANGEREDUCTIONSCALE_UNNAMED0 = 0, //!< Scale down reference picture by factor of 2
5918 RANGEREDUCTIONSCALE_UNNAMED1 = 1, //!< Scale up reference picture by factor of 2
5919 };
5920
5921 //! \brief MOTION_VECTOR_MODE
5922 //! \details
5923 //! This field indicates one of the following motion compensation
5924 //! interpolation modes for P and B pictures. The MC interpolation modes
5925 //! apply to prediction values of luminance blocks and are always in
5926 //! quarter-sample. For chrominance blocks, it always performs bilinear
5927 //! interpolation with either half-pel or quarter-pel precision.Before the
5928 //! polarity of Chroma Half-pel or Q-pel is reversed from Spec, now I
5929 //! have fixed it to match with VC1 Spec.
5930 enum MOTION_VECTOR_MODE
5931 {
5932 MOTION_VECTOR_MODE_UNNAMED0 = 0, //!< Chroma Quarter -pel + Luma bicubic. (can only be 1MV)
5933 MOTION_VECTOR_MODE_UNNAMED1 = 1, //!< Chroma Half-pel + Luma bicubic. (can be 1MV or 4MV)
5934 MOTION_VECTOR_MODE_UNNAMED8 = 8, //!< Chroma Quarter -pel + Luma bilinear. (can only be 1MV)
5935 MOTION_VECTOR_MODE_UNNAMED9 = 9, //!< Chroma Half-pel + Luma bilinear
5936 };
5937
5938 //! \brief SYNCMARKER
5939 //! \details
5940 //! Indicates whether sync markers are enabled/disabled. If enable, sync
5941 //! markers "may be" present in the current video sequence being decoded. It
5942 //! is a sequence level syntax element and is valid only for Simple and Main
5943 //! Profiles.
5944 enum SYNCMARKER
5945 {
5946 SYNCMARKER_NOTPRESENT = 0, //!< Sync Marker is not present in the bitstream
5947 SYNCMARKER_MAYBEPRESENT = 1, //!< Sync Marker maybe present in the bitstream
5948 };
5949
5950 //! \brief FCM_FRAME_CODING_MODE
5951 //! \details
5952 //! This is the same as the variable FCM defined in VC1.This field must be
5953 //! set to 0 for Simple and Main ProfilesThis field is unique to intel VC1
5954 //! VLD Long format, and is used in IT mode as well. For VC1 IT mode,
5955 //! driver needs to convert the interface to intel HW VLD Long Format
5956 //! interface.
5957 enum FCM_FRAME_CODING_MODE
5958 {
5959 FCM_FRAME_CODING_MODE_DISABLE = 0, //!< Progressive Frame Picture
5960 FCM_FRAME_CODING_MODE_ENABLE = 1, //!< Interlaced Frame Picture
5961 FCM_FRAME_CODING_MODE_UNNAMED2 = 2, //!< Field Picture with Top Field First
5962 FCM_FRAME_CODING_MODE_UNNAMED3 = 3, //!< Field Picture with Bottom Field First
5963 };
5964
5965 //! \brief CONDOVER
5966 //! \details
5967 //! This field is the decoded syntax element CONDOVER in a bitstream of
5968 //! advanced profile. It controls the overlap smoothing filter operation for
5969 //! an I frame or an BI frame when the picture level qualization step size
5970 //! PQUANT is 8 or lower.This field is used in intel VC1 VLD mode only, not
5971 //! in VC1 and IT modes.
5972 enum CONDOVER
5973 {
5974 CONDOVER_UNNAMED0 = 0, //!< No overlap smoothing
5975 CONDOVER_UNNAMED1 = 1, //!< Reserved
5976 CONDOVER_UNNAMED2 = 2, //!< Always perform overlap smoothing filter
5977 CONDOVER_UNNAMED3 = 3, //!< Overlap smoothing on a per macroblock basis based on OVERFLAGS
5978 };
5979
5980 //! \brief PQUANTUNIFORM
5981 //! \details
5982 //! Indicating if uniform quantization applies to the
5983 //! picture. It is used for inverse quantization of the AC
5984 //! coefficients.QUANTIZER
5985 //! 001123PQUANTIZER -
5986 //! -01--PQINDEX&gt;=9&lt;=8----PQuantUniform010201ImplicitQuantizer =
5987 //! 0, and
5988 //! PQuantUniform = 0 is used to represent 2 cases : 1) QUANTIZER=01
5989 //! and
5990 //! PQUANTIZER=0; and 2) QUANTIZER = 10b.ImplicitQuantizer = 0, and
5991 //! PQuantUniform =
5992 //! 1 is used to represent 2 cases : 1) QUANTIZER=01 and PQUANTIZER=1;
5993 //! and 2)
5994 //! QUANTIZER = 11bThis field is unique to intel VC1 VLD Long format
5995 //! mode, and is
5996 //! not used in IT and VC1 modes.
5997 enum PQUANTUNIFORM
5998 {
5999 PQUANTUNIFORM_UNNAMED0 = 0, //!< Non-uniform
6000 PQUANTUNIFORM_UNNAMED1 = 1, //!< Uniform
6001 };
6002
6003 //! \brief ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION
6004 //! \details
6005 //! This field specifies the way AltPQuant is used in the picture. It
6006 //! determines how to compute the macroblock quantizer step size, MQUANT. It
6007 //! is derived based on the following variables DQUANT, DQUANTFRM,
6008 //! DQPROFILE, DQSBEDGE, DQDBEDGE, and DQBILEVEL defined in the VC1
6009 //! standard, as shown in Error! Reference source not found..This field is
6010 //! unique to intel VC1 VLD Long format mode, and is not used in IT and
6011 //! VC1 modes.
6012 enum ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION
6013 {
6014 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED0 = 0, //!< AltPQuant not used
6015 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED1 = 1, //!< AltPQuant is used and applied to edge macroblocks only
6016 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED2 = 2, //!< MQUANT is encoded in macroblock layer
6017 ALTPQUANTCONFIG_ALTERNATIVE_PICTURE_QUANTIZATION_CONFIGURATION_UNNAMED3 = 3, //!< AltPQuant and PQuant are selected on macroblock basis
6018 };
6019
6020 //! \brief EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG
6021 //! \details
6022 //! This field specifies the motion vector range in quarter-pel or half-pel
6023 //! modes. It is equivalent to the variable MVRANGE in the VC1 standard.
6024 //! This field is unique to intel VC1 VLD Long format mode, and is not used
6025 //! in IT and VC1 modes
6026 enum EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG
6027 {
6028 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED0 = 0, //!< [-256, 255] x [-128, 127]
6029 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED1 = 1, //!< 512, 511] x [-256, 255]
6030 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED2 = 2, //!< [-2048, 2047] x [-1024, 1023]
6031 EXTENDEDMVRANGE_EXTENDED_MOTION_VECTOR_RANGE_FLAG_UNNAMED3 = 3, //!< [-4096, 4095] x [-2048, 2047]
6032 };
6033
6034 //! \brief EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG
6035 //! \details
6036 //! This field specifies the differential motion vector range in interlaced
6037 //! pictures. It is equivalent to the variable DMVRANGE in the VC1 standard.
6038 //! This field is unique to intel VC1 VLD Long format mode, and is not used
6039 //! in IT and VC1 modes.
6040 enum EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG
6041 {
6042 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED0 = 0, //!< No extended range
6043 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED1 = 1, //!< Extended horizontally
6044 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED2 = 2, //!< Extended vertically
6045 EXTENDEDDMVRANGE_EXTENDED_DIFFERENTIAL_MOTION_VECTOR_RANGE_FLAG_UNNAMED3 = 3, //!< Extended in both directions
6046 };
6047
6048 //! \brief NUMREF_NUMBER_OF_REFERENCES
6049 //! \details
6050 //! This field indicates how many reference fields are referenced by the
6051 //! current (field) picture. It is identical to the variable NUMREF in the
6052 //! VC1 standard. This field is only valid for field P picture (FCM = 10 |
6053 //! 11).This field is unique to intel VC1 VLD Long format mode, and is not
6054 //! used in IT and VC1 modes.
6055 enum NUMREF_NUMBER_OF_REFERENCES
6056 {
6057 NUMREF_NUMBER_OF_REFERENCES_UNNAMED0 = 0, //!< One field referenced
6058 NUMREF_NUMBER_OF_REFERENCES_UNNAMED1 = 1, //!< Two fields referenced
6059 };
6060
6061 //! \brief REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY
6062 //! \details
6063 //! This field specifies the polarity of the one reference field picture
6064 //! used for a field P picture. It is derived from the variable REFFIELD
6065 //! defined in VC1 standard and is only valid when one field is referenced
6066 //! (NUMREF = 0) for a field P picture.When NUMREF = 0 and REFFIELD = 0,
6067 //! this field is the polarity of the reference I/P field that is temporally
6068 //! closest; When NUMREF = 0 and REFFIELD = 1, this field is the polarity of
6069 //! the reference I/P field that is the second most temporally closest. The
6070 //! distance is measured based on display order but ignoring the repeated
6071 //! field if present (due to RFF = 1).This field is unique to intel VC1 VLD
6072 //! Long format mode, and is not used in IT and VC1 modes.
6073 enum REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY
6074 {
6075 REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY_UNNAMED0 = 0, //!< Top (even) field
6076 REFFIELDPICPOLARITY_REFERENCE_FIELD_PICTURE_POLARITY_UNNAMED1 = 1, //!< Bottom (odd) field
6077 };
6078
6079 //! \brief FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6080 //! \details
6081 //! This field specifies whether the motion vectors for
6082 //! UV is rounded to half or full pel position. It is identical to the
6083 //! variable
6084 //! FASTUVMC in VC1 standard.This field is used in both VLD and IT
6085 //! modes.It is
6086 //! derived from FASTUVMC = (bPicSpatialResid8 &gt;&gt; 4) &amp; 1 in
6087 //! both VLD and
6088 //! IT modes, and should have the same value as Motion Vector Mode
6089 //! LSBit.
6090 enum FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6091 {
6092 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED0 = 0, //!< no rounding
6093 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED1 = 1, //!< quarter-pel offsets to half/full pel positions
6094 };
6095
6096 //! \brief FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH
6097 //! \details
6098 //! This field indicates if 4-MV is present for an interlaced frame P
6099 //! picture. It is identical to the variable 4MVSWITCH (4 Motion Vector
6100 //! Switch) in VC1 standard.This field is used in intel VC1 VLD Long Format
6101 //! mode only, it is not used in VC1 VLD and IT modes.
6102 enum FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH
6103 {
6104 FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH_DISABLE = 0, //!< only 1-MV
6105 FOURMVSWITCH_FOUR_MOTION_VECTOR_SWITCH_ENABLE = 1, //!< 1, 2, or 4 motion vectors
6106 };
6107
6108 //! \brief UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE
6109 //! \details
6110 //! This field is a combination of the variables MVMODE and MVMODE2 in the
6111 //! VC1 standard, for parsing Luma MVD from the bitstream. This field is
6112 //! used to signal 1MV vs 4MVallowed (Mixed Mode). This field is also used
6113 //! to signal Q-pel or Half-pel MVD read from the bitstream. The bicubic or
6114 //! bilinear Luma MC interpolation mode is duplicate information from Motion
6115 //! Vector Mode field, and is ignored here.This field is used in intel VC1
6116 //! VLD Long Format mode only, it is not used in VC1 VLD and IT modes.
6117 enum UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE
6118 {
6119 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED0 = 0, //!< Mixed MV, Q-pel bicubic
6120 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED1 = 1, //!< 1-MV, Q-pel bicubic
6121 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED2 = 2, //!< 1-MV half-pel bicubic
6122 UNIFIEDMVMODE_UNIFIED_MOTION_VECTOR_MODE_UNNAMED3 = 3, //!< 1-MV half-pel bilinear
6123 };
6124
6125 //! \brief TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE
6126 //! \details
6127 //! This field specifies whether the low motion tables or the high motion
6128 //! tables are used to decode the Transform DC coefficients in intra-coded
6129 //! blocks. This field is identical to the variable TRANSDCTAB in the VC1
6130 //! standard, section 8.1.1.2.This field is valid for all picture types.This
6131 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6132 //! and VC1 modes.
6133 enum TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE
6134 {
6135 TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE_UNNAMED0 = 0, //!< The high motion tables
6136 TRANSDCTAB_INTRA_TRANSFORM_DC_TABLE_UNNAMED1 = 1, //!< The low motion tables
6137 };
6138
6139 //! \brief TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG
6140 //! \details
6141 //! This field indicates whether Transform Type is fixed at picture level or
6142 //! variable at macroblock level. It is identical to the variable TTMBF in
6143 //! the VC1 standard, section 7.1.1.40.This field is set to 1 when
6144 //! VSTRANSFORM is 0 in the entry point layer.This field is unique to intel
6145 //! VC1 VLD Long format mode, and is not used in IT and VC1 modes.
6146 enum TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG
6147 {
6148 TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG_UNNAMED0 = 0, //!< variable transform type in macroblock layer
6149 TRANSTYPEMBFLAG_MACROBLOCK_TRANSFORM_TYPE_FLAG_UNNAMED1 = 1, //!< use picture level transform type TransType
6150 };
6151
6152 //! \brief FIELDTXRAW
6153 //! \details
6154 //! This field indicates whether the FIELDTX field is coded in raw or
6155 //! non-raw mode.This field is only valid when PictureType is I or BI.This
6156 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6157 //! and VC1 modes.
6158 enum FIELDTXRAW
6159 {
6160 FIELDTXRAW_DISABLE = 0, //!< Non-Raw Mode
6161 FIELDTXRAW_ENABLE = 1, //!< Raw Mode
6162 };
6163
6164 //! \brief ACPREDRAW
6165 //! \details
6166 //! This field indicates whether the ACPRED field is coded in raw or non-raw
6167 //! mode.This field is only valid when PictureType is I or BI.This field is
6168 //! unique to intel VC1 VLD Long format mode, and is not used in IT and
6169 //! VC1 modes.
6170 enum ACPREDRAW
6171 {
6172 ACPREDRAW_DISABLE = 0, //!< Non-Raw Mode
6173 ACPREDRAW_ENABLE = 1, //!< Raw Mode
6174 };
6175
6176 //! \brief OVERFLAGSRAW
6177 //! \details
6178 //! This field indicates whether the OVERFLAGS field is coded in raw or
6179 //! non-raw mode.This field is only valid when PictureType is I or BI.This
6180 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6181 //! and VC1 modes.
6182 enum OVERFLAGSRAW
6183 {
6184 OVERFLAGSRAW_UNNAMED0 = 0, //!< Non-Raw Mode
6185 OVERFLAGSRAW_UNNAMED1 = 1, //!< Raw Mode
6186 };
6187
6188 //! \brief DIRECTMBRAW
6189 //! \details
6190 //! This field indicates whether the DIRECTMB field is coded in raw or
6191 //! non-raw mode.This field is only valid when PictureType is P or B.This
6192 //! field is unique to intel VC1 VLD Long format mode, and is not used in IT
6193 //! and VC1 modes.
6194 enum DIRECTMBRAW
6195 {
6196 DIRECTMBRAW_UNNAMED0 = 0, //!< Non-Raw Mode
6197 DIRECTMBRAW_UNNAMED1 = 1, //!< Raw Mode
6198 };
6199
6200 //! \brief SKIPMBRAW
6201 //! \details
6202 //! This field indicates whether the SKIPMB field is coded in raw or non-raw
6203 //! mode.This field is only valid when PictureType is P or B.0 = non-raw
6204 //! mode1 = raw modeThis field is unique to intel VC1 VLD Long format mode,
6205 //! and is not used in IT and VC1 modes.
6206 enum SKIPMBRAW
6207 {
6208 SKIPMBRAW_DISABLE = 0, //!< Non-Raw Mode
6209 SKIPMBRAW_ENABLE = 1, //!< Raw Mode
6210 };
6211
6212 //! \brief MVTYPEMBRAW
6213 //! \details
6214 //! This field indicates whether the MVTYPREMB field is coded in raw or
6215 //! non-raw mode.This field is only valid when PictureType is P.This field
6216 //! is unique to intel VC1 VLD Long format mode, and is not used in IT and
6217 //! VC1 modes.
6218 enum MVTYPEMBRAW
6219 {
6220 MVTYPEMBRAW_UNNAMED0 = 0, //!< Non-Raw Mode
6221 MVTYPEMBRAW_UNNAMED1 = 1, //!< Raw Mode
6222 };
6223
6224 //! \brief FORWARDMBRAW
6225 //! \details
6226 //! This field indicates whether the FORWARDMB field is coded in raw or
6227 //! non-raw mode.This field is only valid when PictureType is B.This field
6228 //! is unique to intel VC1 VLD Long format mode, and is not used in IT and
6229 //! VC1 modes.
6230 enum FORWARDMBRAW
6231 {
6232 FORWARDMBRAW_UNNAMED0 = 0, //!< non-raw mode
6233 FORWARDMBRAW_UNNAMED1 = 1, //!< raw mode
6234 };
6235
6236 //! \brief BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG
6237 //! \details
6238 //! This field indicates whether the bitplane buffer is present for the
6239 //! picture. If set, at least one of the fields listed in bits 22:16 is
6240 //! coded in non-raw mode, and Bitplane Buffer Base Address field in the
6241 //! VC1_BSD_BUF_BASE_STATE command points to the bitplane buffer. Otherwise,
6242 //! all the fields that are applicable for the current picture in bits 22:16
6243 //! must be coded in raw mode.This field is unique to intel VC1 VLD Long
6244 //! format mode, and is not used in IT and VC1 modes.
6245 enum BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG
6246 {
6247 BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG_UNNAMED0 = 0, //!< bitplane buffer is not present
6248 BITPLANEPRESENTFLAG_BITPLANE_BUFFER_PRESENT_FLAG_UNNAMED1 = 1, //!< bitplane buffer is present
6249 };
6250
6251 //! \name Initializations
6252
6253 //! \brief Explicit member initialization function
6254 MFD_VC1_LONG_PIC_STATE_CMD();
6255
6256 static const size_t dwSize = 6;
6257 static const size_t byteSize = 24;
6258 };
6259
6260 //!
6261 //! \brief MFD_VC1_SHORT_PIC_STATE
6262 //! \details
6263 //!
6264 //!
6265 struct MFD_VC1_SHORT_PIC_STATE_CMD
6266 {
6267 union
6268 {
6269 //!< DWORD 0
6270 struct
6271 {
6272 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6273 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6274 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6275 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6276 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6277 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6278 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6279 };
6280 uint32_t Value;
6281 } DW0;
6282 union
6283 {
6284 //!< DWORD 1
6285 struct
6286 {
6287 uint32_t PictureWidth : __CODEGEN_BITFIELD( 0, 7) ; //!< Picture Width
6288 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
6289 uint32_t PictureHeight : __CODEGEN_BITFIELD(16, 23) ; //!< Picture Height
6290 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
6291 };
6292 uint32_t Value;
6293 } DW1;
6294 union
6295 {
6296 //!< DWORD 2
6297 struct
6298 {
6299 uint32_t PictureStructure : __CODEGEN_BITFIELD( 0, 1) ; //!< PICTURE_STRUCTURE
6300 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
6301 uint32_t Secondfield : __CODEGEN_BITFIELD( 3, 3) ; //!< SecondField
6302 uint32_t IntraPictureFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< INTRA_PICTURE_FLAG
6303 uint32_t BackwardPredictionPresentFlag : __CODEGEN_BITFIELD( 5, 5) ; //!< Backward Prediction Present Flag
6304 uint32_t Reserved70 : __CODEGEN_BITFIELD( 6, 10) ; //!< Reserved
6305 uint32_t Vc1Profile : __CODEGEN_BITFIELD(11, 11) ; //!< VC1_PROFILE
6306 uint32_t Reserved76 : __CODEGEN_BITFIELD(12, 14) ; //!< Reserved
6307 uint32_t Dmvsurfacevalid : __CODEGEN_BITFIELD(15, 15) ; //!< DmvSurfaceValid
6308 uint32_t MotionVectorMode : __CODEGEN_BITFIELD(16, 19) ; //!< Motion Vector Mode
6309 uint32_t Reserved84 : __CODEGEN_BITFIELD(20, 22) ; //!< Reserved
6310 uint32_t InterpolationRounderControl : __CODEGEN_BITFIELD(23, 23) ; //!< Interpolation Rounder Control
6311 uint32_t BitplaneBufferPitchMinus1 : __CODEGEN_BITFIELD(24, 31) ; //!< Bitplane Buffer Pitch Minus 1
6312 };
6313 uint32_t Value;
6314 } DW2;
6315 union
6316 {
6317 //!< DWORD 3
6318 struct
6319 {
6320 uint32_t VstransformFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< VSTRANSFORM_FLAG
6321 uint32_t Dquant : __CODEGEN_BITFIELD( 1, 2) ; //!< DQUANT
6322 uint32_t ExtendedMvPresentFlag : __CODEGEN_BITFIELD( 3, 3) ; //!< EXTENDED_MV_PRESENT_FLAG
6323 uint32_t FastuvmcflagFastUvMotionCompensationFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6324 uint32_t LoopfilterEnableFlag : __CODEGEN_BITFIELD( 5, 5) ; //!< LOOPFILTER_ENABLE_FLAG
6325 uint32_t RefdistFlag : __CODEGEN_BITFIELD( 6, 6) ; //!< REFDIST_FLAG
6326 uint32_t PanscanPresentFlag : __CODEGEN_BITFIELD( 7, 7) ; //!< PANSCAN_PRESENT_FLAG
6327 uint32_t Maxbframes : __CODEGEN_BITFIELD( 8, 10) ; //!< MAXBFRAMES
6328 uint32_t RangeredPresentFlagForSimpleMainProfileOnly : __CODEGEN_BITFIELD(11, 11) ; //!< RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6329 uint32_t SyncmarkerPresentFlagForSimpleMainProfileOnly : __CODEGEN_BITFIELD(12, 12) ; //!< SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6330 uint32_t MultiresPresentFlagForSimpleMainProfileOnly : __CODEGEN_BITFIELD(13, 13) ; //!< MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6331 uint32_t Quantizer : __CODEGEN_BITFIELD(14, 15) ; //!< QUANTIZER
6332 uint32_t PPicRefDistance : __CODEGEN_BITFIELD(16, 20) ; //!< P_PIC_REF_DISTANCE
6333 uint32_t Reserved117 : __CODEGEN_BITFIELD(21, 21) ; //!< Reserved
6334 uint32_t ProgressivePicType : __CODEGEN_BITFIELD(22, 23) ; //!< PROGRESSIVE_PIC_TYPE
6335 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 27) ; //!< Reserved
6336 uint32_t RangeReductionEnable : __CODEGEN_BITFIELD(28, 28) ; //!< RANGE_REDUCTION_ENABLE
6337 uint32_t RangeReductionScale : __CODEGEN_BITFIELD(29, 29) ; //!< RANGE_REDUCTION_SCALE
6338 uint32_t OverlapSmoothingEnableFlag : __CODEGEN_BITFIELD(30, 30) ; //!< OVERLAP_SMOOTHING_ENABLE_FLAG
6339 uint32_t Reserved127 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
6340 };
6341 uint32_t Value;
6342 } DW3;
6343 union
6344 {
6345 //!< DWORD 4
6346 struct
6347 {
6348 uint32_t ExtendedDmvPresentFlag : __CODEGEN_BITFIELD( 0, 0) ; //!< EXTENDED_DMV_PRESENT_FLAG
6349 uint32_t Psf : __CODEGEN_BITFIELD( 1, 1) ; //!< PSF
6350 uint32_t RefpicFlag : __CODEGEN_BITFIELD( 2, 2) ; //!< REFPIC_FLAG
6351 uint32_t Finterflag : __CODEGEN_BITFIELD( 3, 3) ; //!< FINTERFLAG
6352 uint32_t Tfcntrflag : __CODEGEN_BITFIELD( 4, 4) ; //!< TFCNTRFLAG
6353 uint32_t Interlace : __CODEGEN_BITFIELD( 5, 5) ; //!< INTERLACE
6354 uint32_t Pulldown : __CODEGEN_BITFIELD( 6, 6) ; //!< PULLDOWN
6355 uint32_t PostprocFlag : __CODEGEN_BITFIELD( 7, 7) ; //!< POSTPROC Flag
6356 uint32_t _4MvAllowedFlag : __CODEGEN_BITFIELD( 8, 8) ; //!< _4MV Allowed Flag
6357 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 23) ; //!< Reserved
6358 uint32_t BfractionEnumeration : __CODEGEN_BITFIELD(24, 28) ; //!< BFraction Enumeration
6359 uint32_t Reserved157 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
6360 };
6361 uint32_t Value;
6362 } DW4;
6363
6364 //! \name Local enumerations
6365
6366 enum SUBOPCODE_B
6367 {
6368 SUBOPCODE_B_UNNAMED0 = 0, //!< No additional details
6369 };
6370
6371 enum SUBOPCODE_A
6372 {
6373 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
6374 };
6375
6376 enum MEDIA_COMMAND_OPCODE
6377 {
6378 MEDIA_COMMAND_OPCODE_VC1DEC = 2, //!< No additional details
6379 };
6380
6381 enum PIPELINE
6382 {
6383 PIPELINE_MFDVC1SHORTPICSTATE = 2, //!< No additional details
6384 };
6385
6386 enum COMMAND_TYPE
6387 {
6388 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
6389 };
6390
6391 //! \brief PICTURE_STRUCTURE
6392 //! \details
6393 //! This field is used in both VC1 VLD mode and IT mode. It is the
6394 //! same parameter as bPicStructure in VC1 spec.
6395 //! The Picture Structure and Progressive Pic Type are used to derive
6396 //! the picture structure as specified in FCM, in VC1 VLD and IT mode.
6397 enum PICTURE_STRUCTURE
6398 {
6399 PICTURE_STRUCTURE_UNNAMED0 = 0, //!< illegal
6400 PICTURE_STRUCTURE_UNNAMED1 = 1, //!< top field (bit 0)
6401 PICTURE_STRUCTURE_UNNAMED2 = 2, //!< bottom field (bit 1)
6402 PICTURE_STRUCTURE_UNNAMED3 = 3, //!< frame (both fields are present)
6403 };
6404
6405 //! \brief INTRA_PICTURE_FLAG
6406 //! \details
6407 //! This field is used in both VC1 VLD mode and IT mode. It is the
6408 //! same parameter as bPicIntra in VC1 spec.
6409 //! The Intra Picture Flag, Backward Prediction Present Flag and
6410 //! RefPicFlag are used to derive the picture type, as specified in PTYPE
6411 //! for a frame, and in FPTYPE for a field, in VC1 VLD and IT mode.
6412 enum INTRA_PICTURE_FLAG
6413 {
6414 INTRA_PICTURE_FLAG_UNNAMED0 = 0, //!< entire picture can have a mixture of intra and inter MB type or just inter MB type.
6415 INTRA_PICTURE_FLAG_UNNAMED1 = 1, //!< entire picture is coded in intra MB type
6416 };
6417
6418 //! \brief VC1_PROFILE
6419 //! \details
6420 //! specifies the bitstream profile.
6421 //! Note: This is required because 128 is added for intra blocks post
6422 //! inverse transform in advanced profile and also to find out if Motion
6423 //! vectors are adjusted or not.
6424 //! This field is used in both VLD and IT modes.
6425 enum VC1_PROFILE
6426 {
6427 VC1_PROFILE_UNNAMED0 = 0, //!< current picture is in Simple or Main Profile (No need to distinguish Simple and Main Profile)
6428 VC1_PROFILE_UNNAMED1 = 1, //!< current picture is in Advanced Profile
6429 };
6430
6431 enum VSTRANSFORM_FLAG
6432 {
6433 VSTRANSFORM_FLAG_DISABLE = 0, //!< variable-sized transform coding is not enabled
6434 VSTRANSFORM_FLAG_ENABLE = 1, //!< variable-sized transform coding is enabled
6435 };
6436
6437 //! \brief DQUANT
6438 //! \details
6439 //! Use for Picture Header Parsing of VOPDUANT elements
6440 enum DQUANT
6441 {
6442 DQUANT_UNNAMED0 = 0, //!< no VOPDQUANT elements; Quantizer cannot vary in frame, same quantization step size PQUANT is used for all MBs in the frame
6443 DQUANT_UNNAMED1 = 1, //!< refer to VC1 Spec. for all the MB position dependent quantizer selection
6444 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.
6445 };
6446
6447 //! \brief EXTENDED_MV_PRESENT_FLAG
6448 //! \details
6449 //! BitFieldDesc
6450 enum EXTENDED_MV_PRESENT_FLAG
6451 {
6452 EXTENDED_MV_PRESENT_FLAG_UNNAMED0 = 0, //!< Extended_MV is not present in the picture header
6453 EXTENDED_MV_PRESENT_FLAG_UNNAMED1 = 1, //!< Extended_MV is present in the picture header
6454 };
6455
6456 //! \brief FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6457 //! \details
6458 //! This field specifies whether the motion vectors for
6459 //! UV is rounded to half or full pel position. It is identical to the
6460 //! variable
6461 //! FASTUVMC in VC1 standard.This field is used in both VLD and IT
6462 //! modes.It is
6463 //! derived from FASTUVMC = (bPicSpatialResid8 &gt;&gt; 4) &amp; 1 in
6464 //! both VLD and
6465 //! IT modes, and should have the same value as Motion Vector Mode
6466 //! LSBit.
6467 enum FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG
6468 {
6469 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED0 = 0, //!< no rounding
6470 FASTUVMCFLAG_FAST_UV_MOTION_COMPENSATION_FLAG_UNNAMED1 = 1, //!< quarter-pel offsets to half/full pel positions
6471 };
6472
6473 //! \brief LOOPFILTER_ENABLE_FLAG
6474 //! \details
6475 //! This filed is the decoded syntax element LOOPFILTER in bitstream. It
6476 //! indicates if In-loop Deblocking is ON according to picture level
6477 //! bitstream syntax control. This bit affects BSD unit and also the loop
6478 //! filter unit.When this bit is set to 1, PostDeblockOutEnable field in
6479 //! MFX_PIPE_MODE_SELECT command must also be set to 1. In this case,
6480 //! in-loop deblocking operation follows the VC1 standard - deblocking
6481 //! doesn't cross slice boundary.When this bit is set to 0, but
6482 //! PostDeblockOutEnable field in MFX_PIPE_MODE_SELECT command is set to 1.
6483 //! It indicates the loop filter unit is used for out-of-loop deblocking. In
6484 //! this case, deblocking operation does cross slice boundary.This field is
6485 //! used in VLD mode only, not in IT mode.
6486 enum LOOPFILTER_ENABLE_FLAG
6487 {
6488 LOOPFILTER_ENABLE_FLAG_UNNAMED0 = 0, //!< In-Loop-Deblocking-Filter is disabled
6489 LOOPFILTER_ENABLE_FLAG_UNNAMED1 = 1, //!< In-Loop-Deblocking-Filter is enabled
6490 };
6491
6492 enum PANSCAN_PRESENT_FLAG
6493 {
6494 PANSCAN_PRESENT_FLAG_UNNAMED0 = 0, //!< Pan Scan Parameters are not present in the picture header
6495 PANSCAN_PRESENT_FLAG_UNNAMED1 = 1, //!< Pan Scan Parameters are present in the picture header
6496 };
6497
6498 //! \brief RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6499 //! \details
6500 //! It is needed for Picture Header Parsing.Driver is responsible to keep
6501 //! RangeReductionScale, RangeReduction Enable and RANGERED Present Flag of
6502 //! current picture coherent.
6503 enum RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6504 {
6505 RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED0 = 0, //!< Range Reduction Parameter (RANGEREDFRM) is not present in the picture header
6506 RANGERED_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED1 = 1, //!< Range Reduction Parameter (RANGEREDFRM) is present in the picture header.
6507 };
6508
6509 enum SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6510 {
6511 SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED0 = 0, //!< Bitstream for Simple and Main Profile has no sync marker
6512 SYNCMARKER_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED1 = 1, //!< Bitstream for Simple and Main Profile may have sync marker(s)
6513 };
6514
6515 enum MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY
6516 {
6517 MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED0 = 0, //!< RESPIC Parameter is present in the picture header
6518 MULTIRES_PRESENT_FLAG_FOR_SIMPLEMAIN_PROFILE_ONLY_UNNAMED1 = 1, //!< RESPIC Parameter is present in the picture header
6519 };
6520
6521 enum QUANTIZER
6522 {
6523 QUANTIZER_UNNAMED0 = 0, //!< implicit quantizer at frame leve
6524 QUANTIZER_UNNAMED1 = 1, //!< explicit quantizer at frame level, and use PQUANTIZER SE to specify uniform or non-uniform
6525 QUANTIZER_UNNAMED2 = 2, //!< explicit quantizer, and non-uniform quantizer for all frames
6526 QUANTIZER_UNNAMED3 = 3, //!< explicit quantizer, and uniform quantizer for all frames
6527 };
6528
6529 //! \brief P_PIC_REF_DISTANCE
6530 //! \details
6531 //! This element defines the number of frames between the current frame and
6532 //! the reference frame. It is the same as the REFDIST SE in VC1 interlaced
6533 //! field picture header. It is present if the entry-level flag REFDIST_FLAG
6534 //! == 1, and if the picture type is not one of the following types: B/B,
6535 //! B/BI, BI/B, BI/BI. If the entry level flag REFDIST_FLAG == 0, REFDIST
6536 //! shall be set to the default value of 0.This field is used in VC1
6537 //! VLD mode only, not used in IT and intel VC1 VLD Long Format modes.
6538 enum P_PIC_REF_DISTANCE
6539 {
6540 P_PIC_REF_DISTANCE_UNNAMED0 = 0, //!< No additional details
6541 };
6542
6543 //! \brief PROGRESSIVE_PIC_TYPE
6544 //! \details
6545 //! This field is used in both VC1 VLD mode and IT mode. It is the
6546 //! same parameter as bPicExtrapolation in VC1 spec.The Picture
6547 //! Structure and Progressive Pic Type are used to derive the picture
6548 //! structure as specified in FCM, in VC1 VLD and IT mode.
6549 enum PROGRESSIVE_PIC_TYPE
6550 {
6551 PROGRESSIVE_PIC_TYPE_UNNAMED0 = 0, //!< progressive only picture
6552 PROGRESSIVE_PIC_TYPE_UNNAMED1 = 1, //!< progressive only picture
6553 PROGRESSIVE_PIC_TYPE_UNNAMED2 = 2, //!< interlace picture (frame-interlace or field-interlace)
6554 PROGRESSIVE_PIC_TYPE_UNNAMED3 = 3, //!< illegal
6555 };
6556
6557 //! \brief RANGE_REDUCTION_ENABLE
6558 //! \details
6559 //! This field specifies whether on-the-fly pixel value
6560 //! range reduction should be performed for the preceding (or forward)
6561 //! reference
6562 //! picture. Along with RangeReductionScale to specify whether scale up
6563 //! or down
6564 //! should be performed. It is not the same value as RANGEREDFRM Syntax
6565 //! Element
6566 //! (_PictureParameters bPicDeblocked bit 5) in the Picture
6567 //! Header.This field is
6568 //! for Main Profile only. Simple Profile is always disable, and not
6569 //! applicable to
6570 //! Advanced Profile. This field is used in both VLD and IT modes.This
6571 //! is derived by
6572 //! driver from the history of RANGERED and RANGEREDFRM syntax elements
6573 //! (i.e. of
6574 //! forward/preceding reference picture) and those of the current
6575 //! picture.RANGERED
6576 //! is the same as (bPicOverflowBlocks &gt;&gt; 3) &amp; 1. RANGEREDFRM
6577 //! is the same
6578 //! as (bPicDeblocked &gt;&gt; 5) &amp; 1.For the current picture is a
6579 //! B picture,
6580 //! this field represents the state of the forward/preceding reference
6581 //! picture
6582 //! onlyDriver is responsible to keep RangeReductionScale,
6583 //! RangeReduction Enable and
6584 //! RANGERED Present Flag of current picture coherent.
6585 enum RANGE_REDUCTION_ENABLE
6586 {
6587 RANGE_REDUCTION_ENABLE_DISABLE = 0, //!< Range reduction is not performed
6588 RANGE_REDUCTION_ENABLE_ENABLE = 1, //!< Range reduction is performed
6589 };
6590
6591 //! \brief RANGE_REDUCTION_SCALE
6592 //! \details
6593 //! This field specifies whether the reference picture
6594 //! pixel values should be scaled up or scaled down on-the-fly, if
6595 //! RangeReduction is
6596 //! Enabled.NOTE: This bit is derived by driver for Main Profile only.
6597 //! Ignored in
6598 //! Simple and Advanced Profiles. This field is used in both VLD and IT
6599 //! modes.This
6600 //! is derived by driver from the history of RANGERED and RANGEREDFRM
6601 //! syntax
6602 //! elements (i.e. of forward/preceding reference picture) and those of
6603 //! the current
6604 //! picture. RANGERED is the same as (bPicOverflowBlocks &gt;&gt; 3)
6605 //! &amp; 1.
6606 //! RANGEREDFRM is the same as (bPicDeblocked &gt;&gt; 5) &amp; 1. For
6607 //! the current
6608 //! picture is a B picture, this field represents the state of the
6609 //! forward/preceding
6610 //! reference picture onlyDriver is responsible to keep
6611 //! RangeReductionScale,
6612 //! RangeReduction Enable and RANGERED Present Flag of current picture
6613 //! coherent.
6614 enum RANGE_REDUCTION_SCALE
6615 {
6616 RANGE_REDUCTION_SCALE_DISABLE = 0, //!< Scale down reference picture by factor of 2
6617 RANGE_REDUCTION_SCALE_ENABLE = 1, //!< Scale up reference picture by factor of 2
6618 };
6619
6620 //! \brief OVERLAP_SMOOTHING_ENABLE_FLAG
6621 //! \details
6622 //! This field is the decoded syntax element OVERLAP in bitstreamIndicates
6623 //! if Overlap smoothing is ON at the picture levelThis field is used in
6624 //! both VLD and IT modes
6625 enum OVERLAP_SMOOTHING_ENABLE_FLAG
6626 {
6627 OVERLAP_SMOOTHING_ENABLE_FLAG_DISABLE = 0, //!< to disable overlap smoothing filter
6628 OVERLAP_SMOOTHING_ENABLE_FLAG_ENABLE = 1, //!< to enable overlap smoothing filter
6629 };
6630
6631 enum EXTENDED_DMV_PRESENT_FLAG
6632 {
6633 EXTENDED_DMV_PRESENT_FLAG_UNNAMED0 = 0, //!< Extended_DMV is not present in the picture header
6634 EXTENDED_DMV_PRESENT_FLAG_UNNAMED1 = 1, //!< Extended_DMV is present in the picture header
6635 };
6636
6637 //! \brief REFPIC_FLAG
6638 //! \details
6639 //! For a BI picture, REFPIC flag must set to 0For I and P picture, REFPIC
6640 //! flag must set to 0.For a B picture, REFPIC flag must set to 0, except
6641 //! for a B-field in interlaced field mode which can be 0 or 1 (e.g. the top
6642 //! B field can be used as a reference for decoding its corresponding bottom
6643 //! B-field in a field pair).In VLD mode, this flag cannot be used as an
6644 //! optimization signaling for an I or P picture that is not used as a
6645 //! reference picture.This field is used in both VC1 VLD mode and IT
6646 //! mode. It is the same parameter as bPicDeblockConfined[bit2] in VC1
6647 //! spec.The Intra Picture Flag, Backward Prediction Present Flag and
6648 //! RefPicFlag are used to derive the picture type, as specified in PTYPE
6649 //! for a frame, and in FPTYPE for a field, in VC1 VLD and IT mode.
6650 enum REFPIC_FLAG
6651 {
6652 REFPIC_FLAG_UNNAMED0 = 0, //!< the current picture after decoded, will never used as a reference picture
6653 REFPIC_FLAG_UNNAMED1 = 1, //!< the current picture after decoded, will be used as a reference picture later
6654 };
6655
6656 //! \name Initializations
6657
6658 //! \brief Explicit member initialization function
6659 MFD_VC1_SHORT_PIC_STATE_CMD();
6660
6661 static const size_t dwSize = 5;
6662 static const size_t byteSize = 20;
6663 };
6664
6665 //!
6666 //! \brief MFX_VC1_DIRECTMODE_STATE
6667 //! \details
6668 //! This is a picture level command and should be issued only once, even for
6669 //! a multi-slices picture. There is only one DMV buffer for read (when
6670 //! processing a B-picture) and one for write (when processing a P-Picture).
6671 //! Each DMV record is 64 bits per MB, to store the top and bottom field
6672 //! motion vectors (32-bit MVx,y each).
6673 //!
6674 struct MFX_VC1_DIRECTMODE_STATE_CMD
6675 {
6676 union
6677 {
6678 //!< DWORD 0
6679 struct
6680 {
6681 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6682 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6683 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6684 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6685 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6686 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6687 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6688 };
6689 uint32_t Value;
6690 } DW0;
6691 union
6692 {
6693 //!< DWORD 1
6694 struct
6695 {
6696 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
6697 uint32_t DirectMvWriteBufferBaseAddressForTheCurrentPicture : __CODEGEN_BITFIELD( 6, 31) ; //!< Direct MV Write Buffer Base Address for the Current Picture
6698 };
6699 uint32_t Value;
6700 } DW1;
6701 union
6702 {
6703 //!< DWORD 2
6704 struct
6705 {
6706 uint32_t DirectMvWriteBufferBaseAddressForTheCurrentPicture4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Direct MV Write Buffer Base Address for the Current Picture [47:32]
6707 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
6708 };
6709 uint32_t Value;
6710 } DW2;
6711 union
6712 {
6713 //!< DWORD 3
6714 struct
6715 {
6716 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
6717 uint32_t DirectMvWriteBufferBaseAddressForTheCurrentPictureArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6718 uint32_t DirectMvWriteBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Direct MV Write Buffer - Memory Compression Enable
6719 uint32_t DirectMvWriteBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_WRITE_BUFFER__MEMORY_COMPRESSION_MODE
6720 uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
6721 uint32_t DirectMvWriteBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_WRITE_BUFFER__TILED_RESOURCE_MODE
6722 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
6723 };
6724 uint32_t Value;
6725 } DW3;
6726 union
6727 {
6728 //!< DWORD 4
6729 struct
6730 {
6731 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
6732 uint32_t DirectMvReadBufferBaseAddressForTheReferencePicture : __CODEGEN_BITFIELD( 6, 31) ; //!< Direct MV Read Buffer Base Address for the Reference Picture
6733 };
6734 uint32_t Value;
6735 } DW4;
6736 union
6737 {
6738 //!< DWORD 5
6739 struct
6740 {
6741 uint32_t DirectMvReadBufferBaseAddressForTheCurrentPicture4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Direct MV Read Buffer Base Address for the Current Picture [47:32]
6742 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
6743 };
6744 uint32_t Value;
6745 } DW5;
6746 union
6747 {
6748 //!< DWORD 6
6749 struct
6750 {
6751 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
6752 uint32_t DirectMvReadBufferBaseAddressForTheCurrentPictureArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6753 uint32_t DirectMvReadBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Direct MV Read Buffer - Memory Compression Enable
6754 uint32_t DirectMvReadBufferMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_READ_BUFFER__MEMORY_COMPRESSION_MODE
6755 uint32_t Reserved203 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
6756 uint32_t DirectMvReadBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_READ_BUFFER__TILED_RESOURCE_MODE
6757 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
6758 };
6759 uint32_t Value;
6760 } DW6;
6761
6762 //! \name Local enumerations
6763
6764 enum SUBOPCODE_B
6765 {
6766 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
6767 };
6768
6769 enum SUBOPCODE_A
6770 {
6771 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
6772 };
6773
6774 enum MEDIA_COMMAND_OPCODE
6775 {
6776 MEDIA_COMMAND_OPCODE_VC1COMMON = 2, //!< No additional details
6777 };
6778
6779 enum PIPELINE
6780 {
6781 PIPELINE_MFXVC1DIRECTMODESTATE = 2, //!< No additional details
6782 };
6783
6784 enum COMMAND_TYPE
6785 {
6786 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
6787 };
6788
6789 //! \brief DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6790 //! \details
6791 //! This field controls the priority of arbitration used in the GAC/GAM
6792 //! pipeline for this surface.
6793 enum DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6794 {
6795 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
6796 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
6797 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
6798 DIRECT_MV_WRITE_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
6799 };
6800
6801 //! \brief DIRECT_MV_WRITE_BUFFER__MEMORY_COMPRESSION_MODE
6802 //! \details
6803 //! Distinguishes Vertical from Horizontal compression. Please refer to
6804 //! vol1a
6805 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
6806 //! section for more details.
6807 enum DIRECT_MV_WRITE_BUFFER__MEMORY_COMPRESSION_MODE
6808 {
6809 DIRECT_MV_WRITE_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
6810 DIRECT_MV_WRITE_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
6811 };
6812
6813 //! \brief DIRECT_MV_WRITE_BUFFER__TILED_RESOURCE_MODE
6814 //! \details
6815 //! <b>For Media Surfaces:</b>
6816 //! This field specifies the tiled resource mode.
6817 enum DIRECT_MV_WRITE_BUFFER__TILED_RESOURCE_MODE
6818 {
6819 DIRECT_MV_WRITE_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
6820 DIRECT_MV_WRITE_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
6821 DIRECT_MV_WRITE_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
6822 };
6823
6824 //! \brief DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6825 //! \details
6826 //! This field controls the priority of arbitration used in the GAC/GAM
6827 //! pipeline for this surface.
6828 enum DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE__ARBITRATION_PRIORITY_CONTROL
6829 {
6830 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
6831 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
6832 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
6833 DIRECT_MV_READ_BUFFER_BASE_ADDRESS_FOR_THE_CURRENT_PICTURE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
6834 };
6835
6836 //! \brief DIRECT_MV_READ_BUFFER__MEMORY_COMPRESSION_MODE
6837 //! \details
6838 //! Distinguishes Vertical from Horizontal compression. Please refer to
6839 //! vol1a
6840 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
6841 //! section for more details.
6842 enum DIRECT_MV_READ_BUFFER__MEMORY_COMPRESSION_MODE
6843 {
6844 DIRECT_MV_READ_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
6845 DIRECT_MV_READ_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
6846 };
6847
6848 //! \brief DIRECT_MV_READ_BUFFER__TILED_RESOURCE_MODE
6849 //! \details
6850 //! <b>For Media Surfaces:</b>
6851 //! This field specifies the tiled resource mode.
6852 enum DIRECT_MV_READ_BUFFER__TILED_RESOURCE_MODE
6853 {
6854 DIRECT_MV_READ_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
6855 DIRECT_MV_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
6856 DIRECT_MV_READ_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
6857 };
6858
6859 //! \name Initializations
6860
6861 //! \brief Explicit member initialization function
6862 MFX_VC1_DIRECTMODE_STATE_CMD();
6863
6864 static const size_t dwSize = 7;
6865 static const size_t byteSize = 28;
6866 };
6867
6868 //!
6869 //! \brief MFD_VC1_BSD_OBJECT
6870 //! \details
6871 //! The MFD_VC1_BSD_OBJECT command is the only primitive command for the VC1
6872 //! Decoding Pipeline. The macroblock data portion of the bitstream is
6873 //! loaded as indirect data object.Before issuing a MFD_VC1_BSD_OBJECT
6874 //! command, all VC1 states of the MFD Engine need to be valid. Therefore
6875 //! the commands used to set these states need to have been issued prior to
6876 //! the issue of a MFD_VC1_BSD_OBJECT command.VC1 deblock filter kernel
6877 //! cross the slice boundary if in the last MB row of a slice, so need to
6878 //! know the last MB row of a slice to disable the edge mask. There is why
6879 //! VC1 BSD hardware need to know the end of MB address for the current
6880 //! slice. As such no more phantom slice is needed for VC1, as long as the
6881 //! driver will program both start MB address in the current slice and the
6882 //! start MB address of the next slice. As a result, we can also support
6883 //! multiple picture state commands in between slices.
6884 //!
6885 struct MFD_VC1_BSD_OBJECT_CMD
6886 {
6887 union
6888 {
6889 //!< DWORD 0
6890 struct
6891 {
6892 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
6893 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
6894 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
6895 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
6896 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
6897 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
6898 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
6899 };
6900 uint32_t Value;
6901 } DW0;
6902 union
6903 {
6904 //!< DWORD 1
6905 struct
6906 {
6907 uint32_t IndirectBsdDataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect BSD Data Length
6908 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
6909 };
6910 uint32_t Value;
6911 } DW1;
6912 union
6913 {
6914 //!< DWORD 2
6915 struct
6916 {
6917 uint32_t IndirectDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect Data Start Address
6918 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
6919 };
6920 uint32_t Value;
6921 } DW2;
6922 union
6923 {
6924 //!< DWORD 3
6925 struct
6926 {
6927 uint32_t NextSliceVerticalPosition : __CODEGEN_BITFIELD( 0, 8) ; //!< Next Slice Vertical Position
6928 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved
6929 uint32_t SliceStartVerticalPosition : __CODEGEN_BITFIELD(16, 23) ; //!< Slice Start Vertical Position
6930 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
6931 };
6932 uint32_t Value;
6933 } DW3;
6934 union
6935 {
6936 //!< DWORD 4
6937 struct
6938 {
6939 uint32_t FirstmbbitoffsetFirstMacroblockBitOffset : __CODEGEN_BITFIELD( 0, 2) ; //!< FirstMbBitOffset (First Macroblock Bit Offset )
6940 uint32_t Reserved131 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
6941 uint32_t EmulationPreventionBytePresent : __CODEGEN_BITFIELD( 4, 4) ; //!< EMULATION_PREVENTION_BYTE_PRESENT
6942 uint32_t Reserved133 : __CODEGEN_BITFIELD( 5, 15) ; //!< Reserved
6943 uint32_t FirstMbByteOffsetOfSliceDataOrSliceHeader : __CODEGEN_BITFIELD(16, 31) ; //!< First_MB_Byte_Offset of Slice Data or Slice Header
6944 };
6945 uint32_t Value;
6946 } DW4;
6947
6948 //! \name Local enumerations
6949
6950 enum SUBOPCODE_B
6951 {
6952 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
6953 };
6954
6955 enum SUBOPCODE_A
6956 {
6957 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
6958 };
6959
6960 enum MEDIA_COMMAND_OPCODE
6961 {
6962 MEDIA_COMMAND_OPCODE_VC1DEC = 2, //!< No additional details
6963 };
6964
6965 enum PIPELINE
6966 {
6967 PIPELINE_MFXMULTIDW = 2, //!< No additional details
6968 };
6969
6970 enum COMMAND_TYPE
6971 {
6972 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
6973 };
6974
6975 enum EMULATION_PREVENTION_BYTE_PRESENT
6976 {
6977 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED0 = 0, //!< H/W needs to perform Emulation Byte Removal
6978 EMULATION_PREVENTION_BYTE_PRESENT_UNNAMED1 = 1, //!< H/W does not need to perform Emulation Byte Removal
6979 };
6980
6981 //! \name Initializations
6982
6983 //! \brief Explicit member initialization function
6984 MFD_VC1_BSD_OBJECT_CMD();
6985
6986 static const size_t dwSize = 5;
6987 static const size_t byteSize = 20;
6988 };
6989
6990 //!
6991 //! \brief MFX_JPEG_PIC_STATE
6992 //! \details
6993 //!
6994 //!
6995 struct MFX_JPEG_PIC_STATE_CMD
6996 {
6997 union
6998 {
6999 //!< DWORD 0
7000 struct
7001 {
7002 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7003 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7004 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7005 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7006 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7007 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7008 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7009 };
7010 uint32_t Value;
7011 } DW0;
7012 union
7013 {
7014 //!< DWORD 1
7015 struct
7016 {
7017 uint32_t OutputMcuStructure : __CODEGEN_BITFIELD( 0, 2) ; //!< OUTPUT_MCU_STRUCTURE, Encoder Only
7018 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 7) ; //!< Reserved, Encoder Only
7019 uint32_t InputSurfaceFormatYuv : __CODEGEN_BITFIELD( 8, 11) ; //!< INPUT_SURFACE_FORMAT_YUV, Encoder Only
7020 uint32_t Reserved44 : __CODEGEN_BITFIELD(12, 20) ; //!< Reserved, Encoder Only
7021 uint32_t PixelsInVerticalLastMcu : __CODEGEN_BITFIELD(21, 25) ; //!< Pixels In Vertical Last MCU, Encoder Only
7022 uint32_t PixelsInHorizontalLastMcu : __CODEGEN_BITFIELD(26, 30) ; //!< Pixels In Horizontal Last MCU, Encoder Only
7023 uint32_t Reserved63 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved, Encoder Only
7024 } Obj0;
7025 struct
7026 {
7027 uint32_t InputFormatYuv : __CODEGEN_BITFIELD( 0, 2) ; //!< INPUT_FORMAT_YUV, Decoder Only
7028 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved, Decoder Only
7029 uint32_t Rotation : __CODEGEN_BITFIELD( 4, 5) ; //!< ROTATION, Decoder Only
7030 uint32_t Reserved38 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved, Decoder Only
7031 uint32_t OutputFormatYuv : __CODEGEN_BITFIELD( 8, 11) ; //!< OUTPUT_FORMAT_YUV, Decoder Only
7032 uint32_t Reserved44 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved, Decoder Only
7033 uint32_t AverageDownSampling : __CODEGEN_BITFIELD(16, 16) ; //!< AVERAGE_DOWN_SAMPLING, Decoder Only
7034 uint32_t VerticalDownSamplingEnable : __CODEGEN_BITFIELD(17, 17) ; //!< VERTICAL_DOWN_SAMPLING_ENABLE, Decoder Only
7035 uint32_t HorizontalDownSamplingEnable : __CODEGEN_BITFIELD(18, 18) ; //!< HORIZONTAL_DOWN_SAMPLING_ENABLE, Decoder Only
7036 uint32_t Reserved51 : __CODEGEN_BITFIELD(19, 19) ; //!< Reserved, Decoder Only
7037 uint32_t VerticalUpSamplingEnable : __CODEGEN_BITFIELD(20, 20) ; //!< VERTICAL_UP_SAMPLING_ENABLE, Decoder Only
7038 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved, Decoder Only
7039 } Obj1;
7040 uint32_t Value;
7041 } DW1;
7042 union
7043 {
7044 //!< DWORD 2
7045 struct
7046 {
7047 uint32_t FrameWidthInBlocksMinus1 : __CODEGEN_BITFIELD( 0, 12) ; //!< Frame Width In Blocks Minus 1, Decoder Only
7048 uint32_t Reserved77 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved, Decoder Only
7049 uint32_t FrameHeightInBlocksMinus1 : __CODEGEN_BITFIELD(16, 28) ; //!< Frame Height In Blocks Minus 1, Decoder Only
7050 uint32_t OutputPixelNormalize : __CODEGEN_BITFIELD(29, 29) ; //!< OUTPUT_PIXEL_NORMALIZE, Decoder Only
7051 uint32_t Reserved94 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved, Decoder Only
7052 } Obj0;
7053 struct
7054 {
7055 uint32_t FrameWidthInBlksMinus1 : __CODEGEN_BITFIELD( 0, 12) ; //!< Frame Width In Blks Minus 1, Encoder Only
7056 uint32_t Roundingquant : __CODEGEN_BITFIELD(13, 15) ; //!< ROUNDINGQUANT, Encoder Only
7057 uint32_t FrameHeightInBlksMinus1 : __CODEGEN_BITFIELD(16, 28) ; //!< Frame Height In Blks Minus 1, Encoder Only
7058 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved, Encoder Only
7059 } Obj1;
7060 uint32_t Value;
7061 } DW2;
7062
7063 //! \name Local enumerations
7064
7065 enum SUBOPCODE_B
7066 {
7067 SUBOPCODE_B_MEDIA = 0, //!< No additional details
7068 };
7069
7070 enum SUBOPCODE_A
7071 {
7072 SUBOPCODE_A_COMMON = 0, //!< No additional details
7073 };
7074
7075 enum MEDIA_COMMAND_OPCODE
7076 {
7077 MEDIA_COMMAND_OPCODE_JPEG = 7, //!< No additional details
7078 };
7079
7080 enum PIPELINE
7081 {
7082 PIPELINE_MFXMULTIDW = 2, //!< No additional details
7083 };
7084
7085 enum COMMAND_TYPE
7086 {
7087 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7088 };
7089
7090 //! \brief OUTPUT_MCU_STRUCTURE
7091 //! \details
7092 //! <p></p>
7093 //! Output MCU Structure(<b>OutputMcuStructure</b>) should be set
7094 //! accordingly for each Input Surface Format
7095 //! YUV(<b>InputSurfaceFormatYUV</b>):
7096 //! <ul>
7097 //! <li>If <b>InputSurfaceFormatYUV</b> is set to NV12,
7098 //! <b>OutputMCUStructure</b> is set to YUV420.</li>
7099 //! <li>If <b>InputSurfaceFormatYUV</b> is set to UYVY or YUY2,
7100 //! <b>OutputMCUStructure</b> is set to YUV422H_2Y.</li>
7101 //! <li>If <b>InputSurfaceFormatYUV</b> is set to Y8,
7102 //! <b>OutputMCuStructure</b> is set to YUV400.</li>
7103 //! <li>If <b>InputSurfaceFormatYUV</b> is set to RGB (or GBR, BGR,
7104 //! YUV), <b>OutputMCuStructure</b> is set to RGB.</li>
7105 //! <li>If <b>InputSurfaceFormatYUV</b> is set to RGB, the order of
7106 //! encoded blocks in MCU will be same as the order of input image
7107 //! components.
7108 //! If the order of input image components is RGB (or GBR, BGR, YUV),
7109 //! then the order of blocks will be RGB (or GBR, BGR, YUV
7110 //! respectively).</li>
7111 //! </ul>
7112 //! <p></p>
7113 enum OUTPUT_MCU_STRUCTURE
7114 {
7115 OUTPUT_MCU_STRUCTURE_YUV_400 = 0, //!< Grayscale Image
7116 OUTPUT_MCU_STRUCTURE_YUV_420 = 1, //!< Both horizontally and vertically chroma 2:1 subsampled
7117 OUTPUT_MCU_STRUCTURE_YUV_422H2Y = 2, //!< Horizontally chroma 2:1 subsampled - horizontal 2 Y-blocks, 1 U and 1 V block
7118 OUTPUT_MCU_STRUCTURE_RGB = 3, //!< RGB or YUV444: No subsample
7119 OUTPUT_MCU_STRUCTURE_UNNAMED_4 = 4, //!< No additional details
7120 OUTPUT_MCU_STRUCTURE_UNNAMED5 = 5, //!< No additional details
7121 OUTPUT_MCU_STRUCTURE_UNNAMED6 = 6, //!< No additional details
7122 OUTPUT_MCU_STRUCTURE_UNNAMED7 = 7, //!< No additional details
7123 };
7124
7125 enum INPUT_FORMAT_YUV
7126 {
7127 INPUT_FORMAT_YUV_UNNAMED0 = 0, //!< YUV400 (grayscale image)
7128 INPUT_FORMAT_YUV_UNNAMED1 = 1, //!< YUV420
7129 INPUT_FORMAT_YUV_UNNAMED2 = 2, //!< YUV422H_2Y (Horizontally chroma 2:1 subsampled) - horizontal 2 Y-block, 1U and 1V
7130 INPUT_FORMAT_YUV_UNNAMED3 = 3, //!< YUV444
7131 INPUT_FORMAT_YUV_UNNAMED_4 = 4, //!< YUV411
7132 INPUT_FORMAT_YUV_UNNAMED5 = 5, //!< YUV422V_2Y (Vertically chroma 2:1 subsampled) - vertical 2 Y-blocks, 1U and 1V
7133 INPUT_FORMAT_YUV_UNNAMED6 = 6, //!< YUV422H_4Y - 2x2 Y-blocks, vertical 2U and 2V
7134 INPUT_FORMAT_YUV_UNNAMED7 = 7, //!< YUV422V_4Y - 2x2 Y-blocks, horizontal 2U and 2V
7135 };
7136
7137 //! \brief ROTATION
7138 //! \details
7139 //! Rotation can be set to 01b, 10b, or 11b when OutputFormatYUV is set to
7140 //! 0000b. For other OutputFormatYUV, Rotation is not allowed.
7141 enum ROTATION
7142 {
7143 ROTATION_UNNAMED0 = 0, //!< no rotation
7144 ROTATION_UNNAMED1 = 1, //!< rotate clockwise 90 degree
7145 ROTATION_UNNAMED2 = 2, //!< rotate counter-clockwise 90 degree (same as rotating 270 degree clockwise)
7146 ROTATION_UNNAMED3 = 3, //!< rotate 180 degree (NOT the same as flipped on the x-axis)
7147 };
7148
7149 //! \brief OUTPUT_FORMAT_YUV
7150 //! \details
7151 //! This field specifies the surface format to write the decoded JPEG
7152 //! image.Note that any non-interleaved JPEG input should be set to "0000".
7153 //! For the interleaved input Scan data, it can be set either "0000" or the
7154 //! corresponding format.
7155 enum OUTPUT_FORMAT_YUV
7156 {
7157 OUTPUT_FORMAT_YUV_UNNAMED0 = 0, //!< 3 separate plane for Y, U, and V respectively
7158 OUTPUT_FORMAT_YUV_UNNAMED1 = 1, //!< NV12 for chroma 4:2:0
7159 OUTPUT_FORMAT_YUV_UNNAMED2 = 2, //!< UYVY for chroma 4:2:2
7160 OUTPUT_FORMAT_YUV_UNNAMED3 = 3, //!< YUY2 for chroma 4:2:2
7161 };
7162
7163 //! \brief INPUT_SURFACE_FORMAT_YUV
7164 //! \details
7165 //! This field specifies the surface format to read a YUV image data
7166 enum INPUT_SURFACE_FORMAT_YUV
7167 {
7168 INPUT_SURFACE_FORMAT_YUV_UNNAMED0 = 0, //!< Reserved
7169 INPUT_SURFACE_FORMAT_YUV_NV12 = 1, //!< NV12 for chroma 4:2:0
7170 INPUT_SURFACE_FORMAT_YUV_UYVY = 2, //!< UYVY for chroma 4:2:2
7171 INPUT_SURFACE_FORMAT_YUV_YUY2 = 3, //!< YUY2 for chroma 4:2:2
7172 INPUT_SURFACE_FORMAT_YUV_Y8 = 4, //!< Y8 for chroma400 Y-only image
7173 INPUT_SURFACE_FORMAT_YUV_RGB = 5, //!< RGB or YUV for chroma 4:4:4
7174 };
7175
7176 //! \brief AVERAGE_DOWN_SAMPLING
7177 //! \details
7178 //! This flag is used to select a down-sampling method when
7179 //! <b>VertDownSamplingEnb</b> or <b>HoriDownSamplingEnb</b> is set to 1.
7180 enum AVERAGE_DOWN_SAMPLING
7181 {
7182 AVERAGE_DOWN_SAMPLING_UNNAMED0 = 0, //!< Drop every other line (or column) pixels
7183 AVERAGE_DOWN_SAMPLING_UNNAMED1 = 1, //!< Average neighboring two pixels
7184 };
7185
7186 //! \brief VERTICAL_DOWN_SAMPLING_ENABLE
7187 //! \details
7188 //! Only applied to chroma blocks. This flag is used for 2:1 vertical
7189 //! down-sampling for chroma 422 and outputting chroma420 NV21 format. To
7190 //! enable this flag, the input should be interleaved Scan,
7191 //! <b>InputFormatYUV</b> should be set to YUV422H_2Y or YUV422H_4Y, and
7192 //! <b>OutputFormatYUV</b> should be set to NV12.
7193 enum VERTICAL_DOWN_SAMPLING_ENABLE
7194 {
7195 VERTICAL_DOWN_SAMPLING_ENABLE_UNNAMED0 = 0, //!< no down-sampling
7196 VERTICAL_DOWN_SAMPLING_ENABLE_UNNAMED1 = 1, //!< 2:1 vertical down-sampling
7197 };
7198
7199 //! \brief HORIZONTAL_DOWN_SAMPLING_ENABLE
7200 //! \details
7201 //! Only applied to chroma blocks. This flag is used for 2:1 horizontal
7202 //! down-sampling for chroma 422 and outputting chroma420 NV21 format. To
7203 //! enable this flag, the input should be interleaved Scan,
7204 //! <b>InputFormatYUV</b> should be set to YUV422V_2Y or YUV422V_4Y, and
7205 //! <b>OutputFormatYUV</b> should be set to NV12.
7206 enum HORIZONTAL_DOWN_SAMPLING_ENABLE
7207 {
7208 HORIZONTAL_DOWN_SAMPLING_ENABLE_UNNAMED0 = 0, //!< no down-sampling
7209 HORIZONTAL_DOWN_SAMPLING_ENABLE_UNNAMED1 = 1, //!< 2:1 horizonatl down-sampling
7210 };
7211
7212 //! \brief VERTICAL_UP_SAMPLING_ENABLE
7213 //! \details
7214 //! Only applied to chroma blocks. This flag is used for 2:1 vertical
7215 //! up-sampling for chroma 420 and outputting chroma422 YUY2 or UYVY format.
7216 //! To enable this flag, the input should be interleaved Scan,
7217 //! <b>InputFormatYUV</b> should be set to YUV420, and
7218 //! <b>OutputFormatYUV</b> should be set to YUY2 or UYVY.
7219 enum VERTICAL_UP_SAMPLING_ENABLE
7220 {
7221 VERTICAL_UP_SAMPLING_ENABLE_UNNAMED0 = 0, //!< no up-sampling
7222 VERTICAL_UP_SAMPLING_ENABLE_UNNAMED1 = 1, //!< 2:1 vertical up-sampling
7223 };
7224
7225 //! \brief ROUNDINGQUANT
7226 //! \details
7227 //! Rounding value applied to quantization output
7228 enum ROUNDINGQUANT
7229 {
7230 ROUNDINGQUANT_UNNAMED0 = 0, //!< 1/2
7231 ROUNDINGQUANT_UNNAMED1 = 1, //!< (1/2 - 1/128)
7232 ROUNDINGQUANT_UNNAMED2 = 2, //!< (1/2 + 1/128)
7233 ROUNDINGQUANT_UNNAMED3 = 3, //!< (1/2 - 1/64)
7234 ROUNDINGQUANT_UNNAMED_4 = 4, //!< (1/2 + 1/64)
7235 ROUNDINGQUANT_UNNAMED5 = 5, //!< (1/2 - 1/32)
7236 ROUNDINGQUANT_UNNAMED6 = 6, //!< (1/2 - 1/16)
7237 ROUNDINGQUANT_UNNAMED7 = 7, //!< (1/2 - 1/8)
7238 };
7239
7240 //! \brief OUTPUT_PIXEL_NORMALIZE
7241 //! \details
7242 //! JPEG decoded output pixels for Y and U/V in order to adjust display YUV
7243 //! range.
7244 enum OUTPUT_PIXEL_NORMALIZE
7245 {
7246 OUTPUT_PIXEL_NORMALIZE_UNNAMED0 = 0, //!< No Normalization
7247 OUTPUT_PIXEL_NORMALIZE_UNNAMED1 = 1, //!< Normalize output pixels from [0,255] to [16,235]
7248 };
7249
7250 //! \name Initializations
7251
7252 //! \brief Explicit member initialization function
7253 MFX_JPEG_PIC_STATE_CMD();
7254
7255 static const size_t dwSize = 3;
7256 static const size_t byteSize = 12;
7257 };
7258
7259 //!
7260 //! \brief MFC_JPEG_HUFF_TABLE_STATE
7261 //! \details
7262 //! This Huffman table commands contains both DC and AC tables for either
7263 //! luma or chroma. Once a Huffman table has been defined for a particular
7264 //! destination, it replaces the previous tables stored in that destination
7265 //! and shall be used in the remaining Scans of the current image. Two
7266 //! Huffman tables for luma and chroma will be sent to H/W, and chroma table
7267 //! is used for both U and V.
7268 //!
7269 struct MFC_JPEG_HUFF_TABLE_STATE_CMD
7270 {
7271 union
7272 {
7273 //!< DWORD 0
7274 struct
7275 {
7276 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7277 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7278 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7279 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7280 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7281 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7282 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7283 };
7284 uint32_t Value;
7285 } DW0;
7286 union
7287 {
7288 //!< DWORD 1
7289 struct
7290 {
7291 uint32_t HuffTableId : __CODEGEN_BITFIELD( 0, 0) ; //!< HUFF_TABLE_ID
7292 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
7293 };
7294 uint32_t Value;
7295 } DW1;
7296
7297 uint32_t DcTable[12]; //!< DC_TABLE
7298
7299
7300 uint32_t AcTable[162]; //!< AC_TABLE
7301
7302
7303 //! \name Local enumerations
7304
7305 enum SUBOPCODE_B
7306 {
7307 SUBOPCODE_B_MEDIA = 3, //!< No additional details
7308 };
7309
7310 enum SUBOPCODE_A
7311 {
7312 SUBOPCODE_A_COMMON = 2, //!< No additional details
7313 };
7314
7315 enum MEDIA_COMMAND_OPCODE
7316 {
7317 MEDIA_COMMAND_OPCODE_JPEG = 7, //!< No additional details
7318 };
7319
7320 enum PIPELINE
7321 {
7322 PIPELINE_MFCJPEGHUFFTABLESTATE = 2, //!< No additional details
7323 };
7324
7325 enum COMMAND_TYPE
7326 {
7327 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7328 };
7329
7330 //! \brief HUFF_TABLE_ID
7331 //! \details
7332 //! Huffman table destination identifier will specify one of two
7333 //! destinations at the encoder into which the Huffman table must be stored.
7334 enum HUFF_TABLE_ID
7335 {
7336 HUFF_TABLE_ID_UNNAMED0 = 0, //!< Huffman table 0
7337 HUFF_TABLE_ID_UNNAMED1 = 1, //!< Huffman table 1
7338 };
7339
7340 //! \name Initializations
7341
7342 //! \brief Explicit member initialization function
7343 MFC_JPEG_HUFF_TABLE_STATE_CMD();
7344
7345 static const size_t dwSize = 176;
7346 static const size_t byteSize = 704;
7347 };
7348
7349 //!
7350 //! \brief MFD_JPEG_BSD_OBJECT
7351 //! \details
7352 //!
7353 //!
7354 struct MFD_JPEG_BSD_OBJECT_CMD
7355 {
7356 union
7357 {
7358 //!< DWORD 0
7359 struct
7360 {
7361 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7362 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7363 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7364 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7365 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7366 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7367 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7368 };
7369 uint32_t Value;
7370 } DW0;
7371 union
7372 {
7373 //!< DWORD 1
7374 struct
7375 {
7376 uint32_t IndirectDataLength ; //!< Indirect Data Length
7377 };
7378 uint32_t Value;
7379 } DW1;
7380 union
7381 {
7382 //!< DWORD 2
7383 struct
7384 {
7385 uint32_t IndirectDataStartAddress : __CODEGEN_BITFIELD( 0, 28) ; //!< Indirect Data Start Address
7386 uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
7387 };
7388 uint32_t Value;
7389 } DW2;
7390 union
7391 {
7392 //!< DWORD 3
7393 struct
7394 {
7395 uint32_t ScanVerticalPosition : __CODEGEN_BITFIELD( 0, 12) ; //!< Scan Vertical Position
7396 uint32_t Reserved109 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved
7397 uint32_t ScanHorizontalPosition : __CODEGEN_BITFIELD(16, 28) ; //!< Scan Horizontal Position
7398 uint32_t Reserved125 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
7399 };
7400 uint32_t Value;
7401 } DW3;
7402 union
7403 {
7404 //!< DWORD 4
7405 struct
7406 {
7407 uint32_t McuCount : __CODEGEN_BITFIELD( 0, 25) ; //!< MCU Count
7408 uint32_t Reserved154 : __CODEGEN_BITFIELD(26, 26) ; //!< Reserved
7409 uint32_t ScanComponents : __CODEGEN_BITFIELD(27, 29) ; //!< Scan Components
7410 uint32_t Interleaved : __CODEGEN_BITFIELD(30, 30) ; //!< INTERLEAVED
7411 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
7412 };
7413 uint32_t Value;
7414 } DW4;
7415 union
7416 {
7417 //!< DWORD 5
7418 struct
7419 {
7420 uint32_t Restartinterval16Bit : __CODEGEN_BITFIELD( 0, 15) ; //!< RestartInterval(16 bit)
7421 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
7422 };
7423 uint32_t Value;
7424 } DW5;
7425
7426 //! \name Local enumerations
7427
7428 enum SUBOPCODE_B
7429 {
7430 SUBOPCODE_B_UNNAMED8 = 8, //!< No additional details
7431 };
7432
7433 enum SUBOPCODE_A
7434 {
7435 SUBOPCODE_A_UNNAMED1 = 1, //!< No additional details
7436 };
7437
7438 enum MEDIA_COMMAND_OPCODE
7439 {
7440 MEDIA_COMMAND_OPCODE_JPEGDEC = 7, //!< No additional details
7441 };
7442
7443 enum PIPELINE
7444 {
7445 PIPELINE_MFDJPEGBSDOBJECT = 2, //!< No additional details
7446 };
7447
7448 enum COMMAND_TYPE
7449 {
7450 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7451 };
7452
7453 enum INTERLEAVED
7454 {
7455 INTERLEAVED_NON_INTERLEAVED = 0, //!< one component in the Scan
7456 INTERLEAVED_INTERLEAVED = 1, //!< multiple components in the Scan
7457 };
7458
7459 //! \name Initializations
7460
7461 //! \brief Explicit member initialization function
7462 MFD_JPEG_BSD_OBJECT_CMD();
7463
7464 static const size_t dwSize = 6;
7465 static const size_t byteSize = 24;
7466 };
7467
7468 //!
7469 //! \brief MFC_JPEG_SCAN_OBJECT
7470 //! \details
7471 //! Encoder Only
7472 //!
7473 struct MFC_JPEG_SCAN_OBJECT_CMD
7474 {
7475 union
7476 {
7477 //!< DWORD 0
7478 struct
7479 {
7480 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7481 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7482 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
7483 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
7484 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7485 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7486 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7487 };
7488 uint32_t Value;
7489 } DW0;
7490 union
7491 {
7492 //!< DWORD 1
7493 struct
7494 {
7495 uint32_t McuCount : __CODEGEN_BITFIELD( 0, 25) ; //!< MCU Count
7496 uint32_t Reserved58 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
7497 };
7498 uint32_t Value;
7499 } DW1;
7500 union
7501 {
7502 //!< DWORD 2
7503 struct
7504 {
7505 uint32_t RestartInterval : __CODEGEN_BITFIELD( 0, 15) ; //!< Restart Interval
7506 uint32_t IsLastScan : __CODEGEN_BITFIELD(16, 16) ; //!< IS_LAST_SCAN
7507 uint32_t HeadPresentFlag : __CODEGEN_BITFIELD(17, 17) ; //!< HEAD_PRESENT_FLAG
7508 uint32_t HuffmanDcTable : __CODEGEN_BITFIELD(18, 20) ; //!< HUFFMAN_DC_TABLE
7509 uint32_t Reserved85 : __CODEGEN_BITFIELD(21, 21) ; //!< Reserved
7510 uint32_t HuffmanAcTable : __CODEGEN_BITFIELD(22, 24) ; //!< HUFFMAN_AC_TABLE
7511 uint32_t Reserved89 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
7512 };
7513 uint32_t Value;
7514 } DW2;
7515
7516 //! \name Local enumerations
7517
7518 enum SUBOPCODE_B
7519 {
7520 SUBOPCODE_B_UNNAMED9 = 9, //!< No additional details
7521 };
7522
7523 enum SUBOPCODE_A
7524 {
7525 SUBOPCODE_A_UNNAMED2 = 2, //!< No additional details
7526 };
7527
7528 enum MEDIA_COMMAND_OPCODE
7529 {
7530 MEDIA_COMMAND_OPCODE_JPEGENC = 7, //!< No additional details
7531 };
7532
7533 enum PIPELINE
7534 {
7535 PIPELINE_MFCJPEGSCANOBJECT = 2, //!< No additional details
7536 };
7537
7538 enum COMMAND_TYPE
7539 {
7540 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7541 };
7542
7543 //! \brief IS_LAST_SCAN
7544 //! \details
7545 //! If this flag is set, then HW will insert EOI (0xFFD9) to the end of Scan
7546 //! encoded bitstream.
7547 enum IS_LAST_SCAN
7548 {
7549 IS_LAST_SCAN_UNNAMED0 = 0, //!< Not the last Scan.
7550 IS_LAST_SCAN_UNNAMED1 = 1, //!< Indicates that the current Scan is the last one.
7551 };
7552
7553 //! \brief HEAD_PRESENT_FLAG
7554 //! \details
7555 //! If this flag is set to 0, then no MFC_JPEG_PAK_INSERT_OBJECT commands
7556 //! will be sent.
7557 //! If this flag is set to 1, then one or more
7558 //! MFC_JPEG_PAK_INSERT_OBJECT commands will be sent after
7559 //! MFC_JPEG_SCAN_OBJECT command.
7560 enum HEAD_PRESENT_FLAG
7561 {
7562 HEAD_PRESENT_FLAG_UNNAMED0 = 0, //!< No insertion into the output bitstream buffer before Scan encoded bitstream
7563 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.
7564 };
7565
7566 //! \brief HUFFMAN_DC_TABLE
7567 //! \details
7568 //! DC Huffman table destination selector specifies one of two possible DC
7569 //! table destinations for each Y, U, V, or R, G, B.
7570 //! The DC Huffman tables shall have been loaded in destination 0 and 1
7571 //! by the time of issuing MFC_JPEG_HUFF_TABLE_STATE Command.
7572 enum HUFFMAN_DC_TABLE
7573 {
7574 HUFFMAN_DC_TABLE_BIT20V0 = 0, //!< The third image component must use the DC table 0.
7575 HUFFMAN_DC_TABLE_BIT19U0 = 0, //!< The second image component must use the DC table 0.
7576 HUFFMAN_DC_TABLE_BIT18Y0 = 0, //!< The first image component must use the DC table 0.
7577 HUFFMAN_DC_TABLE_BIT18Y1 = 1, //!< The first image component must use the DC table 1.
7578 HUFFMAN_DC_TABLE_BIT19U1 = 2, //!< The second image component must use the DC table 1.
7579 HUFFMAN_DC_TABLE_BIT20V1 = 4, //!< The third image component must use the DC table 1.
7580 };
7581
7582 //! \brief HUFFMAN_AC_TABLE
7583 //! \details
7584 //! AC Huffman table destination selector specifies one of two possible AC
7585 //! table destinations for each Y, U, V, or R, G, B.
7586 //! The AC Huffman tables must have been loaded in destination 0 and 1
7587 //! by the time of issuing MFC_JPEG_HUFF_TABLE_STATE Command.
7588 enum HUFFMAN_AC_TABLE
7589 {
7590 HUFFMAN_AC_TABLE_BIT2_4V0 = 0, //!< The third image component must use the AC table 0.
7591 HUFFMAN_AC_TABLE_BIT23U0 = 0, //!< The second image component must use the AC table 0.
7592 HUFFMAN_AC_TABLE_BIT22Y0 = 0, //!< The first image component must use the AC table 0.
7593 HUFFMAN_AC_TABLE_BIT22Y1 = 1, //!< The first image component must use the AC table 1.
7594 HUFFMAN_AC_TABLE_BIT23U1 = 2, //!< The second image component must use the AC table 1.
7595 HUFFMAN_AC_TABLE_BIT2_4V1 = 4, //!< The third image component must use the AC table 1.
7596 };
7597
7598 //! \name Initializations
7599
7600 //! \brief Explicit member initialization function
7601 MFC_JPEG_SCAN_OBJECT_CMD();
7602
7603 static const size_t dwSize = 3;
7604 static const size_t byteSize = 12;
7605 };
7606
7607 //!
7608 //! \brief MFX_VP8_Encoder_CFG
7609 //! \details
7610 //! This must be the very first command to issue after the surface state,
7611 //! the pipe select and base address setting commands and must be issued
7612 //! before MFX_VP8_PIC_STATE.
7613 //!
7614 struct MFX_VP8_Encoder_CFG_CMD
7615 {
7616 union
7617 {
7618 //!< DWORD 0
7619 struct
7620 {
7621 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
7622 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7623 uint32_t SubOpcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUB_OPCODE_B
7624 uint32_t SubOpcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODE_A
7625 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
7626 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
7627 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
7628 };
7629 uint32_t Value;
7630 } DW0;
7631 union
7632 {
7633 //!< DWORD 1
7634 struct
7635 {
7636 uint32_t PerformanceCounterEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Performance Counter Enable
7637 uint32_t FinalBitstreamOutputDisable : __CODEGEN_BITFIELD( 1, 1) ; //!< Final Bitstream Output Disable
7638 uint32_t TokenStatisticsOutputEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< Token Statistics Output Enable
7639 uint32_t BitstreamStatisticsOutputEnable : __CODEGEN_BITFIELD( 3, 3) ; //!< Bitstream Statistics Output Enable
7640 uint32_t UpdateSegmentFeatureDataFlag : __CODEGEN_BITFIELD( 4, 4) ; //!< Update Segment Feature Data Flag
7641 uint32_t SkipFinalBitstreamWhenOverUnderFlow : __CODEGEN_BITFIELD( 5, 5) ; //!< Skip Final Bitstream when Over / Under flow
7642 uint32_t RateControlInitialPass : __CODEGEN_BITFIELD( 6, 6) ; //!< RATE_CONTROL_INITIAL_PASS
7643 uint32_t PerSegmentDeltaQindexLoopfilterDisable : __CODEGEN_BITFIELD( 7, 7) ; //!< Per Segment Delta Qindex / LoopFilter Disable
7644 uint32_t FinerBrcEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< Finer BRC Enable
7645 uint32_t CompressedBitstreamOutputDisable : __CODEGEN_BITFIELD( 9, 9) ; //!< Compressed Bitstream Output Disable
7646 uint32_t VbspunitpowerclockGatingDisable : __CODEGEN_BITFIELD(10, 10) ; //!< VBSPunitPowerClock Gating Disable
7647 uint32_t Reserved43 : __CODEGEN_BITFIELD(11, 31) ; //!< Reserved
7648 };
7649 uint32_t Value;
7650 } DW1;
7651 union
7652 {
7653 //!< DWORD 2
7654 struct
7655 {
7656 uint32_t MaxFrameBitCountRateControlEnableMask : __CODEGEN_BITFIELD( 0, 0) ; //!< MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7657 uint32_t MinFrameBitCountRateControlEnableMask : __CODEGEN_BITFIELD( 1, 1) ; //!< MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7658 uint32_t MaxInterMbBitCountCheckEnableMask : __CODEGEN_BITFIELD( 2, 2) ; //!< Max Inter MB Bit Count Check Enable Mask
7659 uint32_t MaxIntraMbBitCountCheckEnableMask : __CODEGEN_BITFIELD( 3, 3) ; //!< Max Intra MB Bit Count Check Enable Mask
7660 uint32_t IntermediateBitBufferOverrunEnableMask : __CODEGEN_BITFIELD( 4, 4) ; //!< Intermediate Bit Buffer Overrun Enable Mask
7661 uint32_t FinalBistreamBufferOverrunEnableMask : __CODEGEN_BITFIELD( 5, 5) ; //!< Final Bistream Buffer Overrun Enable Mask
7662 uint32_t QindexClampHighMaskForUnderflow : __CODEGEN_BITFIELD( 6, 6) ; //!< Qindex_Clamp_High_mask for underflow
7663 uint32_t QindexClampHighMaskForOverflow : __CODEGEN_BITFIELD( 7, 7) ; //!< Qindex_Clamp_High_mask for overflow
7664 uint32_t Reserved72 : __CODEGEN_BITFIELD( 8, 31) ; //!< Reserved
7665 };
7666 uint32_t Value;
7667 } DW2;
7668 union
7669 {
7670 //!< DWORD 3
7671 struct
7672 {
7673 uint32_t MaxInterMbBitCount : __CODEGEN_BITFIELD( 0, 11) ; //!< Max Inter MB bit count
7674 uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
7675 uint32_t MaxIntraMbBitCountLimit : __CODEGEN_BITFIELD(16, 27) ; //!< Max Intra MB Bit Count Limit
7676 uint32_t Reserved124 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved
7677 };
7678 uint32_t Value;
7679 } DW3;
7680 union
7681 {
7682 //!< DWORD 4
7683 struct
7684 {
7685 uint32_t FrameBitRateMax : __CODEGEN_BITFIELD( 0, 13) ; //!< Frame Bit Rate Max
7686 uint32_t FrameBitRateMaxUnit : __CODEGEN_BITFIELD(14, 14) ; //!< FRAME_BIT_RATE_MAX_UNIT
7687 uint32_t FrameBitrateMaxUnitMode : __CODEGEN_BITFIELD(15, 15) ; //!< FRAME_BITRATE_MAX_UNIT_MODE
7688 uint32_t FrameBitRateMin : __CODEGEN_BITFIELD(16, 29) ; //!< Frame Bit Rate Min
7689 uint32_t FrameBitRateMinUnit : __CODEGEN_BITFIELD(30, 30) ; //!< FRAME_BIT_RATE_MIN_UNIT
7690 uint32_t FrameBitrateMinUnitMode : __CODEGEN_BITFIELD(31, 31) ; //!< FRAME_BITRATE_MIN_UNIT_MODE
7691 };
7692 uint32_t Value;
7693 } DW4;
7694 union
7695 {
7696 //!< DWORD 5
7697 struct
7698 {
7699 uint32_t FrameDeltaQindexMax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta QIndex Max [0]
7700 uint32_t FrameDeltaQindexMax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Frame Delta QIndex Max[1]
7701 uint32_t FrameDeltaqIndexMax2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame DeltaQ Index Max[2]
7702 uint32_t FrameDeltaQindexMax3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta QIndex Max[3]
7703 };
7704 uint32_t Value;
7705 } DW5;
7706 union
7707 {
7708 //!< DWORD 6
7709 struct
7710 {
7711 uint32_t FrameDeltaQindexMin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta QIndex Min[0]
7712 uint32_t FrameDeltaQindexMin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Frame Delta QIndex Min[1]
7713 uint32_t FrameDeltaQindexMin2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Delta QIndex Min[2]
7714 uint32_t FrameDeltaQindexMin3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta QIndex Min[3]
7715 };
7716 uint32_t Value;
7717 } DW6;
7718 union
7719 {
7720 //!< DWORD 7
7721 struct
7722 {
7723 uint32_t PerSegmentFrameDeltaQindexMax1 ; //!< Per Segment Frame Delta QIndex Max[1]
7724 };
7725 uint32_t Value;
7726 } DW7;
7727 union
7728 {
7729 //!< DWORD 8
7730 struct
7731 {
7732 uint32_t PerSegmentFrameDeltaQindexMin1 ; //!< Per Segment Frame Delta QIndex Min[1]
7733 };
7734 uint32_t Value;
7735 } DW8;
7736 union
7737 {
7738 //!< DWORD 9
7739 struct
7740 {
7741 uint32_t PerSegmentFrameDeltaQindexMax2 ; //!< Per Segment Frame Delta QIndex Max[2]
7742 };
7743 uint32_t Value;
7744 } DW9;
7745 union
7746 {
7747 //!< DWORD 10
7748 struct
7749 {
7750 uint32_t PerSegmentFrameDeltaQindexMin2 ; //!< Per Segment Frame Delta QIndex Min[2]
7751 };
7752 uint32_t Value;
7753 } DW10;
7754 union
7755 {
7756 //!< DWORD 11
7757 struct
7758 {
7759 uint32_t PerSegmentFrameDeltaQindexMax3 ; //!< Per Segment Frame Delta QIndex Max[3]
7760 };
7761 uint32_t Value;
7762 } DW11;
7763 union
7764 {
7765 //!< DWORD 12
7766 struct
7767 {
7768 uint32_t PerSegmentFrameDeltaQindexMin3 ; //!< Per Segment Frame Delta QIndex Min[3]
7769 };
7770 uint32_t Value;
7771 } DW12;
7772 union
7773 {
7774 //!< DWORD 13
7775 struct
7776 {
7777 uint32_t FrameDeltaLoopFilterMax0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta Loop Filter Max[0]
7778 uint32_t FramEdeltaLoopFilterMax1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Fram eDelta Loop Filter Max[1]
7779 uint32_t FrameDeltaLoopFilterMax2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Delta Loop Filter Max[2]
7780 uint32_t FrameDeltaLoopFilterMax3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta Loop Filter Max[3]
7781 };
7782 uint32_t Value;
7783 } DW13;
7784 union
7785 {
7786 //!< DWORD 14
7787 struct
7788 {
7789 uint32_t FrameDeltaLoopFilterMin0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Delta Loop Filter Min[0]
7790 uint32_t FrameDeltaLoopFilterMin1 : __CODEGEN_BITFIELD( 8, 15) ; //!< Frame Delta Loop Filter Min[1]
7791 uint32_t FrameDeltaLoopFilterMin2 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Delta Loop Filter Min[2]
7792 uint32_t FrameDeltaLoopFilterMin3 : __CODEGEN_BITFIELD(24, 31) ; //!< Frame Delta Loop Filter Min[3]
7793 };
7794 uint32_t Value;
7795 } DW14;
7796 union
7797 {
7798 //!< DWORD 15
7799 struct
7800 {
7801 uint32_t PerSegmentFrameDeltaLoopfilterMax1 ; //!< Per Segment Frame Delta LoopFilter Max[1]
7802 };
7803 uint32_t Value;
7804 } DW15;
7805 union
7806 {
7807 //!< DWORD 16
7808 struct
7809 {
7810 uint32_t PerSegmentFrameDeltaLoopfilterMin1 ; //!< Per Segment Frame Delta LoopFilter Min[1]
7811 };
7812 uint32_t Value;
7813 } DW16;
7814 union
7815 {
7816 //!< DWORD 17
7817 struct
7818 {
7819 uint32_t PerSegmentFrameDeltaLoopfilterMax2 ; //!< Per Segment Frame Delta LoopFilter Max[2]
7820 };
7821 uint32_t Value;
7822 } DW17;
7823 union
7824 {
7825 //!< DWORD 18
7826 struct
7827 {
7828 uint32_t PerSegmentFrameDeltaLoopfilterMin2 ; //!< Per Segment Frame Delta LoopFilter Min[2]
7829 };
7830 uint32_t Value;
7831 } DW18;
7832 union
7833 {
7834 //!< DWORD 19
7835 struct
7836 {
7837 uint32_t PerSegmentFrameDeltaLoopfilterMax3 ; //!< Per Segment Frame Delta LoopFilter Max[3]
7838 };
7839 uint32_t Value;
7840 } DW19;
7841 union
7842 {
7843 //!< DWORD 20
7844 struct
7845 {
7846 uint32_t PerSegmentFrameDeltaLoopfilterMin3 ; //!< Per Segment Frame Delta LoopFilter Min[3]
7847 };
7848 uint32_t Value;
7849 } DW20;
7850 union
7851 {
7852 //!< DWORD 21
7853 struct
7854 {
7855 uint32_t FrameBitRateMaxDelta : __CODEGEN_BITFIELD( 0, 14) ; //!< Frame Bit Rate Max Delta
7856 uint32_t Reserved687 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
7857 uint32_t Framebitratemindelta : __CODEGEN_BITFIELD(16, 30) ; //!< FrameBitRateMinDelta
7858 uint32_t Reserved703 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
7859 };
7860 uint32_t Value;
7861 } DW21;
7862 union
7863 {
7864 //!< DWORD 22
7865 struct
7866 {
7867 uint32_t MinFrameWsize : __CODEGEN_BITFIELD( 0, 15) ; //!< Min Frame WSize
7868 uint32_t MinFrameWsizeUnit : __CODEGEN_BITFIELD(16, 17) ; //!< MIN_FRAME_WSIZE_UNIT
7869 uint32_t Reserved722 : __CODEGEN_BITFIELD(18, 19) ; //!< Reserved
7870 uint32_t BitstreamFormatVersion : __CODEGEN_BITFIELD(20, 22) ; //!< Bitstream Format Version
7871 uint32_t ShowFrame : __CODEGEN_BITFIELD(23, 23) ; //!< Show Frame
7872 uint32_t Reserved728 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
7873 };
7874 uint32_t Value;
7875 } DW22;
7876 union
7877 {
7878 //!< DWORD 23
7879 struct
7880 {
7881 uint32_t HorizontalSizeCode : __CODEGEN_BITFIELD( 0, 15) ; //!< Horizontal_Size_Code
7882 uint32_t VerticalSizeCode : __CODEGEN_BITFIELD(16, 31) ; //!< Vertical_Size_Code
7883 };
7884 uint32_t Value;
7885 } DW23;
7886 union
7887 {
7888 //!< DWORD 24
7889 struct
7890 {
7891 uint32_t FrameHeaderBitCount ; //!< Frame Header Bit Count
7892 };
7893 uint32_t Value;
7894 } DW24;
7895 union
7896 {
7897 //!< DWORD 25
7898 struct
7899 {
7900 uint32_t FrameHeaderBinBufferQindexUpdatePointer ; //!< Frame Header Bin Buffer Qindex Update Pointer
7901 };
7902 uint32_t Value;
7903 } DW25;
7904 union
7905 {
7906 //!< DWORD 26
7907 struct
7908 {
7909 uint32_t FrameHeaderBinBufferLoopfilterUpdatePointer ; //!< Frame Header Bin Buffer LoopFilter Update Pointer
7910 };
7911 uint32_t Value;
7912 } DW26;
7913 union
7914 {
7915 //!< DWORD 27
7916 struct
7917 {
7918 uint32_t FrameHeaderBinBufferTokenUpdatePointer ; //!< Frame Header Bin Buffer Token Update Pointer
7919 };
7920 uint32_t Value;
7921 } DW27;
7922 union
7923 {
7924 //!< DWORD 28
7925 struct
7926 {
7927 uint32_t FrameHeaderBinBufferMvupdatePointer ; //!< Frame Header Bin Buffer MVUpdate Pointer
7928 };
7929 uint32_t Value;
7930 } DW28;
7931 union
7932 {
7933 //!< DWORD 29
7934 struct
7935 {
7936 uint32_t Cv0ClampValue0 : __CODEGEN_BITFIELD( 0, 3) ; //!< CV0 - Clamp Value 0
7937 uint32_t Cv1 : __CODEGEN_BITFIELD( 4, 7) ; //!< CV1
7938 uint32_t Cv2 : __CODEGEN_BITFIELD( 8, 11) ; //!< CV2
7939 uint32_t Cv3 : __CODEGEN_BITFIELD(12, 15) ; //!< CV3
7940 uint32_t Cv4 : __CODEGEN_BITFIELD(16, 19) ; //!< CV4
7941 uint32_t Cv5 : __CODEGEN_BITFIELD(20, 23) ; //!< CV5
7942 uint32_t Cv6 : __CODEGEN_BITFIELD(24, 27) ; //!< CV6
7943 uint32_t ClampvaluesCv7 : __CODEGEN_BITFIELD(28, 31) ; //!< ClampValues - CV7
7944 };
7945 uint32_t Value;
7946 } DW29;
7947
7948 //! \name Local enumerations
7949
7950 enum SUB_OPCODE_B
7951 {
7952 SUB_OPCODE_B_MFXVP8ENCODERCFG = 1, //!< No additional details
7953 };
7954
7955 enum SUB_OPCODE_A
7956 {
7957 SUB_OPCODE_A_VP8COMMON = 2, //!< No additional details
7958 };
7959
7960 enum MEDIA_COMMAND_OPCODE
7961 {
7962 MEDIA_COMMAND_OPCODE_VP8 = 4, //!< No additional details
7963 };
7964
7965 enum PIPELINE
7966 {
7967 PIPELINE_VIDEOCODEC = 2, //!< No additional details
7968 };
7969
7970 enum COMMAND_TYPE
7971 {
7972 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
7973 };
7974
7975 enum RATE_CONTROL_INITIAL_PASS
7976 {
7977 RATE_CONTROL_INITIAL_PASS_SUBSEQUENCEPASSES = 0, //!< No additional details
7978 RATE_CONTROL_INITIAL_PASS_INITIALPASS = 1, //!< No additional details
7979 };
7980
7981 //! \brief MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7982 //! \details
7983 //! Enable Max. Frame Rate Control.
7984 //! This is a mask bit controlling if the condition of frame level bit
7985 //! count is greater than or equal to FrameBitRateMax.
7986 enum MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7987 {
7988 MAX_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK_UNNAMED0 = 0, //!< Do not update bit[0] of MFX_VP8_IMAGE_STATUS control register.
7989 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.
7990 };
7991
7992 //! \brief MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7993 //! \details
7994 //! Enable Min. Frame Rate Control.
7995 //! This is a mask bit controlling if the condition of frame level bit
7996 //! count is less than or equal to FrameBitRateMin.
7997 enum MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK
7998 {
7999 MIN_FRAME_BIT_COUNT_RATE_CONTROL_ENABLE_MASK_UNNAMED0 = 0, //!< Do not update bit[0] of MFX_VP8_IMAGE_STATUS Control Register.
8000 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.
8001 };
8002
8003 //! \brief FRAME_BIT_RATE_MAX_UNIT
8004 //! \details
8005 //! <i>This field is Frame Bitrate Maximum Mode</i>
8006 enum FRAME_BIT_RATE_MAX_UNIT
8007 {
8008 FRAME_BIT_RATE_MAX_UNIT_32_B = 0, //!< No additional details
8009 FRAME_BIT_RATE_MAX_UNIT_4_KB = 1, //!< No additional details
8010 };
8011
8012 //! \brief FRAME_BITRATE_MAX_UNIT_MODE
8013 //! \details
8014 //! This field is the Frame Bitrate Maximum Limit Units.
8015 enum FRAME_BITRATE_MAX_UNIT_MODE
8016 {
8017 FRAME_BITRATE_MAX_UNIT_MODE_COMPATIBILITYMODE = 0, //!< Frame BitRate Max Unit is in old mode (128b/16Kb)
8018 FRAME_BITRATE_MAX_UNIT_MODE_NEWMODE = 1, //!< Frame BitRate Max Unit is in new mode (32byte/4Kb)
8019 };
8020
8021 //! \brief FRAME_BIT_RATE_MIN_UNIT
8022 //! \details
8023 //! <i>This field is Frame Bitrate Minimum Mode.</i>
8024 enum FRAME_BIT_RATE_MIN_UNIT
8025 {
8026 FRAME_BIT_RATE_MIN_UNIT_32_B = 0, //!< No additional details
8027 FRAME_BIT_RATE_MIN_UNIT_4_KB = 1, //!< No additional details
8028 };
8029
8030 //! \brief FRAME_BITRATE_MIN_UNIT_MODE
8031 //! \details
8032 //! This field is the Frame Bitrate Minimum Limit Units.
8033 enum FRAME_BITRATE_MIN_UNIT_MODE
8034 {
8035 FRAME_BITRATE_MIN_UNIT_MODE_COMPATIBILITYMODE = 0, //!< Frame BitRate Min Unit is in old mode (128b/16Kb)
8036 FRAME_BITRATE_MIN_UNIT_MODE_NEWMODE = 1, //!< Frame BitRate Min Unit is in new mode (32byte/4Kb)
8037 };
8038
8039 enum MIN_FRAME_WSIZE_UNIT
8040 {
8041 MIN_FRAME_WSIZE_UNIT_COMPATIBILITYMODE = 0, //!< MinFrameWSizeUnit is in old mode (128b/16Kb)
8042 MIN_FRAME_WSIZE_UNIT_NEWMODE = 1, //!< MinFrameWSizeUnit is in new mode (32byte/4Kb)
8043 };
8044
8045 //! \name Initializations
8046
8047 //! \brief Explicit member initialization function
8048 MFX_VP8_Encoder_CFG_CMD();
8049
8050 static const size_t dwSize = 30;
8051 static const size_t byteSize = 120;
8052 };
8053
8054 //!
8055 //! \brief MFX_VP8_BSP_BUF_BASE_ADDR_STATE
8056 //! \details
8057 //!
8058 //!
8059 struct MFX_VP8_BSP_BUF_BASE_ADDR_STATE_CMD
8060 {
8061 union
8062 {
8063 //!< DWORD 0
8064 struct
8065 {
8066 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
8067 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
8068 uint32_t SubOpcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUB_OPCODE_B
8069 uint32_t SubOpcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODE_A
8070 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
8071 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
8072 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
8073 };
8074 uint32_t Value;
8075 } DW0;
8076 union
8077 {
8078 //!< DWORD 1
8079 struct
8080 {
8081 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
8082 uint32_t FrameHeaderBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Frame Header Base Addr
8083 };
8084 uint32_t Value;
8085 } DW1;
8086 union
8087 {
8088 //!< DWORD 2
8089 struct
8090 {
8091 uint32_t FrameHeaderBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Frame Header Base Addr - Upper Range
8092 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8093 };
8094 uint32_t Value;
8095 } DW2;
8096 union
8097 {
8098 //!< DWORD 3
8099 struct
8100 {
8101 uint32_t FrameHeaderBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< FRAME_HEADER_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8102 uint32_t Reserved98 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8103 uint32_t FrameHeaderBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< FRAME_HEADER_BASE_ADDR__TARGET_CACHE_TC
8104 uint32_t ForFrameheaderbaseaddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< FOR_FRAMEHEADERBASEADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8105 uint32_t FrameHeaderBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8106 uint32_t Reserved105 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8107 };
8108 uint32_t Value;
8109 } DW3;
8110 union
8111 {
8112 //!< DWORD 4
8113 struct
8114 {
8115 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
8116 uint32_t IntermediateBufferBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Intermediate Buffer Base Addr
8117 };
8118 uint32_t Value;
8119 } DW4;
8120 union
8121 {
8122 //!< DWORD 5
8123 struct
8124 {
8125 uint32_t IntermediateBufferBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Intermediate Buffer Base Addr - Upper Range
8126 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8127 };
8128 uint32_t Value;
8129 } DW5;
8130 union
8131 {
8132 //!< DWORD 6
8133 struct
8134 {
8135 uint32_t IntermediateBufferBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE
8136 uint32_t Reserved194 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8137 uint32_t IntermediateBufferBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC
8138 uint32_t IntermediateBufferBaseAddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8139 uint32_t IntermediateBufferBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< INTERMEDIATE_BUFFER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8140 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8141 };
8142 uint32_t Value;
8143 } DW6;
8144 union
8145 {
8146 //!< DWORD 7
8147 struct
8148 {
8149 uint32_t IntermediateBufferPartition1Offset ; //!< Intermediate Buffer Partition-1 Offset
8150 };
8151 uint32_t Value;
8152 } DW7;
8153 union
8154 {
8155 //!< DWORD 8
8156 struct
8157 {
8158 uint32_t IntermediateBufferPartition2Offset ; //!< Intermediate Buffer Partition-2 Offset
8159 };
8160 uint32_t Value;
8161 } DW8;
8162 union
8163 {
8164 //!< DWORD 9
8165 struct
8166 {
8167 uint32_t IntermediateBufferPartition3Offset ; //!< Intermediate Buffer Partition-3 Offset
8168 };
8169 uint32_t Value;
8170 } DW9;
8171 union
8172 {
8173 //!< DWORD 10
8174 struct
8175 {
8176 uint32_t IntermediateBufferPartition4Offset ; //!< Intermediate Buffer Partition-4 Offset
8177 };
8178 uint32_t Value;
8179 } DW10;
8180 union
8181 {
8182 //!< DWORD 11
8183 struct
8184 {
8185 uint32_t IntermediateBufferPartition5Offset ; //!< Intermediate Buffer Partition-5 Offset
8186 };
8187 uint32_t Value;
8188 } DW11;
8189 union
8190 {
8191 //!< DWORD 12
8192 struct
8193 {
8194 uint32_t IntermediateBufferPartition6Offset ; //!< Intermediate Buffer Partition-6 Offset
8195 };
8196 uint32_t Value;
8197 } DW12;
8198 union
8199 {
8200 //!< DWORD 13
8201 struct
8202 {
8203 uint32_t IntermediateBufferPartition7Offset ; //!< Intermediate Buffer Partition-7 Offset
8204 };
8205 uint32_t Value;
8206 } DW13;
8207 union
8208 {
8209 //!< DWORD 14
8210 struct
8211 {
8212 uint32_t IntermediateBufferPartition8Offset ; //!< Intermediate Buffer Partition-8 Offset
8213 };
8214 uint32_t Value;
8215 } DW14;
8216 union
8217 {
8218 //!< DWORD 15
8219 struct
8220 {
8221 uint32_t IntermediateBufferMaxSize ; //!< Intermediate Buffer Max Size
8222 };
8223 uint32_t Value;
8224 } DW15;
8225 union
8226 {
8227 //!< DWORD 16
8228 struct
8229 {
8230 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
8231 uint32_t FinalFrameBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Final Frame Base Addr
8232 };
8233 uint32_t Value;
8234 } DW16;
8235 union
8236 {
8237 //!< DWORD 17
8238 struct
8239 {
8240 uint32_t FinalFrameBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Final Frame Base Addr - Upper Range
8241 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8242 };
8243 uint32_t Value;
8244 } DW17;
8245 union
8246 {
8247 //!< DWORD 18
8248 struct
8249 {
8250 uint32_t FinalFrameBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< FINAL_FRAME_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8251 uint32_t Reserved578 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8252 uint32_t FinalFrameBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< FINAL_FRAME_BASE_ADDR__TARGET_CACHE_TC
8253 uint32_t FinalFrameBaseAddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< FINAL_FRAME_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8254 uint32_t FinalFrameBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< FINAL_FRAME_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8255 uint32_t Reserved585 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8256 };
8257 uint32_t Value;
8258 } DW18;
8259 union
8260 {
8261 //!< DWORD 19
8262 struct
8263 {
8264 uint32_t Finalframebyteoffset : __CODEGEN_BITFIELD( 0, 5) ; //!< FinalFrameByteOffset
8265 uint32_t Reserved614 : __CODEGEN_BITFIELD( 6, 31) ; //!< Reserved
8266 };
8267 uint32_t Value;
8268 } DW19;
8269 union
8270 {
8271 //!< DWORD 20
8272 struct
8273 {
8274 uint32_t StreamoutBaseAddrCacheabilityControl : __CODEGEN_BITFIELD( 0, 1) ; //!< STREAMOUT_BASE_ADDR__CACHEABILITY_CONTROL
8275 uint32_t StreamoutBaseAddrGraphicsDataTypeGfdt : __CODEGEN_BITFIELD( 2, 2) ; //!< Streamout Base Addr - Graphics Data Type (GFDT)
8276 uint32_t Reserved643 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8277 uint32_t StreamoutBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 4, 5) ; //!< STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL_
8278 uint32_t StreamoutBaseAddr : __CODEGEN_BITFIELD( 6, 31) ; //!< Streamout Base Addr
8279 };
8280 uint32_t Value;
8281 } DW20;
8282 union
8283 {
8284 //!< DWORD 21
8285 struct
8286 {
8287 uint32_t StreamoutBaseAddrUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Streamout Base Addr - Upper Range
8288 uint32_t Reserved688 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8289 };
8290 uint32_t Value;
8291 } DW21;
8292 union
8293 {
8294 //!< DWORD 22
8295 struct
8296 {
8297 uint32_t StreamoutBaseAddrAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< STREAMOUT_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8298 uint32_t Reserved706 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8299 uint32_t StreamoutBaseAddrTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< STREAMOUT_BASE_ADDR__TARGET_CACHE_TC
8300 uint32_t StreamoutBaseAddrLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< STREAMOUT_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8301 uint32_t StreamoutBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8302 uint32_t Reserved713 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8303 };
8304 uint32_t Value;
8305 } DW22;
8306 union
8307 {
8308 //!< DWORD 23
8309 struct
8310 {
8311 uint32_t CoeffProbsStreaminSurfaceCacheabilityControl : __CODEGEN_BITFIELD( 0, 1) ; //!< COEFF_PROBS_STREAMIN_SURFACE__CACHEABILITY_CONTROL
8312 uint32_t CoeffProbsStreaminSurfaceGraphicsDataTypeGfdt : __CODEGEN_BITFIELD( 2, 2) ; //!< Coeff Probs StreamIn Surface - Graphics Data Type (GFDT)
8313 uint32_t Reserved739 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8314 uint32_t CoeffProbsStreaminSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 4, 5) ; //!< COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL_
8315 uint32_t CoeffProbsStreaminSurface : __CODEGEN_BITFIELD( 6, 31) ; //!< Coeff Probs StreamIn Surface
8316 };
8317 uint32_t Value;
8318 } DW23;
8319 union
8320 {
8321 //!< DWORD 24
8322 struct
8323 {
8324 uint32_t CoeffProbsStreaminSurfaceUpperRange : __CODEGEN_BITFIELD( 0, 15) ; //!< Coeff Probs StreamIn Surface - Upper Range
8325 uint32_t Reserved784 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8326 };
8327 uint32_t Value;
8328 } DW24;
8329 union
8330 {
8331 //!< DWORD 25
8332 struct
8333 {
8334 uint32_t CoeffProbsStreaminSurfaceAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< COEFF_PROBS_STREAMIN_SURFACE__AGE_FOR_QUADLRU_AGE
8335 uint32_t Reserved802 : __CODEGEN_BITFIELD( 2, 2) ; //!< Reserved
8336 uint32_t CoeffProbsStreaminSurfaceTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< COEFF_PROBS_STREAMIN_SURFACE__TARGET_CACHE_TC
8337 uint32_t CoeffProbsStreaminSurfaceLlcEllcCacheabilityControlLellccc : __CODEGEN_BITFIELD( 5, 6) ; //!< COEFF_PROBS_STREAMIN_SURFACE__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8338 uint32_t CoeffProbsStreaminSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL
8339 uint32_t Reserved809 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8340 };
8341 uint32_t Value;
8342 } DW25;
8343 union
8344 {
8345 //!< DWORD 26
8346 struct
8347 {
8348 uint32_t TokenStatisticsSurfaceCacheabilityControl : __CODEGEN_BITFIELD( 0, 1) ; //!< TOKEN_STATISTICS_SURFACE__CACHEABILITY_CONTROL
8349 uint32_t TokenStatisticsSurfaceGraphicsDataTypeGfdt : __CODEGEN_BITFIELD( 2, 2) ; //!< Token Statistics Surface - Graphics Data Type (GFDT)
8350 uint32_t Reserved835 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8351 uint32_t FrameHeaderBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD( 4, 5) ; //!< FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8352 uint32_t TokenStatisticsSurface : __CODEGEN_BITFIELD( 6, 31) ; //!< Token Statistics Surface
8353 };
8354 uint32_t Value;
8355 } DW26;
8356 union
8357 {
8358 //!< DWORD 27
8359 struct
8360 {
8361 uint32_t TokenStatisticsSurface : __CODEGEN_BITFIELD( 0, 15) ; //!< Token Statistics Surface
8362 uint32_t Reserved880 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
8363 };
8364 uint32_t Value;
8365 } DW27;
8366 union
8367 {
8368 //!< DWORD 28
8369 struct
8370 {
8371 uint32_t TokenStatisticsSurfaceAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< TOKEN_STATISTICS_SURFACE__AGE_FOR_QUADLRU_AGE
8372 uint32_t TokenStatisticsSurface : __CODEGEN_BITFIELD( 2, 2) ; //!< Token Statistics Surface
8373 uint32_t TokenStatisticsSurfaceTargetCacheTc : __CODEGEN_BITFIELD( 3, 4) ; //!< TOKEN_STATISTICS_SURFACE__TARGET_CACHE_TC
8374 uint32_t MemoryTypeLlcEllcCacheabilityControlLellcccForCoeffprobsStreaminSurface : __CODEGEN_BITFIELD( 5, 6) ; //!< MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE
8375 uint32_t TokenStatisticsSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< TOKEN_STATISTICS_SURFACE__ARBITRATION_PRIORITY_CONTROL
8376 uint32_t Reserved905 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8377 };
8378 uint32_t Value;
8379 } DW28;
8380 union
8381 {
8382 //!< DWORD 29..30
8383 struct
8384 {
8385 uint64_t MpcRowstoreSurfaceCacheabilityControl : __CODEGEN_BITFIELD(0, 1); //!< MPC_ROWSTORE_SURFACE__CACHEABILITY_CONTROL
8386 uint64_t MpcRowstoreSurfaceGraphicsDataTypeGfdt : __CODEGEN_BITFIELD(2, 2); //!< MPC RowStore Surface Graphics Data Type (GFDT)
8387 uint64_t Reserved931 : __CODEGEN_BITFIELD(3, 3); //!< Reserved
8388 uint64_t MpcRowstoreBaseAddrArbitrationPriorityControl : __CODEGEN_BITFIELD(4, 5); //!< MPC_ROWSTORE_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8389 uint64_t MpcRowstoreSurfaceAddressLow : __CODEGEN_BITFIELD(6, 63); //!< MPC RowStore Surface Address Low
8390 };
8391 uint32_t Value[2];
8392 } DW29_30;
8393 union
8394 {
8395 //!< DWORD 31
8396 struct
8397 {
8398 uint32_t MpcRowstoreSurfaceAgeForQuadlruAge : __CODEGEN_BITFIELD( 0, 1) ; //!< MPC_ROWSTORE_SURFACE__AGE_FOR_QUADLRU_AGE
8399 uint32_t MpcRowstoreSurface : __CODEGEN_BITFIELD( 2, 2) ; //!< MPC RowStore Surface
8400 uint32_t MpcRowstoreTargetCache : __CODEGEN_BITFIELD( 3, 4) ; //!< MPC_ROWSTORE__TARGET_CACHE
8401 uint32_t MpcRowstoreMemoryTypeLlcEllcCacheabilityControl : __CODEGEN_BITFIELD( 5, 6) ; //!< MPC_ROWSTORE__MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL
8402 uint32_t MpcRowstoreArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MPC_ROWSTORE__ARBITRATION_PRIORITY_CONTROL
8403 uint32_t Reserved1001 : __CODEGEN_BITFIELD( 9, 31) ; //!< Reserved
8404 };
8405 uint32_t Value;
8406 } DW31;
8407
8408 //! \name Local enumerations
8409
8410 enum SUB_OPCODE_B
8411 {
8412 SUB_OPCODE_B_MFXVP8BSPBUFBASEADDRSTATE = 3, //!< No additional details
8413 };
8414
8415 enum SUB_OPCODE_A
8416 {
8417 SUB_OPCODE_A_VP8COMMON = 2, //!< No additional details
8418 };
8419
8420 enum MEDIA_COMMAND_OPCODE
8421 {
8422 MEDIA_COMMAND_OPCODE_VP8 = 4, //!< No additional details
8423 };
8424
8425 enum PIPELINE
8426 {
8427 PIPELINE_VIDEOCODEC = 2, //!< No additional details
8428 };
8429
8430 enum COMMAND_TYPE
8431 {
8432 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
8433 };
8434
8435 //! \brief FRAME_HEADER_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8436 //! \details
8437 //! This field allows the selection of AGE parameter for a given surface in
8438 //! LLC or eLLC. .
8439 //! If a particular allocation is done at youngest age ("3") it tends
8440 //! to stay longer in the cache as compared to older age allocations ("2",
8441 //! "1", or "0").
8442 //! This option is given to driver to be able to decide which surfaces
8443 //! are more likely to generate HITs, hence need to be replaced least often
8444 //! in caches.
8445 enum FRAME_HEADER_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8446 {
8447 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8448 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8449 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8450 FRAME_HEADER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8451 };
8452
8453 //! \brief FRAME_HEADER_BASE_ADDR__TARGET_CACHE_TC
8454 //! \details
8455 //! This field allows the choice of LLC vs eLLC for caching
8456 enum FRAME_HEADER_BASE_ADDR__TARGET_CACHE_TC
8457 {
8458 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8459 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8460 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8461 FRAME_HEADER_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8462 };
8463
8464 //! \brief FOR_FRAMEHEADERBASEADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8465 //! \details
8466 //! This is the field used in GT interface block to determine what type of
8467 //! access need to be generated to uncore.
8468 //! For the cases where the LeLLCCC is set, cacheable transaction are
8469 //! generated to enable LLC usage for particular stream.
8470 enum FOR_FRAMEHEADERBASEADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8471 {
8472 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8473 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8474 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8475 FOR_FRAMEHEADERBASEADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8476 };
8477
8478 //! \brief FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8479 //! \details
8480 //! This field controls the priority of arbitration used in the GAC/GAM
8481 //! pipeline for this surface.
8482 enum FRAME_HEADER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8483 {
8484 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8485 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8486 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8487 FRAME_HEADER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8488 };
8489
8490 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE
8491 //! \details
8492 //! This field allows the selection of AGE parameter for a given surface in
8493 //! LLC or eLLC. .
8494 //! If a particular allocation is done at youngest age ("3") it tends
8495 //! to stay longer in the cache as compared to older age allocations ("2",
8496 //! "1", or "0").
8497 //! This option is given to driver to be able to decide which surfaces
8498 //! are more likely to generate HITs, hence need to be replaced least often
8499 //! in caches.
8500 enum INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE
8501 {
8502 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8503 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8504 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8505 INTERMEDIATE_BUFFER_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8506 };
8507
8508 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC
8509 //! \details
8510 //! This field allows the choice of LLC vs. eLLC for caching
8511 enum INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC
8512 {
8513 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8514 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8515 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8516 INTERMEDIATE_BUFFER_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8517 };
8518
8519 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8520 //! \details
8521 //! This is the field used in GT interface block to determine what type of
8522 //! access need to be generated to uncore.
8523 //! For the cases where the LeLLCCC is set, cacheable transaction are
8524 //! generated to enable LLC usage for particular stream.
8525 enum INTERMEDIATE_BUFFER_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8526 {
8527 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8528 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8529 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8530 INTERMEDIATE_BUFFER_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8531 };
8532
8533 //! \brief INTERMEDIATE_BUFFER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8534 //! \details
8535 //! This field controls the priority of arbitration used in the GAC/GAM
8536 //! pipeline for this surface.
8537 enum INTERMEDIATE_BUFFER_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8538 {
8539 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8540 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8541 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8542 INTERMEDIATE_BUFFER_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8543 };
8544
8545 //! \brief FINAL_FRAME_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8546 //! \details
8547 //! This field allows the selection of AGE parameter for a given surface in
8548 //! LLC or eLLC. .
8549 //! If a particular allocation is done at youngest age ("3") it tends
8550 //! to stay longer in the cache as compared to older age allocations ("2",
8551 //! "1", or "0").
8552 //! This option is given to driver to be able to decide which surfaces
8553 //! are more likely to generate HITs, hence need to be replaced least often
8554 //! in caches.
8555 enum FINAL_FRAME_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8556 {
8557 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8558 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8559 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8560 FINAL_FRAME_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8561 };
8562
8563 //! \brief FINAL_FRAME_BASE_ADDR__TARGET_CACHE_TC
8564 //! \details
8565 //! This field allows the choice of LLC vs eLLC for caching
8566 enum FINAL_FRAME_BASE_ADDR__TARGET_CACHE_TC
8567 {
8568 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8569 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8570 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8571 FINAL_FRAME_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8572 };
8573
8574 //! \brief FINAL_FRAME_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8575 //! \details
8576 //! This is the field used in GT interface block to determine what type of
8577 //! access need to be generated to uncore.
8578 //! For the cases where the LeLLCCC is set, cacheable transaction are
8579 //! generated to enable LLC usage for particular stream.
8580 enum FINAL_FRAME_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8581 {
8582 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8583 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8584 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8585 FINAL_FRAME_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8586 };
8587
8588 enum FINAL_FRAME_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8589 {
8590 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8591 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8592 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8593 FINAL_FRAME_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8594 };
8595
8596 //! \brief STREAMOUT_BASE_ADDR__CACHEABILITY_CONTROL
8597 //! \details
8598 //! This field controls cacheability in the mid-level cache (MLC) and
8599 //! last-level cache (LLC)
8600 enum STREAMOUT_BASE_ADDR__CACHEABILITY_CONTROL
8601 {
8602 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8603 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8604 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8605 STREAMOUT_BASE_ADDR_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8606 };
8607
8608 //! \brief STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL_
8609 //! \details
8610 //! This field controls the priority of arbitration used in the GAC/GAM
8611 //! pipeline for this surface.
8612 enum STREAMOUT_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL_
8613 {
8614 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8615 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8616 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8617 STREAMOUT_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8618 };
8619
8620 //! \brief STREAMOUT_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8621 //! \details
8622 //! This field allows the selection of AGE parameter for a given surface in
8623 //! LLC or eLLC. .
8624 //! If a particular allocation is done at youngest age ("3") it tends
8625 //! to stay longer in the cache as compared to older age allocations ("2",
8626 //! "1", or "0").
8627 //! This option is given to driver to be able to decide which surfaces
8628 //! are more likely to generate HITs, hence need to be replaced least often
8629 //! in caches.
8630 enum STREAMOUT_BASE_ADDR__AGE_FOR_QUADLRU_AGE
8631 {
8632 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8633 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8634 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8635 STREAMOUT_BASE_ADDR_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8636 };
8637
8638 //! \brief STREAMOUT_BASE_ADDR__TARGET_CACHE_TC
8639 //! \details
8640 //! This field allows the choice of LLC vs eLLC for caching
8641 enum STREAMOUT_BASE_ADDR__TARGET_CACHE_TC
8642 {
8643 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8644 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8645 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8646 STREAMOUT_BASE_ADDR_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8647 };
8648
8649 //! \brief STREAMOUT_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8650 //! \details
8651 //! This is the field used in GT interface block to determine what type of
8652 //! access need to be generated to uncore.
8653 //! For the cases where the LeLLCCC is set, cacheable transaction are
8654 //! generated to enable LLC usage for particular stream.
8655 enum STREAMOUT_BASE_ADDR__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8656 {
8657 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8658 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8659 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8660 STREAMOUT_BASE_ADDR_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8661 };
8662
8663 //! \brief COEFF_PROBS_STREAMIN_SURFACE__CACHEABILITY_CONTROL
8664 //! \details
8665 //! This field controls cacheability in the mid-level cache (MLC) and
8666 //! last-level cache (LLC)
8667 enum COEFF_PROBS_STREAMIN_SURFACE__CACHEABILITY_CONTROL
8668 {
8669 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8670 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8671 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8672 COEFF_PROBS_STREAMIN_SURFACE_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8673 };
8674
8675 //! \brief COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL_
8676 //! \details
8677 //! This field controls the priority of arbitration used in the GAC/GAM
8678 //! pipeline for this surface.
8679 enum COEFF_PROBS_STREAMIN_SURFACE__ARBITRATION_PRIORITY_CONTROL_
8680 {
8681 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8682 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8683 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8684 COEFF_PROBS_STREAMIN_SURFACE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8685 };
8686
8687 //! \brief COEFF_PROBS_STREAMIN_SURFACE__AGE_FOR_QUADLRU_AGE
8688 //! \details
8689 //! This field allows the selection of AGE parameter for a given surface in
8690 //! LLC or eLLC. .
8691 //! If a particular allocation is done at youngest age ("3") it tends
8692 //! to stay longer in the cache as compared to older age allocations ("2",
8693 //! "1", or "0").
8694 //! This option is given to driver to be able to decide which surfaces
8695 //! are more likely to generate HITs, hence need to be replaced least often
8696 //! in caches.
8697 enum COEFF_PROBS_STREAMIN_SURFACE__AGE_FOR_QUADLRU_AGE
8698 {
8699 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 0, //!< No additional details
8700 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 1, //!< No additional details
8701 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 2, //!< No additional details
8702 COEFF_PROBS_STREAMIN_SURFACE_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 3, //!< No additional details
8703 };
8704
8705 //! \brief COEFF_PROBS_STREAMIN_SURFACE__TARGET_CACHE_TC
8706 //! \details
8707 //! This field allows the choice of LLC vs eLLC for caching
8708 enum COEFF_PROBS_STREAMIN_SURFACE__TARGET_CACHE_TC
8709 {
8710 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGT = 0, //!< No additional details
8711 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8712 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8713 COEFF_PROBS_STREAMIN_SURFACE_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8714 };
8715
8716 //! \brief COEFF_PROBS_STREAMIN_SURFACE__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8717 //! \details
8718 //! This is the field used in GT interface block to determine what type of
8719 //! access need to be generated to uncore.
8720 //! For the cases where the LeLLCCC is set, cacheable transaction are
8721 //! generated to enable LLC usage for particular stream.
8722 enum COEFF_PROBS_STREAMIN_SURFACE__LLCELLC_CACHEABILITY_CONTROL_LELLCCC
8723 {
8724 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_CACHEABLE = 0, //!< Use Cacheability Controls from page table / UC with Fence (if coherent cycle)
8725 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_UC = 1, //!< Uncacheable - non-cacheable
8726 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WT = 2, //!< Writethrough
8727 COEFF_PROBS_STREAMIN_SURFACE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_WB = 3, //!< Writeback
8728 };
8729
8730 //! \brief TOKEN_STATISTICS_SURFACE__CACHEABILITY_CONTROL
8731 //! \details
8732 //! This field controls cacheability in the mid-level cache (MLC) and
8733 //! last-level cache (LLC).
8734 enum TOKEN_STATISTICS_SURFACE__CACHEABILITY_CONTROL
8735 {
8736 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8737 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8738 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8739 TOKEN_STATISTICS_SURFACE_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8740 };
8741
8742 //! \brief TOKEN_STATISTICS_SURFACE__AGE_FOR_QUADLRU_AGE
8743 //! \details
8744 //! This field allows the selection of AGE parameter for a given surface in
8745 //! LLC or eLLC. . If a particular allocation is done at youngest age ("3")
8746 //! it tends to stay longer in the cache as compared to older age
8747 //! allocations ("2", "1", or "0").
8748 //! This option is given to driver to be able to decide which surfaces
8749 //! are more likely to generate HITs, hence need to be replaced least often
8750 //! in caches.
8751 enum TOKEN_STATISTICS_SURFACE__AGE_FOR_QUADLRU_AGE
8752 {
8753 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 0, //!< No additional details
8754 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 1, //!< No additional details
8755 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 2, //!< No additional details
8756 TOKEN_STATISTICS_SURFACE_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 3, //!< No additional details
8757 };
8758
8759 //! \brief TOKEN_STATISTICS_SURFACE__TARGET_CACHE_TC
8760 //! \details
8761 //! This field allows the choice of LLC vs eLLC for caching.
8762 enum TOKEN_STATISTICS_SURFACE__TARGET_CACHE_TC
8763 {
8764 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_ELLCONLY_NOTSNOOPEDINGTBDW = 0, //!< No additional details
8765 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_LLCONLY = 1, //!< No additional details
8766 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_LLCELLCALLOWED = 2, //!< No additional details
8767 TOKEN_STATISTICS_SURFACE_TARGET_CACHE_TC_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8768 };
8769
8770 //! \brief MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE
8771 //! \details
8772 //! This is the field used in GT interface block to determine what type of
8773 //! access need to be generated to uncore.
8774 //! For the cases where the LeLLCCC is set, cacheable transaction are
8775 //! generated to enable LLC usage for particular stream.
8776 enum MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE
8777 {
8778 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_USECACHEABILITYCONTROLSFROMPAGETABLEUCWITHFENCEIFCOHERENTCYCLE = 0, //!< No additional details
8779 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_UC = 1, //!< Uncacheable - non-cacheable
8780 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_WT = 2, //!< Writethrough
8781 MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_LELLCCC_FOR_COEFFPROBS_STREAMIN_SURFACE_WB = 3, //!< Writeback
8782 };
8783
8784 //! \brief TOKEN_STATISTICS_SURFACE__ARBITRATION_PRIORITY_CONTROL
8785 //! \details
8786 //! This field controls the priority of arbitration used in the GAC/GAM
8787 //! pipeline for this surface.
8788 enum TOKEN_STATISTICS_SURFACE__ARBITRATION_PRIORITY_CONTROL
8789 {
8790 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8791 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8792 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8793 TOKEN_STATISTICS_SURFACE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8794 };
8795
8796 //! \brief MPC_ROWSTORE_SURFACE__CACHEABILITY_CONTROL
8797 //! \details
8798 //! <b>This field controls cacheability in the mid-level cache (MLC) and
8799 //! last-level cache (LLC).</b>
8800 enum MPC_ROWSTORE_SURFACE__CACHEABILITY_CONTROL
8801 {
8802 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_GTTENTRY = 0, //!< Use cacheability control bits from GTT entry
8803 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_NOTLLCORMLC = 1, //!< Data is not cached in LLC or MLC
8804 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_LLCBUTNOTMLC = 2, //!< Data is cached in LLC but not MLC
8805 MPC_ROWSTORE_SURFACE_CACHEABILITY_CONTROL_BOTHLLCANDMLC = 3, //!< Data is cached in both LLC and MLC
8806 };
8807
8808 //! \brief MPC_ROWSTORE_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8809 //! \details
8810 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8811 //! pipeline for this surface.</b>
8812 enum MPC_ROWSTORE_BASE_ADDR__ARBITRATION_PRIORITY_CONTROL
8813 {
8814 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8815 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8816 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8817 MPC_ROWSTORE_BASE_ADDR_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8818 };
8819
8820 //! \brief MPC_ROWSTORE_SURFACE__AGE_FOR_QUADLRU_AGE
8821 //! \details
8822 //! <b>This field allows the selection of AGE parameter for a given surface
8823 //! in LLC or eLLC. . If a particular allocation is done at youngest age
8824 //! ("3") it tends to stay longer in the cache as compared to older age
8825 //! allocations ("2", "1", or "0").
8826 //! This option is given to driver to be able to decide which surfaces
8827 //! are more likely to generate HITs, hence need to be replaced least often
8828 //! in caches.</b>
8829 enum MPC_ROWSTORE_SURFACE__AGE_FOR_QUADLRU_AGE
8830 {
8831 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_POORCHANCEOFGENERATINGHITS = 0, //!< No additional details
8832 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_DECENTCHANCEOFGENERATINGHITS = 1, //!< No additional details
8833 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_NEXTGOODCHANCEOFGENERATINGHITS = 2, //!< No additional details
8834 MPC_ROWSTORE_SURFACE_AGE_FOR_QUADLRU_AGE_GOODCHANCEOFGENERATINGHITS = 3, //!< No additional details
8835 };
8836
8837 //! \brief MPC_ROWSTORE__TARGET_CACHE
8838 //! \details
8839 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8840 //! pipeline for this surface.</b>
8841 enum MPC_ROWSTORE__TARGET_CACHE
8842 {
8843 MPC_ROWSTORE_TARGET_CACHE_ELLCONLY = 0, //!< No additional details
8844 MPC_ROWSTORE_TARGET_CACHE_LLCONLY = 1, //!< No additional details
8845 MPC_ROWSTORE_TARGET_CACHE_LLCELLCALLOWED = 2, //!< No additional details
8846 MPC_ROWSTORE_TARGET_CACHE_L3_LLC_ELLCALLOWED = 3, //!< No additional details
8847 };
8848
8849 //! \brief MPC_ROWSTORE__MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL
8850 //! \details
8851 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8852 //! pipeline for this surface.</b>
8853 enum MPC_ROWSTORE__MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL
8854 {
8855 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_USECACHEABILITYCONTROLSFROMPAGETABLEUCWITHFENCEIFCOHERENTCYCLE = 0, //!< No additional details
8856 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_UC = 1, //!< Uncacheable - non-cacheable
8857 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_WT = 2, //!< Writethrough
8858 MPC_ROWSTORE_MEMORY_TYPE_LLCELLC_CACHEABILITY_CONTROL_WB = 3, //!< Writeback
8859 };
8860
8861 //! \brief MPC_ROWSTORE__ARBITRATION_PRIORITY_CONTROL
8862 //! \details
8863 //! <b>This field controls the priority of arbitration used in the GAC/GAM
8864 //! pipeline for this surface.</b>
8865 enum MPC_ROWSTORE__ARBITRATION_PRIORITY_CONTROL
8866 {
8867 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
8868 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
8869 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
8870 MPC_ROWSTORE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
8871 };
8872
8873 //! \name Initializations
8874
8875 //! \brief Explicit member initialization function
8876 MFX_VP8_BSP_BUF_BASE_ADDR_STATE_CMD();
8877
8878 static const size_t dwSize = 32;
8879 static const size_t byteSize = 128;
8880 };
8881
8882 //!
8883 //! \brief MFD_VP8_BSD_OBJECT
8884 //! \details
8885 //! The MFD_VP8_BSD_OBJECT command is the only primitive command for the VP8
8886 //! Decoding Pipeline. The Partitions of the bitstream is loaded as indirect
8887 //! data object. Before issuing a MFD_VP8_BSD_OBJECT command, all VP8 frame
8888 //! level states of the MFD Engine need to be valid. Therefore the commands
8889 //! used to set these states need to have been issued prior to the issue of
8890 //! a MFD_VP8_BSD_OBJECT command. Context switch interrupt is not supported
8891 //! by this command.
8892 //!
8893 struct MFD_VP8_BSD_OBJECT_CMD
8894 {
8895 union
8896 {
8897 //!< DWORD 0
8898 struct
8899 {
8900 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
8901 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
8902 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
8903 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
8904 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
8905 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
8906 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
8907 };
8908 uint32_t Value;
8909 } DW0;
8910 union
8911 {
8912 //!< DWORD 1
8913 struct
8914 {
8915 uint32_t Partition0FirstmbbitoffsetFromFrameHeader : __CODEGEN_BITFIELD( 0, 2) ; //!< Partition0 FirstMBBitOffset from Frame Header
8916 uint32_t Reserved35 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved
8917 uint32_t CodedNumOfCoeffTokenPartitions : __CODEGEN_BITFIELD( 4, 5) ; //!< Coded Num of Coeff Token Partitions
8918 uint32_t Reserved38 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
8919 uint32_t Partition0CpbacEntropyRange : __CODEGEN_BITFIELD( 8, 15) ; //!< Partition0 CPBAC Entropy Range
8920 uint32_t Partition0CpbacEntropyCount : __CODEGEN_BITFIELD(16, 20) ; //!< Partition0 CPBAC Entropy Count
8921 uint32_t Reserved53 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved
8922 };
8923 uint32_t Value;
8924 } DW1;
8925 union
8926 {
8927 //!< DWORD 2
8928 struct
8929 {
8930 uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 23) ; //!< Reserved
8931 uint32_t Partition0CpbacEntropyValue : __CODEGEN_BITFIELD(24, 31) ; //!< Partition0 CPBAC Entropy Value
8932 };
8933 uint32_t Value;
8934 } DW2;
8935 union
8936 {
8937 //!< DWORD 3
8938 struct
8939 {
8940 uint32_t IndirectPartition0DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition0 Data Length
8941 uint32_t Reserved120 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8942 };
8943 uint32_t Value;
8944 } DW3;
8945 union
8946 {
8947 //!< DWORD 4
8948 struct
8949 {
8950 uint32_t IndirectPartition0DataStartOffset ; //!< Indirect Partition0 Data Start Offset
8951 };
8952 uint32_t Value;
8953 } DW4;
8954 union
8955 {
8956 //!< DWORD 5
8957 struct
8958 {
8959 uint32_t IndirectPartition1DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition1 Data Length
8960 uint32_t Reserved184 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8961 };
8962 uint32_t Value;
8963 } DW5;
8964 union
8965 {
8966 //!< DWORD 6
8967 struct
8968 {
8969 uint32_t IndirectPartition1DataStartOffset ; //!< Indirect Partition1 Data Start Offset
8970 };
8971 uint32_t Value;
8972 } DW6;
8973 union
8974 {
8975 //!< DWORD 7
8976 struct
8977 {
8978 uint32_t IndirectPartition2DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition2 Data Length
8979 uint32_t Reserved248 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8980 };
8981 uint32_t Value;
8982 } DW7;
8983 union
8984 {
8985 //!< DWORD 8
8986 struct
8987 {
8988 uint32_t IndirectPartition2DataStartOffset ; //!< Indirect Partition2 Data Start Offset
8989 };
8990 uint32_t Value;
8991 } DW8;
8992 union
8993 {
8994 //!< DWORD 9
8995 struct
8996 {
8997 uint32_t IndirectPartition3DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition3 Data Length
8998 uint32_t Reserved312 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
8999 };
9000 uint32_t Value;
9001 } DW9;
9002 union
9003 {
9004 //!< DWORD 10
9005 struct
9006 {
9007 uint32_t IndirectPartition3DataStartOffset ; //!< Indirect Partition3 Data Start Offset
9008 };
9009 uint32_t Value;
9010 } DW10;
9011 union
9012 {
9013 //!< DWORD 11
9014 struct
9015 {
9016 uint32_t IndirectPartition4DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition4 Data Length
9017 uint32_t Reserved376 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9018 };
9019 uint32_t Value;
9020 } DW11;
9021 union
9022 {
9023 //!< DWORD 12
9024 struct
9025 {
9026 uint32_t IndirectPartition4DataStartOffset ; //!< Indirect Partition4 Data Start Offset
9027 };
9028 uint32_t Value;
9029 } DW12;
9030 union
9031 {
9032 //!< DWORD 13
9033 struct
9034 {
9035 uint32_t IndirectPartition5DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition5 Data Length
9036 uint32_t Reserved440 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9037 };
9038 uint32_t Value;
9039 } DW13;
9040 union
9041 {
9042 //!< DWORD 14
9043 struct
9044 {
9045 uint32_t IndirectPartition5DataStartOffset ; //!< Indirect Partition5 Data Start Offset
9046 };
9047 uint32_t Value;
9048 } DW14;
9049 union
9050 {
9051 //!< DWORD 15
9052 struct
9053 {
9054 uint32_t IndirectPartition6DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition6 Data Length
9055 uint32_t Reserved504 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9056 };
9057 uint32_t Value;
9058 } DW15;
9059 union
9060 {
9061 //!< DWORD 16
9062 struct
9063 {
9064 uint32_t IndirectPartition6DataStartOffset ; //!< Indirect Partition6 Data Start Offset
9065 };
9066 uint32_t Value;
9067 } DW16;
9068 union
9069 {
9070 //!< DWORD 17
9071 struct
9072 {
9073 uint32_t IndirectPartition7DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition7 Data Length
9074 uint32_t Reserved568 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9075 };
9076 uint32_t Value;
9077 } DW17;
9078 union
9079 {
9080 //!< DWORD 18
9081 struct
9082 {
9083 uint32_t IndirectPartition7DataStartOffset ; //!< Indirect Partition7 Data Start Offset
9084 };
9085 uint32_t Value;
9086 } DW18;
9087 union
9088 {
9089 //!< DWORD 19
9090 struct
9091 {
9092 uint32_t IndirectPartition8DataLength : __CODEGEN_BITFIELD( 0, 23) ; //!< Indirect Partition8 Data Length
9093 uint32_t Reserved632 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9094 };
9095 uint32_t Value;
9096 } DW19;
9097 union
9098 {
9099 //!< DWORD 20
9100 struct
9101 {
9102 uint32_t IndirectPartition8DataStartOffset ; //!< Indirect Partition8 Data Start Offset
9103 };
9104 uint32_t Value;
9105 } DW20;
9106 union
9107 {
9108 //!< DWORD 21
9109 struct
9110 {
9111 uint32_t Reserved672 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved
9112 uint32_t MbHeaderErrorHandling : __CODEGEN_BITFIELD( 8, 8) ; //!< MB_HEADER_ERROR_HANDLING
9113 uint32_t Reserved681 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved
9114 uint32_t EntropyErrorHandling : __CODEGEN_BITFIELD(10, 10) ; //!< ENTROPY_ERROR_HANDLING
9115 uint32_t Reserved683 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
9116 uint32_t MprErrorMvOutOfRangeHandling : __CODEGEN_BITFIELD(12, 12) ; //!< MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
9117 uint32_t Reserved685 : __CODEGEN_BITFIELD(13, 13) ; //!< Reserved
9118 uint32_t BsdprematurecompleteErrorHandling : __CODEGEN_BITFIELD(14, 14) ; //!< BSDPREMATURECOMPLETE_ERROR_HANDLING
9119 uint32_t Reserved687 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
9120 uint32_t ConcealPicIdConcealmentPictureId : __CODEGEN_BITFIELD(16, 17) ; //!< Conceal_Pic_Id (Concealment Picture ID)
9121 uint32_t Reserved690 : __CODEGEN_BITFIELD(18, 30) ; //!< Reserved
9122 uint32_t ConcealmentMethod : __CODEGEN_BITFIELD(31, 31) ; //!< CONCEALMENT_METHOD
9123 };
9124 uint32_t Value;
9125 } DW21;
9126
9127 //! \name Local enumerations
9128
9129 enum SUBOPCODEB
9130 {
9131 SUBOPCODEB_UNNAMED8 = 8, //!< No additional details
9132 };
9133
9134 enum SUBOPCODEA
9135 {
9136 SUBOPCODEA_UNNAMED1 = 1, //!< No additional details
9137 };
9138
9139 enum MEDIA_COMMAND_OPCODE
9140 {
9141 MEDIA_COMMAND_OPCODE_VP8DEC = 4, //!< No additional details
9142 };
9143
9144 enum PIPELINE
9145 {
9146 PIPELINE_MFDVP8BSDOBJECT = 2, //!< No additional details
9147 };
9148
9149 enum COMMAND_TYPE
9150 {
9151 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
9152 };
9153
9154 enum MB_HEADER_ERROR_HANDLING
9155 {
9156 MB_HEADER_ERROR_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9157 MB_HEADER_ERROR_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9158 };
9159
9160 enum ENTROPY_ERROR_HANDLING
9161 {
9162 ENTROPY_ERROR_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9163 ENTROPY_ERROR_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9164 };
9165
9166 enum MPR_ERROR_MV_OUT_OF_RANGE_HANDLING
9167 {
9168 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9169 MPR_ERROR_MV_OUT_OF_RANGE_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9170 };
9171
9172 //! \brief BSDPREMATURECOMPLETE_ERROR_HANDLING
9173 //! \details
9174 //! It occurs in situation where the decode is completed but there are still
9175 //! data in the bitstream.
9176 enum BSDPREMATURECOMPLETE_ERROR_HANDLING
9177 {
9178 BSDPREMATURECOMPLETE_ERROR_HANDLING_IGNORETHEERRORANDCONTINUEMASKEDTHEINTERRUPT_ASSUMETHEHARDWAREAUTOMATICALLYPERFORMTHEERRORHANDLING = 0, //!< No additional details
9179 BSDPREMATURECOMPLETE_ERROR_HANDLING_SETTHEINTERRUPTTOTHEDRIVERPROVIDEMMIOREGISTERSFORMBADDRESSRW = 1, //!< No additional details
9180 };
9181
9182 //! \brief CONCEALMENT_METHOD
9183 //! \details
9184 //! This field specifies the method used for concealment when error is
9185 //! detected.
9186 enum CONCEALMENT_METHOD
9187 {
9188 CONCEALMENT_METHOD_INTRA16X16PREDICTION = 0, //!< A copy from the current picture is performed using Intra 16x16 Prediction method.
9189 CONCEALMENT_METHOD_INTERPCOPY = 1, //!< A copy from collocated macroblock location is performed from the concealment reference indicated by the ConCeal_Pic_Id field.
9190 };
9191
9192 //! \name Initializations
9193
9194 //! \brief Explicit member initialization function
9195 MFD_VP8_BSD_OBJECT_CMD();
9196
9197 static const size_t dwSize = 22;
9198 static const size_t byteSize = 88;
9199 };
9200
9201 //!
9202 //! \brief MFX_VP8_PIC_STATE
9203 //! \details
9204 //! This must be the very first command to issue after the surface state,
9205 //! the pipe select and base address setting commands and must be issued
9206 //! before MFX_VP8_IMG_STATE.
9207 //!
9208 struct MFX_VP8_PIC_STATE_CMD
9209 {
9210 union
9211 {
9212 //!< DWORD 0
9213 struct
9214 {
9215 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
9216 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
9217 uint32_t SubOpcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUB_OPCODE_B
9218 uint32_t SubOpcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUB_OPCODE_A
9219 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
9220 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
9221 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
9222 };
9223 uint32_t Value;
9224 } DW0;
9225 union
9226 {
9227 //!< DWORD 1
9228 struct
9229 {
9230 uint32_t FrameWidthMinus1 : __CODEGEN_BITFIELD( 0, 7) ; //!< Frame Width Minus 1
9231 uint32_t Reserved40 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved
9232 uint32_t FrameHeightMinus1 : __CODEGEN_BITFIELD(16, 23) ; //!< Frame Height Minus 1
9233 uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9234 };
9235 uint32_t Value;
9236 } DW1;
9237 union
9238 {
9239 //!< DWORD 2
9240 struct
9241 {
9242 uint32_t McFilterSelect : __CODEGEN_BITFIELD( 0, 0) ; //!< MC_FILTER_SELECT, Decoder / Encoder
9243 uint32_t ChromaFullPixelMcFilterMode : __CODEGEN_BITFIELD( 1, 1) ; //!< CHROMA_FULL_PIXEL_MC_FILTER_MODE, Decoder / Encoder
9244 uint32_t Reserved66 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved, Decoder / Encoder
9245 uint32_t Dblkfiltertype : __CODEGEN_BITFIELD( 4, 4) ; //!< DBLKFILTERTYPE, Decoder / Encoder
9246 uint32_t Skeyframeflag : __CODEGEN_BITFIELD( 5, 5) ; //!< SKEYFRAMEFLAG, Decoder / Encoder
9247 uint32_t SegmentationIdStreamoutEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< SEGMENTATION_ID_STREAMOUT_ENABLE, Decoder Only
9248 uint32_t SegmentationIdStreaminEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< SEGMENTATION_ID_STREAMIN_ENABLE, Decoder Only
9249 uint32_t SegmentEnableFlag : __CODEGEN_BITFIELD( 8, 8) ; //!< SEGMENT_ENABLE_FLAG, Decoder / Encoder
9250 uint32_t UpdateMbsegmentMapFlag : __CODEGEN_BITFIELD( 9, 9) ; //!< UPDATE_MBSEGMENT_MAP_FLAG, Decoder / Encoder
9251 uint32_t MbNocoeffSkipflag : __CODEGEN_BITFIELD(10, 10) ; //!< MB_NOCOEFF_SKIPFLAG, Decoder / Encoder
9252 uint32_t ModeReferenceLoopFilterDeltaEnabled : __CODEGEN_BITFIELD(11, 11) ; //!< MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED, Decoder / Encoder
9253 uint32_t GoldenRefPictureMvSignbiasFlag : __CODEGEN_BITFIELD(12, 12) ; //!< Golden Ref Picture MV SignBias Flag, Decoder / Encoder
9254 uint32_t AlternateRefPicMvSignbiasFlag : __CODEGEN_BITFIELD(13, 13) ; //!< Alternate Ref Pic MV SignBias Flag, Decoder / Encoder
9255 uint32_t Reserved78 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved, Decoder / Encoder
9256 uint32_t DeblockSharpnessLevel : __CODEGEN_BITFIELD(16, 18) ; //!< Deblock Sharpness Level, Decoder / Encoder
9257 uint32_t Reserved83 : __CODEGEN_BITFIELD(19, 23) ; //!< Reserved, Decoder / Encoder
9258 uint32_t Log2NumOfPartition : __CODEGEN_BITFIELD(24, 25) ; //!< LOG2_NUM_OF_PARTITION, Decoder / Encoder
9259 uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved
9260 };
9261 uint32_t Value;
9262 } DW2;
9263 union
9264 {
9265 //!< DWORD 3
9266 struct
9267 {
9268 uint32_t DblkfilterlevelForSegment0 : __CODEGEN_BITFIELD( 0, 5) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT0
9269 uint32_t Reserved102 : __CODEGEN_BITFIELD( 6, 7) ; //!< Reserved
9270 uint32_t DblkfilterlevelForSegment1 : __CODEGEN_BITFIELD( 8, 13) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT1
9271 uint32_t Reserved110 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved
9272 uint32_t DblkfilterlevelForSegment2 : __CODEGEN_BITFIELD(16, 21) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT2
9273 uint32_t Reserved118 : __CODEGEN_BITFIELD(22, 23) ; //!< Reserved
9274 uint32_t DblkfilterlevelForSegment3 : __CODEGEN_BITFIELD(24, 29) ; //!< DBLKFILTERLEVEL_FOR_SEGMENT3
9275 uint32_t Reserved126 : __CODEGEN_BITFIELD(30, 31) ; //!< Reserved
9276 };
9277 uint32_t Value;
9278 } DW3;
9279 union
9280 {
9281 //!< DWORD 4
9282 struct
9283 {
9284 uint32_t QuantizerValue0Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [0][BlockType0=Y1DC], Decoder Only
9285 uint32_t Reserved137 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9286 uint32_t QuantizerValue0Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [0][BlockType1=Y1AC], Decoder Only
9287 uint32_t Reserved153 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9288 } dec;
9289 struct
9290 {
9291 uint32_t Seg0Qindex : __CODEGEN_BITFIELD( 0, 6) ; //!< Seg 0 Qindex, Encoder Only
9292 uint32_t Reserved135 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved, Encoder Only
9293 uint32_t Seg1Qindex : __CODEGEN_BITFIELD( 8, 14) ; //!< Seg 1 Qindex, Encoder Only
9294 uint32_t Reserved143 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved, Encoder Only
9295 uint32_t Seg2Qindex : __CODEGEN_BITFIELD(16, 22) ; //!< Seg 2 Qindex, Encoder Only
9296 uint32_t Reserved151 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved, Encoder Only
9297 uint32_t Seg3Qindex : __CODEGEN_BITFIELD(24, 30) ; //!< Seg 3 Qindex, Encoder Only
9298 uint32_t Reserved159 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
9299 } enc;
9300 uint32_t Value;
9301 } DW4;
9302 union
9303 {
9304 //!< DWORD 5
9305 struct
9306 {
9307 uint32_t QuantizerValue0Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [0][BlockType2=UVDC], Decoder Only
9308 uint32_t Reserved169 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9309 uint32_t QuantizerValue0Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [0][BlockType3=UVAC], Decoder Only
9310 uint32_t Reserved185 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9311 } dec;
9312 struct
9313 {
9314 uint32_t Y2DcQindexDelta : __CODEGEN_BITFIELD( 0, 3) ; //!< Y2dc Qindex Delta, Encoder Only
9315 uint32_t Y2AcQindexDeltaSign : __CODEGEN_BITFIELD( 4, 4) ; //!< Y2ac Qindex Delta Sign , Encoder Only
9316 uint32_t Reserved165 : __CODEGEN_BITFIELD( 5, 7) ; //!< Reserved, Encoder Only
9317 uint32_t Y2AcQindexDelta : __CODEGEN_BITFIELD( 8, 11) ; //!< Y2ac Qindex Delta , Encoder Only
9318 uint32_t Y2AcQindexSign : __CODEGEN_BITFIELD(12, 12) ; //!< Y2ac Qindex Sign, Encoder Only
9319 uint32_t Reserved173 : __CODEGEN_BITFIELD(13, 15) ; //!< Reserved, Encoder Only
9320 uint32_t UvdcQindexDelta : __CODEGEN_BITFIELD(16, 19) ; //!< UVdc Qindex Delta, Encoder Only
9321 uint32_t UvdcQindexDeltaSign : __CODEGEN_BITFIELD(20, 20) ; //!< UVdc Qindex Delta Sign, Encoder Only
9322 uint32_t Reserved181 : __CODEGEN_BITFIELD(21, 23) ; //!< Reserved, Encoder Only
9323 uint32_t UvacQindexdelta : __CODEGEN_BITFIELD(24, 27) ; //!< UVac QindexDelta, Encoder Only
9324 uint32_t UvacQindexDeltaSign : __CODEGEN_BITFIELD(28, 28) ; //!< UVac Qindex Delta Sign, Encoder Only
9325 uint32_t Reserved189 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved
9326 } enc;
9327 uint32_t Value;
9328 } DW5;
9329 union
9330 {
9331 //!< DWORD 6
9332 struct
9333 {
9334 uint32_t QuantizerValue0Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [0][BlockType4=Y2DC], Decoder Only
9335 uint32_t Reserved201 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9336 uint32_t QuantizerValue0Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [0][BlockType5=Y2AC], Decoder Only
9337 uint32_t Reserved217 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9338 } dec;
9339 struct
9340 {
9341 uint32_t Y1DcQindexDelta : __CODEGEN_BITFIELD( 0, 3) ; //!< Y1dc Qindex Delta, Encoder Only
9342 uint32_t Y1DcQindexDeltaSign : __CODEGEN_BITFIELD( 4, 4) ; //!< Y1dc Qindex Delta Sign , Encoder Only
9343 uint32_t Reserved197 : __CODEGEN_BITFIELD( 5, 31) ; //!< Reserved
9344 } enc;
9345 uint32_t Value;
9346 } DW6;
9347 union
9348 {
9349 //!< DWORD 7
9350 struct
9351 {
9352 uint32_t QuantizerValue1Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [1][BlockType0=Y1DC], Decoder Only
9353 uint32_t Reserved233 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9354 uint32_t QuantizerValue1Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [1][BlockType1=Y1AC], Decoder Only
9355 uint32_t Reserved249 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9356 } dec;
9357 struct
9358 {
9359 uint32_t ClampQindexLow : __CODEGEN_BITFIELD( 0, 6) ; //!< Clamp Qindex Low, Encoder Only
9360 uint32_t Reserved231 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved, Encoder Only
9361 uint32_t ClampQindexHigh : __CODEGEN_BITFIELD( 8, 14) ; //!< Clamp Qindex high, Encoder Only
9362 uint32_t Reserved239 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
9363 } enc;
9364 uint32_t Value;
9365 } DW7;
9366 union
9367 {
9368 //!< DWORD 8
9369 struct
9370 {
9371 uint32_t QuantizerValue1Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [1][BlockType2=UVDC], Decoder Only
9372 uint32_t Reserved265 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9373 uint32_t QuantizerValue1Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [1][BlockType3=UVAC], Decoder Only
9374 uint32_t Reserved281 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9375 };
9376 uint32_t Value;
9377 } DW8;
9378 union
9379 {
9380 //!< DWORD 9
9381 struct
9382 {
9383 uint32_t QuantizerValue1Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [1][BlockType4=Y2DC], Decoder Only
9384 uint32_t Reserved297 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9385 uint32_t QuantizerValue1Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [1][BlockType5=Y2AC], Decoder Only
9386 uint32_t Reserved313 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9387 };
9388 uint32_t Value;
9389 } DW9;
9390 union
9391 {
9392 //!< DWORD 10
9393 struct
9394 {
9395 uint32_t QuantizerValue2Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [2][BlockType0=Y1DC], Decoder Only
9396 uint32_t Reserved329 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9397 uint32_t QuantizerValue2Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [2][BlockType1=Y1AC], Decoder Only
9398 uint32_t Reserved345 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9399 };
9400 uint32_t Value;
9401 } DW10;
9402 union
9403 {
9404 //!< DWORD 11
9405 struct
9406 {
9407 uint32_t QuantizerValue2Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [2][BlockType2=UVDC], Decoder Only
9408 uint32_t Reserved361 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9409 uint32_t QuantizerValue2Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [2][BlockType3=UVAC], Decoder Only
9410 uint32_t Reserved377 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9411 };
9412 uint32_t Value;
9413 } DW11;
9414 union
9415 {
9416 //!< DWORD 12
9417 struct
9418 {
9419 uint32_t QuantizerValue2Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [2][BlockType4=Y2DC], Decoder Only
9420 uint32_t Reserved393 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9421 uint32_t QuantizerValue2Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [2][BlockType5=Y2AC], Decoder Only
9422 uint32_t Reserved409 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9423 };
9424 uint32_t Value;
9425 } DW12;
9426 union
9427 {
9428 //!< DWORD 13
9429 struct
9430 {
9431 uint32_t QuantizerValue3Blocktype0Y1Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [3][BlockType0=Y1DC], Decoder Only
9432 uint32_t Reserved425 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9433 uint32_t QuantizerValue3Blocktype1Y1Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [3][BlockType1=Y1AC], Decoder Only
9434 uint32_t Reserved441 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9435 };
9436 uint32_t Value;
9437 } DW13;
9438 union
9439 {
9440 //!< DWORD 14
9441 struct
9442 {
9443 uint32_t QuantizerValue3Blocktype2Uvdc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [3][BlockType2=UVDC], Decoder Only
9444 uint32_t Reserved457 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9445 uint32_t QuantizerValue3Blocktype3Uvac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [3][BlockType3=UVAC], Decoder Only
9446 uint32_t Reserved473 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9447 };
9448 uint32_t Value;
9449 } DW14;
9450 union
9451 {
9452 //!< DWORD 15
9453 struct
9454 {
9455 uint32_t QuantizerValue3Blocktype4Y2Dc : __CODEGEN_BITFIELD( 0, 8) ; //!< Quantizer Value [3][BlockType4=Y2DC], Decoder Only
9456 uint32_t Reserved489 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved, Decoder Only
9457 uint32_t QuantizerValue3Blocktype5Y2Ac : __CODEGEN_BITFIELD(16, 24) ; //!< Quantizer Value [3][BlockType5=Y2AC], Decoder Only
9458 uint32_t Reserved505 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved
9459 };
9460 uint32_t Value;
9461 } DW15;
9462 union
9463 {
9464 //!< DWORD 16
9465 struct
9466 {
9467 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
9468 uint32_t CoeffprobabilityStreaminBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< CoeffProbability StreamIn Base Address, Decoder Only
9469 };
9470 uint32_t Value;
9471 } DW16;
9472 union
9473 {
9474 //!< DWORD 17
9475 struct
9476 {
9477 uint32_t CoeffprobabilityStreaminAddress : __CODEGEN_BITFIELD( 0, 15) ; //!< CoeffProbability StreamIn Address, Decoder Only
9478 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
9479 };
9480 uint32_t Value;
9481 } DW17;
9482 union
9483 {
9484 //!< DWORD 18
9485 struct
9486 {
9487 uint32_t Reserved576 : __CODEGEN_BITFIELD( 0, 6) ; //!< Reserved
9488 uint32_t CoeffprobabilityStreaminArbitrationPriorityControl : __CODEGEN_BITFIELD(7, 8); //!< COEFFPROBABILITY_STREAMIN__ARBITRATION_PRIORITY_CONTROL, Decoder Only
9489 uint32_t CoeffprobabilityStreaminMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< CoeffProbability StreamIn - Memory Compression Enable, Decoder Only
9490 uint32_t CoeffprobabilityStreaminMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< COEFFPROBABILITY_STREAMIN__MEMORY_COMPRESSION_MODE, Decoder Only
9491 uint32_t Reserved587 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved, Decoder Only
9492 uint32_t CoeffprobabilityStreaminTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< COEFFPROBABILITY_STREAMIN__TILED_RESOURCE_MODE, Decoder Only
9493 uint32_t Reserved591 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
9494 };
9495 uint32_t Value;
9496 } DW18;
9497 union
9498 {
9499 //!< DWORD 19
9500 struct
9501 {
9502 uint32_t Mbsegmentidtreeprobs0 : __CODEGEN_BITFIELD( 0, 7) ; //!< MBSegmentIDTreeProbs[0]
9503 uint32_t Mbsegmentidtreeprobs1 : __CODEGEN_BITFIELD( 8, 15) ; //!< MBSegmentIDTreeProbs[1]
9504 uint32_t Mbsegmentidtreeprobs2 : __CODEGEN_BITFIELD(16, 23) ; //!< MBSegmentIDTreeProbs[2]
9505 uint32_t Reserved632 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9506 };
9507 uint32_t Value;
9508 } DW19;
9509 union
9510 {
9511 //!< DWORD 20
9512 struct
9513 {
9514 uint32_t Interpredfromgrefrefprob : __CODEGEN_BITFIELD( 0, 7) ; //!< InterPredFromGRefRefProb
9515 uint32_t Interpredfromlastrefprob : __CODEGEN_BITFIELD( 8, 15) ; //!< InterPredFromLastRefProb
9516 uint32_t Intrambprob : __CODEGEN_BITFIELD(16, 23) ; //!< IntraMBProb
9517 uint32_t Mbnocoeffskipfalseprob : __CODEGEN_BITFIELD(24, 31) ; //!< MBNoCoeffSkipFalseProb
9518 };
9519 uint32_t Value;
9520 } DW20;
9521 union
9522 {
9523 //!< DWORD 21
9524 struct
9525 {
9526 uint32_t Ymodeprob0 : __CODEGEN_BITFIELD( 0, 7) ; //!< YModeProb[0]
9527 uint32_t Ymodeprob1 : __CODEGEN_BITFIELD( 8, 15) ; //!< YModeProb[1]
9528 uint32_t Ymodeprob2 : __CODEGEN_BITFIELD(16, 23) ; //!< YModeProb[2]
9529 uint32_t Ymodeprob3 : __CODEGEN_BITFIELD(24, 31) ; //!< YModeProb[3]
9530 };
9531 uint32_t Value;
9532 } DW21;
9533 union
9534 {
9535 //!< DWORD 22
9536 struct
9537 {
9538 uint32_t Uvmodeprob0 : __CODEGEN_BITFIELD( 0, 7) ; //!< UVModeProb[0]
9539 uint32_t Uvmodeprob1 : __CODEGEN_BITFIELD( 8, 15) ; //!< UVModeProb[1]
9540 uint32_t Uvmodeprob2 : __CODEGEN_BITFIELD(16, 23) ; //!< UVModeProb[2]
9541 uint32_t Reserved728 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9542 };
9543 uint32_t Value;
9544 } DW22;
9545 union
9546 {
9547 //!< DWORD 23
9548 struct
9549 {
9550 uint32_t Mvupdateprobs00 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][0]
9551 uint32_t Mvupdateprobs01 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][1]
9552 uint32_t Mvupdateprobs02 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][2]
9553 uint32_t Mvupdateprobs03 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][3]
9554 };
9555 uint32_t Value;
9556 } DW23;
9557 union
9558 {
9559 //!< DWORD 24
9560 struct
9561 {
9562 uint32_t Mvupdateprobs04 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][4]
9563 uint32_t Mvupdateprobs05 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][5]
9564 uint32_t Mvupdateprobs06 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][6]
9565 uint32_t Mvupdateprobs07 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][7]
9566 };
9567 uint32_t Value;
9568 } DW24;
9569 union
9570 {
9571 //!< DWORD 25
9572 struct
9573 {
9574 uint32_t Mvupdateprobs08 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][8]
9575 uint32_t Mvupdateprobs09 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][9]
9576 uint32_t Mvupdateprobs010 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][10]
9577 uint32_t Mvupdateprobs011 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][11]
9578 };
9579 uint32_t Value;
9580 } DW25;
9581 union
9582 {
9583 //!< DWORD 26
9584 struct
9585 {
9586 uint32_t Mvupdateprobs012 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][12]
9587 uint32_t Mvupdateprobs013 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][13]
9588 uint32_t Mvupdateprobs014 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][14]
9589 uint32_t Mvupdateprobs015 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[0][15]
9590 };
9591 uint32_t Value;
9592 } DW26;
9593 union
9594 {
9595 //!< DWORD 27
9596 struct
9597 {
9598 uint32_t Mvupdateprobs016 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[0][16]
9599 uint32_t Mvupdateprobs017 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[0][17]
9600 uint32_t Mvupdateprobs018 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[0][18]
9601 uint32_t Reserved888 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9602 };
9603 uint32_t Value;
9604 } DW27;
9605 union
9606 {
9607 //!< DWORD 28
9608 struct
9609 {
9610 uint32_t Mvupdateprobs10 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][0]
9611 uint32_t Mvupdateprobs11 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][1]
9612 uint32_t Mvupdateprobs12 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][2]
9613 uint32_t Mvupdateprobs13 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][3]
9614 };
9615 uint32_t Value;
9616 } DW28;
9617 union
9618 {
9619 //!< DWORD 29
9620 struct
9621 {
9622 uint32_t Mvupdateprobs14 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][4]
9623 uint32_t Mvupdateprobs15 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][5]
9624 uint32_t Mvupdateprobs16 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][6]
9625 uint32_t Mvupdateprobs17 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][7]
9626 };
9627 uint32_t Value;
9628 } DW29;
9629 union
9630 {
9631 //!< DWORD 30
9632 struct
9633 {
9634 uint32_t Mvupdateprobs18 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][8]
9635 uint32_t Mvupdateprobs19 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][9]
9636 uint32_t Mvupdateprobs110 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][10]
9637 uint32_t Mvupdateprobs111 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][11]
9638 };
9639 uint32_t Value;
9640 } DW30;
9641 union
9642 {
9643 //!< DWORD 31
9644 struct
9645 {
9646 uint32_t Mvupdateprobs112 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][12]
9647 uint32_t Mvupdateprobs113 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][13]
9648 uint32_t Mvupdateprobs114 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][14]
9649 uint32_t Mvupdateprobs115 : __CODEGEN_BITFIELD(24, 31) ; //!< MVUpdateProbs[1][15]
9650 };
9651 uint32_t Value;
9652 } DW31;
9653 union
9654 {
9655 //!< DWORD 32
9656 struct
9657 {
9658 uint32_t Mvupdateprobs116 : __CODEGEN_BITFIELD( 0, 7) ; //!< MVUpdateProbs[1][16]
9659 uint32_t Mvupdateprobs117 : __CODEGEN_BITFIELD( 8, 15) ; //!< MVUpdateProbs[1][17]
9660 uint32_t Mvupdateprobs118 : __CODEGEN_BITFIELD(16, 23) ; //!< MVUpdateProbs[1][18]
9661 uint32_t Reserved1048 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved
9662 };
9663 uint32_t Value;
9664 } DW32;
9665 union
9666 {
9667 //!< DWORD 33
9668 struct
9669 {
9670 uint32_t Reflfdelta0ForIntraFrame : __CODEGEN_BITFIELD( 0, 6) ; //!< RefLFDelta0 (for INTRA FRAME)
9671 uint32_t Reserved1063 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
9672 uint32_t Reflfdelta1ForLastFrame : __CODEGEN_BITFIELD( 8, 14) ; //!< RefLFDelta1 (for LAST FRAME)
9673 uint32_t Reserved1071 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
9674 uint32_t Reflfdelta2ForGoldenFrame : __CODEGEN_BITFIELD(16, 22) ; //!< RefLFDelta2 (for GOLDEN FRAME)
9675 uint32_t Reserved1079 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
9676 uint32_t Reflfdelta3ForAltrefFrame : __CODEGEN_BITFIELD(24, 30) ; //!< RefLFDelta3 (for ALTREF FRAME)
9677 uint32_t Reserved1087 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
9678 };
9679 uint32_t Value;
9680 } DW33;
9681 union
9682 {
9683 //!< DWORD 34
9684 struct
9685 {
9686 uint32_t Modelfdelta0ForBPredMode : __CODEGEN_BITFIELD( 0, 6) ; //!< ModeLFDelta0 (for B_PRED mode)
9687 uint32_t Reserved1095 : __CODEGEN_BITFIELD( 7, 7) ; //!< Reserved
9688 uint32_t Modelfdelta1ForZeromvMode : __CODEGEN_BITFIELD( 8, 14) ; //!< ModeLFDelta1(for ZEROMV mode)
9689 uint32_t Reserved1103 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved
9690 uint32_t Modelfdelta2ForNearestNearAndNewMode : __CODEGEN_BITFIELD(16, 22) ; //!< ModeLFDelta2 (for Nearest, Near and New mode)
9691 uint32_t Reserved1111 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved
9692 uint32_t Modelfdelta3ForSplitmvMode : __CODEGEN_BITFIELD(24, 30) ; //!< ModeLFDelta3 (for SPLITMV mode)
9693 uint32_t Reserved1119 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved
9694 };
9695 uint32_t Value;
9696 } DW34;
9697 union
9698 {
9699 //!< DWORD 35
9700 struct
9701 {
9702 uint32_t SegmentationIdStreamBaseAddress ; //!< Segmentation ID Stream Base Address
9703 };
9704 uint32_t Value;
9705 } DW35;
9706 union
9707 {
9708 //!< DWORD 36
9709 struct
9710 {
9711 uint32_t SegmentationIdStreamBaseAddress4732 : __CODEGEN_BITFIELD( 0, 15) ; //!< Segmentation ID Stream Base Address [47:32]
9712 uint32_t Reserved1168 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
9713 };
9714 uint32_t Value;
9715 } DW36;
9716 union
9717 {
9718 //!< DWORD 37
9719 struct
9720 {
9721 uint32_t Reserved1184 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
9722 uint32_t CoeffprobabilityStreaminAddressIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< CoeffProbability StreamIn Address - Index to Memory Object Control State (MOCS) Tables
9723 uint32_t SegmentationIdStreamArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SEGMENTATION_ID_STREAM__ARBITRATION_PRIORITY_CONTROL
9724 uint32_t SegmentationIdStreamMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Segmentation ID Stream - Memory Compression Enable
9725 uint32_t SegmentationIdStreamMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< SEGMENTATION_ID_STREAM__MEMORY_COMPRESSION_MODE
9726 uint32_t Reserved1195 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
9727 uint32_t SegmentationIdStreamTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SEGMENTATION_ID_STREAM__TILED_RESOURCE_MODE
9728 uint32_t Reserved1199 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
9729 };
9730 uint32_t Value;
9731 } DW37;
9732
9733 //! \name Local enumerations
9734
9735 enum SUB_OPCODE_B
9736 {
9737 SUB_OPCODE_B_MFXVP8PICSTATE = 0, //!< No additional details
9738 };
9739
9740 enum SUB_OPCODE_A
9741 {
9742 SUB_OPCODE_A_VP8COMMON = 0, //!< No additional details
9743 };
9744
9745 enum MEDIA_COMMAND_OPCODE
9746 {
9747 MEDIA_COMMAND_OPCODE_VP8 = 4, //!< No additional details
9748 };
9749
9750 enum PIPELINE
9751 {
9752 PIPELINE_VIDEOCODEC = 2, //!< No additional details
9753 };
9754
9755 enum COMMAND_TYPE
9756 {
9757 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
9758 };
9759
9760 //! \brief MC_FILTER_SELECT
9761 //! \details
9762 //! To specify VP8 Profile of operation.
9763 enum MC_FILTER_SELECT
9764 {
9765 MC_FILTER_SELECT_UNNAMED0 = 0, //!< 6-tap filter (regular filter mode)
9766 MC_FILTER_SELECT_UNNAMED1 = 1, //!< 2-tap bilinear filter (simple profile/version mode)
9767 };
9768
9769 //! \brief CHROMA_FULL_PIXEL_MC_FILTER_MODE
9770 //! \details
9771 //! To specify VP8 Profile of operation.
9772 enum CHROMA_FULL_PIXEL_MC_FILTER_MODE
9773 {
9774 CHROMA_FULL_PIXEL_MC_FILTER_MODE_UNNAMED0 = 0, //!< Chroma MC filter operates in sub-pixel mode
9775 CHROMA_FULL_PIXEL_MC_FILTER_MODE_UNNAMED1 = 1, //!< Chroma MC filter only operates in full pixel position, i.e. no sub-pixel interpolation.
9776 };
9777
9778 //! \brief DBLKFILTERTYPE
9779 //! \details
9780 //! To specify VP8 Profile of operation.
9781 enum DBLKFILTERTYPE
9782 {
9783 DBLKFILTERTYPE_UNNAMED0 = 0, //!< Use a full feature normal deblocking filter
9784 DBLKFILTERTYPE_UNNAMED1 = 1, //!< Use a simple filter for deblocking
9785 };
9786
9787 enum SKEYFRAMEFLAG
9788 {
9789 SKEYFRAMEFLAG_NON_KEYFRAMEP_FRAME = 0, //!< No additional details
9790 SKEYFRAMEFLAG_KEYFRAMEI_FRAME = 1, //!< No additional details
9791 };
9792
9793 //! \brief SEGMENTATION_ID_STREAMOUT_ENABLE
9794 //! \details
9795 //! When 0, no output needed.
9796 enum SEGMENTATION_ID_STREAMOUT_ENABLE
9797 {
9798 SEGMENTATION_ID_STREAMOUT_ENABLE_STREAMOUTDISABLED = 0, //!< No additional details
9799 SEGMENTATION_ID_STREAMOUT_ENABLE_STREAMOUTENABLED = 1, //!< No additional details
9800 };
9801
9802 //! \brief SEGMENTATION_ID_STREAMIN_ENABLE
9803 //! \details
9804 //! When 0, no input needed.
9805 enum SEGMENTATION_ID_STREAMIN_ENABLE
9806 {
9807 SEGMENTATION_ID_STREAMIN_ENABLE_STREAMINDISABLED = 0, //!< No additional details
9808 SEGMENTATION_ID_STREAMIN_ENABLE_STREAMINENABLED = 1, //!< No additional details
9809 };
9810
9811 enum SEGMENT_ENABLE_FLAG
9812 {
9813 SEGMENT_ENABLE_FLAG_UNNAMED0 = 0, //!< Disable Segmentation processing in the current frame
9814 SEGMENT_ENABLE_FLAG_UNNAMED1 = 1, //!< Enable Segmentation processing in the current frame
9815 };
9816
9817 enum UPDATE_MBSEGMENT_MAP_FLAG
9818 {
9819 UPDATE_MBSEGMENT_MAP_FLAG_UNNAMED0 = 0, //!< Disable segmentation update
9820 UPDATE_MBSEGMENT_MAP_FLAG_UNNAMED1 = 1, //!< Enable segmentation update, and to enable reading segment_id for each MB.
9821 };
9822
9823 //! \brief MB_NOCOEFF_SKIPFLAG
9824 //! \details
9825 //! Frame level control if Skip MB (with no non-zero coefficient) is allowed
9826 //! or not.
9827 enum MB_NOCOEFF_SKIPFLAG
9828 {
9829 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)
9830 MB_NOCOEFF_SKIPFLAG_UNNAMED1 = 1, //!< Skip MB is enabled in the per MB record.
9831 };
9832
9833 enum MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED
9834 {
9835 MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED_UNNAMED0 = 0, //!< Mode or Reference Loop Filter Delta Adjustment for current frame is disabled.
9836 MODE_REFERENCE_LOOP_FILTER_DELTA_ENABLED_UNNAMED1 = 1, //!< Mode or Reference Loop Filter Delta Adjustment for current frame is enabled.
9837 };
9838
9839 enum LOG2_NUM_OF_PARTITION
9840 {
9841 LOG2_NUM_OF_PARTITION_1TOKENPARTITION = 0, //!< No additional details
9842 LOG2_NUM_OF_PARTITION_2TOKENPARTITION = 1, //!< No additional details
9843 LOG2_NUM_OF_PARTITION_4TOKENPARTITION = 2, //!< No additional details
9844 LOG2_NUM_OF_PARTITION_8TOKENPARTITION = 3, //!< No additional details
9845 };
9846
9847 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT0
9848 //! \details
9849 //! There are max 4 segments per frame, each segment can have its own
9850 //! deblocking filter level. When segmentation is disabled, only segment 0
9851 //! parameter is used for the entire frame.
9852 enum DBLKFILTERLEVEL_FOR_SEGMENT0
9853 {
9854 DBLKFILTERLEVEL_FOR_SEGMENT0_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9855 };
9856
9857 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT1
9858 //! \details
9859 //! There are max 4 segments per frame, each segment can have its own
9860 //! deblocking filter level. When segmentation is disabled, only segment 0
9861 //! parameter is used for the entire frame.
9862 enum DBLKFILTERLEVEL_FOR_SEGMENT1
9863 {
9864 DBLKFILTERLEVEL_FOR_SEGMENT1_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9865 };
9866
9867 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT2
9868 //! \details
9869 //! There are max 4 segments per frame, each segment can have its own
9870 //! deblocking filter level. When segmentation is disabled, only segment 0
9871 //! parameter is used for the entire frame.
9872 enum DBLKFILTERLEVEL_FOR_SEGMENT2
9873 {
9874 DBLKFILTERLEVEL_FOR_SEGMENT2_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9875 };
9876
9877 //! \brief DBLKFILTERLEVEL_FOR_SEGMENT3
9878 //! \details
9879 //! There are max 4 segments per frame, each segment can have its own
9880 //! deblocking filter level. When segmentation is disabled, only segment 0
9881 //! parameter is used for the entire frame.
9882 enum DBLKFILTERLEVEL_FOR_SEGMENT3
9883 {
9884 DBLKFILTERLEVEL_FOR_SEGMENT3_SIGNIFIESDISABLEINLOOPDEBLOCKINGOPERATION = 0, //!< This is used to set a VP8 profile without in loop deblocker.
9885 };
9886
9887 //! \brief COEFFPROBABILITY_STREAMIN__ARBITRATION_PRIORITY_CONTROL
9888 //! \details
9889 //! This field controls the priority of arbitration used in the GAC/GAM
9890 //! pipeline for this surface.
9891 enum COEFFPROBABILITY_STREAMIN__ARBITRATION_PRIORITY_CONTROL
9892 {
9893 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
9894 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
9895 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
9896 COEFFPROBABILITY_STREAMIN_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
9897 };
9898
9899 //! \brief COEFFPROBABILITY_STREAMIN__MEMORY_COMPRESSION_MODE
9900 //! \details
9901 //! Distinguishes Vertical from Horizontal compression. Please refer to
9902 //! vol1a
9903 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
9904 //! section for more details.
9905 enum COEFFPROBABILITY_STREAMIN__MEMORY_COMPRESSION_MODE
9906 {
9907 COEFFPROBABILITY_STREAMIN_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
9908 COEFFPROBABILITY_STREAMIN_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
9909 };
9910
9911 //! \brief COEFFPROBABILITY_STREAMIN__TILED_RESOURCE_MODE
9912 //! \details
9913 //! <b>For Media Surfaces:</b>
9914 //! This field specifies the tiled resource mode.
9915 enum COEFFPROBABILITY_STREAMIN__TILED_RESOURCE_MODE
9916 {
9917 COEFFPROBABILITY_STREAMIN_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
9918 COEFFPROBABILITY_STREAMIN_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
9919 COEFFPROBABILITY_STREAMIN_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
9920 };
9921
9922 //! \brief SEGMENTATION_ID_STREAM__ARBITRATION_PRIORITY_CONTROL
9923 //! \details
9924 //! This field controls the priority of arbitration used in the GAC/GAM
9925 //! pipeline for this surface.
9926 enum SEGMENTATION_ID_STREAM__ARBITRATION_PRIORITY_CONTROL
9927 {
9928 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
9929 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
9930 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
9931 SEGMENTATION_ID_STREAM_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
9932 };
9933
9934 //! \brief SEGMENTATION_ID_STREAM__MEMORY_COMPRESSION_MODE
9935 //! \details
9936 //! Distinguishes Vertical from Horizontal compression. Please refer to
9937 //! vol1a
9938 //! <b>Memory Data Formats</b> chapter, <b>Media Memory Compression</b>
9939 //! section for more details.
9940 enum SEGMENTATION_ID_STREAM__MEMORY_COMPRESSION_MODE
9941 {
9942 SEGMENTATION_ID_STREAM_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
9943 SEGMENTATION_ID_STREAM_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
9944 };
9945
9946 //! \brief SEGMENTATION_ID_STREAM__TILED_RESOURCE_MODE
9947 //! \details
9948 //! <b>For Media Surfaces:</b>
9949 //! This field specifies the tiled resource mode.
9950 enum SEGMENTATION_ID_STREAM__TILED_RESOURCE_MODE
9951 {
9952 SEGMENTATION_ID_STREAM_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
9953 SEGMENTATION_ID_STREAM_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
9954 SEGMENTATION_ID_STREAM_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
9955 };
9956
9957 //! \name Initializations
9958
9959 //! \brief Explicit member initialization function
9960 MFX_VP8_PIC_STATE_CMD();
9961
9962 static const size_t dwSize = 38;
9963 static const size_t byteSize = 152;
9964 };
9965
9966 //!
9967 //! \brief MFX_JPEG_HUFF_TABLE_STATE
9968 //! \details
9969 //! This Huffman table commands contains both DC and AC tables for either
9970 //! luma or chroma. Once a Huffman table has been defined for a particular
9971 //! destination, it replaces the previous tables stored in that destination
9972 //! and shall be used in the remaining Scans of the current image. A Huffman
9973 //! table will be sent to H/W only when it is loaded from bitstream.
9974 //!
9975 struct MFX_JPEG_HUFF_TABLE_STATE_CMD
9976 {
9977 union
9978 {
9979 //!< DWORD 0
9980 struct
9981 {
9982 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
9983 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
9984 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
9985 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
9986 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
9987 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
9988 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
9989 };
9990 uint32_t Value;
9991 } DW0;
9992 union
9993 {
9994 //!< DWORD 1
9995 struct
9996 {
9997 uint32_t Hufftableid1Bit : __CODEGEN_BITFIELD( 0, 0) ; //!< HUFFTABLEID_1_BIT
9998 uint32_t Reserved33 : __CODEGEN_BITFIELD( 1, 31) ; //!< Reserved
9999 };
10000 uint32_t Value;
10001 } DW1;
10002
10003 uint32_t DcBits128BitArray[3]; //!< DC_BITS (12 8-bit array)
10004
10005
10006 uint32_t DcHuffval128BitArray[3]; //!< DC_HUFFVAL (12 8-bit array)
10007
10008
10009 uint32_t AcBits168BitArray[4]; //!< AC_BITS (16 8-bit array)
10010
10011
10012 uint32_t AcHuffval1608BitArray[40]; //!< AC_HUFFVAL (160 8-bit array)
10013
10014 union
10015 {
10016 //!< DWORD 52
10017 struct
10018 {
10019 uint32_t AcHuffval28BitArray : __CODEGEN_BITFIELD( 0, 15) ; //!< AC_HUFFVAL(2-8 bit array)
10020 uint32_t Reserved1680 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10021 };
10022 uint32_t Value;
10023 } DW52;
10024
10025 //! \name Local enumerations
10026
10027 enum SUBOPCODE_B
10028 {
10029 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
10030 };
10031
10032 enum SUBOPCODE_A
10033 {
10034 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
10035 };
10036
10037 enum MEDIA_COMMAND_OPCODE
10038 {
10039 MEDIA_COMMAND_OPCODE_JPEGCOMMON = 7, //!< No additional details
10040 };
10041
10042 enum PIPELINE
10043 {
10044 PIPELINE_MFXMULTIDW = 2, //!< No additional details
10045 };
10046
10047 enum COMMAND_TYPE
10048 {
10049 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
10050 };
10051
10052 //! \brief HUFFTABLEID_1_BIT
10053 //! \details
10054 //! Identifies the huffman table.
10055 enum HUFFTABLEID_1_BIT
10056 {
10057 HUFFTABLEID_1_BIT_Y = 0, //!< Huffman table for Y
10058 };
10059
10060 //! \name Initializations
10061
10062 //! \brief Explicit member initialization function
10063 MFX_JPEG_HUFF_TABLE_STATE_CMD();
10064
10065 static const size_t dwSize = 53;
10066 static const size_t byteSize = 212;
10067 };
10068
10069 //!
10070 //! \brief GRAPHICSADDRESS63_6
10071 //! \details
10072 //! This structure is intended to define the upper bits of the
10073 //! GraphicsAddress, when bits 5:0 are already defined in the referring
10074 //! register. So bit 0 of this structure should correspond to bit 6 of the
10075 //! full GraphicsAddress.
10076 //!
10077 struct GRAPHICSADDRESS63_6_CMD
10078 {
10079 union
10080 {
10081 //!< DWORD 0..1
10082 struct
10083 {
10084 uint64_t Reserved0 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10085 uint64_t Graphicsaddress476 : __CODEGEN_BITFIELD( 6, 47) ; //!< GraphicsAddress47-6
10086 uint64_t Reserved48 : __CODEGEN_BITFIELD(48, 63) ; //!< Reserved
10087 };
10088 uint32_t Value[2];
10089 } DW0_1;
10090
10091 //! \name Local enumerations
10092
10093 //! \name Initializations
10094
10095 //! \brief Explicit member initialization function
10096 GRAPHICSADDRESS63_6_CMD();
10097
10098 static const size_t dwSize = 2;
10099 static const size_t byteSize = 8;
10100 };
10101
10102 //!
10103 //! \brief MFX_PIPE_BUF_ADDR_STATE
10104 //! \details
10105 //! This state command provides the memory base addresses for all row
10106 //! stores, StreamOut buffer and reconstructed picture output buffers
10107 //! required by the MFD or MFC Engine (that are in addition to the row
10108 //! stores of the Bit Stream Decoding/Encoding Unit (BSD/BSE) and the
10109 //! reference picture buffers).
10110 //! This is a picture level state command and is common among all codec
10111 //! standards and for both encoder and decoder operating modes. However,
10112 //! some fields may only applicable to a specific codec standard. All Pixel
10113 //! Surfaces (original, reference frame and reconstructed frame) in the
10114 //! Encoder are programmed with the same surface state (NV12 and TileY
10115 //! format), except each has its own frame buffer base address. In the tile
10116 //! format, there is no need to provide buffer offset for each slice; since
10117 //! from each MB address, the hardware can calculated the corresponding
10118 //! memory location within the frame buffer directly.
10119 //!
10120 struct MFX_PIPE_BUF_ADDR_STATE_CMD
10121 {
10122 union
10123 {
10124 //!< DWORD 0
10125 struct
10126 {
10127 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
10128 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
10129 uint32_t SubopcodeB : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODE_B
10130 uint32_t SubopcodeA : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODE_A
10131 uint32_t CommonOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< COMMON_OPCODE
10132 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
10133 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
10134 };
10135 uint32_t Value;
10136 } DW0;
10137 union
10138 {
10139 //!< DWORD 1
10140 struct
10141 {
10142 uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10143 uint32_t PreDeblockingDestinationAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Pre Deblocking Destination Address
10144 };
10145 uint32_t Value;
10146 } DW1;
10147 union
10148 {
10149 //!< DWORD 2
10150 struct
10151 {
10152 uint32_t PreDeblockingDestinationAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Pre Deblocking Destination Address High
10153 uint32_t Reserved80 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10154 };
10155 uint32_t Value;
10156 } DW2;
10157 union
10158 {
10159 //!< DWORD 3
10160 struct
10161 {
10162 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10163 uint32_t PreDeblockingArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< PRE_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10164 uint32_t PreDeblockingMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< PRE_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10165 uint32_t PreDeblockingMemoryCompressionType : __CODEGEN_BITFIELD(10, 10) ; //!< Pre Deblocking - Memory Compression Type
10166 uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10167 uint32_t PreDeblockingTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< PRE_DEBLOCKING__TILED_RESOURCE_MODE
10168 uint32_t Reserved111 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10169 };
10170 uint32_t Value;
10171 } DW3;
10172 union
10173 {
10174 //!< DWORD 4
10175 struct
10176 {
10177 uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10178 uint32_t PostDeblockingDestinationAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Post Deblocking Destination Address
10179 };
10180 uint32_t Value;
10181 } DW4;
10182 union
10183 {
10184 //!< DWORD 5
10185 struct
10186 {
10187 uint32_t PostDeblockingDestinationAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Post Deblocking Destination Address High
10188 uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10189 };
10190 uint32_t Value;
10191 } DW5;
10192 union
10193 {
10194 //!< DWORD 6
10195 struct
10196 {
10197 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10198 uint32_t PostDeblockingArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< POST_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10199 uint32_t PostDeblockingMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< POST_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10200 uint32_t PostDeblockingMemoryCompressionType : __CODEGEN_BITFIELD(10, 10) ; //!< POST_DEBLOCKING__MEMORY_COMPRESSION_TYPE
10201 uint32_t Reserved203 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10202 uint32_t PostDeblockingTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< POST_DEBLOCKING__TILED_RESOURCE_MODE
10203 uint32_t Reserved207 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10204 };
10205 uint32_t Value;
10206 } DW6;
10207 union
10208 {
10209 //!< DWORD 7
10210 struct
10211 {
10212 uint32_t Reserved224 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10213 uint32_t OriginalUncompressedPictureSourceAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Original Uncompressed Picture Source Address
10214 };
10215 uint32_t Value;
10216 } DW7;
10217 union
10218 {
10219 //!< DWORD 8
10220 struct
10221 {
10222 uint32_t OriginalUncompressedPictureSourceAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Original Uncompressed Picture Source Address High
10223 uint32_t Reserved272 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10224 };
10225 uint32_t Value;
10226 } DW8;
10227 union
10228 {
10229 //!< DWORD 9
10230 struct
10231 {
10232 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10233 uint32_t OriginalUncompressedPictureSourceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE__ARBITRATION_PRIORITY_CONTROL
10234 uint32_t OriginalUncompressedPictureMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_ENABLE
10235 uint32_t OriginalUncompressedPictureMemoryCompressionType : __CODEGEN_BITFIELD(10, 10) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_TYPE
10236 uint32_t Reserved299 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10237 uint32_t OriginalUncompressedPictureTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< ORIGINAL_UNCOMPRESSED_PICTURE__TILED_RESOURCE_MODE
10238 uint32_t Reserved303 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10239 };
10240 uint32_t Value;
10241 } DW9;
10242 union
10243 {
10244 //!< DWORD 10
10245 struct
10246 {
10247 uint32_t Reserved320 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10248 uint32_t StreamoutDataDestinationBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< StreamOut Data Destination Base Address
10249 };
10250 uint32_t Value;
10251 } DW10;
10252 union
10253 {
10254 //!< DWORD 11
10255 struct
10256 {
10257 uint32_t StreamoutDataDestinationBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< StreamOut Data Destination Base Address High
10258 uint32_t Reserved368 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10259 };
10260 uint32_t Value;
10261 } DW11;
10262 union
10263 {
10264 //!< DWORD 12
10265 struct
10266 {
10267 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10268 uint32_t StreamoutDataDestinationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10269 uint32_t StreamoutDataDestinationMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_ENABLE
10270 uint32_t Reserved394 : __CODEGEN_BITFIELD(10, 10) ; //!< STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_TYPE
10271 uint32_t Reserved395 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10272 uint32_t StreamoutDataDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10273 uint32_t Reserved399 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10274 };
10275 uint32_t Value;
10276 } DW12;
10277 union
10278 {
10279 //!< DWORD 13
10280 struct
10281 {
10282 uint32_t Reserved416 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10283 uint32_t IntraRowStoreScratchBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Intra Row Store Scratch Buffer Base Address
10284 };
10285 uint32_t Value;
10286 } DW13;
10287 union
10288 {
10289 //!< DWORD 14
10290 struct
10291 {
10292 uint32_t IntraRowStoreScratchBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Intra Row Store Scratch Buffer Base Address High
10293 uint32_t Reserved464 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10294 };
10295 uint32_t Value;
10296 } DW14;
10297 union
10298 {
10299 //!< DWORD 15
10300 struct
10301 {
10302 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10303 uint32_t IntraRowStoreScratchBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
10304 uint32_t IntraRowStoreScratchBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_ENABLE
10305 uint32_t Reserved490 : __CODEGEN_BITFIELD(10, 10) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_TYPE
10306 uint32_t Reserved491 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
10307 uint32_t IntraRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10308 uint32_t IntraRowStoreScratchBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< INTRA_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
10309 uint32_t Reserved495 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10310 };
10311 uint32_t Value;
10312 } DW15;
10313 union
10314 {
10315 //!< DWORD 16
10316 struct
10317 {
10318 uint32_t Reserved512 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10319 uint32_t DeblockingFilterRowStoreScratchBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Deblocking Filter Row Store Scratch Base Address
10320 };
10321 uint32_t Value;
10322 } DW16;
10323 union
10324 {
10325 //!< DWORD 17
10326 struct
10327 {
10328 uint32_t DeblockingFilterRowStoreScratchBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Deblocking Filter Row Store Scratch Base Address High
10329 uint32_t Reserved560 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10330 };
10331 uint32_t Value;
10332 } DW17;
10333 union
10334 {
10335 //!< DWORD 18
10336 struct
10337 {
10338 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10339 uint32_t DeblockingFilterRowStoreScratchArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH__ARBITRATION_PRIORITY_CONTROL
10340 uint32_t DeblockingFilterRowStoreScratchMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_ENABLE
10341 uint32_t Reserved586 : __CODEGEN_BITFIELD(10, 10) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_TYPE
10342 uint32_t Reserved587 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved
10343 uint32_t DeblockingFilterRowStoreScratchBufferCacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10344 uint32_t DeblockingFilterRowStoreTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DEBLOCKING_FILTER_ROW_STORE__TILED_RESOURCE_MODE
10345 uint32_t Reserved591 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10346 };
10347 uint32_t Value;
10348 } DW18;
10349
10350 mhw_vdbox_mfx_g12_X::GRAPHICSADDRESS63_6_CMD Refpicbaseaddr[16]; //!< RefPicBaseAddr
10351
10352 union
10353 {
10354 //!< DWORD 51
10355 struct
10356 {
10357 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10358 uint32_t ReferencePictureArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< REFERENCE_PICTURE__ARBITRATION_PRIORITY_CONTROL
10359 uint32_t Reserved1641 : __CODEGEN_BITFIELD( 9, 12) ; //!< Reserved
10360 uint32_t ReferencePictureTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< REFERENCE_PICTURE__TILED_RESOURCE_MODE
10361 uint32_t Reserved1647 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10362 };
10363 uint32_t Value;
10364 } DW51;
10365 union
10366 {
10367 //!< DWORD 52
10368 struct
10369 {
10370 uint32_t Reserved1664 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10371 uint32_t MacroblockBufferBaseAddressOrDecodedPictureErrorStatusBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Macroblock Buffer Base Address or Decoded Picture Error/Status Buffer Base Address
10372 };
10373 uint32_t Value;
10374 } DW52;
10375 union
10376 {
10377 //!< DWORD 53
10378 struct
10379 {
10380 uint32_t MacroblockBufferBaseAddressOrDecodedPictureErrorStatusBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Macroblock Buffer Base Address or Decoded Picture Error/Status Buffer Base Address High
10381 uint32_t Reserved1712 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10382 };
10383 uint32_t Value;
10384 } DW53;
10385 union
10386 {
10387 //!< DWORD 54
10388 struct
10389 {
10390 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10391 uint32_t MacroblockStatusBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MACROBLOCK_STATUS_BUFFER__ARBITRATION_PRIORITY_CONTROL
10392 uint32_t MacroblockStatusBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_ENABLE
10393 uint32_t Reserved1738 : __CODEGEN_BITFIELD(10, 10) ; //!< MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_MODE
10394 uint32_t Reserved1739 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10395 uint32_t MacroblockStatusBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MACROBLOCK_STATUS_BUFFER__TILED_RESOURCE_MODE
10396 uint32_t Reserved1743 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10397 };
10398 uint32_t Value;
10399 } DW54;
10400 union
10401 {
10402 //!< DWORD 55
10403 struct
10404 {
10405 uint32_t Reserved1760 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10406 uint32_t MacroblockIldbStreamoutBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Macroblock ILDB StreamOut Buffer Base Address
10407 };
10408 uint32_t Value;
10409 } DW55;
10410 union
10411 {
10412 //!< DWORD 56
10413 struct
10414 {
10415 uint32_t MacroblockIldbStreamoutBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Macroblock ILDB StreamOut Buffer Base Address High
10416 uint32_t Reserved1808 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10417 };
10418 uint32_t Value;
10419 } DW56;
10420 union
10421 {
10422 //!< DWORD 57
10423 struct
10424 {
10425 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10426 uint32_t MacroblockIldbStreamoutBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< MACROBLOCK_ILDB_STREAMOUT_BUFFER__ARBITRATION_PRIORITY_CONTROL
10427 uint32_t MacroblockIldbStreamoutBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10428 uint32_t Reserved1834 : __CODEGEN_BITFIELD(10, 10) ; //!< MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10429 uint32_t Reserved1835 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10430 uint32_t MacroblockIldbStreamoutTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< MACROBLOCK_ILDB_STREAMOUT__TILED_RESOURCE_MODE
10431 uint32_t Reserved1839 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10432 };
10433 uint32_t Value;
10434 } DW57;
10435 union
10436 {
10437 //!< DWORD 58
10438 struct
10439 {
10440 uint32_t Reserved1856 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10441 uint32_t SecondMacroblockIldbStreamoutBufferBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Second Macroblock ILDB StreamOut Buffer Base Address
10442 };
10443 uint32_t Value;
10444 } DW58;
10445 union
10446 {
10447 //!< DWORD 59
10448 struct
10449 {
10450 uint32_t SecondMacroblockIldbStreamoutBufferBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Second Macroblock ILDB StreamOut Buffer Base Address High
10451 uint32_t Reserved1904 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10452 };
10453 uint32_t Value;
10454 } DW59;
10455 union
10456 {
10457 //!< DWORD 60
10458 struct
10459 {
10460 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
10461 uint32_t SecondMacroblockIldbStreamoutBufferArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< Second Macroblock ILDB StreamOut Buffer - Arbitration Priority Control
10462 uint32_t SecondMacroblockIldbStreamoutBufferMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10463 uint32_t Reserved1930 : __CODEGEN_BITFIELD(10, 10) ; //!< SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10464 uint32_t Reserved1931 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10465 uint32_t SecondMacroblockIldbStreamoutBufferTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__TILED_RESOURCE_MODE
10466 uint32_t Reserved1935 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10467 };
10468 uint32_t Value;
10469 } DW60;
10470 union
10471 {
10472 //!< DWORD 61
10473 struct
10474 {
10475 uint32_t ReferencePicture0MemoryCompressionEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< REFERENCE_PICTURE_0__MEMORY_COMPRESSION_ENABLE
10476 uint32_t ReferencePicture0MemoryCompressionType : __CODEGEN_BITFIELD( 1, 1) ; //!< REFERENCE_PICTURE_0__MEMORY_COMPRESSION_MODE
10477 uint32_t ReferencePicture1MemoryCompressionEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< REFERENCE_PICTURE_1__MEMORY_COMPRESSION_ENABLE
10478 uint32_t ReferencePicture1MemoryCompressionType : __CODEGEN_BITFIELD( 3, 3) ; //!< REFERENCE_PICTURE_1__MEMORY_COMPRESSION_MODE
10479 uint32_t ReferencePicture2MemoryCompressionEnable : __CODEGEN_BITFIELD( 4, 4) ; //!< REFERENCE_PICTURE_2__MEMORY_COMPRESSION_ENABLE
10480 uint32_t ReferencePicture2MemoryCompressionType : __CODEGEN_BITFIELD( 5, 5) ; //!< REFERENCE_PICTURE_2__MEMORY_COMPRESSION_MODE
10481 uint32_t ReferencePicture3MemoryCompressionEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< REFERENCE_PICTURE_3__MEMORY_COMPRESSION_ENABLE
10482 uint32_t ReferencePicture3MemoryCompressionType : __CODEGEN_BITFIELD( 7, 7) ; //!< REFERENCE_PICTURE_3__MEMORY_COMPRESSION_MODE
10483 uint32_t ReferencePicture4MemoryCompressionEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< REFERENCE_PICTURE_4__MEMORY_COMPRESSION_ENABLE
10484 uint32_t ReferencePicture4MemoryCompressionType : __CODEGEN_BITFIELD( 9, 9) ; //!< REFERENCE_PICTURE_4__MEMORY_COMPRESSION_MODE
10485 uint32_t ReferencePicture5MemoryCompressionEnable : __CODEGEN_BITFIELD(10, 10) ; //!< REFERENCE_PICTURE_5__MEMORY_COMPRESSION_ENABLE
10486 uint32_t ReferencePicture5MemoryCompressionType : __CODEGEN_BITFIELD(11, 11) ; //!< REFERENCE_PICTURE_5__MEMORY_COMPRESSION_MODE
10487 uint32_t ReferencePicture6MemoryCompressionEnable : __CODEGEN_BITFIELD(12, 12) ; //!< REFERENCE_PICTURE_6__MEMORY_COMPRESSION_ENABLE
10488 uint32_t ReferencePicture6MemoryCompressionType : __CODEGEN_BITFIELD(13, 13) ; //!< REFERENCE_PICTURE_6__MEMORY_COMPRESSION_MODE
10489 uint32_t ReferencePicture7MemoryCompressionEnable : __CODEGEN_BITFIELD(14, 14) ; //!< REFERENCE_PICTURE_7__MEMORY_COMPRESSION_ENABLE
10490 uint32_t ReferencePicture7MemoryCompressionType : __CODEGEN_BITFIELD(15, 15) ; //!< REFERENCE_PICTURE_7__MEMORY_COMPRESSION_MODE
10491 uint32_t ReferencePicture8MemoryCompressionEnable : __CODEGEN_BITFIELD(16, 16) ; //!< REFERENCE_PICTURE_8__MEMORY_COMPRESSION_ENABLE
10492 uint32_t ReferencePicture8MemoryCompressionType : __CODEGEN_BITFIELD(17, 17) ; //!< REFERENCE_PICTURE_8__MEMORY_COMPRESSION_MODE
10493 uint32_t ReferencePicture9MemoryCompressionEnable : __CODEGEN_BITFIELD(18, 18) ; //!< REFERENCE_PICTURE_9__MEMORY_COMPRESSION_ENABLE
10494 uint32_t ReferencePicture9MemoryCompressionType : __CODEGEN_BITFIELD(19, 19) ; //!< REFERENCE_PICTURE_9__MEMORY_COMPRESSION_MODE
10495 uint32_t ReferencePicture10MemoryCompressionEnable : __CODEGEN_BITFIELD(20, 20) ; //!< REFERENCE_PICTURE_10__MEMORY_COMPRESSION_ENABLE
10496 uint32_t ReferencePicture10MemoryCompressionType : __CODEGEN_BITFIELD(21, 21) ; //!< REFERENCE_PICTURE_10__MEMORY_COMPRESSION_MODE
10497 uint32_t ReferencePicture11MemoryCompressionEnable : __CODEGEN_BITFIELD(22, 22) ; //!< REFERENCE_PICTURE_11__MEMORY_COMPRESSION_ENABLE
10498 uint32_t ReferencePicture11MemoryCompressionType : __CODEGEN_BITFIELD(23, 23) ; //!< REFERENCE_PICTURE_11__MEMORY_COMPRESSION_MODE
10499 uint32_t ReferencePicture12MemoryCompressionEnable : __CODEGEN_BITFIELD(24, 24) ; //!< REFERENCE_PICTURE_12__MEMORY_COMPRESSION_ENABLE
10500 uint32_t ReferencePicture12MemoryCompressionType : __CODEGEN_BITFIELD(25, 25) ; //!< REFERENCE_PICTURE_12__MEMORY_COMPRESSION_MODE
10501 uint32_t ReferencePicture13MemoryCompressionEnable : __CODEGEN_BITFIELD(26, 26) ; //!< REFERENCE_PICTURE_13__MEMORY_COMPRESSION_ENABLE
10502 uint32_t ReferencePicture13MemoryCompressionType : __CODEGEN_BITFIELD(27, 27) ; //!< REFERENCE_PICTURE_13__MEMORY_COMPRESSION_MODE
10503 uint32_t ReferencePicture14MemoryCompressionEnable : __CODEGEN_BITFIELD(28, 28) ; //!< REFERENCE_PICTURE_14__MEMORY_COMPRESSION_ENABLE
10504 uint32_t ReferencePicture14MemoryCompressionType : __CODEGEN_BITFIELD(29, 29) ; //!< REFERENCE_PICTURE_14__MEMORY_COMPRESSION_MODE
10505 uint32_t ReferencePicture15MemoryCompressionEnable : __CODEGEN_BITFIELD(30, 30) ; //!< REFERENCE_PICTURE_15__MEMORY_COMPRESSION_ENABLE
10506 uint32_t ReferencePicture15MemoryCompressionType : __CODEGEN_BITFIELD(31, 31) ; //!< REFERENCE_PICTURE_15__MEMORY_COMPRESSION_MODE
10507 };
10508 uint32_t Value;
10509 } DW61;
10510 union
10511 {
10512 //!< DWORD 62
10513 struct
10514 {
10515 uint32_t Reserved1984 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10516 uint32_t ScaledReferenceSurfaceBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< Scaled Reference Surface Base Address
10517 };
10518 uint32_t Value;
10519 } DW62;
10520 union
10521 {
10522 //!< DWORD 63
10523 struct
10524 {
10525 uint32_t ScaledReferenceSurfaceBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< Scaled Reference Surface Base Address High
10526 uint32_t Reserved2032 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10527 };
10528 uint32_t Value;
10529 } DW63;
10530 union
10531 {
10532 //!< DWORD 64
10533 struct
10534 {
10535 uint32_t Reserved2048 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
10536 uint32_t ScaledReferenceSurfaceIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< Scaled Reference Surface - Index to Memory Object Control State (MOCS) Tables
10537 uint32_t ScaleReferenceSurfaceArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SCALE_REFERENCE_SURFACE__ARBITRATION_PRIORITY_CONTROL
10538 uint32_t ScaledReferenceSurfaceMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Scaled Reference Surface - Memory Compression Enable
10539 uint32_t ScaledReferenceSurfaceMemoryCompressionType : __CODEGEN_BITFIELD(10, 10) ; //!< SCALED_REFERENCE_SURFACE__MEMORY_COMPRESSION_MODE
10540 uint32_t Reserved2059 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10541 uint32_t ScaledReferenceSurfaceTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SCALED_REFERENCE_SURFACE__TILED_RESOURCE_MODE
10542 uint32_t Reserved2063 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10543 };
10544 uint32_t Value;
10545 } DW64;
10546 union
10547 {
10548 //!< DWORD 65
10549 struct
10550 {
10551 uint32_t Reserved2080 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved
10552 uint32_t SlicesizeStreamoutDataDestinationBaseAddress : __CODEGEN_BITFIELD( 6, 31) ; //!< SliceSize StreamOut Data Destination Base Address
10553 };
10554 uint32_t Value;
10555 } DW65;
10556 union
10557 {
10558 //!< DWORD 66
10559 struct
10560 {
10561 uint32_t SlicesizeStreamoutDataDestinationBaseAddressHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< SliceSize StreamOut Data Destination Base Address High
10562 uint32_t Reserved2128 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved
10563 };
10564 uint32_t Value;
10565 } DW66;
10566 union
10567 {
10568 //!< DWORD 67
10569 struct
10570 {
10571 uint32_t Reserved2144 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved
10572 uint32_t SlicesizeStreamoutDataDestinationIndexToMemoryObjectControlStateMocsTables : __CODEGEN_BITFIELD( 1, 6) ; //!< SliceSize StreamOut Data Destination - Index to Memory Object Control State (MOCS) Tables
10573 uint32_t SlicesizeStreamoutDataDestinationArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< SLICESIZE_STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10574 uint32_t SlicesizeStreamoutDataDestinationMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< SliceSize StreamOut Data Destination - Memory Compression Enable
10575 uint32_t Reserved2154 : __CODEGEN_BITFIELD(10, 10) ; //!< SLICESIZE_STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10576 uint32_t Reserved2155 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
10577 uint32_t SlicesizeStreamoutDataDestinationTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< SLICESIZE_STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10578 uint32_t Reserved2159 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
10579 };
10580 uint32_t Value;
10581 } DW67;
10582
10583 //! \name Local enumerations
10584
10585 enum SUBOPCODE_B
10586 {
10587 SUBOPCODE_B_UNNAMED2 = 2, //!< No additional details
10588 };
10589
10590 enum SUBOPCODE_A
10591 {
10592 SUBOPCODE_A_UNNAMED0 = 0, //!< No additional details
10593 };
10594
10595 enum COMMON_OPCODE
10596 {
10597 COMMON_OPCODE_MFXCOMMONSTATE = 0, //!< No additional details
10598 };
10599
10600 enum PIPELINE
10601 {
10602 PIPELINE_MFXPIPEBUFADDRSTATE = 2, //!< No additional details
10603 };
10604
10605 enum COMMAND_TYPE
10606 {
10607 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
10608 };
10609
10610 //! \brief PRE_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10611 //! \details
10612 //! This field controls the priority of arbitration used in the GAC/GAM
10613 //! pipeline for this surface.
10614 enum PRE_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10615 {
10616 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10617 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10618 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10619 PRE_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10620 };
10621
10622 //! \brief PRE_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10623 //! \details
10624 //! Memory compression will be attempted for this surface.
10625 enum PRE_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10626 {
10627 PRE_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10628 PRE_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
10629 };
10630
10631 //! \brief PRE_DEBLOCKING__TILED_RESOURCE_MODE
10632 //! \details
10633 //! <b>For Media Surfaces:</b>
10634 //! This field specifies the tiled resource mode.
10635 enum PRE_DEBLOCKING__TILED_RESOURCE_MODE
10636 {
10637 PRE_DEBLOCKING_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10638 PRE_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10639 PRE_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10640 };
10641
10642 //! \brief POST_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10643 //! \details
10644 //! This field controls the priority of arbitration used in the GAC/GAM
10645 //! pipeline for this surface.
10646 enum POST_DEBLOCKING__ARBITRATION_PRIORITY_CONTROL
10647 {
10648 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10649 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10650 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10651 POST_DEBLOCKING_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10652 };
10653
10654 //! \brief POST_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10655 //! \details
10656 //! Memory compression will be attempted for this surface.
10657 enum POST_DEBLOCKING__MEMORY_COMPRESSION_ENABLE
10658 {
10659 POST_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10660 POST_DEBLOCKING_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
10661 };
10662
10663 //! \brief POST_DEBLOCKING__MEMORY_COMPRESSION_MODE
10664 //! \details
10665 //! Distinguishes Vertical from Horizontal compression. Please refer to
10666 //! vol1a <b>Memory Data Formats chapter -section</b> Media Memory
10667 //! Compression <b>for more details.</b>
10668 enum POST_DEBLOCKING__MEMORY_COMPRESSION_MODE
10669 {
10670 POST_DEBLOCKING_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10671 };
10672
10673 //! \brief POST_DEBLOCKING__TILED_RESOURCE_MODE
10674 //! \details
10675 //! <b>For Media Surfaces:</b>
10676 //! This field specifies the tiled resource mode.
10677 enum POST_DEBLOCKING__TILED_RESOURCE_MODE
10678 {
10679 POST_DEBLOCKING_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10680 POST_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10681 POST_DEBLOCKING_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10682 };
10683
10684 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE__ARBITRATION_PRIORITY_CONTROL
10685 //! \details
10686 //! This field controls the priority of arbitration used in the GAC/GAM
10687 //! pipeline for this surface.
10688 enum ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE__ARBITRATION_PRIORITY_CONTROL
10689 {
10690 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10691 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10692 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10693 ORIGINAL_UNCOMPRESSED_PICTURE_SOURCE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10694 };
10695
10696 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_ENABLE
10697 //! \details
10698 //! Note: This is a READ Surface. The setting of this bit should match the
10699 //! settings on how this is written out before.
10700 enum ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_ENABLE
10701 {
10702 ORIGINAL_UNCOMPRESSED_PICTURE_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10703 };
10704
10705 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_MODE
10706 //! \details
10707 //! Distinguishes Vertical from Horizontal compression. Please refer to
10708 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10709 //! more details. Note: This bit is not used unless Memory Compression
10710 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10711 //! bit should match the settings on how this is written out before
10712 enum ORIGINAL_UNCOMPRESSED_PICTURE__MEMORY_COMPRESSION_MODE
10713 {
10714 ORIGINAL_UNCOMPRESSED_PICTURE_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10715 ORIGINAL_UNCOMPRESSED_PICTURE_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10716 };
10717
10718 //! \brief ORIGINAL_UNCOMPRESSED_PICTURE__TILED_RESOURCE_MODE
10719 //! \details
10720 //! <b>For Media Surfaces:</b>
10721 //! This field specifies the tiled resource mode.
10722 enum ORIGINAL_UNCOMPRESSED_PICTURE__TILED_RESOURCE_MODE
10723 {
10724 ORIGINAL_UNCOMPRESSED_PICTURE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10725 ORIGINAL_UNCOMPRESSED_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10726 ORIGINAL_UNCOMPRESSED_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10727 };
10728
10729 //! \brief STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10730 //! \details
10731 //! This field controls the priority of arbitration used in the GAC/GAM
10732 //! pipeline for this surface.
10733 enum STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
10734 {
10735 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10736 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10737 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10738 STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10739 };
10740
10741 //! \brief STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_ENABLE
10742 //! \details
10743 //! Note: This is a READ Surface. The setting of this bit should match the
10744 //! settings on how this is written out before.
10745 enum STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_ENABLE
10746 {
10747 STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10748 };
10749
10750 //! \brief STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10751 //! \details
10752 //! Distinguishes Vertical from Horizontal compression. Please refer to
10753 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10754 //! more details. Note: This bit is not used unless Memory Compression
10755 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10756 //! bit should match the settings on how this is written out before
10757 enum STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
10758 {
10759 STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10760 STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10761 };
10762
10763 //! \brief STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10764 //! \details
10765 //! <b>For Media Surfaces:</b>
10766 //! This field specifies the tiled resource mode.
10767 enum STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
10768 {
10769 STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10770 STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10771 STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10772 };
10773
10774 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
10775 //! \details
10776 //! This field controls the priority of arbitration used in the GAC/GAM
10777 //! pipeline for this surface.
10778 enum INTRA_ROW_STORE_SCRATCH_BUFFER__ARBITRATION_PRIORITY_CONTROL
10779 {
10780 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10781 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10782 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10783 INTRA_ROW_STORE_SCRATCH_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10784 };
10785
10786 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_ENABLE
10787 //! \details
10788 //! This surface is linear surface. This bit must be set to "0" since only
10789 //! TileY/TileYf/TileYs surface is allowed to be compressed
10790 enum INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_ENABLE
10791 {
10792 INTRA_ROW_STORE_SCRATCH_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10793 };
10794
10795 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_MODE
10796 //! \details
10797 //! Distinguishes Vertical from Horizontal compression. Please refer to
10798 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10799 //! more details. Note: This bit is not used unless Memory Compression
10800 //! Enable is set to "1"
10801 enum INTRA_ROW_STORE_SCRATCH_BUFFER__MEMORY_COMPRESSION_MODE
10802 {
10803 INTRA_ROW_STORE_SCRATCH_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10804 INTRA_ROW_STORE_SCRATCH_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10805 };
10806
10807 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10808 //! \details
10809 //! This field controls if Intra Row Store is going to store inside Media
10810 //! Cache or to LLC.
10811 enum INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10812 {
10813 INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC.
10814 INTRA_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage
10815 };
10816
10817 //! \brief INTRA_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
10818 //! \details
10819 //! <b>For Media Surfaces:</b>
10820 //! This field specifies the tiled resource mode.
10821 enum INTRA_ROW_STORE_SCRATCH_BUFFER__TILED_RESOURCE_MODE
10822 {
10823 INTRA_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10824 INTRA_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10825 INTRA_ROW_STORE_SCRATCH_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10826 };
10827
10828 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH__ARBITRATION_PRIORITY_CONTROL
10829 //! \details
10830 //! This field controls the priority of arbitration used in the GAC/GAM
10831 //! pipeline for this surface.
10832 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH__ARBITRATION_PRIORITY_CONTROL
10833 {
10834 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10835 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10836 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10837 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10838 };
10839
10840 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_ENABLE
10841 //! \details
10842 //! This surface is linear surface. This bit must be set to "0" since only
10843 //! TileY/TileYf/TileYs surface is allowed to be compressed
10844 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_ENABLE
10845 {
10846 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10847 };
10848
10849 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_MODE
10850 //! \details
10851 //! Distinguishes Vertical from Horizontal compression. Please refer to
10852 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10853 //! more details. Note: This bit is not used unless Memory Compression
10854 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10855 //! bit should match the settings on how this is written out before.
10856 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH__MEMORY_COMPRESSION_MODE
10857 {
10858 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10859 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10860 };
10861
10862 //! \brief DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10863 //! \details
10864 //! This field controls if Intra Row Store is going to store inside Media
10865 //! Internal Storage or to LLC.
10866 enum DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT
10867 {
10868 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC
10869 DEBLOCKING_FILTER_ROW_STORE_SCRATCH_BUFFER_CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Media Internal Storage
10870 };
10871
10872 //! \brief DEBLOCKING_FILTER_ROW_STORE__TILED_RESOURCE_MODE
10873 //! \details
10874 //! <b>For Media Surfaces:</b>
10875 //! This field specifies the tiled resource mode.
10876 enum DEBLOCKING_FILTER_ROW_STORE__TILED_RESOURCE_MODE
10877 {
10878 DEBLOCKING_FILTER_ROW_STORE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10879 DEBLOCKING_FILTER_ROW_STORE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10880 DEBLOCKING_FILTER_ROW_STORE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10881 };
10882
10883 //! \brief REFERENCE_PICTURE__ARBITRATION_PRIORITY_CONTROL
10884 //! \details
10885 //! This field controls the priority of arbitration used in the GAC/GAM
10886 //! pipeline for this surface.
10887 enum REFERENCE_PICTURE__ARBITRATION_PRIORITY_CONTROL
10888 {
10889 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10890 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10891 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10892 REFERENCE_PICTURE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10893 };
10894
10895 //! \brief REFERENCE_PICTURE__TILED_RESOURCE_MODE
10896 //! \details
10897 //! <b>For Media Surfaces:</b>
10898 //! This field specifies the tiled resource mode.
10899 enum REFERENCE_PICTURE__TILED_RESOURCE_MODE
10900 {
10901 REFERENCE_PICTURE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10902 REFERENCE_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10903 REFERENCE_PICTURE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10904 };
10905
10906 //! \brief MACROBLOCK_STATUS_BUFFER__ARBITRATION_PRIORITY_CONTROL
10907 //! \details
10908 //! This field controls the priority of arbitration used in the GAC/GAM
10909 //! pipeline for this surface.
10910 enum MACROBLOCK_STATUS_BUFFER__ARBITRATION_PRIORITY_CONTROL
10911 {
10912 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10913 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10914 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10915 MACROBLOCK_STATUS_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10916 };
10917
10918 //! \brief MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_ENABLE
10919 //! \details
10920 //! This surface is linear surface. This bit must be set to "0" since only
10921 //! TileY/TileYf/TileYs surface is allowed to be compressed
10922 enum MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_ENABLE
10923 {
10924 MACROBLOCK_STATUS_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10925 };
10926
10927 //! \brief MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_MODE
10928 //! \details
10929 //! Distinguishes Vertical from Horizontal compression. Please refer to
10930 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10931 //! more details. Note: This bit is not used unless Memory Compression
10932 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10933 //! bit should match the settings on how this is written out before.
10934 enum MACROBLOCK_STATUS_BUFFER__MEMORY_COMPRESSION_MODE
10935 {
10936 MACROBLOCK_STATUS_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10937 MACROBLOCK_STATUS_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10938 };
10939
10940 //! \brief MACROBLOCK_STATUS_BUFFER__TILED_RESOURCE_MODE
10941 //! \details
10942 //! <b>For Media Surfaces:</b>
10943 //! This field specifies the tiled resource mode.
10944 enum MACROBLOCK_STATUS_BUFFER__TILED_RESOURCE_MODE
10945 {
10946 MACROBLOCK_STATUS_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10947 MACROBLOCK_STATUS_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10948 MACROBLOCK_STATUS_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10949 };
10950
10951 //! \brief MACROBLOCK_ILDB_STREAMOUT_BUFFER__ARBITRATION_PRIORITY_CONTROL
10952 //! \details
10953 //! This field controls the priority of arbitration used in the GAC/GAM
10954 //! pipeline for this surface.
10955 enum MACROBLOCK_ILDB_STREAMOUT_BUFFER__ARBITRATION_PRIORITY_CONTROL
10956 {
10957 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
10958 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
10959 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
10960 MACROBLOCK_ILDB_STREAMOUT_BUFFER_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
10961 };
10962
10963 //! \brief MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10964 //! \details
10965 //! This surface is linear surface. This bit must be set to "0" since only
10966 //! TileY/TileYf/TileYs surface is allowed to be compressed
10967 enum MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10968 {
10969 MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
10970 };
10971
10972 //! \brief MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10973 //! \details
10974 //! Distinguishes Vertical from Horizontal compression. Please refer to
10975 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
10976 //! more details. Note: This bit is not used unless Memory Compression
10977 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
10978 //! bit should match the settings on how this is written out before.
10979 enum MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
10980 {
10981 MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
10982 MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
10983 };
10984
10985 //! \brief MACROBLOCK_ILDB_STREAMOUT__TILED_RESOURCE_MODE
10986 //! \details
10987 //! <b>For Media Surfaces:</b>
10988 //! This field specifies the tiled resource mode.
10989 enum MACROBLOCK_ILDB_STREAMOUT__TILED_RESOURCE_MODE
10990 {
10991 MACROBLOCK_ILDB_STREAMOUT_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
10992 MACROBLOCK_ILDB_STREAMOUT_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
10993 MACROBLOCK_ILDB_STREAMOUT_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
10994 };
10995
10996 //! \brief SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
10997 //! \details
10998 //! This surface is linear surface. This bit must be set to "0" since only
10999 //! TileY/TileYf/TileYs surface is allowed to be compressed
11000 enum SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_ENABLE
11001 {
11002 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11003 };
11004
11005 //! \brief SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
11006 //! \details
11007 //! Distinguishes Vertical from Horizontal compression. Please refer to
11008 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11009 //! more details. Note: This bit is not used unless Memory Compression
11010 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11011 //! bit should match the settings on how this is written out before.
11012 enum SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__MEMORY_COMPRESSION_MODE
11013 {
11014 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11015 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11016 };
11017
11018 //! \brief SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__TILED_RESOURCE_MODE
11019 //! \details
11020 //! <b>For Media Surfaces:</b>
11021 //! This field specifies the tiled resource mode.
11022 enum SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER__TILED_RESOURCE_MODE
11023 {
11024 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11025 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
11026 SECOND_MACROBLOCK_ILDB_STREAMOUT_BUFFER_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
11027 };
11028
11029 enum REFERENCE_PICTURE_0__MEMORY_COMPRESSION_ENABLE
11030 {
11031 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11032 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11033 };
11034
11035 //! \brief REFERENCE_PICTURE_0__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_0__MEMORY_COMPRESSION_MODE
11043 {
11044 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11045 REFERENCE_PICTURE_0_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11046 };
11047
11048 enum REFERENCE_PICTURE_1__MEMORY_COMPRESSION_ENABLE
11049 {
11050 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11051 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11052 };
11053
11054 //! \brief REFERENCE_PICTURE_1__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_1__MEMORY_COMPRESSION_MODE
11062 {
11063 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11064 REFERENCE_PICTURE_1_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11065 };
11066
11067 enum REFERENCE_PICTURE_2__MEMORY_COMPRESSION_ENABLE
11068 {
11069 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11070 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11071 };
11072
11073 //! \brief REFERENCE_PICTURE_2__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_2__MEMORY_COMPRESSION_MODE
11081 {
11082 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11083 REFERENCE_PICTURE_2_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11084 };
11085
11086 enum REFERENCE_PICTURE_3__MEMORY_COMPRESSION_ENABLE
11087 {
11088 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11089 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11090 };
11091
11092 //! \brief REFERENCE_PICTURE_3__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_3__MEMORY_COMPRESSION_MODE
11100 {
11101 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11102 REFERENCE_PICTURE_3_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11103 };
11104
11105 enum REFERENCE_PICTURE_4__MEMORY_COMPRESSION_ENABLE
11106 {
11107 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11108 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11109 };
11110
11111 //! \brief REFERENCE_PICTURE_4__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_4__MEMORY_COMPRESSION_MODE
11119 {
11120 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11121 REFERENCE_PICTURE_4_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11122 };
11123
11124 enum REFERENCE_PICTURE_5__MEMORY_COMPRESSION_ENABLE
11125 {
11126 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11127 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11128 };
11129
11130 //! \brief REFERENCE_PICTURE_5__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_5__MEMORY_COMPRESSION_MODE
11138 {
11139 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11140 REFERENCE_PICTURE_5_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11141 };
11142
11143 enum REFERENCE_PICTURE_6__MEMORY_COMPRESSION_ENABLE
11144 {
11145 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11146 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11147 };
11148
11149 //! \brief REFERENCE_PICTURE_6__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_6__MEMORY_COMPRESSION_MODE
11157 {
11158 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11159 REFERENCE_PICTURE_6_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11160 };
11161
11162 enum REFERENCE_PICTURE_7__MEMORY_COMPRESSION_ENABLE
11163 {
11164 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11165 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11166 };
11167
11168 //! \brief REFERENCE_PICTURE_7__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_7__MEMORY_COMPRESSION_MODE
11176 {
11177 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11178 REFERENCE_PICTURE_7_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11179 };
11180
11181 enum REFERENCE_PICTURE_8__MEMORY_COMPRESSION_ENABLE
11182 {
11183 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11184 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11185 };
11186
11187 //! \brief REFERENCE_PICTURE_8__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_8__MEMORY_COMPRESSION_MODE
11195 {
11196 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11197 REFERENCE_PICTURE_8_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11198 };
11199
11200 enum REFERENCE_PICTURE_9__MEMORY_COMPRESSION_ENABLE
11201 {
11202 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11203 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11204 };
11205
11206 //! \brief REFERENCE_PICTURE_9__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_9__MEMORY_COMPRESSION_MODE
11214 {
11215 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11216 REFERENCE_PICTURE_9_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11217 };
11218
11219 enum REFERENCE_PICTURE_10__MEMORY_COMPRESSION_ENABLE
11220 {
11221 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11222 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11223 };
11224
11225 //! \brief REFERENCE_PICTURE_10__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. Note: This bit is not used unless Memory Compression
11230 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11231 //! bit should match the settings on how this is written out before.
11232 enum REFERENCE_PICTURE_10__MEMORY_COMPRESSION_MODE
11233 {
11234 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11235 REFERENCE_PICTURE_10_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11236 };
11237
11238 enum REFERENCE_PICTURE_11__MEMORY_COMPRESSION_ENABLE
11239 {
11240 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11241 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11242 };
11243
11244 //! \brief REFERENCE_PICTURE_11__MEMORY_COMPRESSION_MODE
11245 //! \details
11246 //! Distinguishes Vertical from Horizontal compression. Please refer to
11247 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11248 //! more details.
11249 //! Note: This bit is not used unless Memory Compression Enable is set
11250 //! to "1"
11251 //! Note: This is a READ Surface. The setting of this bit should
11252 //! match the settings on how this is written out before.
11253 enum REFERENCE_PICTURE_11__MEMORY_COMPRESSION_MODE
11254 {
11255 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11256 REFERENCE_PICTURE_11_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11257 };
11258
11259 enum REFERENCE_PICTURE_12__MEMORY_COMPRESSION_ENABLE
11260 {
11261 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11262 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11263 };
11264
11265 //! \brief REFERENCE_PICTURE_12__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_12__MEMORY_COMPRESSION_MODE
11273 {
11274 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11275 REFERENCE_PICTURE_12_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11276 };
11277
11278 enum REFERENCE_PICTURE_13__MEMORY_COMPRESSION_ENABLE
11279 {
11280 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11281 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11282 };
11283
11284 //! \brief REFERENCE_PICTURE_13__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_13__MEMORY_COMPRESSION_MODE
11292 {
11293 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11294 REFERENCE_PICTURE_13_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11295 };
11296
11297 enum REFERENCE_PICTURE_14__MEMORY_COMPRESSION_ENABLE
11298 {
11299 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11300 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11301 };
11302
11303 //! \brief REFERENCE_PICTURE_14__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_14__MEMORY_COMPRESSION_MODE
11311 {
11312 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11313 REFERENCE_PICTURE_14_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11314 };
11315
11316 enum REFERENCE_PICTURE_15__MEMORY_COMPRESSION_ENABLE
11317 {
11318 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11319 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_ENABLE_COMPRESSIONENABLE = 1, //!< No additional details
11320 };
11321
11322 //! \brief REFERENCE_PICTURE_15__MEMORY_COMPRESSION_MODE
11323 //! \details
11324 //! Distinguishes Vertical from Horizontal compression. Please refer to
11325 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11326 //! more details. Note: This bit is not used unless Memory Compression
11327 //! Enable is set to "1" Note: This is a READ Surface. The setting of this
11328 //! bit should match the settings on how this is written out before.
11329 enum REFERENCE_PICTURE_15__MEMORY_COMPRESSION_MODE
11330 {
11331 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11332 REFERENCE_PICTURE_15_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11333 };
11334
11335 //! \brief SCALE_REFERENCE_SURFACE__ARBITRATION_PRIORITY_CONTROL
11336 //! \details
11337 //! This field controls the priority of arbitration used in the GAC/GAM
11338 //! pipeline for this surface.
11339 enum SCALE_REFERENCE_SURFACE__ARBITRATION_PRIORITY_CONTROL
11340 {
11341 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11342 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11343 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11344 SCALE_REFERENCE_SURFACE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11345 };
11346
11347 //! \brief SCALED_REFERENCE_SURFACE__MEMORY_COMPRESSION_MODE
11348 //! \details
11349 //! Distinguishes Vertical from Horizontal compression. Please refer to
11350 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11351 //! more details.
11352 enum SCALED_REFERENCE_SURFACE__MEMORY_COMPRESSION_MODE
11353 {
11354 SCALED_REFERENCE_SURFACE_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11355 SCALED_REFERENCE_SURFACE_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11356 };
11357
11358 //! \brief SCALED_REFERENCE_SURFACE__TILED_RESOURCE_MODE
11359 //! \details
11360 //! For Media Surfaces:
11361 //! This field specifies the tiled resource mode
11362 enum SCALED_REFERENCE_SURFACE__TILED_RESOURCE_MODE
11363 {
11364 SCALED_REFERENCE_SURFACE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11365 SCALED_REFERENCE_SURFACE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< No tiled resource
11366 SCALED_REFERENCE_SURFACE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< No tiled resource
11367 };
11368
11369 //! \brief SLICESIZE_STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
11370 //! \details
11371 //! This field controls the priority of arbitration used in the GAC/GAM
11372 //! pipeline for this surface.
11373 enum SLICESIZE_STREAMOUT_DATA_DESTINATION__ARBITRATION_PRIORITY_CONTROL
11374 {
11375 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11376 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11377 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11378 SLICESIZE_STREAMOUT_DATA_DESTINATION_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11379 };
11380
11381 //! \brief SLICESIZE_STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
11382 //! \details
11383 //! Distinguishes Vertical from Horizontal compression. Please refer to
11384 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11385 //! more details.
11386 enum SLICESIZE_STREAMOUT_DATA_DESTINATION__MEMORY_COMPRESSION_MODE
11387 {
11388 SLICESIZE_STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11389 SLICESIZE_STREAMOUT_DATA_DESTINATION_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11390 };
11391
11392 //! \brief SLICESIZE_STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
11393 //! \details
11394 //! For Media Surfaces: This Surface is never tiled.
11395 enum SLICESIZE_STREAMOUT_DATA_DESTINATION__TILED_RESOURCE_MODE
11396 {
11397 SLICESIZE_STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11398 SLICESIZE_STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< No tiled resource
11399 SLICESIZE_STREAMOUT_DATA_DESTINATION_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< No tiled resource
11400 };
11401
11402 //! \name Initializations
11403
11404 //! \brief Explicit member initialization function
11405 MFX_PIPE_BUF_ADDR_STATE_CMD();
11406
11407 static const size_t dwSize = 68;
11408 static const size_t byteSize = 272;
11409 };
11410
11411 //!
11412 //! \brief MFX_AVC_DIRECTMODE_STATE
11413 //! \details
11414 //! This is a picture level command and is issued once per picture. All DMV
11415 //! buffers are treated as standard media surfaces, in which the lower 6
11416 //! bits are used for conveying surface states.Current Pic POC number is
11417 //! assumed to be available in POCList[32 and 33] of the
11418 //! MFX_AVC_DIRECTMODE_STATE Command.This command is only valid in the AVC
11419 //! decoding in VLD and IT modes, and AVC encoder mode. The same command
11420 //! supports both Long and Short AVC Interface. The DMV buffers are
11421 //! not required to be programmed for encoder mode.
11422 //!
11423 struct MFX_AVC_DIRECTMODE_STATE_CMD
11424 {
11425 union
11426 {
11427 //!< DWORD 0
11428 struct
11429 {
11430 uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH
11431 uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved
11432 uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB
11433 uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 23) ; //!< SUBOPCODEA
11434 uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(24, 26) ; //!< MEDIA_COMMAND_OPCODE
11435 uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE
11436 uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE
11437 };
11438 uint32_t Value;
11439 } DW0;
11440
11441 mhw_vdbox_mfx_g12_X::GRAPHICSADDRESS63_6_CMD DirectMvBufferBaseAddress[16]; //!< Direct MV Buffer Base Address
11442
11443 union
11444 {
11445 //!< DWORD 33
11446 struct
11447 {
11448 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
11449 uint32_t DirectMvBufferBaseAddressForReferenceFrameArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__ARBITRATION_PRIORITY_CONTROL
11450 uint32_t DirectMvBufferBaseAddressForReferenceFrameMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_ENABLE
11451 uint32_t DirectMvBufferBaseAddressForReferenceFrameMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_MODE
11452 uint32_t Reserved1067 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
11453 uint32_t DirectMvBufferBaseAddressForReferenceFrameTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__TILED_RESOURCE_MODE
11454 uint32_t Reserved1071 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
11455 };
11456 uint32_t Value;
11457 } DW33;
11458
11459 mhw_vdbox_mfx_g12_X::GRAPHICSADDRESS63_6_CMD DirectMvBufferBaseAddressForWrite[1]; //!< Direct MV Buffer Base Address for Write
11460
11461 union
11462 {
11463 //!< DWORD 36
11464 struct
11465 {
11466 uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Memory Object Control State
11467 uint32_t DirectMvBufferBaseAddressForWriteArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__ARBITRATION_PRIORITY_CONTROL
11468 uint32_t DirectMvBufferBaseAddressForWriteMemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_ENABLE
11469 uint32_t DirectMvBufferBaseAddressForWriteMemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_MODE
11470 uint32_t Reserved1163 : __CODEGEN_BITFIELD(11, 12) ; //!< Reserved
11471 uint32_t DirectMvBufferBaseAddressForWriteTiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__TILED_RESOURCE_MODE
11472 uint32_t Reserved1167 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved
11473 };
11474 uint32_t Value;
11475 } DW36;
11476
11477 uint32_t PocList[34]; //!< POC List
11478
11479
11480 //! \name Local enumerations
11481
11482 enum SUBOPCODEB
11483 {
11484 SUBOPCODEB_UNNAMED2 = 2, //!< No additional details
11485 };
11486
11487 enum SUBOPCODEA
11488 {
11489 SUBOPCODEA_UNNAMED0 = 0, //!< No additional details
11490 };
11491
11492 enum MEDIA_COMMAND_OPCODE
11493 {
11494 MEDIA_COMMAND_OPCODE_AVCCOMMON = 1, //!< No additional details
11495 };
11496
11497 enum PIPELINE
11498 {
11499 PIPELINE_MFXSINGLEDW = 2, //!< No additional details
11500 };
11501
11502 enum COMMAND_TYPE
11503 {
11504 COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details
11505 };
11506
11507 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__ARBITRATION_PRIORITY_CONTROL
11508 //! \details
11509 //! This field controls the priority of arbitration used in the GAC/GAM
11510 //! pipeline for this surface.
11511 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__ARBITRATION_PRIORITY_CONTROL
11512 {
11513 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11514 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11515 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11516 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11517 };
11518
11519 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_ENABLE
11520 //! \details
11521 //! This surface is linear surface. This bit must be set to "0" since only
11522 //! TileY/TileYf/TileYs surface is allowed to be compressed
11523 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_ENABLE
11524 {
11525 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11526 };
11527
11528 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_MODE
11529 //! \details
11530 //! Distinguishes Vertical from Horizontal compression. Please refer to
11531 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11532 //! more details.
11533 //! Note: This bit is not used unless Memory Compression Enable is set
11534 //! to "1"
11535 //! Note: This is a READ Surface. The setting of this bit should
11536 //! match the settings on how this is written out before.
11537 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__MEMORY_COMPRESSION_MODE
11538 {
11539 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11540 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11541 };
11542
11543 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__TILED_RESOURCE_MODE
11544 //! \details
11545 //! <b>For Media Surfaces:</b>
11546 //! This field specifies the tiled resource mode.
11547 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME__TILED_RESOURCE_MODE
11548 {
11549 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11550 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
11551 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_REFERENCE_FRAME_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
11552 };
11553
11554 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__ARBITRATION_PRIORITY_CONTROL
11555 //! \details
11556 //! This field controls the priority of arbitration used in the GAC/GAM
11557 //! pipeline for this surface.
11558 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__ARBITRATION_PRIORITY_CONTROL
11559 {
11560 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details
11561 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details
11562 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details
11563 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details
11564 };
11565
11566 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_ENABLE
11567 //! \details
11568 //! This surface is linear surface. This bit must be set to "0" since only
11569 //! TileY/TileYf/TileYs surface is allowed to be compressed
11570 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_ENABLE
11571 {
11572 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_MEMORY_COMPRESSION_ENABLE_COMPRESSIONDISABLE = 0, //!< No additional details
11573 };
11574
11575 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_MODE
11576 //! \details
11577 //! Distinguishes Vertical from Horizontal compression. Please refer to
11578 //! vol1a Memory Data Formats chapter -section Media Memory Compression for
11579 //! more details.
11580 //! Note: This bit is not used unless Memory Compression Enable is set
11581 //! to "1"
11582 //! Note: This is a READ Surface. The setting of this bit should
11583 //! match the settings on how this is written out before.
11584 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__MEMORY_COMPRESSION_MODE
11585 {
11586 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details
11587 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details
11588 };
11589
11590 //! \brief DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__TILED_RESOURCE_MODE
11591 //! \details
11592 //! <b>For Media Surfaces:</b>
11593 //! This field specifies the tiled resource mode.
11594 enum DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE__TILED_RESOURCE_MODE
11595 {
11596 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource
11597 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources
11598 DIRECT_MV_BUFFER_BASE_ADDRESS_FOR_WRITE_TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources
11599 };
11600
11601 //! \name Initializations
11602
11603 //! \brief Explicit member initialization function
11604 MFX_AVC_DIRECTMODE_STATE_CMD();
11605
11606 static const size_t dwSize = 71;
11607 static const size_t byteSize = 284;
11608 };
11609
11610 };
11611
11612 #pragma pack()
11613
11614 #endif // __MHW_VDBOX_MFX_HWCMD_G12_X_H__