| 1 |
/*===================== begin_copyright_notice ================================== |
| 2 |
|
| 3 |
Copyright (c) 2017-2019, Intel Corporation |
| 4 |
|
| 5 |
Permission is hereby granted, free of charge, to any person obtaining a |
| 6 |
copy of this software and associated documentation files (the "Software"), |
| 7 |
to deal in the Software without restriction, including without limitation |
| 8 |
the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 9 |
and/or sell copies of the Software, and to permit persons to whom the |
| 10 |
Software is furnished to do so, subject to the following conditions: |
| 11 |
|
| 12 |
The above copyright notice and this permission notice shall be included |
| 13 |
in all copies or substantial portions of the Software. |
| 14 |
|
| 15 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 16 |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 |
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 19 |
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 20 |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 21 |
OTHER DEALINGS IN THE SOFTWARE. |
| 22 |
|
| 23 |
======================= end_copyright_notice ==================================*/ |
| 24 |
//! |
| 25 |
//! \file mhw_vdbox_vdenc_hwcmd_g12_X.h |
| 26 |
//! \brief Auto-generated constructors for MHW and states. |
| 27 |
//! \details This file may not be included outside of g12_X as other components |
| 28 |
//! should use MHW interface to interact with MHW commands and states. |
| 29 |
//! |
| 30 |
#ifndef __MHW_VDBOX_VDENC_HWCMD_G12_X_H__ |
| 31 |
#define __MHW_VDBOX_VDENC_HWCMD_G12_X_H__ |
| 32 |
|
| 33 |
#pragma once |
| 34 |
#include <cstdint> |
| 35 |
#include <cstddef> |
| 36 |
|
| 37 |
|
| 38 |
#pragma pack(1) |
| 39 |
|
| 40 |
class mhw_vdbox_vdenc_g12_X |
| 41 |
{ |
| 42 |
public: |
| 43 |
// Internal Macros |
| 44 |
#define __CODEGEN_MAX(_a, _b) (((_a) > (_b)) ? (_a) : (_b)) |
| 45 |
#define __CODEGEN_BITFIELD(l, h) (h) - (l) + 1 |
| 46 |
#define __CODEGEN_OP_LENGTH_BIAS 2 |
| 47 |
#define __CODEGEN_OP_LENGTH(x) (uint32_t)((__CODEGEN_MAX(x, __CODEGEN_OP_LENGTH_BIAS)) - __CODEGEN_OP_LENGTH_BIAS) |
| 48 |
|
| 49 |
static uint32_t GetOpLength(uint32_t uiLength) { return __CODEGEN_OP_LENGTH(uiLength); } |
| 50 |
|
| 51 |
//! |
| 52 |
//! \brief VDENC_64B_Aligned_Lower_Address |
| 53 |
//! \details |
| 54 |
//! |
| 55 |
//! |
| 56 |
struct VDENC_64B_Aligned_Lower_Address_CMD |
| 57 |
{ |
| 58 |
union |
| 59 |
{ |
| 60 |
//!< DWORD 0 |
| 61 |
struct |
| 62 |
{ |
| 63 |
uint32_t Reserved0 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved |
| 64 |
uint32_t Address : __CODEGEN_BITFIELD( 6, 31) ; //!< Address |
| 65 |
}; |
| 66 |
uint32_t Value; |
| 67 |
} DW0; |
| 68 |
|
| 69 |
//! \name Local enumerations |
| 70 |
|
| 71 |
//! \name Initializations |
| 72 |
|
| 73 |
//! \brief Explicit member initialization function |
| 74 |
VDENC_64B_Aligned_Lower_Address_CMD(); |
| 75 |
|
| 76 |
static const size_t dwSize = 1; |
| 77 |
static const size_t byteSize = 4; |
| 78 |
}; |
| 79 |
|
| 80 |
//! |
| 81 |
//! \brief VDENC_64B_Aligned_Upper_Address |
| 82 |
//! \details |
| 83 |
//! |
| 84 |
//! |
| 85 |
struct VDENC_64B_Aligned_Upper_Address_CMD |
| 86 |
{ |
| 87 |
union |
| 88 |
{ |
| 89 |
//!< DWORD 0 |
| 90 |
struct |
| 91 |
{ |
| 92 |
uint32_t AddressUpperDword : __CODEGEN_BITFIELD( 0, 15) ; //!< Address Upper DWord |
| 93 |
uint32_t Reserved16 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 94 |
}; |
| 95 |
uint32_t Value; |
| 96 |
} DW0; |
| 97 |
|
| 98 |
//! \name Local enumerations |
| 99 |
|
| 100 |
//! \name Initializations |
| 101 |
|
| 102 |
//! \brief Explicit member initialization function |
| 103 |
VDENC_64B_Aligned_Upper_Address_CMD(); |
| 104 |
|
| 105 |
static const size_t dwSize = 1; |
| 106 |
static const size_t byteSize = 4; |
| 107 |
}; |
| 108 |
|
| 109 |
//! |
| 110 |
//! \brief VDENC_Surface_Control_Bits |
| 111 |
//! \details |
| 112 |
//! |
| 113 |
//! |
| 114 |
struct VDENC_Surface_Control_Bits_CMD |
| 115 |
{ |
| 116 |
union |
| 117 |
{ |
| 118 |
//!< DWORD 0 |
| 119 |
struct |
| 120 |
{ |
| 121 |
uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Index to Memory Object Control State (MOCS) Tables: |
| 122 |
uint32_t ArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< ARBITRATION_PRIORITY_CONTROL |
| 123 |
uint32_t MemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< MEMORY_COMPRESSION_ENABLE |
| 124 |
uint32_t CompressionType : __CODEGEN_BITFIELD(10, 10) ; //!< Compression Type |
| 125 |
uint32_t Reserved11 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved |
| 126 |
uint32_t CacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< CACHE_SELECT |
| 127 |
uint32_t TiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< TILED_RESOURCE_MODE |
| 128 |
uint32_t Reserved15 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved |
| 129 |
}; |
| 130 |
uint32_t Value; |
| 131 |
} DW0; |
| 132 |
|
| 133 |
//! \name Local enumerations |
| 134 |
|
| 135 |
//! \brief ARBITRATION_PRIORITY_CONTROL |
| 136 |
//! \details |
| 137 |
//! This field controls the priority of arbitration used in the GAC/GAM |
| 138 |
//! pipeline for this surface. |
| 139 |
enum ARBITRATION_PRIORITY_CONTROL |
| 140 |
{ |
| 141 |
ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details |
| 142 |
ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details |
| 143 |
ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details |
| 144 |
ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details |
| 145 |
}; |
| 146 |
|
| 147 |
//! \brief MEMORY_COMPRESSION_ENABLE |
| 148 |
//! \details |
| 149 |
//! Memory compression will be attempted for this surface. |
| 150 |
enum MEMORY_COMPRESSION_ENABLE |
| 151 |
{ |
| 152 |
MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details |
| 153 |
MEMORY_COMPRESSION_ENABLE_ENABLE = 1, //!< No additional details |
| 154 |
}; |
| 155 |
|
| 156 |
//! \brief MEMORY_COMPRESSION_MODE |
| 157 |
//! \details |
| 158 |
//! Distinguishes Vertical from Horizontal compression. Please refer to |
| 159 |
//! vol1a <b>Memory Data</b>. |
| 160 |
enum MEMORY_COMPRESSION_MODE |
| 161 |
{ |
| 162 |
MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details |
| 163 |
MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details |
| 164 |
}; |
| 165 |
|
| 166 |
//! \brief CACHE_SELECT |
| 167 |
//! \details |
| 168 |
//! This field controls if the Row Store is going to store inside Media |
| 169 |
//! Cache (rowstore cache) or to LLC. |
| 170 |
enum CACHE_SELECT |
| 171 |
{ |
| 172 |
CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC. |
| 173 |
CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage. |
| 174 |
}; |
| 175 |
|
| 176 |
//! \brief TILED_RESOURCE_MODE |
| 177 |
//! \details |
| 178 |
//! <b>For Media Surfaces</b>: This field specifies the tiled resource mode. |
| 179 |
enum TILED_RESOURCE_MODE |
| 180 |
{ |
| 181 |
TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource. |
| 182 |
TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources |
| 183 |
TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources |
| 184 |
}; |
| 185 |
|
| 186 |
//! \name Initializations |
| 187 |
|
| 188 |
//! \brief Explicit member initialization function |
| 189 |
VDENC_Surface_Control_Bits_CMD(); |
| 190 |
|
| 191 |
static const size_t dwSize = 1; |
| 192 |
static const size_t byteSize = 4; |
| 193 |
}; |
| 194 |
|
| 195 |
//! |
| 196 |
//! \brief VDENC_Sub_Mb_Pred_Mode |
| 197 |
//! \details |
| 198 |
//! |
| 199 |
//! |
| 200 |
struct VDENC_Sub_Mb_Pred_Mode_CMD |
| 201 |
{ |
| 202 |
union |
| 203 |
{ |
| 204 |
//!< WORD 0 |
| 205 |
struct |
| 206 |
{ |
| 207 |
uint8_t Submbpredmode0 : __CODEGEN_BITFIELD( 0, 1) ; //!< SubMbPredMode[0] |
| 208 |
uint8_t Submbpredmode1 : __CODEGEN_BITFIELD( 2, 3) ; //!< SubMbPredMode[1] |
| 209 |
uint8_t Submbpredmode2 : __CODEGEN_BITFIELD( 4, 5) ; //!< SubMbPredMode[2] |
| 210 |
uint8_t Submbpredmode3 : __CODEGEN_BITFIELD( 6, 7) ; //!< SubMbPredMode[3] |
| 211 |
}; |
| 212 |
uint8_t Value; |
| 213 |
} DW0; |
| 214 |
|
| 215 |
//! \name Local enumerations |
| 216 |
|
| 217 |
//! \name Initializations |
| 218 |
|
| 219 |
//! \brief Explicit member initialization function |
| 220 |
VDENC_Sub_Mb_Pred_Mode_CMD(); |
| 221 |
|
| 222 |
static const size_t dwSize = 0; |
| 223 |
static const size_t byteSize = 1; |
| 224 |
}; |
| 225 |
|
| 226 |
//! |
| 227 |
//! \brief VDENC_Block_8x8_4 |
| 228 |
//! \details |
| 229 |
//! |
| 230 |
//! |
| 231 |
struct VDENC_Block_8x8_4_CMD |
| 232 |
{ |
| 233 |
union |
| 234 |
{ |
| 235 |
//!< WORD 0 |
| 236 |
struct |
| 237 |
{ |
| 238 |
uint16_t Block8X80 : __CODEGEN_BITFIELD( 0, 3) ; //!< Block8x8[0] |
| 239 |
uint16_t Block8X81 : __CODEGEN_BITFIELD( 4, 7) ; //!< Block8x8[1] |
| 240 |
uint16_t Block8X82 : __CODEGEN_BITFIELD( 8, 11) ; //!< Block8x8[2] |
| 241 |
uint16_t Block8X83 : __CODEGEN_BITFIELD(12, 15) ; //!< Block8x8[3] |
| 242 |
}; |
| 243 |
uint16_t Value; |
| 244 |
} DW0; |
| 245 |
|
| 246 |
//! \name Local enumerations |
| 247 |
|
| 248 |
//! \name Initializations |
| 249 |
|
| 250 |
//! \brief Explicit member initialization function |
| 251 |
VDENC_Block_8x8_4_CMD(); |
| 252 |
|
| 253 |
static const size_t dwSize = 0; |
| 254 |
static const size_t byteSize = 2; |
| 255 |
}; |
| 256 |
|
| 257 |
//! |
| 258 |
//! \brief VDENC_Delta_MV_XY |
| 259 |
//! \details |
| 260 |
//! |
| 261 |
//! |
| 262 |
//! Calculates the difference between the actual MV for the Sub Macroblock |
| 263 |
//! and the predicted MV based on the availability of the neighbors. |
| 264 |
//! |
| 265 |
//! This is calculated and populated for Inter frames only. In case of an |
| 266 |
//! Intra MB in Inter frames, this value should be 0. |
| 267 |
//! |
| 268 |
struct VDENC_Delta_MV_XY_CMD |
| 269 |
{ |
| 270 |
union |
| 271 |
{ |
| 272 |
//!< DWORD 0 |
| 273 |
struct |
| 274 |
{ |
| 275 |
uint32_t X0 : __CODEGEN_BITFIELD( 0, 15) ; //!< X0 |
| 276 |
uint32_t Y0 : __CODEGEN_BITFIELD(16, 31) ; //!< Y0 |
| 277 |
}; |
| 278 |
uint32_t Value; |
| 279 |
} DW0; |
| 280 |
union |
| 281 |
{ |
| 282 |
//!< DWORD 1 |
| 283 |
struct |
| 284 |
{ |
| 285 |
uint32_t X1 : __CODEGEN_BITFIELD( 0, 15) ; //!< X1 |
| 286 |
uint32_t Y1 : __CODEGEN_BITFIELD(16, 31) ; //!< Y1 |
| 287 |
}; |
| 288 |
uint32_t Value; |
| 289 |
} DW1; |
| 290 |
union |
| 291 |
{ |
| 292 |
//!< DWORD 2 |
| 293 |
struct |
| 294 |
{ |
| 295 |
uint32_t X2 : __CODEGEN_BITFIELD( 0, 15) ; //!< X2 |
| 296 |
uint32_t Y2 : __CODEGEN_BITFIELD(16, 31) ; //!< Y2 |
| 297 |
}; |
| 298 |
uint32_t Value; |
| 299 |
} DW2; |
| 300 |
union |
| 301 |
{ |
| 302 |
//!< DWORD 3 |
| 303 |
struct |
| 304 |
{ |
| 305 |
uint32_t X3 : __CODEGEN_BITFIELD( 0, 15) ; //!< X3 |
| 306 |
uint32_t Y3 : __CODEGEN_BITFIELD(16, 31) ; //!< Y3 |
| 307 |
}; |
| 308 |
uint32_t Value; |
| 309 |
} DW3; |
| 310 |
|
| 311 |
//! \name Local enumerations |
| 312 |
|
| 313 |
//! \brief X0 |
| 314 |
//! \details |
| 315 |
enum X0 |
| 316 |
{ |
| 317 |
X0_UNNAMED0 = 0, //!< No additional details |
| 318 |
}; |
| 319 |
|
| 320 |
//! \brief Y0 |
| 321 |
//! \details |
| 322 |
enum Y0 |
| 323 |
{ |
| 324 |
Y0_UNNAMED0 = 0, //!< No additional details |
| 325 |
}; |
| 326 |
|
| 327 |
//! \brief X1 |
| 328 |
//! \details |
| 329 |
enum X1 |
| 330 |
{ |
| 331 |
X1_UNNAMED0 = 0, //!< No additional details |
| 332 |
}; |
| 333 |
|
| 334 |
//! \brief Y1 |
| 335 |
//! \details |
| 336 |
enum Y1 |
| 337 |
{ |
| 338 |
Y1_UNNAMED0 = 0, //!< No additional details |
| 339 |
}; |
| 340 |
|
| 341 |
//! \brief X2 |
| 342 |
//! \details |
| 343 |
enum X2 |
| 344 |
{ |
| 345 |
X2_UNNAMED0 = 0, //!< No additional details |
| 346 |
}; |
| 347 |
|
| 348 |
//! \brief Y2 |
| 349 |
//! \details |
| 350 |
enum Y2 |
| 351 |
{ |
| 352 |
Y2_UNNAMED0 = 0, //!< No additional details |
| 353 |
}; |
| 354 |
|
| 355 |
//! \brief X3 |
| 356 |
//! \details |
| 357 |
enum X3 |
| 358 |
{ |
| 359 |
X3_UNNAMED0 = 0, //!< No additional details |
| 360 |
}; |
| 361 |
|
| 362 |
//! \brief Y3 |
| 363 |
//! \details |
| 364 |
enum Y3 |
| 365 |
{ |
| 366 |
Y3_UNNAMED0 = 0, //!< No additional details |
| 367 |
}; |
| 368 |
|
| 369 |
//! \name Initializations |
| 370 |
|
| 371 |
//! \brief Explicit member initialization function |
| 372 |
VDENC_Delta_MV_XY_CMD(); |
| 373 |
|
| 374 |
static const size_t dwSize = 4; |
| 375 |
static const size_t byteSize = 16; |
| 376 |
}; |
| 377 |
|
| 378 |
//! |
| 379 |
//! \brief VDENC_Colocated_MV_Picture |
| 380 |
//! \details |
| 381 |
//! |
| 382 |
//! |
| 383 |
struct VDENC_Colocated_MV_Picture_CMD |
| 384 |
{ |
| 385 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 386 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 387 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 388 |
|
| 389 |
//! \name Local enumerations |
| 390 |
|
| 391 |
//! \name Initializations |
| 392 |
|
| 393 |
//! \brief Explicit member initialization function |
| 394 |
VDENC_Colocated_MV_Picture_CMD(); |
| 395 |
|
| 396 |
static const size_t dwSize = 3; |
| 397 |
static const size_t byteSize = 12; |
| 398 |
}; |
| 399 |
|
| 400 |
//! |
| 401 |
//! \brief VDENC_Down_Scaled_Reference_Picture |
| 402 |
//! \details |
| 403 |
//! |
| 404 |
//! |
| 405 |
struct VDENC_Down_Scaled_Reference_Picture_CMD |
| 406 |
{ |
| 407 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 408 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 409 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 410 |
|
| 411 |
//! \name Local enumerations |
| 412 |
|
| 413 |
//! \name Initializations |
| 414 |
|
| 415 |
//! \brief Explicit member initialization function |
| 416 |
VDENC_Down_Scaled_Reference_Picture_CMD(); |
| 417 |
|
| 418 |
static const size_t dwSize = 3; |
| 419 |
static const size_t byteSize = 12; |
| 420 |
}; |
| 421 |
|
| 422 |
//! |
| 423 |
//! \brief VDENC_FRAME_BASED_STATISTICS_STREAMOUT |
| 424 |
//! \details |
| 425 |
//! |
| 426 |
//! |
| 427 |
struct VDENC_FRAME_BASED_STATISTICS_STREAMOUT_CMD |
| 428 |
{ |
| 429 |
union |
| 430 |
{ |
| 431 |
//!< DWORD 0 |
| 432 |
struct |
| 433 |
{ |
| 434 |
uint32_t SumSadHaarForBestMbChoice ; //!< Sum sad\haar for best MB choice |
| 435 |
}; |
| 436 |
uint32_t Value; |
| 437 |
} DW0; |
| 438 |
union |
| 439 |
{ |
| 440 |
//!< DWORD 1 |
| 441 |
struct |
| 442 |
{ |
| 443 |
uint32_t IntraIso16X16MbCount : __CODEGEN_BITFIELD( 0, 15) ; //!< Intra iso 16x16 MB count |
| 444 |
uint32_t IntraMbCount : __CODEGEN_BITFIELD(16, 31) ; //!< Intra MB count |
| 445 |
}; |
| 446 |
uint32_t Value; |
| 447 |
} DW1; |
| 448 |
union |
| 449 |
{ |
| 450 |
//!< DWORD 2 |
| 451 |
struct |
| 452 |
{ |
| 453 |
uint32_t IntraIso4X4MbCount : __CODEGEN_BITFIELD( 0, 15) ; //!< Intra iso 4x4 MB count |
| 454 |
uint32_t IntraIso8X8MbCount : __CODEGEN_BITFIELD(16, 31) ; //!< Intra iso 8x8 MB count |
| 455 |
}; |
| 456 |
uint32_t Value; |
| 457 |
} DW2; |
| 458 |
union |
| 459 |
{ |
| 460 |
//!< DWORD 3 |
| 461 |
struct |
| 462 |
{ |
| 463 |
uint32_t SegmentMapCount0 : __CODEGEN_BITFIELD( 0, 15) ; //!< segment map count 0 |
| 464 |
uint32_t SegmentMapCount1 : __CODEGEN_BITFIELD(16, 31) ; //!< segment map count 1 |
| 465 |
}; |
| 466 |
uint32_t Value; |
| 467 |
} DW3; |
| 468 |
union |
| 469 |
{ |
| 470 |
//!< DWORD 4 |
| 471 |
struct |
| 472 |
{ |
| 473 |
uint32_t SegmentMapCount2 : __CODEGEN_BITFIELD( 0, 15) ; //!< segment map count 2 |
| 474 |
uint32_t SegmentMapCount3 : __CODEGEN_BITFIELD(16, 31) ; //!< segment map count 3 |
| 475 |
}; |
| 476 |
uint32_t Value; |
| 477 |
} DW4; |
| 478 |
|
| 479 |
uint32_t Reserved160[12]; //!< Reserved |
| 480 |
|
| 481 |
union |
| 482 |
{ |
| 483 |
//!< DWORD 17 |
| 484 |
struct |
| 485 |
{ |
| 486 |
uint32_t SumSadHaarForBestMbChoiceBottomHalfPopulation ; //!< Sum sad\haar for best MB choice bottom half population |
| 487 |
}; |
| 488 |
uint32_t Value; |
| 489 |
} DW17; |
| 490 |
union |
| 491 |
{ |
| 492 |
//!< DWORD 18 |
| 493 |
struct |
| 494 |
{ |
| 495 |
uint32_t SumSadHaarForBestMbChoiceTopHalfPopulation ; //!< Sum sad\haar for best MB choice top half population |
| 496 |
}; |
| 497 |
uint32_t Value; |
| 498 |
} DW18; |
| 499 |
union |
| 500 |
{ |
| 501 |
//!< DWORD 19 |
| 502 |
struct |
| 503 |
{ |
| 504 |
uint32_t SumTopHalfPopulationOccurrences : __CODEGEN_BITFIELD( 0, 15) ; //!< Sum top half population occurrences |
| 505 |
uint32_t SumBottomHalfPopulationOccurrences : __CODEGEN_BITFIELD(16, 31) ; //!< Sum bottom half population occurrences |
| 506 |
}; |
| 507 |
uint32_t Value; |
| 508 |
} DW19; |
| 509 |
|
| 510 |
//! \name Local enumerations |
| 511 |
|
| 512 |
//! \name Initializations |
| 513 |
|
| 514 |
//! \brief Explicit member initialization function |
| 515 |
VDENC_FRAME_BASED_STATISTICS_STREAMOUT_CMD(); |
| 516 |
|
| 517 |
static const size_t dwSize = 20; |
| 518 |
static const size_t byteSize = 80; |
| 519 |
}; |
| 520 |
|
| 521 |
//! |
| 522 |
//! \brief VDENC_Mode_StreamOut_Data |
| 523 |
//! \details |
| 524 |
//! |
| 525 |
//! |
| 526 |
struct VDENC_Mode_StreamOut_Data_CMD |
| 527 |
{ |
| 528 |
union |
| 529 |
{ |
| 530 |
//!< DWORD 0 |
| 531 |
struct |
| 532 |
{ |
| 533 |
uint32_t MbX : __CODEGEN_BITFIELD( 0, 7) ; //!< MB.X |
| 534 |
uint32_t MbY : __CODEGEN_BITFIELD( 8, 15) ; //!< MB.Y |
| 535 |
uint32_t MinimalDistortion : __CODEGEN_BITFIELD(16, 31) ; //!< Minimal Distortion |
| 536 |
}; |
| 537 |
uint32_t Value; |
| 538 |
} DW0; |
| 539 |
union |
| 540 |
{ |
| 541 |
//!< DWORD 1 |
| 542 |
struct |
| 543 |
{ |
| 544 |
uint32_t Skiprawdistortion : __CODEGEN_BITFIELD( 0, 15) ; //!< SkipRawDistortion |
| 545 |
uint32_t Interrawdistortion : __CODEGEN_BITFIELD(16, 31) ; //!< InterRawDistortion |
| 546 |
}; |
| 547 |
uint32_t Value; |
| 548 |
} DW1; |
| 549 |
union |
| 550 |
{ |
| 551 |
//!< DWORD 2 |
| 552 |
struct |
| 553 |
{ |
| 554 |
uint32_t Bestintrarawdistortion : __CODEGEN_BITFIELD( 0, 15) ; //!< BestIntraRawDistortion |
| 555 |
uint32_t IntermbmodeChromaPredictionMode : __CODEGEN_BITFIELD(16, 17) ; //!< INTERMBMODECHROMA_PREDICTION_MODE |
| 556 |
uint32_t Intrambmode : __CODEGEN_BITFIELD(18, 19) ; //!< INTRAMBMODE |
| 557 |
uint32_t Intrambflag : __CODEGEN_BITFIELD(20, 20) ; //!< INTRAMBFLAG |
| 558 |
uint32_t Lastmbflag : __CODEGEN_BITFIELD(21, 21) ; //!< LASTMBFLAG |
| 559 |
uint32_t CoefficientClampOccurred : __CODEGEN_BITFIELD(22, 22) ; //!< Coefficient Clamp Occurred |
| 560 |
uint32_t ConformanceViolation : __CODEGEN_BITFIELD(23, 23) ; //!< Conformance Violation |
| 561 |
uint32_t Submbpredmode : __CODEGEN_BITFIELD(24, 31) ; //!< SubMbPredMode |
| 562 |
}; |
| 563 |
uint32_t Value; |
| 564 |
} DW2; |
| 565 |
union |
| 566 |
{ |
| 567 |
//!< DWORD 3 |
| 568 |
struct |
| 569 |
{ |
| 570 |
uint32_t Lumaintramode0 : __CODEGEN_BITFIELD( 0, 15) ; //!< LumaIntraMode[0] |
| 571 |
uint32_t Lumaintramode1 : __CODEGEN_BITFIELD(16, 31) ; //!< LumaIntraMode[1] |
| 572 |
}; |
| 573 |
uint32_t Value; |
| 574 |
} DW3; |
| 575 |
union |
| 576 |
{ |
| 577 |
//!< DWORD 4 |
| 578 |
struct |
| 579 |
{ |
| 580 |
uint32_t Lumaintramode2 : __CODEGEN_BITFIELD( 0, 15) ; //!< LumaIntraMode[2] |
| 581 |
uint32_t Lumaintramode3 : __CODEGEN_BITFIELD(16, 31) ; //!< LumaIntraMode[3] |
| 582 |
}; |
| 583 |
uint32_t Value; |
| 584 |
} DW4; |
| 585 |
VDENC_Delta_MV_XY_CMD DeltaMv0 ; //!< Delta MV0 |
| 586 |
VDENC_Delta_MV_XY_CMD DeltaMv1 ; //!< Delta MV1 |
| 587 |
union |
| 588 |
{ |
| 589 |
//!< DWORD 13 |
| 590 |
struct |
| 591 |
{ |
| 592 |
uint32_t FwdRefids : __CODEGEN_BITFIELD( 0, 15) ; //!< FWD REFIDs |
| 593 |
uint32_t BwdRefids : __CODEGEN_BITFIELD(16, 31) ; //!< BWD REFIDs |
| 594 |
}; |
| 595 |
uint32_t Value; |
| 596 |
} DW13; |
| 597 |
union |
| 598 |
{ |
| 599 |
//!< DWORD 14 |
| 600 |
struct |
| 601 |
{ |
| 602 |
uint32_t QpY : __CODEGEN_BITFIELD( 0, 5) ; //!< QP_y |
| 603 |
uint32_t MbBitCount : __CODEGEN_BITFIELD( 6, 18) ; //!< MB_Bit_Count |
| 604 |
uint32_t MbHeaderCount : __CODEGEN_BITFIELD(19, 31) ; //!< MB_Header_Count |
| 605 |
}; |
| 606 |
uint32_t Value; |
| 607 |
} DW14; |
| 608 |
union |
| 609 |
{ |
| 610 |
//!< DWORD 15 |
| 611 |
struct |
| 612 |
{ |
| 613 |
uint32_t MbType : __CODEGEN_BITFIELD( 0, 4) ; //!< MB Type |
| 614 |
uint32_t BlockCbp : __CODEGEN_BITFIELD( 5, 30) ; //!< Block CBP |
| 615 |
uint32_t Skipmbflag : __CODEGEN_BITFIELD(31, 31) ; //!< SkipMbFlag |
| 616 |
}; |
| 617 |
uint32_t Value; |
| 618 |
} DW15; |
| 619 |
|
| 620 |
//! \name Local enumerations |
| 621 |
|
| 622 |
//! \brief INTERMBMODECHROMA_PREDICTION_MODE |
| 623 |
//! \details |
| 624 |
//! This field indicates the InterMB Parition type for Inter MB. |
| 625 |
//! <br>OR</br> |
| 626 |
//! This field indicates Chroma Prediction Mode for Intra MB. |
| 627 |
enum INTERMBMODECHROMA_PREDICTION_MODE |
| 628 |
{ |
| 629 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED0 = 0, //!< 16x16 |
| 630 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED1 = 1, //!< 16x8 |
| 631 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED2 = 2, //!< 8x16 |
| 632 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED3 = 3, //!< 8x8 |
| 633 |
}; |
| 634 |
|
| 635 |
//! \brief INTRAMBMODE |
| 636 |
//! \details |
| 637 |
//! This field indicates the Best Intra Partition. |
| 638 |
enum INTRAMBMODE |
| 639 |
{ |
| 640 |
INTRAMBMODE_UNNAMED0 = 0, //!< 16x16 |
| 641 |
INTRAMBMODE_UNNAMED1 = 1, //!< 8x8 |
| 642 |
INTRAMBMODE_UNNAMED2 = 2, //!< 4x4 |
| 643 |
}; |
| 644 |
|
| 645 |
//! \brief INTRAMBFLAG |
| 646 |
//! \details |
| 647 |
//! This field specifies whether the current macroblock is an Intra (I) |
| 648 |
//! macroblock. |
| 649 |
enum INTRAMBFLAG |
| 650 |
{ |
| 651 |
INTRAMBFLAG_INTER = 0, //!< inter macroblock |
| 652 |
INTRAMBFLAG_INTRA = 1, //!< intra macroblock |
| 653 |
}; |
| 654 |
|
| 655 |
enum LASTMBFLAG |
| 656 |
{ |
| 657 |
LASTMBFLAG_NOTLAST = 0, //!< The current MB is not the last MB in the current Slice. |
| 658 |
LASTMBFLAG_LAST = 1, //!< The current MB is the last MB in the current Slice. |
| 659 |
}; |
| 660 |
|
| 661 |
//! \name Initializations |
| 662 |
|
| 663 |
//! \brief Explicit member initialization function |
| 664 |
VDENC_Mode_StreamOut_Data_CMD(); |
| 665 |
|
| 666 |
static const size_t dwSize = 16; |
| 667 |
static const size_t byteSize = 64; |
| 668 |
}; |
| 669 |
|
| 670 |
//! |
| 671 |
//! \brief VDENC_Original_Uncompressed_Picture |
| 672 |
//! \details |
| 673 |
//! |
| 674 |
//! |
| 675 |
struct VDENC_Original_Uncompressed_Picture_CMD |
| 676 |
{ |
| 677 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 678 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 679 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 680 |
|
| 681 |
//! \name Local enumerations |
| 682 |
|
| 683 |
//! \name Initializations |
| 684 |
|
| 685 |
//! \brief Explicit member initialization function |
| 686 |
VDENC_Original_Uncompressed_Picture_CMD(); |
| 687 |
|
| 688 |
static const size_t dwSize = 3; |
| 689 |
static const size_t byteSize = 12; |
| 690 |
}; |
| 691 |
|
| 692 |
//! |
| 693 |
//! \brief VDENC_Reference_Picture |
| 694 |
//! \details |
| 695 |
//! |
| 696 |
//! |
| 697 |
struct VDENC_Reference_Picture_CMD |
| 698 |
{ |
| 699 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 700 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 701 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 702 |
|
| 703 |
//! \name Local enumerations |
| 704 |
|
| 705 |
//! \name Initializations |
| 706 |
|
| 707 |
//! \brief Explicit member initialization function |
| 708 |
VDENC_Reference_Picture_CMD(); |
| 709 |
|
| 710 |
static const size_t dwSize = 3; |
| 711 |
static const size_t byteSize = 12; |
| 712 |
}; |
| 713 |
|
| 714 |
//! |
| 715 |
//! \brief VDENC_Row_Store_Scratch_Buffer_Picture |
| 716 |
//! \details |
| 717 |
//! |
| 718 |
//! |
| 719 |
struct VDENC_Row_Store_Scratch_Buffer_Picture_CMD |
| 720 |
{ |
| 721 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 722 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 723 |
VDENC_Surface_Control_Bits_CMD BufferPictureFields ; //!< Buffer Picture Fields |
| 724 |
|
| 725 |
//! \name Local enumerations |
| 726 |
|
| 727 |
//! \name Initializations |
| 728 |
|
| 729 |
//! \brief Explicit member initialization function |
| 730 |
VDENC_Row_Store_Scratch_Buffer_Picture_CMD(); |
| 731 |
|
| 732 |
static const size_t dwSize = 3; |
| 733 |
static const size_t byteSize = 12; |
| 734 |
}; |
| 735 |
|
| 736 |
//! |
| 737 |
//! \brief VDENC_Statistics_Streamout |
| 738 |
//! \details |
| 739 |
//! |
| 740 |
//! |
| 741 |
struct VDENC_Statistics_Streamout_CMD |
| 742 |
{ |
| 743 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 744 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 745 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 746 |
|
| 747 |
//! \name Local enumerations |
| 748 |
|
| 749 |
//! \name Initializations |
| 750 |
|
| 751 |
//! \brief Explicit member initialization function |
| 752 |
VDENC_Statistics_Streamout_CMD(); |
| 753 |
|
| 754 |
static const size_t dwSize = 3; |
| 755 |
static const size_t byteSize = 12; |
| 756 |
}; |
| 757 |
|
| 758 |
//! |
| 759 |
//! \brief VDENC_Streamin_Data_Picture |
| 760 |
//! \details |
| 761 |
//! |
| 762 |
//! |
| 763 |
struct VDENC_Streamin_Data_Picture_CMD |
| 764 |
{ |
| 765 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 766 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 767 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 768 |
|
| 769 |
//! \name Local enumerations |
| 770 |
|
| 771 |
//! \name Initializations |
| 772 |
|
| 773 |
//! \brief Explicit member initialization function |
| 774 |
VDENC_Streamin_Data_Picture_CMD(); |
| 775 |
|
| 776 |
static const size_t dwSize = 3; |
| 777 |
static const size_t byteSize = 12; |
| 778 |
}; |
| 779 |
|
| 780 |
//! |
| 781 |
//! \brief VDENC_STREAMIN_STATE |
| 782 |
//! \details |
| 783 |
//! |
| 784 |
//! |
| 785 |
struct VDENC_STREAMIN_STATE_CMD |
| 786 |
{ |
| 787 |
union |
| 788 |
{ |
| 789 |
//!< DWORD 0 |
| 790 |
struct |
| 791 |
{ |
| 792 |
uint32_t RegionOfInterestRoiSelection : __CODEGEN_BITFIELD( 0, 7) ; //!< Region of Interest (ROI) Selection |
| 793 |
uint32_t Forceintra : __CODEGEN_BITFIELD( 8, 8) ; //!< FORCEINTRA |
| 794 |
uint32_t Forceskip : __CODEGEN_BITFIELD( 9, 9) ; //!< FORCESKIP |
| 795 |
uint32_t Reserved10 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved |
| 796 |
}; |
| 797 |
uint32_t Value; |
| 798 |
} DW0; |
| 799 |
union |
| 800 |
{ |
| 801 |
//!< DWORD 1 |
| 802 |
struct |
| 803 |
{ |
| 804 |
uint32_t Qpprimey : __CODEGEN_BITFIELD( 0, 7) ; //!< QPPRIMEY |
| 805 |
uint32_t Targetsizeinword : __CODEGEN_BITFIELD( 8, 15) ; //!< TargetSizeInWord |
| 806 |
uint32_t Maxsizeinword : __CODEGEN_BITFIELD(16, 23) ; //!< MaxSizeInWord |
| 807 |
uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved |
| 808 |
}; |
| 809 |
uint32_t Value; |
| 810 |
} DW1; |
| 811 |
union |
| 812 |
{ |
| 813 |
//!< DWORD 2 |
| 814 |
struct |
| 815 |
{ |
| 816 |
uint32_t FwdPredictorX : __CODEGEN_BITFIELD( 0, 15) ; //!< Fwd Predictor.X |
| 817 |
uint32_t FwdPredictorY : __CODEGEN_BITFIELD(16, 31) ; //!< Fwd Predictor.Y |
| 818 |
}; |
| 819 |
uint32_t Value; |
| 820 |
} DW2; |
| 821 |
union |
| 822 |
{ |
| 823 |
//!< DWORD 3 |
| 824 |
struct |
| 825 |
{ |
| 826 |
uint32_t BwdPredictorX : __CODEGEN_BITFIELD( 0, 15) ; //!< Bwd Predictor.X |
| 827 |
uint32_t BwdPredictorY : __CODEGEN_BITFIELD(16, 31) ; //!< Bwd Predictor.Y |
| 828 |
}; |
| 829 |
uint32_t Value; |
| 830 |
} DW3; |
| 831 |
union |
| 832 |
{ |
| 833 |
//!< DWORD 4 |
| 834 |
struct |
| 835 |
{ |
| 836 |
uint32_t FwdRefid0 : __CODEGEN_BITFIELD( 0, 3) ; //!< Fwd RefID0 |
| 837 |
uint32_t BwdRefid0 : __CODEGEN_BITFIELD( 4, 7) ; //!< Bwd RefID0 |
| 838 |
uint32_t Reserved136 : __CODEGEN_BITFIELD( 8, 31) ; //!< Reserved |
| 839 |
}; |
| 840 |
uint32_t Value; |
| 841 |
} DW4; |
| 842 |
|
| 843 |
uint32_t Reserved160[11]; //!< Reserved |
| 844 |
|
| 845 |
|
| 846 |
//! \name Local enumerations |
| 847 |
|
| 848 |
//! \brief FORCEINTRA |
| 849 |
//! \details |
| 850 |
//! This field specifies whether current macroblock should be coded as an |
| 851 |
//! intra macroblock. |
| 852 |
//! It is illegal to enable both ForceSkip and ForceIntra for |
| 853 |
//! the same macroblock. |
| 854 |
//! This should be disabled if Rolling-I is enabled in the |
| 855 |
//! VDEnc Image State. |
| 856 |
enum FORCEINTRA |
| 857 |
{ |
| 858 |
FORCEINTRA_DISABLE = 0, //!< VDEnc determined macroblock type |
| 859 |
FORCEINTRA_ENABLE = 1, //!< Force to be coded as an intra macroblock |
| 860 |
}; |
| 861 |
|
| 862 |
//! \brief FORCESKIP |
| 863 |
//! \details |
| 864 |
//! This field specifies whether current macroblock should be coded as a |
| 865 |
//! skipped macroblock. |
| 866 |
//! It is illegal to enable both ForceSkip and ForceIntra for |
| 867 |
//! the same macroblock. |
| 868 |
//! This should be disabled if Rolling-I is enabled in the |
| 869 |
//! VDEnc Image State. |
| 870 |
//! It is illegal to enable ForceSkip for I-Frames. |
| 871 |
enum FORCESKIP |
| 872 |
{ |
| 873 |
FORCESKIP_DISABLE = 0, //!< VDEnc determined macroblock type |
| 874 |
FORCESKIP_ENABLE = 1, //!< Force to be coded as a skipped macroblock |
| 875 |
}; |
| 876 |
|
| 877 |
//! \brief QPPRIMEY |
| 878 |
//! \details |
| 879 |
//! Quantization parameter for Y. |
| 880 |
enum QPPRIMEY |
| 881 |
{ |
| 882 |
QPPRIMEY_UNNAMED0 = 0, //!< No additional details |
| 883 |
QPPRIMEY_UNNAMED51 = 51, //!< No additional details |
| 884 |
}; |
| 885 |
|
| 886 |
//! \name Initializations |
| 887 |
|
| 888 |
//! \brief Explicit member initialization function |
| 889 |
VDENC_STREAMIN_STATE_CMD(); |
| 890 |
|
| 891 |
static const size_t dwSize = 16; |
| 892 |
static const size_t byteSize = 64; |
| 893 |
}; |
| 894 |
|
| 895 |
//! |
| 896 |
//! \brief VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT |
| 897 |
//! \details |
| 898 |
//! |
| 899 |
//! |
| 900 |
struct VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT_CMD |
| 901 |
{ |
| 902 |
union |
| 903 |
{ |
| 904 |
//!< DWORD 0 |
| 905 |
struct |
| 906 |
{ |
| 907 |
uint32_t SumSadHaarForBestModeDecision ; //!< Sum sad\haar for best mode decision |
| 908 |
}; |
| 909 |
uint32_t Value; |
| 910 |
} DW0; |
| 911 |
union |
| 912 |
{ |
| 913 |
//!< DWORD 1 |
| 914 |
struct |
| 915 |
{ |
| 916 |
uint32_t IntraCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< Intra CU count normalized |
| 917 |
uint32_t Reserved52 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 918 |
}; |
| 919 |
uint32_t Value; |
| 920 |
} DW1; |
| 921 |
union |
| 922 |
{ |
| 923 |
//!< DWORD 2 |
| 924 |
struct |
| 925 |
{ |
| 926 |
uint32_t NonSkipInterCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< Non-skip Inter CU count normalized |
| 927 |
uint32_t Reserved84 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 928 |
}; |
| 929 |
uint32_t Value; |
| 930 |
} DW2; |
| 931 |
union |
| 932 |
{ |
| 933 |
//!< DWORD 3 |
| 934 |
struct |
| 935 |
{ |
| 936 |
uint32_t SegmentMapCount0 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 0 |
| 937 |
uint32_t Reserved116 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 938 |
}; |
| 939 |
uint32_t Value; |
| 940 |
} DW3; |
| 941 |
union |
| 942 |
{ |
| 943 |
//!< DWORD 4 |
| 944 |
struct |
| 945 |
{ |
| 946 |
uint32_t SegmentMapCount1 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 1 |
| 947 |
uint32_t Reserved148 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 948 |
}; |
| 949 |
uint32_t Value; |
| 950 |
} DW4; |
| 951 |
union |
| 952 |
{ |
| 953 |
//!< DWORD 5 |
| 954 |
struct |
| 955 |
{ |
| 956 |
uint32_t SegmentMapCount2 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 2 |
| 957 |
uint32_t Reserved180 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 958 |
}; |
| 959 |
uint32_t Value; |
| 960 |
} DW5; |
| 961 |
union |
| 962 |
{ |
| 963 |
//!< DWORD 6 |
| 964 |
struct |
| 965 |
{ |
| 966 |
uint32_t SegmentMapCount3 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 3 |
| 967 |
uint32_t Reserved212 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 968 |
}; |
| 969 |
uint32_t Value; |
| 970 |
} DW6; |
| 971 |
union |
| 972 |
{ |
| 973 |
//!< DWORD 7 |
| 974 |
struct |
| 975 |
{ |
| 976 |
uint32_t MvXGlobalMeSample025X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 0 (.25x,.25x) |
| 977 |
uint32_t MvYGlobalMeSample025X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 0 (.25x,.25x) |
| 978 |
}; |
| 979 |
uint32_t Value; |
| 980 |
} DW7; |
| 981 |
union |
| 982 |
{ |
| 983 |
//!< DWORD 8 |
| 984 |
struct |
| 985 |
{ |
| 986 |
uint32_t MvXGlobalMeSample125X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 1 (.25x,.25x) |
| 987 |
uint32_t MvYGlobalMeSample125X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 1 (.25x,.25x) |
| 988 |
}; |
| 989 |
uint32_t Value; |
| 990 |
} DW8; |
| 991 |
union |
| 992 |
{ |
| 993 |
//!< DWORD 9 |
| 994 |
struct |
| 995 |
{ |
| 996 |
uint32_t MvXGlobalMeSample225X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 2 (.25x,.25x) |
| 997 |
uint32_t MvYGlobalMeSample225X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 2 (.25x,.25x) |
| 998 |
}; |
| 999 |
uint32_t Value; |
| 1000 |
} DW9; |
| 1001 |
union |
| 1002 |
{ |
| 1003 |
//!< DWORD 10 |
| 1004 |
struct |
| 1005 |
{ |
| 1006 |
uint32_t MvXGlobalMeSample325X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 3 (.25x,.25x) |
| 1007 |
uint32_t MvYGlobalMeSample325X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 3 (.25x,.25x) |
| 1008 |
}; |
| 1009 |
uint32_t Value; |
| 1010 |
} DW10; |
| 1011 |
union |
| 1012 |
{ |
| 1013 |
//!< DWORD 11 |
| 1014 |
struct |
| 1015 |
{ |
| 1016 |
uint32_t MvXGlobalMeSample425X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 4 (.25x,.25x) |
| 1017 |
uint32_t MvYGlobalMeSample425X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 4 (.25x,.25x) |
| 1018 |
}; |
| 1019 |
uint32_t Value; |
| 1020 |
} DW11; |
| 1021 |
union |
| 1022 |
{ |
| 1023 |
//!< DWORD 12 |
| 1024 |
struct |
| 1025 |
{ |
| 1026 |
uint32_t MvXGlobalMeSample525X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 5 (.25x,.25x) |
| 1027 |
uint32_t MvYGlobalMeSample525X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 5 (.25x,.25x) |
| 1028 |
}; |
| 1029 |
uint32_t Value; |
| 1030 |
} DW12; |
| 1031 |
union |
| 1032 |
{ |
| 1033 |
//!< DWORD 13 |
| 1034 |
struct |
| 1035 |
{ |
| 1036 |
uint32_t MvXGlobalMeSample625X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 6 (.25x,.25x) |
| 1037 |
uint32_t MvYGlobalMeSample625X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 6 (.25x,.25x) |
| 1038 |
}; |
| 1039 |
uint32_t Value; |
| 1040 |
} DW13; |
| 1041 |
union |
| 1042 |
{ |
| 1043 |
//!< DWORD 14 |
| 1044 |
struct |
| 1045 |
{ |
| 1046 |
uint32_t MvXGlobalMeSample725X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 7 (.25x,.25x) |
| 1047 |
uint32_t MvYGlobalMeSample725X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 7 (.25x,.25x) |
| 1048 |
}; |
| 1049 |
uint32_t Value; |
| 1050 |
} DW14; |
| 1051 |
union |
| 1052 |
{ |
| 1053 |
//!< DWORD 15 |
| 1054 |
struct |
| 1055 |
{ |
| 1056 |
uint32_t MvXGlobalMeSample825X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 8 (.25x,.25x) |
| 1057 |
uint32_t MvYGlobalMeSample825X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 8 (.25x,.25x) |
| 1058 |
}; |
| 1059 |
uint32_t Value; |
| 1060 |
} DW15; |
| 1061 |
union |
| 1062 |
{ |
| 1063 |
//!< DWORD 16 |
| 1064 |
struct |
| 1065 |
{ |
| 1066 |
uint32_t RefidForGlobalmeSample0 : __CODEGEN_BITFIELD( 0, 1) ; //!< RefID for GlobalME sample 0 |
| 1067 |
uint32_t RefidForGlobalmeSample18 : __CODEGEN_BITFIELD( 2, 17) ; //!< RefID for GlobalME sample 1-8 |
| 1068 |
uint32_t Reserved530 : __CODEGEN_BITFIELD(18, 31) ; //!< Reserved |
| 1069 |
}; |
| 1070 |
uint32_t Value; |
| 1071 |
} DW16; |
| 1072 |
union |
| 1073 |
{ |
| 1074 |
//!< DWORD 17 |
| 1075 |
struct |
| 1076 |
{ |
| 1077 |
uint32_t PaletteCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< Palette CU Count Normalized |
| 1078 |
uint32_t Reserved564 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 1079 |
}; |
| 1080 |
uint32_t Value; |
| 1081 |
} DW17; |
| 1082 |
union |
| 1083 |
{ |
| 1084 |
//!< DWORD 18 |
| 1085 |
struct |
| 1086 |
{ |
| 1087 |
uint32_t IbcCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< IBC CU Count Normalized |
| 1088 |
uint32_t Reserved596 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 1089 |
}; |
| 1090 |
uint32_t Value; |
| 1091 |
} DW18; |
| 1092 |
union |
| 1093 |
{ |
| 1094 |
//!< DWORD 19 |
| 1095 |
struct |
| 1096 |
{ |
| 1097 |
uint32_t NumberOfSecondaryColorsChannel1 : __CODEGEN_BITFIELD( 0, 15) ; //!< Number of secondary colors (Channel1) |
| 1098 |
uint32_t NumberOfPrimaryColorsChannel0 : __CODEGEN_BITFIELD(16, 31) ; //!< Number of primary colors (Channel0) |
| 1099 |
}; |
| 1100 |
uint32_t Value; |
| 1101 |
} DW19; |
| 1102 |
union |
| 1103 |
{ |
| 1104 |
//!< DWORD 20 |
| 1105 |
struct |
| 1106 |
{ |
| 1107 |
uint32_t NumberOfSecondaryColorsChannel2 : __CODEGEN_BITFIELD( 0, 15) ; //!< Number of secondary colors (Channel2) |
| 1108 |
uint32_t Reserved656 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 1109 |
}; |
| 1110 |
uint32_t Value; |
| 1111 |
} DW20; |
| 1112 |
union |
| 1113 |
{ |
| 1114 |
//!< DWORD 21 |
| 1115 |
struct |
| 1116 |
{ |
| 1117 |
uint32_t Reserved672 ; //!< Reserved |
| 1118 |
}; |
| 1119 |
uint32_t Value; |
| 1120 |
} DW21; |
| 1121 |
union |
| 1122 |
{ |
| 1123 |
//!< DWORD 22 |
| 1124 |
struct |
| 1125 |
{ |
| 1126 |
uint32_t PositionOfTimerExpiration : __CODEGEN_BITFIELD( 0, 15) ; //!< Position of Timer expiration |
| 1127 |
uint32_t TimerExpireStatus : __CODEGEN_BITFIELD(16, 16) ; //!< Timer Expire status |
| 1128 |
uint32_t Reserved721 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved |
| 1129 |
}; |
| 1130 |
uint32_t Value; |
| 1131 |
} DW22; |
| 1132 |
union |
| 1133 |
{ |
| 1134 |
//!< DWORD 23 |
| 1135 |
struct |
| 1136 |
{ |
| 1137 |
uint32_t LocationOfPanic : __CODEGEN_BITFIELD( 0, 15) ; //!< Location of panic |
| 1138 |
uint32_t PanicDetected : __CODEGEN_BITFIELD(16, 16) ; //!< Panic detected |
| 1139 |
uint32_t Reserved753 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved |
| 1140 |
}; |
| 1141 |
uint32_t Value; |
| 1142 |
} DW23; |
| 1143 |
|
| 1144 |
uint32_t Reserved768[5]; //!< Reserved |
| 1145 |
|
| 1146 |
union |
| 1147 |
{ |
| 1148 |
//!< DWORD 29 |
| 1149 |
struct |
| 1150 |
{ |
| 1151 |
uint32_t SumSadHaarForBestModeDecisionBottomHalfPopulation ; //!< Sum sad\haar for best mode decision bottom half population |
| 1152 |
}; |
| 1153 |
uint32_t Value; |
| 1154 |
} DW29; |
| 1155 |
union |
| 1156 |
{ |
| 1157 |
//!< DWORD 30 |
| 1158 |
struct |
| 1159 |
{ |
| 1160 |
uint32_t SumSadHaarForBestModeDecisionTopHalfPopulation ; //!< Sum sad\haar for best mode decision top half population |
| 1161 |
}; |
| 1162 |
uint32_t Value; |
| 1163 |
} DW30; |
| 1164 |
union |
| 1165 |
{ |
| 1166 |
//!< DWORD 31 |
| 1167 |
struct |
| 1168 |
{ |
| 1169 |
uint32_t SumTopHalfPopulationOccurrences : __CODEGEN_BITFIELD( 0, 15) ; //!< Sum top half population occurrences |
| 1170 |
uint32_t SumBottomHalfPopulationOccurrences : __CODEGEN_BITFIELD(16, 31) ; //!< Sum bottom half population occurrences |
| 1171 |
}; |
| 1172 |
uint32_t Value; |
| 1173 |
} DW31; |
| 1174 |
|
| 1175 |
//! \name Local enumerations |
| 1176 |
|
| 1177 |
//! \name Initializations |
| 1178 |
|
| 1179 |
//! \brief Explicit member initialization function |
| 1180 |
VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT_CMD(); |
| 1181 |
|
| 1182 |
static const size_t dwSize = 32; |
| 1183 |
static const size_t byteSize = 128; |
| 1184 |
}; |
| 1185 |
|
| 1186 |
//! |
| 1187 |
//! \brief VDENC_HEVC_VP9_STREAMIN_STATE |
| 1188 |
//! \details |
| 1189 |
//! For the NumMergeCandidate paramaters [64x64/32x32/16x16/8x8], only the |
| 1190 |
//! following configurations are valid. |
| 1191 |
//! Normal Mode without force mv or force intra: 4321 [64x64 --> 16x16]. |
| 1192 |
//! Speed Mode without force mv or force intra: 2220, 2110, 1210, 2200, 1110 |
| 1193 |
//! [64x64 --> 16x16]. |
| 1194 |
//! |
| 1195 |
struct VDENC_HEVC_VP9_STREAMIN_STATE_CMD |
| 1196 |
{ |
| 1197 |
union |
| 1198 |
{ |
| 1199 |
//!< DWORD 0 |
| 1200 |
struct |
| 1201 |
{ |
| 1202 |
uint32_t Roi32X32016X1603 : __CODEGEN_BITFIELD( 0, 7) ; //!< ROI 32x32_0 16x16_03 |
| 1203 |
uint32_t Maxtusize : __CODEGEN_BITFIELD( 8, 9) ; //!< MaxTUSize |
| 1204 |
uint32_t Maxcusize : __CODEGEN_BITFIELD(10, 11) ; //!< MaxCUSize |
| 1205 |
uint32_t Numimepredictors : __CODEGEN_BITFIELD(12, 15) ; //!< NUMIMEPREDICTORS |
| 1206 |
uint32_t PuType32X32016X1603 : __CODEGEN_BITFIELD(24, 31) ; //!< PU Type 32x32_0 16x16_03 |
| 1207 |
}; |
| 1208 |
uint32_t Value; |
| 1209 |
} DW0; |
| 1210 |
union |
| 1211 |
{ |
| 1212 |
//!< DWORD 1 |
| 1213 |
struct |
| 1214 |
{ |
| 1215 |
uint32_t ForceMvX32X32016X160 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_0 |
| 1216 |
uint32_t ForceMvY32X32016X160 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_0 |
| 1217 |
}; |
| 1218 |
uint32_t Value; |
| 1219 |
} DW1; |
| 1220 |
union |
| 1221 |
{ |
| 1222 |
//!< DWORD 2 |
| 1223 |
struct |
| 1224 |
{ |
| 1225 |
uint32_t ForceMvX32X32016X161 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_1 |
| 1226 |
uint32_t ForceMvY32X32016X161 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_1 |
| 1227 |
}; |
| 1228 |
uint32_t Value; |
| 1229 |
} DW2; |
| 1230 |
union |
| 1231 |
{ |
| 1232 |
//!< DWORD 3 |
| 1233 |
struct |
| 1234 |
{ |
| 1235 |
uint32_t ForceMvX32X32016X162 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_2 |
| 1236 |
uint32_t ForceMvY32X32016X162 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_2 |
| 1237 |
}; |
| 1238 |
uint32_t Value; |
| 1239 |
} DW3; |
| 1240 |
union |
| 1241 |
{ |
| 1242 |
//!< DWORD 4 |
| 1243 |
struct |
| 1244 |
{ |
| 1245 |
uint32_t ForceMvX32X32016X163 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_3 |
| 1246 |
uint32_t ForceMvY32X32016X163 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_3 |
| 1247 |
}; |
| 1248 |
uint32_t Value; |
| 1249 |
} DW4; |
| 1250 |
union |
| 1251 |
{ |
| 1252 |
//!< DWORD 5 |
| 1253 |
struct |
| 1254 |
{ |
| 1255 |
uint32_t Reserved160 ; //!< Reserved |
| 1256 |
}; |
| 1257 |
uint32_t Value; |
| 1258 |
} DW5; |
| 1259 |
union |
| 1260 |
{ |
| 1261 |
//!< DWORD 6 |
| 1262 |
struct |
| 1263 |
{ |
| 1264 |
uint32_t ForceMvRefidx32X32016X160 : __CODEGEN_BITFIELD( 0, 3) ; //!< force_mv refidx 32x32_0 16x16_0 |
| 1265 |
uint32_t ForceMvRefidx32X32016X1613 : __CODEGEN_BITFIELD( 4, 15) ; //!< force_mv refidx 32x32_0 16x16_1-3 |
| 1266 |
uint32_t Nummergecandidatecu8X8 : __CODEGEN_BITFIELD(16, 19) ; //!< NumMergeCandidateCU8x8 |
| 1267 |
uint32_t Nummergecandidatecu16X16 : __CODEGEN_BITFIELD(20, 23) ; //!< NumMergeCandidateCU16x16 |
| 1268 |
uint32_t Nummergecandidatecu32X32 : __CODEGEN_BITFIELD(24, 27) ; //!< NumMergeCandidateCU32x32 |
| 1269 |
uint32_t Nummergecandidatecu64X64 : __CODEGEN_BITFIELD(28, 31) ; //!< NumMergeCandidateCU64x64 |
| 1270 |
}; |
| 1271 |
uint32_t Value; |
| 1272 |
} DW6; |
| 1273 |
union |
| 1274 |
{ |
| 1275 |
//!< DWORD 7 |
| 1276 |
struct |
| 1277 |
{ |
| 1278 |
uint32_t Segid32X32016X1603Vp9Only : __CODEGEN_BITFIELD( 0, 15) ; //!< SegID 32x32_0 16x16_03 (VP9 only) |
| 1279 |
uint32_t QpEn32X32016X1603 : __CODEGEN_BITFIELD(16, 19) ; //!< QP_En 32x32_0 16x16_03 |
| 1280 |
uint32_t SegidEnable : __CODEGEN_BITFIELD(20, 20) ; //!< SegID Enable |
| 1281 |
uint32_t Reserved245 : __CODEGEN_BITFIELD(21, 22) ; //!< Reserved |
| 1282 |
uint32_t ForceRefidEnable32X320 : __CODEGEN_BITFIELD(23, 23) ; //!< Force Refid Enable (32x32_0) |
| 1283 |
uint32_t ImePredictorRefidSelect0332X320 : __CODEGEN_BITFIELD(24, 31) ; //!< IME predictor/refid Select0-3 32x32_0 |
| 1284 |
}; |
| 1285 |
uint32_t Value; |
| 1286 |
} DW7; |
| 1287 |
union |
| 1288 |
{ |
| 1289 |
//!< DWORD 8 |
| 1290 |
struct |
| 1291 |
{ |
| 1292 |
uint32_t ImePredictor0X32X320 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_0 |
| 1293 |
uint32_t ImePredictor0Y32X320 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_0 |
| 1294 |
}; |
| 1295 |
uint32_t Value; |
| 1296 |
} DW8; |
| 1297 |
union |
| 1298 |
{ |
| 1299 |
//!< DWORD 9 |
| 1300 |
struct |
| 1301 |
{ |
| 1302 |
uint32_t ImePredictor0X32X321 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_1 |
| 1303 |
uint32_t ImePredictor0Y32X321 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_1 |
| 1304 |
}; |
| 1305 |
uint32_t Value; |
| 1306 |
} DW9; |
| 1307 |
union |
| 1308 |
{ |
| 1309 |
//!< DWORD 10 |
| 1310 |
struct |
| 1311 |
{ |
| 1312 |
uint32_t ImePredictor0X32X322 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_2 |
| 1313 |
uint32_t ImePredictor0Y32X322 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_2 |
| 1314 |
}; |
| 1315 |
uint32_t Value; |
| 1316 |
} DW10; |
| 1317 |
union |
| 1318 |
{ |
| 1319 |
//!< DWORD 11 |
| 1320 |
struct |
| 1321 |
{ |
| 1322 |
uint32_t ImePredictor0X32X323 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_3 |
| 1323 |
uint32_t ImePredictor0Y32X323 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_3 |
| 1324 |
}; |
| 1325 |
uint32_t Value; |
| 1326 |
} DW11; |
| 1327 |
union |
| 1328 |
{ |
| 1329 |
//!< DWORD 12 |
| 1330 |
struct |
| 1331 |
{ |
| 1332 |
uint32_t ImePredictor0Refidx32X320 : __CODEGEN_BITFIELD( 0, 3) ; //!< ime_predictor0 refidx 32x32_0 |
| 1333 |
uint32_t ImePredictor13Refidx32X3213 : __CODEGEN_BITFIELD( 4, 15) ; //!< ime_predictor1-3 refidx 32x32_1-3 |
| 1334 |
uint32_t Reserved400 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 1335 |
}; |
| 1336 |
uint32_t Value; |
| 1337 |
} DW12; |
| 1338 |
union |
| 1339 |
{ |
| 1340 |
//!< DWORD 13 |
| 1341 |
struct |
| 1342 |
{ |
| 1343 |
uint32_t Panicmodelcuthreshold : __CODEGEN_BITFIELD( 0, 15) ; //!< PanicModeLCUThreshold |
| 1344 |
uint32_t Reserved432 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 1345 |
}; |
| 1346 |
uint32_t Value; |
| 1347 |
} DW13; |
| 1348 |
union |
| 1349 |
{ |
| 1350 |
//!< DWORD 14 |
| 1351 |
struct |
| 1352 |
{ |
| 1353 |
uint32_t ForceQpValue16X160 : __CODEGEN_BITFIELD( 0, 7) ; //!< Force QP Value 16x16_0 |
| 1354 |
uint32_t ForceQpValue16X161 : __CODEGEN_BITFIELD( 8, 15) ; //!< Force QP Value 16x16_1 |
| 1355 |
uint32_t ForceQpValue16X162 : __CODEGEN_BITFIELD(16, 23) ; //!< Force QP Value 16x16_2 |
| 1356 |
uint32_t ForceQpValue16X163 : __CODEGEN_BITFIELD(24, 31) ; //!< Force QP Value 16x16_3 |
| 1357 |
}; |
| 1358 |
uint32_t Value; |
| 1359 |
} DW14; |
| 1360 |
union |
| 1361 |
{ |
| 1362 |
//!< DWORD 15 |
| 1363 |
struct |
| 1364 |
{ |
| 1365 |
uint32_t Reserved480 ; //!< Reserved |
| 1366 |
}; |
| 1367 |
uint32_t Value; |
| 1368 |
} DW15; |
| 1369 |
|
| 1370 |
//! \name Local enumerations |
| 1371 |
|
| 1372 |
//! \brief NUMIMEPREDICTORS |
| 1373 |
//! \details |
| 1374 |
//! <p>This parameter specifes the number of IME predictors to be processed |
| 1375 |
//! in stage3 IME.</p> |
| 1376 |
//! <p></p> |
| 1377 |
enum NUMIMEPREDICTORS |
| 1378 |
{ |
| 1379 |
NUMIMEPREDICTORS_UNNAMED0 = 0, //!< No additional details |
| 1380 |
NUMIMEPREDICTORS_UNNAMED4 = 4, //!< No additional details |
| 1381 |
NUMIMEPREDICTORS_UNNAMED8 = 8, //!< No additional details |
| 1382 |
NUMIMEPREDICTORS_UNNAMED12 = 12, //!< No additional details |
| 1383 |
}; |
| 1384 |
|
| 1385 |
//! \name Initializations |
| 1386 |
|
| 1387 |
//! \brief Explicit member initialization function |
| 1388 |
VDENC_HEVC_VP9_STREAMIN_STATE_CMD(); |
| 1389 |
|
| 1390 |
static const size_t dwSize = 16; |
| 1391 |
static const size_t byteSize = 64; |
| 1392 |
}; |
| 1393 |
|
| 1394 |
//! |
| 1395 |
//! \brief VDENC_Surface_State_Fields |
| 1396 |
//! \details |
| 1397 |
//! |
| 1398 |
//! |
| 1399 |
struct VDENC_Surface_State_Fields_CMD |
| 1400 |
{ |
| 1401 |
union |
| 1402 |
{ |
| 1403 |
//!< DWORD 0 |
| 1404 |
struct |
| 1405 |
{ |
| 1406 |
uint32_t CrVCbUPixelOffsetVDirection : __CODEGEN_BITFIELD( 0, 1) ; //!< Cr(V)/Cb(U) Pixel Offset V Direction |
| 1407 |
uint32_t SurfaceFormatByteSwizzle : __CODEGEN_BITFIELD( 2, 2) ; //!< Surface Format Byte Swizzle |
| 1408 |
uint32_t ColorSpaceSelection : __CODEGEN_BITFIELD( 3, 3) ; //!< Color space selection |
| 1409 |
uint32_t Width : __CODEGEN_BITFIELD( 4, 17) ; //!< Width |
| 1410 |
uint32_t Height : __CODEGEN_BITFIELD(18, 31) ; //!< Height |
| 1411 |
}; |
| 1412 |
uint32_t Value; |
| 1413 |
} DW0; |
| 1414 |
union |
| 1415 |
{ |
| 1416 |
//!< DWORD 1 |
| 1417 |
struct |
| 1418 |
{ |
| 1419 |
uint32_t TileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< TILE_WALK |
| 1420 |
uint32_t TiledSurface : __CODEGEN_BITFIELD( 1, 1) ; //!< TILED_SURFACE |
| 1421 |
uint32_t HalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< HALF_PITCH_FOR_CHROMA |
| 1422 |
uint32_t SurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Surface Pitch |
| 1423 |
uint32_t ChromaDownsampleFilterControl : __CODEGEN_BITFIELD(20, 22) ; //!< Chroma Downsample Filter Control |
| 1424 |
uint32_t Reserved55 : __CODEGEN_BITFIELD(23, 26) ; //!< Reserved |
| 1425 |
uint32_t SurfaceFormat : __CODEGEN_BITFIELD(27, 31) ; //!< SURFACE_FORMAT |
| 1426 |
}; |
| 1427 |
uint32_t Value; |
| 1428 |
} DW1; |
| 1429 |
union |
| 1430 |
{ |
| 1431 |
//!< DWORD 2 |
| 1432 |
struct |
| 1433 |
{ |
| 1434 |
uint32_t YOffsetForUCb : __CODEGEN_BITFIELD( 0, 14) ; //!< Y Offset for U(Cb) |
| 1435 |
uint32_t Reserved79 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved |
| 1436 |
uint32_t XOffsetForUCb : __CODEGEN_BITFIELD(16, 30) ; //!< X Offset for U(Cb) |
| 1437 |
uint32_t Reserved95 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved |
| 1438 |
}; |
| 1439 |
uint32_t Value; |
| 1440 |
} DW2; |
| 1441 |
union |
| 1442 |
{ |
| 1443 |
//!< DWORD 3 |
| 1444 |
struct |
| 1445 |
{ |
| 1446 |
uint32_t YOffsetForVCr : __CODEGEN_BITFIELD( 0, 15) ; //!< Y Offset for V(Cr) |
| 1447 |
uint32_t XOffsetForVCr : __CODEGEN_BITFIELD(16, 28) ; //!< X Offset for V(Cr) |
| 1448 |
uint32_t Reserved125 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 1449 |
}; |
| 1450 |
uint32_t Value; |
| 1451 |
} DW3; |
| 1452 |
|
| 1453 |
//! \name Local enumerations |
| 1454 |
|
| 1455 |
//! \brief TILE_WALK |
| 1456 |
//! \details |
| 1457 |
//! (This field must be set to 1: TILEWALK_YMAJOR.) This field specifies the |
| 1458 |
//! type of memory tiling (XMajor or YMajor) employed to tile this surface. |
| 1459 |
//! See Memory Interface Functions for details on memory tiling and restrictions. |
| 1460 |
//! This field is ignored when the surface is linear. Internally H/W always |
| 1461 |
//! treats this as set to 1 for all VDEnc usage. |
| 1462 |
enum TILE_WALK |
| 1463 |
{ |
| 1464 |
TILE_WALK_XMAJOR = 0, //!< TILEWALK_XMAJOR |
| 1465 |
TILE_WALK_YMAJOR = 1, //!< TILEWALK_YMAJOR |
| 1466 |
}; |
| 1467 |
|
| 1468 |
//! \brief TILED_SURFACE |
| 1469 |
//! \details |
| 1470 |
//! (This field must be set to TRUE: Tiled.) This field specifies whether |
| 1471 |
//! the surface is tiled. This field is ignored by VDEnc usage. |
| 1472 |
enum TILED_SURFACE |
| 1473 |
{ |
| 1474 |
TILED_SURFACE_FALSE = 0, //!< Linear |
| 1475 |
TILED_SURFACE_TRUE = 1, //!< Tiled |
| 1476 |
}; |
| 1477 |
|
| 1478 |
//! \brief HALF_PITCH_FOR_CHROMA |
| 1479 |
//! \details |
| 1480 |
//! (This field must be set to Disable.) This field indicates that the |
| 1481 |
//! chroma plane(s) will use a pitch equal to half the value specified |
| 1482 |
//! in the Surface Pitch field. This field is only used for PLANAR |
| 1483 |
//! surface formats. This field is igored by VDEnc (unless we support YV12). |
| 1484 |
enum HALF_PITCH_FOR_CHROMA |
| 1485 |
{ |
| 1486 |
HALF_PITCH_FOR_CHROMA_DISABLE = 0, //!< No additional details |
| 1487 |
HALF_PITCH_FOR_CHROMA_ENABLE = 1, //!< No additional details |
| 1488 |
}; |
| 1489 |
|
| 1490 |
//! \brief SURFACE_FORMAT |
| 1491 |
//! \details |
| 1492 |
//! Specifies the format of the surface. |
| 1493 |
enum SURFACE_FORMAT |
| 1494 |
{ |
| 1495 |
SURFACE_FORMAT_YUV422 = 0, //!< YUYV/YUY2 (8:8:8:8 MSB V0 Y1 U0 Y0) |
| 1496 |
SURFACE_FORMAT_RGBA4444 = 1, //!< RGBA 32-bit 4:4:4:4 packed (8:8:8:8 MSB-X:B:G:R) |
| 1497 |
SURFACE_FORMAT_YUV444 = 2, //!< YUV 32-bit 4:4:4 packed (8:8:8:8 MSB-A:Y:U:V) |
| 1498 |
SURFACE_FORMAT_Y8UNORM = 3, //!< No additional details |
| 1499 |
SURFACE_FORMAT_PLANAR_420_8 = 4, //!< (NV12, IMC1,2,3,4, YV12) |
| 1500 |
SURFACE_FORMAT_YCRCB_SWAPY_422 = 5, //!< UYVY (8:8:8:8 MSB Y1 V0 Y0 U0) |
| 1501 |
SURFACE_FORMAT_YCRCB_SWAPUV_422 = 6, //!< YVYU (8:8:8:8 MSB U0 Y1 V0 Y0) |
| 1502 |
SURFACE_FORMAT_YCRCB_SWAPUVY_422 = 7, //!< VYUY (8:8:8:8 MSB Y1 U0 Y0 V0) |
| 1503 |
SURFACE_FORMAT_P010 = 8, //!< 10 - bit planar 420 (Tile - Y / Linear / Tile - X) |
| 1504 |
SURFACE_FORMAT_RGBA_10_10_10_2 = 9, //!< Need to convert to YUV. 2 bits Alpha, 10 bits R 10 bits G 10 bits B |
| 1505 |
SURFACE_FORMAT_Y410 = 10, //!< 10 bit 4:4:4 packed |
| 1506 |
SURFACE_FORMAT_NV21 = 11, //!< 8-bit, same as NV12 but UV interleave is reversed |
| 1507 |
SURFACE_FORMAT_P010_VARIANT = 12, //!< >8 bit planar 420 with MSB together and LSB at an offset in x direction |
| 1508 |
}; |
| 1509 |
|
| 1510 |
//! \name Initializations |
| 1511 |
|
| 1512 |
//! \brief Explicit member initialization function |
| 1513 |
VDENC_Surface_State_Fields_CMD(); |
| 1514 |
|
| 1515 |
static const size_t dwSize = 4; |
| 1516 |
static const size_t byteSize = 16; |
| 1517 |
}; |
| 1518 |
|
| 1519 |
//! |
| 1520 |
//! \brief VD_PIPELINE_FLUSH |
| 1521 |
//! \details |
| 1522 |
//! |
| 1523 |
//! |
| 1524 |
struct VD_PIPELINE_FLUSH_CMD |
| 1525 |
{ |
| 1526 |
union |
| 1527 |
{ |
| 1528 |
//!< DWORD 0 |
| 1529 |
struct |
| 1530 |
{ |
| 1531 |
uint32_t DwordCountN : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_COUNT_N |
| 1532 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1533 |
uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB |
| 1534 |
uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA |
| 1535 |
uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE |
| 1536 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1537 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1538 |
}; |
| 1539 |
uint32_t Value; |
| 1540 |
} DW0; |
| 1541 |
union |
| 1542 |
{ |
| 1543 |
//!< DWORD 1 |
| 1544 |
struct |
| 1545 |
{ |
| 1546 |
uint32_t HevcPipelineDone : __CODEGEN_BITFIELD( 0, 0) ; //!< HEVC pipeline Done |
| 1547 |
uint32_t VdencPipelineDone : __CODEGEN_BITFIELD( 1, 1) ; //!< VD-ENC pipeline Done |
| 1548 |
uint32_t MflPipelineDone : __CODEGEN_BITFIELD( 2, 2) ; //!< MFL pipeline Done |
| 1549 |
uint32_t MfxPipelineDone : __CODEGEN_BITFIELD( 3, 3) ; //!< MFX pipeline Done |
| 1550 |
uint32_t VdCommandMessageParserDone : __CODEGEN_BITFIELD( 4, 4) ; //!< VD command/message parser Done |
| 1551 |
uint32_t AvpPipelineDone : __CODEGEN_BITFIELD( 5, 5) ; //!< AVP Pipeline Done |
| 1552 |
uint32_t Reserved37 : __CODEGEN_BITFIELD( 6, 15) ; //!< Reserved |
| 1553 |
uint32_t HevcPipelineCommandFlush : __CODEGEN_BITFIELD(16, 16) ; //!< HEVC pipeline command flush |
| 1554 |
uint32_t VdencPipelineCommandFlush : __CODEGEN_BITFIELD(17, 17) ; //!< VD-ENC pipeline command flush |
| 1555 |
uint32_t MflPipelineCommandFlush : __CODEGEN_BITFIELD(18, 18) ; //!< MFL pipeline command flush |
| 1556 |
uint32_t MfxPipelineCommandFlush : __CODEGEN_BITFIELD(19, 19) ; //!< MFX pipeline command flush |
| 1557 |
uint32_t AvpPipelineCommandFlush : __CODEGEN_BITFIELD(20, 20) ; //!< AVP Pipeline Command Flush |
| 1558 |
uint32_t Reserved52 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved |
| 1559 |
}; |
| 1560 |
uint32_t Value; |
| 1561 |
} DW1; |
| 1562 |
|
| 1563 |
//! \name Local enumerations |
| 1564 |
|
| 1565 |
//! \brief DWORD_COUNT_N |
| 1566 |
//! \details |
| 1567 |
//! Total Length - 2 |
| 1568 |
enum DWORD_COUNT_N |
| 1569 |
{ |
| 1570 |
DWORD_COUNT_N_EXCLUDESDWORD_0 = 0, //!< No additional details |
| 1571 |
}; |
| 1572 |
|
| 1573 |
enum SUBOPCODEB |
| 1574 |
{ |
| 1575 |
SUBOPCODEB_UNNAMED0 = 0, //!< No additional details |
| 1576 |
}; |
| 1577 |
|
| 1578 |
enum SUBOPCODEA |
| 1579 |
{ |
| 1580 |
SUBOPCODEA_UNNAMED0 = 0, //!< No additional details |
| 1581 |
}; |
| 1582 |
|
| 1583 |
enum MEDIA_COMMAND_OPCODE |
| 1584 |
{ |
| 1585 |
MEDIA_COMMAND_OPCODE_EXTENDEDCOMMAND = 15, //!< No additional details |
| 1586 |
}; |
| 1587 |
|
| 1588 |
enum PIPELINE |
| 1589 |
{ |
| 1590 |
PIPELINE_MEDIA = 2, //!< No additional details |
| 1591 |
}; |
| 1592 |
|
| 1593 |
enum COMMAND_TYPE |
| 1594 |
{ |
| 1595 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1596 |
}; |
| 1597 |
|
| 1598 |
//! \name Initializations |
| 1599 |
|
| 1600 |
//! \brief Explicit member initialization function |
| 1601 |
VD_PIPELINE_FLUSH_CMD(); |
| 1602 |
|
| 1603 |
static const size_t dwSize = 2; |
| 1604 |
static const size_t byteSize = 8; |
| 1605 |
}; |
| 1606 |
|
| 1607 |
//! |
| 1608 |
//! \brief VDENC_WEIGHTSOFFSETS_STATE |
| 1609 |
//! \details |
| 1610 |
//! |
| 1611 |
//! |
| 1612 |
struct VDENC_WEIGHTSOFFSETS_STATE_CMD |
| 1613 |
{ |
| 1614 |
union |
| 1615 |
{ |
| 1616 |
//!< DWORD 0 |
| 1617 |
struct |
| 1618 |
{ |
| 1619 |
uint32_t DwLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DW_LENGTH |
| 1620 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1621 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1622 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1623 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1624 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1625 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1626 |
}; |
| 1627 |
uint32_t Value; |
| 1628 |
} DW0; |
| 1629 |
union |
| 1630 |
{ |
| 1631 |
//!< DWORD 1 |
| 1632 |
struct |
| 1633 |
{ |
| 1634 |
uint32_t WeightsForwardReference0 : __CODEGEN_BITFIELD( 0, 7) ; //!< Weights Forward Reference0 |
| 1635 |
uint32_t OffsetForwardReference0 : __CODEGEN_BITFIELD( 8, 15) ; //!< Offset Forward Reference0 |
| 1636 |
uint32_t WeightsForwardReference1 : __CODEGEN_BITFIELD(16, 23) ; //!< Weights Forward Reference1 |
| 1637 |
uint32_t OffsetForwardReference1 : __CODEGEN_BITFIELD(24, 31) ; //!< Offset Forward Reference1 |
| 1638 |
}; |
| 1639 |
uint32_t Value; |
| 1640 |
} DW1; |
| 1641 |
union |
| 1642 |
{ |
| 1643 |
//!< DWORD 2 |
| 1644 |
struct |
| 1645 |
{ |
| 1646 |
uint32_t WeightsForwardReference2 : __CODEGEN_BITFIELD( 0, 7) ; //!< Weights Forward Reference2 |
| 1647 |
uint32_t OffsetForwardReference2 : __CODEGEN_BITFIELD( 8, 15) ; //!< Offset Forward Reference2 |
| 1648 |
uint32_t HevcVp9WeightsBackwardReference0 : __CODEGEN_BITFIELD(16, 23) ; //!< HEVC/VP9 Weights Backward Reference0 |
| 1649 |
uint32_t HevcVp9OffsetBackwardReference0 : __CODEGEN_BITFIELD(24, 31) ; //!< HEVC/VP9 Offset Backward Reference0 |
| 1650 |
}; |
| 1651 |
uint32_t Value; |
| 1652 |
} DW2; |
| 1653 |
|
| 1654 |
//! \name Local enumerations |
| 1655 |
|
| 1656 |
//! \brief DW_LENGTH |
| 1657 |
//! \details |
| 1658 |
//! Total Length - 2 |
| 1659 |
enum DW_LENGTH |
| 1660 |
{ |
| 1661 |
DW_LENGTH_DWORDCOUNTN = 1, //!< Excludes DWord (0,1) |
| 1662 |
}; |
| 1663 |
|
| 1664 |
enum SUBOPB |
| 1665 |
{ |
| 1666 |
SUBOPB_VDENCAVCWEIGHTSOFFSETSTATE = 8, //!< No additional details |
| 1667 |
}; |
| 1668 |
|
| 1669 |
enum SUBOPA |
| 1670 |
{ |
| 1671 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 1672 |
}; |
| 1673 |
|
| 1674 |
enum OPCODE |
| 1675 |
{ |
| 1676 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 1677 |
}; |
| 1678 |
|
| 1679 |
enum PIPELINE |
| 1680 |
{ |
| 1681 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 1682 |
}; |
| 1683 |
|
| 1684 |
enum COMMAND_TYPE |
| 1685 |
{ |
| 1686 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1687 |
}; |
| 1688 |
|
| 1689 |
//! \name Initializations |
| 1690 |
|
| 1691 |
//! \brief Explicit member initialization function |
| 1692 |
VDENC_WEIGHTSOFFSETS_STATE_CMD(); |
| 1693 |
|
| 1694 |
static const size_t dwSize = 3; |
| 1695 |
static const size_t byteSize = 12; |
| 1696 |
}; |
| 1697 |
|
| 1698 |
//! |
| 1699 |
//! \brief VDENC_CONST_QPT_STATE |
| 1700 |
//! \details |
| 1701 |
//! This commands provides the tables for frame constants to the VDEnc HW. |
| 1702 |
//! The specific parameter value is picked by the VDEnc HW based on the |
| 1703 |
//! frame level QP. The QP Lambda array for costing (motion-vectors and mode |
| 1704 |
//! costs) has 42 entires. Skip Threshold tables has 27 entries. 7 FTQ |
| 1705 |
//! thresholds [0-6] are programmed using 4 sets of tables with 27 entires |
| 1706 |
//! each. |
| 1707 |
//! |
| 1708 |
struct VDENC_CONST_QPT_STATE_CMD |
| 1709 |
{ |
| 1710 |
union |
| 1711 |
{ |
| 1712 |
//!< DWORD 0 |
| 1713 |
struct |
| 1714 |
{ |
| 1715 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 1716 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1717 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1718 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1719 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1720 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1721 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1722 |
}; |
| 1723 |
uint32_t Value; |
| 1724 |
} DW0; |
| 1725 |
union { |
| 1726 |
//!< DWORD 1..10 |
| 1727 |
struct { |
| 1728 |
uint8_t QpLambdaArrayIndex[40]; //!< QP Lambda Array Index[n] |
| 1729 |
}; |
| 1730 |
uint32_t Value[10]; |
| 1731 |
} DW1_10; |
| 1732 |
union { |
| 1733 |
//!< DWORD 11 |
| 1734 |
struct { |
| 1735 |
uint32_t QpLambdaArrayIndex40 : __CODEGEN_BITFIELD(0, 7); |
| 1736 |
uint32_t QpLambdaArrayIndex41 : __CODEGEN_BITFIELD(8, 15); |
| 1737 |
uint32_t Reserved : __CODEGEN_BITFIELD(16, 31); |
| 1738 |
}; |
| 1739 |
uint32_t Value; |
| 1740 |
} DW11; |
| 1741 |
union { |
| 1742 |
//!< DWORD 12..24 |
| 1743 |
struct { |
| 1744 |
uint16_t SkipThresholdArrayIndex[26]; //!< Skip Threshold Array Index[n] |
| 1745 |
}; |
| 1746 |
uint32_t Value[13]; |
| 1747 |
} DW12_24; |
| 1748 |
union { |
| 1749 |
//!< DWORD 25 |
| 1750 |
struct { |
| 1751 |
uint32_t SkipThresholdArrayIndex26 : __CODEGEN_BITFIELD(0, 15); |
| 1752 |
uint32_t Reserved : __CODEGEN_BITFIELD(16, 31); |
| 1753 |
}; |
| 1754 |
uint32_t Value; |
| 1755 |
} DW25; |
| 1756 |
union { |
| 1757 |
//!< DWORD 26..38 |
| 1758 |
struct { |
| 1759 |
uint16_t SicForwardTransformCoeffThresholdMatrix0ArrayIndex[26]; //!< SIC Forward Transform Coeff Threshold Matrix0 Array Index[n] |
| 1760 |
}; |
| 1761 |
uint32_t Value[13]; |
| 1762 |
} DW26_38; |
| 1763 |
union { |
| 1764 |
//!< DWORD 39 |
| 1765 |
struct { |
| 1766 |
uint32_t SicForwardTransformCoeffThresholdMatrix0ArrayIndex26 : __CODEGEN_BITFIELD(0, 15); |
| 1767 |
uint32_t Reserved : __CODEGEN_BITFIELD(16, 31); |
| 1768 |
}; |
| 1769 |
uint32_t Value; |
| 1770 |
} DW39; |
| 1771 |
union { |
| 1772 |
//!< DWORD 40..45 |
| 1773 |
struct { |
| 1774 |
uint8_t SicForwardTransformCoeffThresholdMatrix135ArrayIndexN[24]; //!< SIC Forward Transform Coeff Threshold Matrix1/3/5 Array Index[n] |
| 1775 |
}; |
| 1776 |
uint32_t Value[6]; |
| 1777 |
} DW40_45; |
| 1778 |
union { |
| 1779 |
//!< DWORD 46 |
| 1780 |
struct { |
| 1781 |
uint32_t SicForwardTransformCoeffThresholdMatrix135ArrayIndex24 : __CODEGEN_BITFIELD(0, 7); |
| 1782 |
uint32_t SicForwardTransformCoeffThresholdMatrix135ArrayIndex25 : __CODEGEN_BITFIELD(8, 15); |
| 1783 |
uint32_t SicForwardTransformCoeffThresholdMatrix135ArrayIndex26 : __CODEGEN_BITFIELD(16, 23); |
| 1784 |
uint32_t Reserved : __CODEGEN_BITFIELD(24, 31); |
| 1785 |
}; |
| 1786 |
uint32_t Value; |
| 1787 |
} DW46; |
| 1788 |
union { |
| 1789 |
//!< DWORD 47..52 |
| 1790 |
struct { |
| 1791 |
uint8_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex[24]; //!< SIC Forward Transform Coeff Threshold Matrix2 Array Index[n] |
| 1792 |
}; |
| 1793 |
uint32_t Value[6]; |
| 1794 |
} DW47_52; |
| 1795 |
union { |
| 1796 |
//!< DWORD 53 |
| 1797 |
struct { |
| 1798 |
uint32_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex24 : __CODEGEN_BITFIELD(0, 7); |
| 1799 |
uint32_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex25 : __CODEGEN_BITFIELD(8, 15); |
| 1800 |
uint32_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex26 : __CODEGEN_BITFIELD(16, 23); |
| 1801 |
uint32_t Reserved : __CODEGEN_BITFIELD(24, 31); |
| 1802 |
}; |
| 1803 |
uint32_t Value; |
| 1804 |
} DW53; |
| 1805 |
union { |
| 1806 |
//!< DWORD 54..59 |
| 1807 |
struct { |
| 1808 |
uint8_t SicForwardTransformCoeffThresholdMatrix46ArrayIndexN[24]; //!< SIC Forward Transform Coeff Threshold Matrix4/6 Array Index[n] |
| 1809 |
}; |
| 1810 |
uint32_t Value[6]; |
| 1811 |
} DW54_59; |
| 1812 |
union { |
| 1813 |
//!< DWORD 60 |
| 1814 |
struct { |
| 1815 |
uint32_t SicForwardTransformCoeffThresholdMatrix46ArrayIndex24 : __CODEGEN_BITFIELD(0, 7); |
| 1816 |
uint32_t SicForwardTransformCoeffThresholdMatrix46ArrayIndex25 : __CODEGEN_BITFIELD(8, 15); |
| 1817 |
uint32_t SicForwardTransformCoeffThresholdMatrix46ArrayIndex26 : __CODEGEN_BITFIELD(16, 23); |
| 1818 |
uint32_t Reserved : __CODEGEN_BITFIELD(24, 31); |
| 1819 |
}; |
| 1820 |
uint32_t Value; |
| 1821 |
} DW60; |
| 1822 |
|
| 1823 |
//! \name Local enumerations |
| 1824 |
|
| 1825 |
enum SUBOPB |
| 1826 |
{ |
| 1827 |
SUBOPB_VDENCCONSTQPTSTATE = 6, //!< No additional details |
| 1828 |
}; |
| 1829 |
|
| 1830 |
enum SUBOPA |
| 1831 |
{ |
| 1832 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 1833 |
}; |
| 1834 |
|
| 1835 |
enum OPCODE |
| 1836 |
{ |
| 1837 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 1838 |
}; |
| 1839 |
|
| 1840 |
enum PIPELINE |
| 1841 |
{ |
| 1842 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 1843 |
}; |
| 1844 |
|
| 1845 |
enum COMMAND_TYPE |
| 1846 |
{ |
| 1847 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1848 |
}; |
| 1849 |
|
| 1850 |
//! \name Initializations |
| 1851 |
|
| 1852 |
//! \brief Explicit member initialization function |
| 1853 |
VDENC_CONST_QPT_STATE_CMD(); |
| 1854 |
|
| 1855 |
static const size_t dwSize = 61; |
| 1856 |
static const size_t byteSize = 244; |
| 1857 |
}; |
| 1858 |
|
| 1859 |
//! |
| 1860 |
//! \brief VDENC_DS_REF_SURFACE_STATE |
| 1861 |
//! \details |
| 1862 |
//! This command specifies the surface state parameters for the downscaled |
| 1863 |
//! reference surfaces. |
| 1864 |
//! |
| 1865 |
struct VDENC_DS_REF_SURFACE_STATE_CMD |
| 1866 |
{ |
| 1867 |
union |
| 1868 |
{ |
| 1869 |
//!< DWORD 0 |
| 1870 |
struct |
| 1871 |
{ |
| 1872 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 1873 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1874 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1875 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1876 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1877 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1878 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1879 |
}; |
| 1880 |
uint32_t Value; |
| 1881 |
} DW0; |
| 1882 |
union |
| 1883 |
{ |
| 1884 |
//!< DWORD 1 |
| 1885 |
struct |
| 1886 |
{ |
| 1887 |
uint32_t Reserved32 ; //!< Reserved |
| 1888 |
}; |
| 1889 |
uint32_t Value; |
| 1890 |
} DW1; |
| 1891 |
VDENC_Surface_State_Fields_CMD Dwords25 ; //!< Dwords 2..5 |
| 1892 |
VDENC_Surface_State_Fields_CMD Dwords69 ; //!< Dwords 6..9 |
| 1893 |
|
| 1894 |
//! \name Local enumerations |
| 1895 |
|
| 1896 |
enum SUBOPB |
| 1897 |
{ |
| 1898 |
SUBOPB_VDENCDSREFSURFACESTATE = 3, //!< No additional details |
| 1899 |
}; |
| 1900 |
|
| 1901 |
enum SUBOPA |
| 1902 |
{ |
| 1903 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 1904 |
}; |
| 1905 |
|
| 1906 |
enum OPCODE |
| 1907 |
{ |
| 1908 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 1909 |
}; |
| 1910 |
|
| 1911 |
enum PIPELINE |
| 1912 |
{ |
| 1913 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 1914 |
}; |
| 1915 |
|
| 1916 |
enum COMMAND_TYPE |
| 1917 |
{ |
| 1918 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1919 |
}; |
| 1920 |
|
| 1921 |
//! \name Initializations |
| 1922 |
|
| 1923 |
//! \brief Explicit member initialization function |
| 1924 |
VDENC_DS_REF_SURFACE_STATE_CMD(); |
| 1925 |
|
| 1926 |
static const size_t dwSize = 10; |
| 1927 |
static const size_t byteSize = 40; |
| 1928 |
}; |
| 1929 |
|
| 1930 |
//! |
| 1931 |
//! \brief VDENC_IMG_STATE |
| 1932 |
//! \details |
| 1933 |
//! This command programs the frame level parameters required by the VDEnc |
| 1934 |
//! pipeline. |
| 1935 |
//! |
| 1936 |
struct VDENC_IMG_STATE_CMD |
| 1937 |
{ |
| 1938 |
union |
| 1939 |
{ |
| 1940 |
//!< DWORD 0 |
| 1941 |
struct |
| 1942 |
{ |
| 1943 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 1944 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1945 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1946 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1947 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1948 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1949 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1950 |
}; |
| 1951 |
uint32_t Value; |
| 1952 |
} DW0; |
| 1953 |
union |
| 1954 |
{ |
| 1955 |
//!< DWORD 1 |
| 1956 |
struct |
| 1957 |
{ |
| 1958 |
uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 1) ; //!< Reserved |
| 1959 |
uint32_t BidirectionalMixDisable : __CODEGEN_BITFIELD( 2, 2) ; //!< BIDIRECTIONAL_MIX_DISABLE |
| 1960 |
uint32_t VdencPerfmode : __CODEGEN_BITFIELD( 3, 3) ; //!< VDENC_PERFMODE |
| 1961 |
uint32_t TimeBudgetOverflowCheck : __CODEGEN_BITFIELD( 4, 4) ; //!< TIME_BUDGET_OVERFLOW_CHECK |
| 1962 |
uint32_t VdencUltraMode : __CODEGEN_BITFIELD( 5, 5) ; //!< VDEnc_UltraMode |
| 1963 |
uint32_t VdencExtendedPakObjCmdEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE |
| 1964 |
uint32_t Transform8X8Flag : __CODEGEN_BITFIELD( 7, 7) ; //!< TRANSFORM_8X8_FLAG |
| 1965 |
uint32_t VdencL1CachePriority : __CODEGEN_BITFIELD( 8, 9) ; //!< VDENC_L1_CACHE_PRIORITY |
| 1966 |
uint32_t Reserved42 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved |
| 1967 |
uint32_t LambdaValueForTrellis : __CODEGEN_BITFIELD(16, 31) ; //!< Lambda value for Trellis |
| 1968 |
}; |
| 1969 |
uint32_t Value; |
| 1970 |
} DW1; |
| 1971 |
union |
| 1972 |
{ |
| 1973 |
//!< DWORD 2 |
| 1974 |
struct |
| 1975 |
{ |
| 1976 |
uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 15) ; //!< Reserved |
| 1977 |
uint32_t BidirectionalWeight : __CODEGEN_BITFIELD(16, 21) ; //!< BIDIRECTIONAL_WEIGHT |
| 1978 |
uint32_t Reserved86 : __CODEGEN_BITFIELD(22, 27) ; //!< Reserved |
| 1979 |
uint32_t UnidirectionalMixDisable : __CODEGEN_BITFIELD(28, 28) ; //!< Unidirectional Mix Disable |
| 1980 |
uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 1981 |
}; |
| 1982 |
uint32_t Value; |
| 1983 |
} DW2; |
| 1984 |
union |
| 1985 |
{ |
| 1986 |
//!< DWORD 3 |
| 1987 |
struct |
| 1988 |
{ |
| 1989 |
uint32_t Reserved96 : __CODEGEN_BITFIELD( 0, 15) ; //!< Reserved |
| 1990 |
uint32_t PictureWidth : __CODEGEN_BITFIELD(16, 31) ; //!< Picture Width |
| 1991 |
}; |
| 1992 |
uint32_t Value; |
| 1993 |
} DW3; |
| 1994 |
union |
| 1995 |
{ |
| 1996 |
//!< DWORD 4 |
| 1997 |
struct |
| 1998 |
{ |
| 1999 |
uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved |
| 2000 |
uint32_t SubPelMode : __CODEGEN_BITFIELD(12, 13) ; //!< SUB_PEL_MODE |
| 2001 |
uint32_t Reserved142 : __CODEGEN_BITFIELD(14, 16) ; //!< Reserved |
| 2002 |
uint32_t ForwardTransformSkipCheckEnable : __CODEGEN_BITFIELD(17, 17) ; //!< FORWARD_TRANSFORM_SKIP_CHECK_ENABLE |
| 2003 |
uint32_t BmeDisableForFbrMessage : __CODEGEN_BITFIELD(18, 18) ; //!< BME_DISABLE_FOR_FBR_MESSAGE |
| 2004 |
uint32_t BlockBasedSkipEnabled : __CODEGEN_BITFIELD(19, 19) ; //!< BLOCK_BASED_SKIP_ENABLED |
| 2005 |
uint32_t InterSadMeasureAdjustment : __CODEGEN_BITFIELD(20, 21) ; //!< INTER_SAD_MEASURE_ADJUSTMENT |
| 2006 |
uint32_t IntraSadMeasureAdjustment : __CODEGEN_BITFIELD(22, 23) ; //!< INTRA_SAD_MEASURE_ADJUSTMENT |
| 2007 |
uint32_t SubMacroblockSubPartitionMask : __CODEGEN_BITFIELD(24, 30) ; //!< SUB_MACROBLOCK_SUB_PARTITION_MASK |
| 2008 |
uint32_t BlockBasedSkipType : __CODEGEN_BITFIELD(31, 31) ; //!< BLOCK_BASED_SKIP_TYPE |
| 2009 |
}; |
| 2010 |
uint32_t Value; |
| 2011 |
} DW4; |
| 2012 |
union |
| 2013 |
{ |
| 2014 |
//!< DWORD 5 |
| 2015 |
struct |
| 2016 |
{ |
| 2017 |
uint32_t PictureHeightMinusOne : __CODEGEN_BITFIELD( 0, 15) ; //!< Picture Height Minus One |
| 2018 |
uint32_t CrePrefetchEnable : __CODEGEN_BITFIELD(16, 16) ; //!< CRE_PREFETCH_ENABLE |
| 2019 |
uint32_t HmeRef1Disable : __CODEGEN_BITFIELD(17, 17) ; //!< HME_REF1_DISABLE |
| 2020 |
uint32_t MbSliceThresholdValue : __CODEGEN_BITFIELD(18, 21) ; //!< MB Slice Threshold Value |
| 2021 |
uint32_t Reserved182 : __CODEGEN_BITFIELD(22, 25) ; //!< Reserved |
| 2022 |
uint32_t ConstrainedIntraPredictionFlag : __CODEGEN_BITFIELD(26, 26) ; //!< CONSTRAINED_INTRA_PREDICTION_FLAG |
| 2023 |
uint32_t Reserved187 : __CODEGEN_BITFIELD(27, 28) ; //!< Reserved |
| 2024 |
uint32_t PictureType : __CODEGEN_BITFIELD(29, 30) ; //!< PICTURE_TYPE |
| 2025 |
uint32_t Reserved191 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved |
| 2026 |
}; |
| 2027 |
uint32_t Value; |
| 2028 |
} DW5; |
| 2029 |
union |
| 2030 |
{ |
| 2031 |
//!< DWORD 6 |
| 2032 |
struct |
| 2033 |
{ |
| 2034 |
uint32_t SliceMacroblockHeightMinusOne : __CODEGEN_BITFIELD( 0, 15) ; //!< Slice Macroblock Height Minus One |
| 2035 |
uint32_t Reserved208 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 2036 |
}; |
| 2037 |
uint32_t Value; |
| 2038 |
} DW6; |
| 2039 |
union |
| 2040 |
{ |
| 2041 |
//!< DWORD 7 |
| 2042 |
struct |
| 2043 |
{ |
| 2044 |
uint32_t Hme0XOffset : __CODEGEN_BITFIELD( 0, 7) ; //!< HME0 X Offset |
| 2045 |
uint32_t Hme0YOffset : __CODEGEN_BITFIELD( 8, 15) ; //!< HME0 Y Offset |
| 2046 |
uint32_t Hme1XOffset : __CODEGEN_BITFIELD(16, 23) ; //!< HME1 X Offset |
| 2047 |
uint32_t Hme1YOffset : __CODEGEN_BITFIELD(24, 31) ; //!< HME1 Y Offset |
| 2048 |
}; |
| 2049 |
uint32_t Value; |
| 2050 |
} DW7; |
| 2051 |
union |
| 2052 |
{ |
| 2053 |
//!< DWORD 8 |
| 2054 |
struct |
| 2055 |
{ |
| 2056 |
uint32_t LumaIntraPartitionMask : __CODEGEN_BITFIELD( 0, 4) ; //!< LUMA_INTRA_PARTITION_MASK |
| 2057 |
uint32_t NonSkipZeroMvCostAdded : __CODEGEN_BITFIELD( 5, 5) ; //!< Non Skip Zero MV Cost Added |
| 2058 |
uint32_t NonSkipMbModeCostAdded : __CODEGEN_BITFIELD( 6, 6) ; //!< Non Skip MB Mode Cost Added |
| 2059 |
uint32_t Reserved263 : __CODEGEN_BITFIELD( 7, 15) ; //!< Reserved |
| 2060 |
uint32_t MvCostScalingFactor : __CODEGEN_BITFIELD(16, 17) ; //!< MV_COST_SCALING_FACTOR |
| 2061 |
uint32_t BilinearFilterEnable : __CODEGEN_BITFIELD(18, 18) ; //!< BiLinear Filter Enable |
| 2062 |
uint32_t Reserved275 : __CODEGEN_BITFIELD(19, 21) ; //!< Reserved |
| 2063 |
uint32_t RefidCostModeSelect : __CODEGEN_BITFIELD(22, 22) ; //!< REFID_COST_MODE_SELECT |
| 2064 |
uint32_t Reserved279 : __CODEGEN_BITFIELD(23, 31) ; //!< Reserved |
| 2065 |
}; |
| 2066 |
uint32_t Value; |
| 2067 |
} DW8; |
| 2068 |
union |
| 2069 |
{ |
| 2070 |
//!< DWORD 9 |
| 2071 |
struct |
| 2072 |
{ |
| 2073 |
uint32_t Mode0Cost : __CODEGEN_BITFIELD( 0, 7) ; //!< Mode 0 Cost |
| 2074 |
uint32_t Mode1Cost : __CODEGEN_BITFIELD( 8, 15) ; //!< Mode 1 Cost |
| 2075 |
uint32_t Mode2Cost : __CODEGEN_BITFIELD(16, 23) ; //!< Mode 2 Cost |
| 2076 |
uint32_t Mode3Cost : __CODEGEN_BITFIELD(24, 31) ; //!< Mode 3 Cost |
| 2077 |
}; |
| 2078 |
uint32_t Value; |
| 2079 |
} DW9; |
| 2080 |
union |
| 2081 |
{ |
| 2082 |
//!< DWORD 10 |
| 2083 |
struct |
| 2084 |
{ |
| 2085 |
uint32_t Mode4Cost : __CODEGEN_BITFIELD( 0, 7) ; //!< Mode 4 Cost |
| 2086 |
uint32_t Mode5Cost : __CODEGEN_BITFIELD( 8, 15) ; //!< Mode 5 Cost |
| 2087 |
uint32_t Mode6Cost : __CODEGEN_BITFIELD(16, 23) ; //!< Mode 6 Cost |
| 2088 |
uint32_t Mode7Cost : __CODEGEN_BITFIELD(24, 31) ; //!< Mode 7 Cost |
| 2089 |
}; |
| 2090 |
uint32_t Value; |
| 2091 |
} DW10; |
| 2092 |
union |
| 2093 |
{ |
| 2094 |
//!< DWORD 11 |
| 2095 |
struct |
| 2096 |
{ |
| 2097 |
uint32_t Mode8Cost : __CODEGEN_BITFIELD( 0, 7) ; //!< Mode 8 Cost |
| 2098 |
uint32_t Mode9Cost : __CODEGEN_BITFIELD( 8, 15) ; //!< Mode 9 Cost |
| 2099 |
uint32_t RefIdCost : __CODEGEN_BITFIELD(16, 23) ; //!< RefID Cost |
| 2100 |
uint32_t ChromaIntraModeCost : __CODEGEN_BITFIELD(24, 31) ; //!< Chroma Intra Mode Cost |
| 2101 |
}; |
| 2102 |
uint32_t Value; |
| 2103 |
} DW11; |
| 2104 |
union |
| 2105 |
{ |
| 2106 |
//!< DWORD 12 |
| 2107 |
struct |
| 2108 |
{ |
| 2109 |
uint32_t MvCost0 : __CODEGEN_BITFIELD( 0, 7) ; //!< MvCost 0 |
| 2110 |
uint32_t MvCost1 : __CODEGEN_BITFIELD( 8, 15) ; //!< MvCost 1 |
| 2111 |
uint32_t MvCost2 : __CODEGEN_BITFIELD(16, 23) ; //!< MvCost 2 |
| 2112 |
uint32_t MvCost3 : __CODEGEN_BITFIELD(24, 31) ; //!< MvCost 3 |
| 2113 |
}; |
| 2114 |
uint32_t Value; |
| 2115 |
} DW12; |
| 2116 |
union |
| 2117 |
{ |
| 2118 |
//!< DWORD 13 |
| 2119 |
struct |
| 2120 |
{ |
| 2121 |
uint32_t MvCost4 : __CODEGEN_BITFIELD( 0, 7) ; //!< MvCost 4 |
| 2122 |
uint32_t MvCost5 : __CODEGEN_BITFIELD( 8, 15) ; //!< MvCost 5 |
| 2123 |
uint32_t MvCost6 : __CODEGEN_BITFIELD(16, 23) ; //!< MvCost 6 |
| 2124 |
uint32_t MvCost7 : __CODEGEN_BITFIELD(24, 31) ; //!< MvCost 7 |
| 2125 |
}; |
| 2126 |
uint32_t Value; |
| 2127 |
} DW13; |
| 2128 |
union |
| 2129 |
{ |
| 2130 |
//!< DWORD 14 |
| 2131 |
struct |
| 2132 |
{ |
| 2133 |
uint32_t QpPrimeY : __CODEGEN_BITFIELD( 0, 7) ; //!< QpPrimeY |
| 2134 |
uint32_t Reserved456 : __CODEGEN_BITFIELD( 8, 23) ; //!< Reserved |
| 2135 |
uint32_t TargetSizeInWord : __CODEGEN_BITFIELD(24, 31) ; //!< TargetSizeInWord |
| 2136 |
}; |
| 2137 |
uint32_t Value; |
| 2138 |
} DW14; |
| 2139 |
union |
| 2140 |
{ |
| 2141 |
//!< DWORD 15 |
| 2142 |
struct |
| 2143 |
{ |
| 2144 |
uint32_t Reserved480 ; //!< Reserved |
| 2145 |
}; |
| 2146 |
uint32_t Value; |
| 2147 |
} DW15; |
| 2148 |
union |
| 2149 |
{ |
| 2150 |
//!< DWORD 16 |
| 2151 |
struct |
| 2152 |
{ |
| 2153 |
uint32_t Reserved512 ; //!< Reserved |
| 2154 |
}; |
| 2155 |
uint32_t Value; |
| 2156 |
} DW16; |
| 2157 |
union |
| 2158 |
{ |
| 2159 |
//!< DWORD 17 |
| 2160 |
struct |
| 2161 |
{ |
| 2162 |
uint32_t AvcIntra4X4ModeMask : __CODEGEN_BITFIELD( 0, 8) ; //!< AVC Intra 4x4 Mode Mask |
| 2163 |
uint32_t Reserved553 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved |
| 2164 |
uint32_t AvcIntra8X8ModeMask : __CODEGEN_BITFIELD(16, 24) ; //!< AVC Intra 8x8 Mode Mask |
| 2165 |
uint32_t Reserved569 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved |
| 2166 |
}; |
| 2167 |
uint32_t Value; |
| 2168 |
} DW17; |
| 2169 |
union |
| 2170 |
{ |
| 2171 |
//!< DWORD 18 |
| 2172 |
struct |
| 2173 |
{ |
| 2174 |
uint32_t AvcIntra16X16ModeMask : __CODEGEN_BITFIELD( 0, 3) ; //!< AVC_INTRA_16X16_MODE_MASK |
| 2175 |
uint32_t AvcIntraChromaModeMask : __CODEGEN_BITFIELD( 4, 7) ; //!< AVC_INTRA_CHROMA_MODE_MASK |
| 2176 |
uint32_t IntraComputeTypeIntracomputetype : __CODEGEN_BITFIELD( 8, 9) ; //!< INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE |
| 2177 |
uint32_t Reserved586 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved |
| 2178 |
}; |
| 2179 |
uint32_t Value; |
| 2180 |
} DW18; |
| 2181 |
union |
| 2182 |
{ |
| 2183 |
//!< DWORD 19 |
| 2184 |
struct |
| 2185 |
{ |
| 2186 |
uint32_t Reserved608 ; //!< Reserved |
| 2187 |
}; |
| 2188 |
uint32_t Value; |
| 2189 |
} DW19; |
| 2190 |
union |
| 2191 |
{ |
| 2192 |
//!< DWORD 20 |
| 2193 |
struct |
| 2194 |
{ |
| 2195 |
uint32_t PenaltyForIntra16X16NondcPrediction : __CODEGEN_BITFIELD( 0, 7) ; //!< Penalty for Intra16x16 NonDC Prediction. |
| 2196 |
uint32_t PenaltyForIntra8X8NondcPrediction : __CODEGEN_BITFIELD( 8, 15) ; //!< Penalty for Intra8x8 NonDC Prediction. |
| 2197 |
uint32_t PenaltyForIntra4X4NondcPrediction : __CODEGEN_BITFIELD(16, 23) ; //!< Penalty for Intra4x4 NonDC Prediction. |
| 2198 |
uint32_t Reserved664 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved |
| 2199 |
}; |
| 2200 |
uint32_t Value; |
| 2201 |
} DW20; |
| 2202 |
union |
| 2203 |
{ |
| 2204 |
//!< DWORD 21 |
| 2205 |
struct |
| 2206 |
{ |
| 2207 |
uint32_t IntraRefreshMBPos : __CODEGEN_BITFIELD( 0, 7) ; //!< IntraRefreshMBPos |
| 2208 |
uint32_t IntraRefreshMBSizeMinusOne : __CODEGEN_BITFIELD( 8, 15) ; //!< IntraRefreshMBSizeMinusOne |
| 2209 |
uint32_t IntraRefreshEnableRollingIEnable : __CODEGEN_BITFIELD(16, 16) ; //!< INTRAREFRESHENABLE_ROLLING_I_ENABLE |
| 2210 |
uint32_t IntraRefreshMode : __CODEGEN_BITFIELD(17, 17) ; //!< INTRAREFRESHMODE |
| 2211 |
uint32_t Reserved690 : __CODEGEN_BITFIELD(18, 23) ; //!< Reserved |
| 2212 |
uint32_t QpAdjustmentForRollingI : __CODEGEN_BITFIELD(24, 31) ; //!< QP adjustment for Rolling-I |
| 2213 |
}; |
| 2214 |
uint32_t Value; |
| 2215 |
} DW21; |
| 2216 |
union |
| 2217 |
{ |
| 2218 |
//!< DWORD 22 |
| 2219 |
struct |
| 2220 |
{ |
| 2221 |
uint32_t Panicmodembthreshold : __CODEGEN_BITFIELD( 0, 15) ; //!< PanicModeMBThreshold |
| 2222 |
uint32_t Smallmbsizeinword : __CODEGEN_BITFIELD(16, 23) ; //!< SmallMbSizeInWord |
| 2223 |
uint32_t Largembsizeinword : __CODEGEN_BITFIELD(24, 31) ; //!< LargeMbSizeInWord |
| 2224 |
}; |
| 2225 |
uint32_t Value; |
| 2226 |
} DW22; |
| 2227 |
union |
| 2228 |
{ |
| 2229 |
//!< DWORD 23 |
| 2230 |
struct |
| 2231 |
{ |
| 2232 |
uint32_t L0NumberOfReferencesMinusOne : __CODEGEN_BITFIELD( 0, 7) ; //!< L0 number of references Minus one |
| 2233 |
uint32_t Reserved744 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved |
| 2234 |
uint32_t L1NumberOfReferencesMinusOne : __CODEGEN_BITFIELD(16, 23) ; //!< L1 number of references Minus One |
| 2235 |
uint32_t Reserved760 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved |
| 2236 |
}; |
| 2237 |
uint32_t Value; |
| 2238 |
} DW23; |
| 2239 |
union |
| 2240 |
{ |
| 2241 |
//!< DWORD 24 |
| 2242 |
struct |
| 2243 |
{ |
| 2244 |
uint32_t MacroblockBudget : __CODEGEN_BITFIELD( 0, 15) ; //!< Macroblock Budget |
| 2245 |
uint32_t InitialTime : __CODEGEN_BITFIELD(16, 31) ; //!< Initial Time |
| 2246 |
}; |
| 2247 |
uint32_t Value; |
| 2248 |
} DW24; |
| 2249 |
union |
| 2250 |
{ |
| 2251 |
//!< DWORD 25 |
| 2252 |
struct |
| 2253 |
{ |
| 2254 |
uint32_t Reserved800 ; //!< Reserved |
| 2255 |
}; |
| 2256 |
uint32_t Value; |
| 2257 |
} DW25; |
| 2258 |
union |
| 2259 |
{ |
| 2260 |
//!< DWORD 26 |
| 2261 |
struct |
| 2262 |
{ |
| 2263 |
uint32_t Reserved832 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved |
| 2264 |
uint32_t HmeRefWindowsCombiningThreshold : __CODEGEN_BITFIELD( 8, 15) ; //!< HME_REF_WINDOWS_COMBINING_THRESHOLD |
| 2265 |
uint32_t Reserved848 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 2266 |
}; |
| 2267 |
uint32_t Value; |
| 2268 |
} DW26; |
| 2269 |
union |
| 2270 |
{ |
| 2271 |
//!< DWORD 27 |
| 2272 |
struct |
| 2273 |
{ |
| 2274 |
uint32_t MaxHmvR : __CODEGEN_BITFIELD( 0, 15) ; //!< MAXHMVR |
| 2275 |
uint32_t MaxVmvR : __CODEGEN_BITFIELD(16, 31) ; //!< MAXVMVR |
| 2276 |
}; |
| 2277 |
uint32_t Value; |
| 2278 |
} DW27; |
| 2279 |
union |
| 2280 |
{ |
| 2281 |
//!< DWORD 28 |
| 2282 |
struct |
| 2283 |
{ |
| 2284 |
uint32_t HmeMvCost0 : __CODEGEN_BITFIELD( 0, 7) ; //!< HmeMvCost 0 |
| 2285 |
uint32_t HmeMvCost1 : __CODEGEN_BITFIELD( 8, 15) ; //!< HmeMvCost 1 |
| 2286 |
uint32_t HmeMvCost2 : __CODEGEN_BITFIELD(16, 23) ; //!< HmeMvCost 2 |
| 2287 |
uint32_t HmeMvCost3 : __CODEGEN_BITFIELD(24, 31) ; //!< HmeMvCost 3 |
| 2288 |
}; |
| 2289 |
uint32_t Value; |
| 2290 |
} DW28; |
| 2291 |
union |
| 2292 |
{ |
| 2293 |
//!< DWORD 29 |
| 2294 |
struct |
| 2295 |
{ |
| 2296 |
uint32_t HmeMvCost4 : __CODEGEN_BITFIELD( 0, 7) ; //!< HmeMvCost 4 |
| 2297 |
uint32_t HmeMvCost5 : __CODEGEN_BITFIELD( 8, 15) ; //!< HmeMvCost 5 |
| 2298 |
uint32_t HmeMvCost6 : __CODEGEN_BITFIELD(16, 23) ; //!< HmeMvCost 6 |
| 2299 |
uint32_t HmeMvCost7 : __CODEGEN_BITFIELD(24, 31) ; //!< HmeMvCost 7 |
| 2300 |
}; |
| 2301 |
uint32_t Value; |
| 2302 |
} DW29; |
| 2303 |
union |
| 2304 |
{ |
| 2305 |
//!< DWORD 30 |
| 2306 |
struct |
| 2307 |
{ |
| 2308 |
uint32_t RoiQpAdjustmentForZone0 : __CODEGEN_BITFIELD( 0, 3) ; //!< ROI QP adjustment for Zone0 |
| 2309 |
uint32_t RoiQpAdjustmentForZone1 : __CODEGEN_BITFIELD( 4, 7) ; //!< ROI QP adjustment for Zone1 |
| 2310 |
uint32_t RoiQpAdjustmentForZone2 : __CODEGEN_BITFIELD( 8, 11) ; //!< ROI QP adjustment for Zone2 |
| 2311 |
uint32_t RoiQpAdjustmentForZone3 : __CODEGEN_BITFIELD(12, 15) ; //!< ROI QP adjustment for Zone3 |
| 2312 |
uint32_t QpAdjustmentForShapeBestIntra4X4Winner : __CODEGEN_BITFIELD(16, 19) ; //!< QP adjustment for shape best intra 4x4 winner |
| 2313 |
uint32_t QpAdjustmentForShapeBestIntra8X8Winner : __CODEGEN_BITFIELD(20, 23) ; //!< QP adjustment for shape best intra 8x8 winner |
| 2314 |
uint32_t QpAdjustmentForShapeBestIntra16X16Winner : __CODEGEN_BITFIELD(24, 27) ; //!< QP adjustment for shape best intra 16x16 winner |
| 2315 |
uint32_t Reserved988 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 2316 |
}; |
| 2317 |
uint32_t Value; |
| 2318 |
} DW30; |
| 2319 |
union |
| 2320 |
{ |
| 2321 |
//!< DWORD 31 |
| 2322 |
struct |
| 2323 |
{ |
| 2324 |
uint32_t BestdistortionQpAdjustmentForZone0 : __CODEGEN_BITFIELD( 0, 3) ; //!< BestDistortion QP adjustment for Zone0 |
| 2325 |
uint32_t BestdistortionQpAdjustmentForZone1 : __CODEGEN_BITFIELD( 4, 7) ; //!< BestDistortion QP adjustment for Zone1 |
| 2326 |
uint32_t BestdistortionQpAdjustmentForZone2 : __CODEGEN_BITFIELD( 8, 11) ; //!< BestDistortion QP adjustment for Zone2 |
| 2327 |
uint32_t BestdistortionQpAdjustmentForZone3 : __CODEGEN_BITFIELD(12, 15) ; //!< BestDistortion QP adjustment for Zone3 |
| 2328 |
uint32_t SadHaarThreshold0 : __CODEGEN_BITFIELD(16, 31) ; //!< Sad/Haar_Threshold_0 |
| 2329 |
}; |
| 2330 |
uint32_t Value; |
| 2331 |
} DW31; |
| 2332 |
union |
| 2333 |
{ |
| 2334 |
//!< DWORD 32 |
| 2335 |
struct |
| 2336 |
{ |
| 2337 |
uint32_t SadHaarThreshold1 : __CODEGEN_BITFIELD( 0, 15) ; //!< Sad/Haar_Threshold_1 |
| 2338 |
uint32_t SadHaarThreshold2 : __CODEGEN_BITFIELD(16, 31) ; //!< Sad/Haar_Threshold_2 |
| 2339 |
}; |
| 2340 |
uint32_t Value; |
| 2341 |
} DW32; |
| 2342 |
union |
| 2343 |
{ |
| 2344 |
//!< DWORD 33 |
| 2345 |
struct |
| 2346 |
{ |
| 2347 |
uint32_t MaxQp : __CODEGEN_BITFIELD( 0, 7) ; //!< MaxQP |
| 2348 |
uint32_t MinQp : __CODEGEN_BITFIELD( 8, 15) ; //!< MinQP |
| 2349 |
uint32_t Reserved1072 : __CODEGEN_BITFIELD(16, 23) ; //!< Reserved |
| 2350 |
uint32_t Maxdeltaqp : __CODEGEN_BITFIELD(24, 27) ; //!< MaxDeltaQP |
| 2351 |
uint32_t Reserved1084 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 2352 |
}; |
| 2353 |
uint32_t Value; |
| 2354 |
} DW33; |
| 2355 |
union |
| 2356 |
{ |
| 2357 |
//!< DWORD 34 |
| 2358 |
struct |
| 2359 |
{ |
| 2360 |
uint32_t RoiEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< ROI_Enable |
| 2361 |
uint32_t FwdPredictor0MvEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Fwd/Predictor0 MV Enable |
| 2362 |
uint32_t BwdPredictor1MvEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< Bwd/Predictor1 MV Enable |
| 2363 |
uint32_t MbLevelQpEnable : __CODEGEN_BITFIELD( 3, 3) ; //!< MB Level QP Enable |
| 2364 |
uint32_t TargetsizeinwordsmbMaxsizeinwordsmbEnable : __CODEGEN_BITFIELD( 4, 4) ; //!< TargetSizeinWordsMB/MaxSizeinWordsMB Enable |
| 2365 |
uint32_t Reserverd : __CODEGEN_BITFIELD( 5, 7) ; //!< Reserverd |
| 2366 |
uint32_t PpmvDisable : __CODEGEN_BITFIELD( 8, 8) ; //!< PPMV_DISABLE |
| 2367 |
uint32_t CoefficientClampEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Coefficient Clamp Enable |
| 2368 |
uint32_t LongtermReferenceFrameBwdRef0Indicator : __CODEGEN_BITFIELD(10, 10) ; //!< LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR |
| 2369 |
uint32_t LongtermReferenceFrameFwdRef2Indicator : __CODEGEN_BITFIELD(11, 11) ; //!< LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR |
| 2370 |
uint32_t LongtermReferenceFrameFwdRef1Indicator : __CODEGEN_BITFIELD(12, 12) ; //!< LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR |
| 2371 |
uint32_t LongtermReferenceFrameFwdRef0Indicator : __CODEGEN_BITFIELD(13, 13) ; //!< LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR |
| 2372 |
uint32_t Reserved1102 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved |
| 2373 |
uint32_t MidpointSadHaar : __CODEGEN_BITFIELD(16, 31) ; //!< Midpoint sad/haar |
| 2374 |
}; |
| 2375 |
uint32_t Value; |
| 2376 |
} DW34; |
| 2377 |
|
| 2378 |
//! \name Local enumerations |
| 2379 |
|
| 2380 |
enum SUBOPB |
| 2381 |
{ |
| 2382 |
SUBOPB_VDENCIMGSTATE = 5, //!< No additional details |
| 2383 |
}; |
| 2384 |
|
| 2385 |
enum SUBOPA |
| 2386 |
{ |
| 2387 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 2388 |
}; |
| 2389 |
|
| 2390 |
enum OPCODE |
| 2391 |
{ |
| 2392 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 2393 |
}; |
| 2394 |
|
| 2395 |
enum PIPELINE |
| 2396 |
{ |
| 2397 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 2398 |
}; |
| 2399 |
|
| 2400 |
enum COMMAND_TYPE |
| 2401 |
{ |
| 2402 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 2403 |
}; |
| 2404 |
|
| 2405 |
enum BIDIRECTIONAL_MIX_DISABLE |
| 2406 |
{ |
| 2407 |
BIDIRECTIONAL_MIX_DISABLE_SUBBLOCKENABLED = 0, //!< Bidirectional decision on subblock level that bidirectional mode is enabled. |
| 2408 |
BIDIRECTIONAL_MIX_DISABLE_WHOLEMACROBLOCKENABLED = 1, //!< Bidirectional decision on whole macroblock. |
| 2409 |
}; |
| 2410 |
|
| 2411 |
//! \brief VDENC_PERFMODE |
| 2412 |
//! \details |
| 2413 |
//! This bit indicates if VDEnc is configured for normal or speed mode of |
| 2414 |
//! operation. |
| 2415 |
enum VDENC_PERFMODE |
| 2416 |
{ |
| 2417 |
VDENC_PERFMODE_NORMAL = 0, //!< VDEnc is running in normal mode. IME Search: 3x3 SU per each reference. HME Search: 88x92 search window per HME instance (0 & 1). |
| 2418 |
VDENC_PERFMODE_SPEED = 1, //!< VDEnc is configured for speed mode. IME Search: 2x2 SU per each reference. HME Search: 48x92 search window per HME instance (0 & 1). |
| 2419 |
}; |
| 2420 |
|
| 2421 |
//! \brief TIME_BUDGET_OVERFLOW_CHECK |
| 2422 |
//! \details |
| 2423 |
//! <p>This bit enables the frame time budget detection in VDEnc.</p> |
| 2424 |
//! <p>To detect if a Time Budget Overflow happened in a frame, SW |
| 2425 |
//! can read "PAK_Stream-Out Report (Errors)" register in MFX. When Time |
| 2426 |
//! budget overflow condition happens in the frame, this register bits 15:8 |
| 2427 |
//! indicate MB y position and bits 7:0 indicate MB x position where Time |
| 2428 |
//! budget overflow occured. When there is no time budget overflow in a |
| 2429 |
//! frame, "<span style="line-height: 20.7999992370605px;">PAK_Stream-Out |
| 2430 |
//! Report (Errors)" register reads zero.</span></p> |
| 2431 |
enum TIME_BUDGET_OVERFLOW_CHECK |
| 2432 |
{ |
| 2433 |
TIME_BUDGET_OVERFLOW_CHECK_DISABLED = 0, //!< No additional details |
| 2434 |
TIME_BUDGET_OVERFLOW_CHECK_ENABLED = 1, //!< No additional details |
| 2435 |
}; |
| 2436 |
|
| 2437 |
//! \brief VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE |
| 2438 |
//! \details |
| 2439 |
//! This bit enables the distortion data to be populated in the VDenc PAK |
| 2440 |
//! Obj inline data. |
| 2441 |
enum VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE |
| 2442 |
{ |
| 2443 |
VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE_DISABLE = 0, //!< The extra two DWS from VDEnc (MDC) to PAK will be Zero. |
| 2444 |
VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE_ENABLE = 1, //!< The last two DWs from VDEnc (MDC) to PAK will be populated with distortion data. (Defined in the PAK Object command DW 22,23.) |
| 2445 |
}; |
| 2446 |
|
| 2447 |
//! \brief TRANSFORM_8X8_FLAG |
| 2448 |
//! \details |
| 2449 |
//! 8x8 IDCT Transform Mode Flag, trans8x8_mode_flag specifies 8x8 IDCT |
| 2450 |
//! transform may be used in this picture. It is set to the value of the |
| 2451 |
//! syntax element in the current active PPS. |
| 2452 |
enum TRANSFORM_8X8_FLAG |
| 2453 |
{ |
| 2454 |
TRANSFORM_8X8_FLAG_DISABLED = 0, //!< No 8x8 IDCT Transform, only 4x4 IDCT transform blocks are present. |
| 2455 |
TRANSFORM_8X8_FLAG_ENABLED = 1, //!< 8x8 Transform is allowed. |
| 2456 |
}; |
| 2457 |
|
| 2458 |
//! \brief VDENC_L1_CACHE_PRIORITY |
| 2459 |
//! \details |
| 2460 |
//! L1 Cache inside VDEnc has 3 clients - IME, CRE and VMC. |
| 2461 |
//! These bits indicate the priority order for L1 cache to |
| 2462 |
//! service the client requests. |
| 2463 |
enum VDENC_L1_CACHE_PRIORITY |
| 2464 |
{ |
| 2465 |
VDENC_L1_CACHE_PRIORITY_UNNAMED0 = 0, //!< CRE High Priority, VMC and IME round robin. |
| 2466 |
VDENC_L1_CACHE_PRIORITY_UNNAMED1 = 1, //!< CRE and VMC round robin, IME low priority. |
| 2467 |
VDENC_L1_CACHE_PRIORITY_UNNAMED2 = 2, //!< CRE High Priority, IME Medium, VMC Low. |
| 2468 |
VDENC_L1_CACHE_PRIORITY_UNNAMED3 = 3, //!< VMC High Priority, CRE Medium, IME low. |
| 2469 |
}; |
| 2470 |
|
| 2471 |
//! \brief BIDIRECTIONAL_WEIGHT |
| 2472 |
//! \details |
| 2473 |
//! Default value: Depends on the distance between the B and reference |
| 2474 |
//! pictures. |
| 2475 |
enum BIDIRECTIONAL_WEIGHT |
| 2476 |
{ |
| 2477 |
BIDIRECTIONAL_WEIGHT_UNNAMED16 = 16, //!< No additional details |
| 2478 |
BIDIRECTIONAL_WEIGHT_UNNAMED21 = 21, //!< No additional details |
| 2479 |
BIDIRECTIONAL_WEIGHT_UNNAMED32 = 32, //!< No additional details |
| 2480 |
BIDIRECTIONAL_WEIGHT_UNNAMED43 = 43, //!< No additional details |
| 2481 |
BIDIRECTIONAL_WEIGHT_UNNAMED48 = 48, //!< No additional details |
| 2482 |
}; |
| 2483 |
|
| 2484 |
//! \brief SUB_PEL_MODE |
| 2485 |
//! \details |
| 2486 |
//! This field defines the half/quarter pel modes. The mode is inclusive, |
| 2487 |
//! i.e., higher precision mode samples lower precision locations. |
| 2488 |
enum SUB_PEL_MODE |
| 2489 |
{ |
| 2490 |
SUB_PEL_MODE_UNNAMED0 = 0, //!< Integer mode searching. |
| 2491 |
SUB_PEL_MODE_UNNAMED1 = 1, //!< Half-pel mode searching. |
| 2492 |
SUB_PEL_MODE_UNNAMED3 = 3, //!< Quarter-pel mode searching. |
| 2493 |
}; |
| 2494 |
|
| 2495 |
//! \brief FORWARD_TRANSFORM_SKIP_CHECK_ENABLE |
| 2496 |
//! \details |
| 2497 |
//! This field enables the forward transform calculation for skip check. |
| 2498 |
//! It does not override the other skip calculations but it does decrease |
| 2499 |
//! the performance marginally so don't enable it unless the transform |
| 2500 |
//! is necessary. |
| 2501 |
enum FORWARD_TRANSFORM_SKIP_CHECK_ENABLE |
| 2502 |
{ |
| 2503 |
FORWARD_TRANSFORM_SKIP_CHECK_ENABLE_FTDISABLED = 0, //!< No additional details |
| 2504 |
FORWARD_TRANSFORM_SKIP_CHECK_ENABLE_FTENABLED = 1, //!< No additional details |
| 2505 |
}; |
| 2506 |
|
| 2507 |
//! \brief BME_DISABLE_FOR_FBR_MESSAGE |
| 2508 |
//! \details |
| 2509 |
//! FBR messages that do not want bidirectional motion estimation |
| 2510 |
//! performed will set this bit and VME will only perform |
| 2511 |
//! fractional refinement on the shapes identified by subpredmode. |
| 2512 |
//! Note: only the LSB of the subpredmode for each shape will be |
| 2513 |
//! considered in FBR (a shape iseither FWD or BWD as input of FBR, |
| 2514 |
//! output however could change toBI if BME is enabled). |
| 2515 |
enum BME_DISABLE_FOR_FBR_MESSAGE |
| 2516 |
{ |
| 2517 |
BME_DISABLE_FOR_FBR_MESSAGE_BMEENABLED = 0, //!< No additional details |
| 2518 |
BME_DISABLE_FOR_FBR_MESSAGE_BMEDISABLED = 1, //!< No additional details |
| 2519 |
}; |
| 2520 |
|
| 2521 |
//! \brief BLOCK_BASED_SKIP_ENABLED |
| 2522 |
//! \details |
| 2523 |
//! When this field is set on the skip thresholding passing criterion will |
| 2524 |
//! be based on the maximal distortion of individual blocks (8x8's or 4x4's) |
| 2525 |
//! instead of their sum (i.e. the distortion of 16x16). |
| 2526 |
enum BLOCK_BASED_SKIP_ENABLED |
| 2527 |
{ |
| 2528 |
BLOCK_BASED_SKIP_ENABLED_UNNAMED0 = 0, //!< 16x16 Block Based Skip threshold check. |
| 2529 |
BLOCK_BASED_SKIP_ENABLED_BLOCK_BASEDSKIPTYPE = 1, //!< Parameter indicates 8x8 vs. 4x4 based check. |
| 2530 |
}; |
| 2531 |
|
| 2532 |
//! \brief INTER_SAD_MEASURE_ADJUSTMENT |
| 2533 |
//! \details |
| 2534 |
//! This field specifies distortion measure adjustments used |
| 2535 |
//! for the motion search SAD comparison. This field applies |
| 2536 |
//! to both luma and chroma inter measurement. |
| 2537 |
enum INTER_SAD_MEASURE_ADJUSTMENT |
| 2538 |
{ |
| 2539 |
INTER_SAD_MEASURE_ADJUSTMENT_NONE = 0, //!< No additional details |
| 2540 |
INTER_SAD_MEASURE_ADJUSTMENT_HAARTRANSFORMADJUSTED = 2, //!< No additional details |
| 2541 |
}; |
| 2542 |
|
| 2543 |
//! \brief INTRA_SAD_MEASURE_ADJUSTMENT |
| 2544 |
//! \details |
| 2545 |
//! This field specifies distortion measure adjustments used for the motion |
| 2546 |
//! search SAD comparison. This field applies to both luma and chroma |
| 2547 |
//! intra measurement. |
| 2548 |
enum INTRA_SAD_MEASURE_ADJUSTMENT |
| 2549 |
{ |
| 2550 |
INTRA_SAD_MEASURE_ADJUSTMENT_NONE = 0, //!< No additional details |
| 2551 |
INTRA_SAD_MEASURE_ADJUSTMENT_HAARTRANSFORMADJUSTED = 2, //!< No additional details |
| 2552 |
}; |
| 2553 |
|
| 2554 |
//! \brief SUB_MACROBLOCK_SUB_PARTITION_MASK |
| 2555 |
//! \details |
| 2556 |
//! This field defines the bit-mask for disabling |
| 2557 |
//! <ul> |
| 2558 |
//! <li>sub-partition (minor partition [30:28]) modes</li> |
| 2559 |
//! <li>sub-macroblock (major partition [27:24]) modes</li> |
| 2560 |
//! </ul> |
| 2561 |
enum SUB_MACROBLOCK_SUB_PARTITION_MASK |
| 2562 |
{ |
| 2563 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED113 = 113, //!< 16x16 sub-macroblock disabled |
| 2564 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED114 = 114, //!< 2x(16x8) sub-macroblock within 16x16 disabled |
| 2565 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED116 = 116, //!< 2x(8x16) sub-macroblock within 16x16 disabled |
| 2566 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED120 = 120, //!< 1x(8x8) sub-partition for 4x(8x8) within 16x16 disabled |
| 2567 |
}; |
| 2568 |
|
| 2569 |
//! \brief BLOCK_BASED_SKIP_TYPE |
| 2570 |
//! \details |
| 2571 |
//! The skip thresholding passing criterion will be based on the maximal |
| 2572 |
//! distortion of individual blocks (8x8's or 4x4's) instead of |
| 2573 |
//! their sum (i.e. the distortion of 16x16). This field is only valid |
| 2574 |
//! when <b>Block-Based Skip Enabled</b> = 1. |
| 2575 |
enum BLOCK_BASED_SKIP_TYPE |
| 2576 |
{ |
| 2577 |
BLOCK_BASED_SKIP_TYPE_UNNAMED0 = 0, //!< 4x4 block-based skip threshold check. |
| 2578 |
BLOCK_BASED_SKIP_TYPE_UNNAMED1 = 1, //!< 8x8 block-based skip threshold check. |
| 2579 |
}; |
| 2580 |
|
| 2581 |
//! \brief CRE_PREFETCH_ENABLE |
| 2582 |
//! \details |
| 2583 |
//! This field determines if IME will prefetch the fractional CLs that are |
| 2584 |
//! required by CRE ahead of time while fetching the reference windows around |
| 2585 |
//! the IME predictors. The recommendation for driver is to always program |
| 2586 |
//! this bit to 1 unless some usages restrict SubPelMode to be "<i>Integer |
| 2587 |
//! mode searching</i>". |
| 2588 |
enum CRE_PREFETCH_ENABLE |
| 2589 |
{ |
| 2590 |
CRE_PREFETCH_ENABLE_UNNAMED0 = 0, //!< Disable |
| 2591 |
CRE_PREFETCH_ENABLE_UNNAMED1 = 1, //!< Enable |
| 2592 |
}; |
| 2593 |
|
| 2594 |
//! \brief HME_REF1_DISABLE |
| 2595 |
//! \details |
| 2596 |
//! This field indicates if HME is disabled for reference 1 (second forward |
| 2597 |
//! reference). |
| 2598 |
enum HME_REF1_DISABLE |
| 2599 |
{ |
| 2600 |
HME_REF1_DISABLE_UNNAMED0 = 0, //!< HME search is performed on forward reference 1. |
| 2601 |
HME_REF1_DISABLE_UNNAMED1 = 1, //!< HME search is disabled on forward reference 1. |
| 2602 |
}; |
| 2603 |
|
| 2604 |
enum CONSTRAINED_INTRA_PREDICTION_FLAG |
| 2605 |
{ |
| 2606 |
CONSTRAINED_INTRA_PREDICTION_FLAG_UNNAMED0 = 0, //!< Allows both intra and inter neighboring MB to be used in the intra-prediction decoding of the current MB. |
| 2607 |
CONSTRAINED_INTRA_PREDICTION_FLAG_UNNAMED1 = 1, //!< Allows only to use neighboring Intra MBs in the intra-prediction decoding of the current MB.If the neighbor is an inter MB, it is considered as not available. |
| 2608 |
}; |
| 2609 |
|
| 2610 |
//! \brief PICTURE_TYPE |
| 2611 |
//! \details |
| 2612 |
//! This field specifies how the current picture is predicted. (It might be |
| 2613 |
//! redundant from the kernel type.) |
| 2614 |
enum PICTURE_TYPE |
| 2615 |
{ |
| 2616 |
PICTURE_TYPE_I = 0, //!< No additional details |
| 2617 |
PICTURE_TYPE_P = 1, //!< No additional details |
| 2618 |
}; |
| 2619 |
|
| 2620 |
//! \brief LUMA_INTRA_PARTITION_MASK |
| 2621 |
//! \details |
| 2622 |
//! This field specifies which Luma Intra partition is enabled/disabled for |
| 2623 |
//! intra mode decision. |
| 2624 |
enum LUMA_INTRA_PARTITION_MASK |
| 2625 |
{ |
| 2626 |
LUMA_INTRA_PARTITION_MASK_UNNAMED1 = 1, //!< luma_intra_16x16 disabled |
| 2627 |
LUMA_INTRA_PARTITION_MASK_UNNAMED2 = 2, //!< luma_intra_8x8 disabled |
| 2628 |
LUMA_INTRA_PARTITION_MASK_UNNAMED4 = 4, //!< luma_intra_4x4 disabled |
| 2629 |
}; |
| 2630 |
|
| 2631 |
enum MV_COST_SCALING_FACTOR |
| 2632 |
{ |
| 2633 |
MV_COST_SCALING_FACTOR_QPEL = 0, //!< Qpel difference between MV and cost center: eff cost range 0-15pel |
| 2634 |
MV_COST_SCALING_FACTOR_HPEL = 1, //!< Hpel difference between MV and cost center: eff cost range 0-31pel |
| 2635 |
MV_COST_SCALING_FACTOR_PEL = 2, //!< Pel difference between MV and cost center: eff cost range 0-63pel |
| 2636 |
MV_COST_SCALING_FACTOR_2PEL = 3, //!< 2Pel difference between MV and cost center: eff cost range 0-127pel |
| 2637 |
}; |
| 2638 |
|
| 2639 |
enum REFID_COST_MODE_SELECT |
| 2640 |
{ |
| 2641 |
REFID_COST_MODE_SELECT_MODE0 = 0, //!< AVC |
| 2642 |
REFID_COST_MODE_SELECT_MODE1 = 1, //!< Linear |
| 2643 |
}; |
| 2644 |
|
| 2645 |
enum AVC_INTRA_16X16_MODE_MASK |
| 2646 |
{ |
| 2647 |
AVC_INTRA_16X16_MODE_MASK_VERT = 1, //!< No additional details |
| 2648 |
AVC_INTRA_16X16_MODE_MASK_HORZ = 2, //!< No additional details |
| 2649 |
AVC_INTRA_16X16_MODE_MASK_DC = 4, //!< No additional details |
| 2650 |
AVC_INTRA_16X16_MODE_MASK_PLANAR = 8, //!< No additional details |
| 2651 |
}; |
| 2652 |
|
| 2653 |
enum AVC_INTRA_CHROMA_MODE_MASK |
| 2654 |
{ |
| 2655 |
AVC_INTRA_CHROMA_MODE_MASK_VERT = 1, //!< No additional details |
| 2656 |
AVC_INTRA_CHROMA_MODE_MASK_HORZ = 2, //!< No additional details |
| 2657 |
AVC_INTRA_CHROMA_MODE_MASK_DC = 4, //!< No additional details |
| 2658 |
AVC_INTRA_CHROMA_MODE_MASK_PLANAR = 8, //!< No additional details |
| 2659 |
}; |
| 2660 |
|
| 2661 |
//! \brief INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE |
| 2662 |
//! \details |
| 2663 |
//! This field specifies the pixel components measured for Intra prediction. |
| 2664 |
enum INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE |
| 2665 |
{ |
| 2666 |
INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED0 = 0, //!< Luma+Chroma enabled. |
| 2667 |
INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED1 = 1, //!< Luma Only. |
| 2668 |
INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED2 = 2, //!< Intra Disabled. |
| 2669 |
}; |
| 2670 |
|
| 2671 |
//! \brief INTRAREFRESHENABLE_ROLLING_I_ENABLE |
| 2672 |
//! \details |
| 2673 |
//! <p>This parameter indicates if the IntraRefresh is enabled or |
| 2674 |
//! disabled.</p> |
| 2675 |
//! |
| 2676 |
//! <p>This must be disabled on I-Frames.</p> |
| 2677 |
enum INTRAREFRESHENABLE_ROLLING_I_ENABLE |
| 2678 |
{ |
| 2679 |
INTRAREFRESHENABLE_ROLLING_I_ENABLE_DISABLE = 0, //!< No additional details |
| 2680 |
INTRAREFRESHENABLE_ROLLING_I_ENABLE_ENABLE = 1, //!< No additional details |
| 2681 |
}; |
| 2682 |
|
| 2683 |
//! \brief INTRAREFRESHMODE |
| 2684 |
//! \details |
| 2685 |
//! This parameter indicates if the IntraRefresh is row based or column |
| 2686 |
//! based. |
| 2687 |
enum INTRAREFRESHMODE |
| 2688 |
{ |
| 2689 |
INTRAREFRESHMODE_ROWBASED = 0, //!< No additional details |
| 2690 |
INTRAREFRESHMODE_COLUMNBASED = 1, //!< No additional details |
| 2691 |
}; |
| 2692 |
|
| 2693 |
//! \brief HME_REF_WINDOWS_COMBINING_THRESHOLD |
| 2694 |
//! \details |
| 2695 |
//! When the reference windows of the HME refinement VME call and the |
| 2696 |
//! regular VME call are overlapped and the difference of the locations |
| 2697 |
//! is within this threshold in quarter pixel unit, the two calls |
| 2698 |
//! are merged to a single call. |
| 2699 |
enum HME_REF_WINDOWS_COMBINING_THRESHOLD |
| 2700 |
{ |
| 2701 |
HME_REF_WINDOWS_COMBINING_THRESHOLD_UNNAMED0 = 0, //!< No additional details |
| 2702 |
HME_REF_WINDOWS_COMBINING_THRESHOLD_UNNAMED255 = 255, //!< No additional details |
| 2703 |
}; |
| 2704 |
|
| 2705 |
//! \brief MAXHMVR |
| 2706 |
//! \details |
| 2707 |
//! Horizontal MV component range. The MV range is restricted to |
| 2708 |
//! [-MaxHmvR+1, MaxHmvR-1] in luma quarter pel unit, |
| 2709 |
//! which corresponds to [-MaxHmvR/4 + 0.25, MaxHmvR/4-0.25] in luma |
| 2710 |
//! integer pel unit. |
| 2711 |
enum MAXHMVR |
| 2712 |
{ |
| 2713 |
MAXHMVR_UNNAMED256 = 256, //!< No additional details |
| 2714 |
MAXHMVR_UNNAMED512 = 512, //!< No additional details |
| 2715 |
MAXHMVR_UNNAMED1024 = 1024, //!< No additional details |
| 2716 |
MAXHMVR_UNNAMED2048 = 2048, //!< No additional details |
| 2717 |
MAXHMVR_UNNAMED4096 = 4096, //!< No additional details |
| 2718 |
MAXHMVR_UNNAMED8192 = 8192, //!< No additional details |
| 2719 |
}; |
| 2720 |
|
| 2721 |
//! \brief MAXVMVR |
| 2722 |
//! \details |
| 2723 |
//! Vertical MV component range defined in the AVC Spec Annex A. |
| 2724 |
//! The MV range is restricted to [-MaxVmvR+1, MaxVmvR-1] |
| 2725 |
//! in luma quarter pel unit, which corresponds to |
| 2726 |
//! [-MaxVmvR/4 + 0.25, MaxVmvR/4-0.25] in luma integer pel unit. |
| 2727 |
enum MAXVMVR |
| 2728 |
{ |
| 2729 |
MAXVMVR_UNNAMED256 = 256, //!< No additional details |
| 2730 |
MAXVMVR_UNNAMED512 = 512, //!< No additional details |
| 2731 |
MAXVMVR_UNNAMED1024 = 1024, //!< No additional details |
| 2732 |
MAXVMVR_UNNAMED2048 = 2048, //!< No additional details |
| 2733 |
}; |
| 2734 |
|
| 2735 |
//! \brief PPMV_DISABLE |
| 2736 |
//! \details |
| 2737 |
//! This bit forces the IME to use the actual PMV predictor for the IME |
| 2738 |
//! search. |
| 2739 |
enum PPMV_DISABLE |
| 2740 |
{ |
| 2741 |
PPMV_DISABLE_UNNAMED0 = 0, //!< Use PPMV based IME search. |
| 2742 |
PPMV_DISABLE_UNNAMED1 = 1, //!< Use PMV based IME search. |
| 2743 |
}; |
| 2744 |
|
| 2745 |
//! \brief LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR |
| 2746 |
//! \details |
| 2747 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2748 |
enum LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR |
| 2749 |
{ |
| 2750 |
LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2751 |
LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2752 |
}; |
| 2753 |
|
| 2754 |
//! \brief LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR |
| 2755 |
//! \details |
| 2756 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2757 |
enum LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR |
| 2758 |
{ |
| 2759 |
LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2760 |
LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2761 |
}; |
| 2762 |
|
| 2763 |
//! \brief LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR |
| 2764 |
//! \details |
| 2765 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2766 |
enum LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR |
| 2767 |
{ |
| 2768 |
LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2769 |
LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2770 |
}; |
| 2771 |
|
| 2772 |
//! \brief LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR |
| 2773 |
//! \details |
| 2774 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2775 |
enum LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR |
| 2776 |
{ |
| 2777 |
LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2778 |
LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2779 |
}; |
| 2780 |
|
| 2781 |
//! \name Initializations |
| 2782 |
|
| 2783 |
//! \brief Explicit member initialization function |
| 2784 |
VDENC_IMG_STATE_CMD(); |
| 2785 |
|
| 2786 |
static const size_t dwSize = 35; |
| 2787 |
static const size_t byteSize = 140; |
| 2788 |
}; |
| 2789 |
|
| 2790 |
//! |
| 2791 |
//! \brief VDENC_PIPE_BUF_ADDR_STATE |
| 2792 |
//! \details |
| 2793 |
//! This state command provides the memory base addresses for all row |
| 2794 |
//! stores, Streamin/StreamOut, DMV buffer along with the uncompressed |
| 2795 |
//! source, reference pictures and downscaled reference pictures required by |
| 2796 |
//! the VDENC pipeline. All reference pixel surfaces in the Encoder are |
| 2797 |
//! programmed with the same surface state (NV12 and TileY format), except |
| 2798 |
//! each has its own frame buffer base address. Same holds true for the |
| 2799 |
//! down-scaled reference pictures too. In the tile format, there is no need |
| 2800 |
//! to provide buffer offset for each slice; since from each MB address, the |
| 2801 |
//! hardware can calculated the corresponding memory location within the |
| 2802 |
//! frame buffer directly. VDEnc supports 3 Downscaled reference frames ( 2 |
| 2803 |
//! fwd, 1 bwd) and 4 normal reference frames ( 3 fwd, 1 bwd). The driver |
| 2804 |
//! will sort out the base address from the DPB table and populate the base |
| 2805 |
//! addresses that map to the corresponding reference index for both DS |
| 2806 |
//! references and normal reference frames. Each of the individual DS ref/ |
| 2807 |
//! Normal ref frames have their own MOCS DW that corresponds to the |
| 2808 |
//! respective base address. The only thing that is different in the MOCS DW |
| 2809 |
//! amongst the DS reference frames is the MMCD controls (specified in bits |
| 2810 |
//! [10:9] of the MOCS DW). Driver needs to ensure that the other bits need |
| 2811 |
//! to be the same across the different DS ref frames. The same is |
| 2812 |
//! applicable for the normal reference frames. |
| 2813 |
//! |
| 2814 |
struct VDENC_PIPE_BUF_ADDR_STATE_CMD |
| 2815 |
{ |
| 2816 |
union |
| 2817 |
{ |
| 2818 |
//!< DWORD 0 |
| 2819 |
struct |
| 2820 |
{ |
| 2821 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 2822 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 2823 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 2824 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 2825 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 2826 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 2827 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 2828 |
}; |
| 2829 |
uint32_t Value; |
| 2830 |
} DW0; |
| 2831 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef0 ; //!< DS FWD REF0 |
| 2832 |
union |
| 2833 |
{ |
| 2834 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef1; //!< DS FWD REF1 |
| 2835 |
VDENC_Down_Scaled_Reference_Picture_CMD DsBwdRef0; //!< DS BWD REF0 |
| 2836 |
}; |
| 2837 |
VDENC_Down_Scaled_Reference_Picture_CMD Reserved; //!< Reserved |
| 2838 |
VDENC_Original_Uncompressed_Picture_CMD OriginalUncompressedPicture ; //!< Original Uncompressed Picture |
| 2839 |
VDENC_Streamin_Data_Picture_CMD StreaminDataPicture ; //!< Streamin Data Picture |
| 2840 |
VDENC_Row_Store_Scratch_Buffer_Picture_CMD RowStoreScratchBuffer ; //!< Row Store Scratch Buffer |
| 2841 |
VDENC_Colocated_MV_Picture_CMD ColocatedMv ; //!< Colocated MV |
| 2842 |
VDENC_Reference_Picture_CMD FwdRef0 ; //!< FWD REF0 |
| 2843 |
VDENC_Reference_Picture_CMD FwdRef1 ; //!< FWD REF1 |
| 2844 |
VDENC_Reference_Picture_CMD FwdRef2 ; //!< FWD REF2 |
| 2845 |
VDENC_Reference_Picture_CMD BwdRef0 ; //!< BWD REF0 |
| 2846 |
VDENC_Statistics_Streamout_CMD VdencStatisticsStreamout ; //!< VDEnc Statistics Streamout |
| 2847 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef04X ; //!< DS FWD REF0 4X |
| 2848 |
union |
| 2849 |
{ |
| 2850 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef14X ; //!< DS FWD REF1 4X |
| 2851 |
VDENC_Down_Scaled_Reference_Picture_CMD DsBwdRef04X ; //!< DS BWD REF1 4X |
| 2852 |
}; |
| 2853 |
VDENC_Colocated_MV_Picture_CMD VdencCuRecordStreamOutBuffer ; //!< VDEnc CuRecord stream-out buffer |
| 2854 |
VDENC_Colocated_MV_Picture_CMD VdencLcuPakObjCmdBuffer ; //!< VDEnc LCU PAK OBJ CMD Buffer |
| 2855 |
VDENC_Down_Scaled_Reference_Picture_CMD ScaledReferenceSurface8X ; //!< Scaled Reference Surface 8X |
| 2856 |
VDENC_Down_Scaled_Reference_Picture_CMD ScaledReferenceSurface4X ; //!< Scaled Reference Surface 4X |
| 2857 |
VDENC_Colocated_MV_Picture_CMD Vp9SegmentationMapStreaminBuffer ; //!< VP9 Segmentation Map Streamin Buffer |
| 2858 |
VDENC_Colocated_MV_Picture_CMD Vp9SegmentationMapStreamoutBuffer ; //!< VP9 Segmentation Map Streamout Buffer |
| 2859 |
union |
| 2860 |
{ |
| 2861 |
//!< DWORD 61 |
| 2862 |
struct |
| 2863 |
{ |
| 2864 |
uint32_t WeightsHistogramStreamoutOffset ; //!< Weights Histogram Streamout offset |
| 2865 |
}; |
| 2866 |
uint32_t Value; |
| 2867 |
} DW61; |
| 2868 |
VDENC_Row_Store_Scratch_Buffer_Picture_CMD VdencTileRowStoreBuffer ; //!< VDENC Tile Row store Buffer |
| 2869 |
VDENC_Statistics_Streamout_CMD VdencCumulativeCuCountStreamoutSurface ; //!< VDENC Cumulative CU count streamout surface |
| 2870 |
VDENC_Statistics_Streamout_CMD VdencPaletteModeStreamoutSurface ; //!< VDENC Palette Mode streamout surface |
| 2871 |
|
| 2872 |
//! \name Local enumerations |
| 2873 |
|
| 2874 |
enum SUBOPB |
| 2875 |
{ |
| 2876 |
SUBOPB_VDENCPIPEBUFADDRSTATE = 4, //!< No additional details |
| 2877 |
}; |
| 2878 |
|
| 2879 |
enum SUBOPA |
| 2880 |
{ |
| 2881 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 2882 |
}; |
| 2883 |
|
| 2884 |
enum OPCODE |
| 2885 |
{ |
| 2886 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 2887 |
}; |
| 2888 |
|
| 2889 |
enum PIPELINE |
| 2890 |
{ |
| 2891 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 2892 |
}; |
| 2893 |
|
| 2894 |
enum COMMAND_TYPE |
| 2895 |
{ |
| 2896 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 2897 |
}; |
| 2898 |
|
| 2899 |
//! \name Initializations |
| 2900 |
|
| 2901 |
//! \brief Explicit member initialization function |
| 2902 |
VDENC_PIPE_BUF_ADDR_STATE_CMD(); |
| 2903 |
|
| 2904 |
static const size_t dwSize = 71; |
| 2905 |
static const size_t byteSize = 284; |
| 2906 |
}; |
| 2907 |
|
| 2908 |
//! |
| 2909 |
//! \brief VDENC_PIPE_MODE_SELECT |
| 2910 |
//! \details |
| 2911 |
//! Specifies which codec and hardware module is being used to encode/decode |
| 2912 |
//! the video data, on a per-frame basis. The VDENC_PIPE_MODE_SELECT command |
| 2913 |
//! specifies which codec and hardware module is being used to encode/decode |
| 2914 |
//! the video data, on a per-frame basis. It also configures the hardware |
| 2915 |
//! pipeline according to the active encoder/decoder operating mode for |
| 2916 |
//! encoding/decoding the current picture. |
| 2917 |
//! |
| 2918 |
struct VDENC_PIPE_MODE_SELECT_CMD |
| 2919 |
{ |
| 2920 |
union |
| 2921 |
{ |
| 2922 |
//!< DWORD 0 |
| 2923 |
struct |
| 2924 |
{ |
| 2925 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 2926 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 2927 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 2928 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 2929 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 2930 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 2931 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 2932 |
}; |
| 2933 |
uint32_t Value; |
| 2934 |
} DW0; |
| 2935 |
union |
| 2936 |
{ |
| 2937 |
//!< DWORD 1 |
| 2938 |
struct |
| 2939 |
{ |
| 2940 |
uint32_t StandardSelect : __CODEGEN_BITFIELD( 0, 3) ; //!< STANDARD_SELECT |
| 2941 |
uint32_t ScalabilityMode : __CODEGEN_BITFIELD( 4, 4) ; //!< Scalability Mode |
| 2942 |
uint32_t FrameStatisticsStreamOutEnable : __CODEGEN_BITFIELD( 5, 5) ; //!< FRAME_STATISTICS_STREAM_OUT_ENABLE |
| 2943 |
uint32_t VdencPakObjCmdStreamOutEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< VDEnc PAK_OBJ_CMD Stream-Out Enable |
| 2944 |
uint32_t TlbPrefetchEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< TLB_PREFETCH_ENABLE |
| 2945 |
uint32_t PakThresholdCheckEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< PAK_THRESHOLD_CHECK_ENABLE |
| 2946 |
uint32_t VdencStreamInEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< VDENC_STREAM_IN_ENABLE |
| 2947 |
uint32_t Downscaled8XWriteDisable : __CODEGEN_BITFIELD(10, 10) ; //!< DownScaled 8x write Disable |
| 2948 |
uint32_t Downscaled4XWriteDisable : __CODEGEN_BITFIELD(11, 11) ; //!< DownScaled 4x write Disable |
| 2949 |
uint32_t BitDepth : __CODEGEN_BITFIELD(12, 14) ; //!< BIT_DEPTH |
| 2950 |
uint32_t PakChromaSubSamplingType : __CODEGEN_BITFIELD(15, 16) ; //!< PAK_CHROMA_SUB_SAMPLING_TYPE |
| 2951 |
uint32_t OutputRangeControlAfterColorSpaceConversion : __CODEGEN_BITFIELD(17, 17) ; //!< output range control after color space conversion |
| 2952 |
uint32_t IsRandomAccess : __CODEGEN_BITFIELD(18, 18) ; //!< Is random access B frame or not |
| 2953 |
uint32_t Reserved50 : __CODEGEN_BITFIELD(19, 19) ; //!< Reserved |
| 2954 |
uint32_t RgbEncodingEnable : __CODEGEN_BITFIELD(20, 20) ; //!< RGB encoding enable |
| 2955 |
uint32_t PrimaryChannelSelectionForRgbEncoding : __CODEGEN_BITFIELD(21, 22) ; //!< PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING |
| 2956 |
uint32_t FirstSecondaryChannelSelectionForRgbEncoding : __CODEGEN_BITFIELD(23, 24) ; //!< FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING |
| 2957 |
uint32_t TileReplayEnable : __CODEGEN_BITFIELD(25, 25) ; //!< Tile replay enable |
| 2958 |
uint32_t StreamingBufferConfig : __CODEGEN_BITFIELD(26, 27) ; //!< Streaming buffer config |
| 2959 |
uint32_t Reserved58 : __CODEGEN_BITFIELD(28, 30) ; //!< Reserved |
| 2960 |
uint32_t DisableSpeedModeFetchOptimization : __CODEGEN_BITFIELD(31, 31) ; //!< Disable Speed Mode fetch optimization |
| 2961 |
}; |
| 2962 |
uint32_t Value; |
| 2963 |
} DW1; |
| 2964 |
union |
| 2965 |
{ |
| 2966 |
//!< DWORD 2 |
| 2967 |
struct |
| 2968 |
{ |
| 2969 |
uint32_t HmeRegionPreFetchenable : __CODEGEN_BITFIELD( 0, 0) ; //!< HME_REGION_PRE_FETCHENABLE |
| 2970 |
uint32_t Topprefetchenablemode : __CODEGEN_BITFIELD( 1, 2) ; //!< TOPPREFETCHENABLEMODE |
| 2971 |
uint32_t LeftpreFetchatwraparound : __CODEGEN_BITFIELD( 3, 3) ; //!< LEFTPRE_FETCHATWRAPAROUND |
| 2972 |
uint32_t Verticalshift32Minus1 : __CODEGEN_BITFIELD( 4, 7) ; //!< VERTICALSHIFT32MINUS1 |
| 2973 |
uint32_t Hzshift32Minus1 : __CODEGEN_BITFIELD( 8, 11) ; //!< HZSHIFT32MINUS1 |
| 2974 |
uint32_t Reserved76 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 2975 |
uint32_t NumVerticalReqMinus1 : __CODEGEN_BITFIELD(16, 19) ; //!< NUMVERTICALREQMINUS1 |
| 2976 |
uint32_t Numhzreqminus1 : __CODEGEN_BITFIELD(20, 23) ; //!< NUMHZREQMINUS1 |
| 2977 |
uint32_t PreFetchOffsetForReferenceIn16PixelIncrement : __CODEGEN_BITFIELD(24, 27) ; //!< PRE_FETCH_OFFSET_FOR_REFERENCE_IN_16_PIXEL_INCREMENT |
| 2978 |
uint32_t Reserved92 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 2979 |
}; |
| 2980 |
uint32_t Value; |
| 2981 |
} DW2; |
| 2982 |
union |
| 2983 |
{ |
| 2984 |
//!< DWORD 3 |
| 2985 |
struct |
| 2986 |
{ |
| 2987 |
uint32_t SourceLumaPackedDataTlbPreFetchenable : __CODEGEN_BITFIELD( 0, 0) ; //!< SOURCE_LUMAPACKED_DATA_TLB_PRE_FETCHENABLE |
| 2988 |
uint32_t SourceChromaTlbPreFetchenable : __CODEGEN_BITFIELD( 1, 1) ; //!< SOURCE_CHROMA_TLB_PRE_FETCHENABLE |
| 2989 |
uint32_t Reserved98 : __CODEGEN_BITFIELD( 2, 3) ; //!< Reserved |
| 2990 |
uint32_t Verticalshift32Minus1Src : __CODEGEN_BITFIELD( 4, 7) ; //!< VERTICALSHIFT32MINUS1SRC |
| 2991 |
uint32_t Hzshift32Minus1Src : __CODEGEN_BITFIELD( 8, 11) ; //!< HZSHIFT32MINUS1SRC |
| 2992 |
uint32_t Reserved108 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 2993 |
uint32_t Numverticalreqminus1Src : __CODEGEN_BITFIELD(16, 19) ; //!< NUMVERTICALREQMINUS1SRC |
| 2994 |
uint32_t Numhzreqminus1Src : __CODEGEN_BITFIELD(20, 23) ; //!< NUMHZREQMINUS1SRC |
| 2995 |
uint32_t PreFetchoffsetforsource : __CODEGEN_BITFIELD(24, 27) ; //!< PRE_FETCHOFFSETFORSOURCE |
| 2996 |
uint32_t Reserved124 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 2997 |
}; |
| 2998 |
uint32_t Value; |
| 2999 |
} DW3; |
| 3000 |
union |
| 3001 |
{ |
| 3002 |
struct |
| 3003 |
{ |
| 3004 |
uint32_t Debugtilepassnum : __CODEGEN_BITFIELD( 0, 3) ; //!< DebugTilePassNum |
| 3005 |
uint32_t Debugtilenum : __CODEGEN_BITFIELD( 4, 11) ; //!< DebugTileNum |
| 3006 |
uint32_t Reserved140 : __CODEGEN_BITFIELD(12, 31) ; //!< Reserved |
| 3007 |
}; |
| 3008 |
uint32_t Value; |
| 3009 |
} DW4; |
| 3010 |
union |
| 3011 |
{ |
| 3012 |
struct |
| 3013 |
{ |
| 3014 |
uint32_t FrameNumber : __CODEGEN_BITFIELD( 0, 3) ; //!< Frame Number |
| 3015 |
uint32_t Reserved164 : __CODEGEN_BITFIELD( 4, 9) ; //!< Reserved |
| 3016 |
uint32_t HeadPointerUpdateAuto : __CODEGEN_BITFIELD(10, 10) ; //!< Head Pointer Update Auto |
| 3017 |
uint32_t CaptureMode : __CODEGEN_BITFIELD(11, 12) ; //!< CAPTURE_MODE |
| 3018 |
uint32_t ParallelCaptureAndEncodeSessionId : __CODEGEN_BITFIELD(13, 15) ; //!< PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID |
| 3019 |
uint32_t Reserved176 : __CODEGEN_BITFIELD(16, 23) ; //!< Reserved |
| 3020 |
uint32_t TailPointerReadFrequency : __CODEGEN_BITFIELD(24, 31) ; //!< Tail pointer read frequency |
| 3021 |
}; |
| 3022 |
uint32_t Value; |
| 3023 |
} DW5; |
| 3024 |
|
| 3025 |
//! \name Local enumerations |
| 3026 |
|
| 3027 |
enum SUBOPB |
| 3028 |
{ |
| 3029 |
SUBOPB_VDENCPIPEMODESELECT = 0, //!< No additional details |
| 3030 |
}; |
| 3031 |
|
| 3032 |
enum SUBOPA |
| 3033 |
{ |
| 3034 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3035 |
}; |
| 3036 |
|
| 3037 |
enum OPCODE |
| 3038 |
{ |
| 3039 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3040 |
}; |
| 3041 |
|
| 3042 |
enum PIPELINE |
| 3043 |
{ |
| 3044 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3045 |
}; |
| 3046 |
|
| 3047 |
enum COMMAND_TYPE |
| 3048 |
{ |
| 3049 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3050 |
}; |
| 3051 |
|
| 3052 |
enum STANDARD_SELECT |
| 3053 |
{ |
| 3054 |
STANDARD_SELECT_AVC = 2, //!< No additional details |
| 3055 |
}; |
| 3056 |
|
| 3057 |
//! \brief FRAME_STATISTICS_STREAM_OUT_ENABLE |
| 3058 |
//! \details |
| 3059 |
//! This field controls whether the frame statistics stream-out is enabled. |
| 3060 |
enum FRAME_STATISTICS_STREAM_OUT_ENABLE |
| 3061 |
{ |
| 3062 |
FRAME_STATISTICS_STREAM_OUT_ENABLE_DISABLE = 0, //!< No additional details |
| 3063 |
FRAME_STATISTICS_STREAM_OUT_ENABLE_ENABLE = 1, //!< No additional details |
| 3064 |
}; |
| 3065 |
|
| 3066 |
//! \brief TLB_PREFETCH_ENABLE |
| 3067 |
//! \details |
| 3068 |
//! This field controls whether TLB prefetching is enabled. |
| 3069 |
enum TLB_PREFETCH_ENABLE |
| 3070 |
{ |
| 3071 |
TLB_PREFETCH_ENABLE_DISABLE = 0, //!< No additional details |
| 3072 |
TLB_PREFETCH_ENABLE_ENABLE = 1, //!< No additional details |
| 3073 |
}; |
| 3074 |
|
| 3075 |
//! \brief PAK_THRESHOLD_CHECK_ENABLE |
| 3076 |
//! \details |
| 3077 |
//! For AVC standard: This field controls whether VDEnc will check the |
| 3078 |
//! PAK indicator for bits overflow and terminates the slice. This mode is |
| 3079 |
//! called Dynamic Slice Mode. When this field is disabled, VDEnc is in |
| 3080 |
//! Static Slice Mode. It uses the driver programmed Slice Macroblock Height |
| 3081 |
//! Minus One to terminate the slice. This feature is also referred to as |
| 3082 |
//! slice size conformance. |
| 3083 |
//! For HEVC standard: This bit is used to enable dynamic slice size |
| 3084 |
//! control. |
| 3085 |
enum PAK_THRESHOLD_CHECK_ENABLE |
| 3086 |
{ |
| 3087 |
PAK_THRESHOLD_CHECK_ENABLE_DISABLESTATICSLICEMODE = 0, //!< No additional details |
| 3088 |
PAK_THRESHOLD_CHECK_ENABLE_ENABLEDYNAMICSLICEMODE = 1, //!< No additional details |
| 3089 |
}; |
| 3090 |
|
| 3091 |
//! \brief VDENC_STREAM_IN_ENABLE |
| 3092 |
//! \details |
| 3093 |
//! This field controls whether VDEnc will read the stream-in surface |
| 3094 |
//! that is programmed. Currently the stream-in surface has MB level QP, |
| 3095 |
//! ROI, predictors and MaxSize/TargetSizeinWordsMB parameters. The |
| 3096 |
//! individual enables for each of the fields is programmed in the |
| 3097 |
//! VDENC_IMG_STATE. |
| 3098 |
//! (ROI_Enable, Fwd/Predictor0 MV Enable, Bwd/Predictor1 MV Enable, MB |
| 3099 |
//! Level QP Enable, TargetSizeinWordsMB/MaxSizeinWordsMB Enable). |
| 3100 |
//! This bit is valid only in AVC mode. In HEVC / VP9 mode this bit is |
| 3101 |
//! reserved and should be set to zero. |
| 3102 |
enum VDENC_STREAM_IN_ENABLE |
| 3103 |
{ |
| 3104 |
VDENC_STREAM_IN_ENABLE_DISABLE = 0, //!< No additional details |
| 3105 |
VDENC_STREAM_IN_ENABLE_ENABLE = 1, //!< No additional details |
| 3106 |
}; |
| 3107 |
|
| 3108 |
//! \brief BIT_DEPTH |
| 3109 |
//! \details |
| 3110 |
//! This parameter indicates the PAK bit depth. The valid values for this |
| 3111 |
//! are 0 / 2 in HEVC / VP9 standard. In AVC standard this field should be |
| 3112 |
//! set to 0. |
| 3113 |
enum BIT_DEPTH |
| 3114 |
{ |
| 3115 |
BIT_DEPTH_8BIT = 0, //!< No additional details |
| 3116 |
BIT_DEPTH_10BIT = 2, //!< No additional details |
| 3117 |
BIT_DEPTH_12BIT = 3, //!< No additional details |
| 3118 |
}; |
| 3119 |
|
| 3120 |
//! \brief PAK_CHROMA_SUB_SAMPLING_TYPE |
| 3121 |
//! \details |
| 3122 |
//! This field is applicable only in HEVC and VP9. In AVC, this field is ignored. |
| 3123 |
enum PAK_CHROMA_SUB_SAMPLING_TYPE |
| 3124 |
{ |
| 3125 |
PAK_CHROMA_SUB_SAMPLING_TYPE_420 = 1, //!< Used for Main8 and Main10 HEVC, VP9 profile0, AVC. |
| 3126 |
PAK_CHROMA_SUB_SAMPLING_TYPE_4_4_4 = 3, //!< HEVC RExt 444, VP9 444 profiles. |
| 3127 |
}; |
| 3128 |
|
| 3129 |
//! \brief PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING |
| 3130 |
//! \details |
| 3131 |
//! In RGB encoding, any one of the channel could be primary. This field is |
| 3132 |
//! used for selcting primary channel |
| 3133 |
enum PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING |
| 3134 |
{ |
| 3135 |
PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED0 = 0, //!< Channel R is primary channel |
| 3136 |
PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED1 = 1, //!< Channel G is primary channel. |
| 3137 |
PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED2 = 2, //!< Channel B is primary channel |
| 3138 |
}; |
| 3139 |
|
| 3140 |
//! \brief FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING |
| 3141 |
//! \details |
| 3142 |
//! In RGB encoding, any one of the channel could be primary. This field is |
| 3143 |
//! used for selcting primary channel |
| 3144 |
enum FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING |
| 3145 |
{ |
| 3146 |
FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED0 = 0, //!< Channel R is first secondary channel |
| 3147 |
FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED1 = 1, //!< Channel G is first secondary channel |
| 3148 |
FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED2 = 2, //!< Channel B is first secondary channel. |
| 3149 |
}; |
| 3150 |
|
| 3151 |
//! \brief HME_REGION_PRE_FETCHENABLE |
| 3152 |
//! \details |
| 3153 |
//! When this bit is set, for all reference frames HME region pages are pre-fetched. |
| 3154 |
enum HME_REGION_PRE_FETCHENABLE |
| 3155 |
{ |
| 3156 |
HME_REGION_PRE_FETCHENABLE_UNNAMED0 = 0, //!< No additional details |
| 3157 |
HME_REGION_PRE_FETCHENABLE_UNNAMED1 = 1, //!< No additional details |
| 3158 |
}; |
| 3159 |
|
| 3160 |
//! \brief TOPPREFETCHENABLEMODE |
| 3161 |
//! \details |
| 3162 |
//! Top Pre-fetch enable Mode |
| 3163 |
enum TOPPREFETCHENABLEMODE |
| 3164 |
{ |
| 3165 |
TOPPREFETCHENABLEMODE_UNNAMED1 = 1, //!< No additional details |
| 3166 |
}; |
| 3167 |
|
| 3168 |
//! \brief LEFTPRE_FETCHATWRAPAROUND |
| 3169 |
//! \details |
| 3170 |
//! Left pre-fetch enabled on wraparound |
| 3171 |
enum LEFTPRE_FETCHATWRAPAROUND |
| 3172 |
{ |
| 3173 |
LEFTPRE_FETCHATWRAPAROUND_UNNAMED1 = 1, //!< No additional details |
| 3174 |
}; |
| 3175 |
|
| 3176 |
enum VERTICALSHIFT32MINUS1 |
| 3177 |
{ |
| 3178 |
VERTICALSHIFT32MINUS1_UNNAMED0 = 0, //!< No additional details |
| 3179 |
}; |
| 3180 |
|
| 3181 |
//! \brief HZSHIFT32MINUS1 |
| 3182 |
//! \details |
| 3183 |
//! Horizontal_shift >= LCU_size and Horizontal_shift prefetch_offset |
| 3184 |
enum HZSHIFT32MINUS1 |
| 3185 |
{ |
| 3186 |
HZSHIFT32MINUS1_UNNAMED3 = 3, //!< No additional details |
| 3187 |
}; |
| 3188 |
|
| 3189 |
//! \brief NUMHZREQMINUS1 |
| 3190 |
//! \details |
| 3191 |
//! Number of Vertical requests in each region for a constant horizontal position. |
| 3192 |
enum NUMVERTICALREQMINUS1 |
| 3193 |
{ |
| 3194 |
NUMVERTICALREQMINUS1_UNNAMED11 = 11, //!< No additional details |
| 3195 |
}; |
| 3196 |
|
| 3197 |
//! \brief NUMHZREQMINUS1 |
| 3198 |
//! \details |
| 3199 |
//! Number of Horizontal Requests minus 1 at row begining. |
| 3200 |
enum NUMHZREQMINUS1 |
| 3201 |
{ |
| 3202 |
NUMHZREQMINUS1_UNNAMED2 = 2, //!< No additional details |
| 3203 |
}; |
| 3204 |
|
| 3205 |
enum PRE_FETCH_OFFSET_FOR_REFERENCE_IN_16_PIXEL_INCREMENT |
| 3206 |
{ |
| 3207 |
PRE_FETCH_OFFSET_FOR_REFERENCE_IN_16_PIXEL_INCREMENT_UNNAMED0 = 0, //!< No additional details |
| 3208 |
}; |
| 3209 |
|
| 3210 |
//! \brief SOURCE_LUMAPACKED_DATA_TLB_PRE_FETCHENABLE |
| 3211 |
//! \details |
| 3212 |
//! When this bit is set, Souce Luma / Packed data TLB pre-fetches are |
| 3213 |
//! performed. |
| 3214 |
enum SOURCE_LUMAPACKED_DATA_TLB_PRE_FETCHENABLE |
| 3215 |
{ |
| 3216 |
SOURCE_LUMAPACKED_DATA_TLB_PRE_FETCHENABLE_UNNAMED0 = 0, //!< No additional details |
| 3217 |
SOURCE_LUMAPACKED_DATA_TLB_PRE_FETCHENABLE_UNNAMED1 = 1, //!< No additional details |
| 3218 |
}; |
| 3219 |
|
| 3220 |
//! \brief SOURCE_CHROMA_TLB_PRE_FETCHENABLE |
| 3221 |
//! \details |
| 3222 |
//! When this bit is set, Souce Chroma TLB pre-fetches are performed. |
| 3223 |
enum SOURCE_CHROMA_TLB_PRE_FETCHENABLE |
| 3224 |
{ |
| 3225 |
SOURCE_CHROMA_TLB_PRE_FETCHENABLE_UNNAMED0 = 0, //!< No additional details |
| 3226 |
SOURCE_CHROMA_TLB_PRE_FETCHENABLE_UNNAMED1 = 1, //!< No additional details |
| 3227 |
}; |
| 3228 |
|
| 3229 |
enum VERTICALSHIFT32MINUS1SRC |
| 3230 |
{ |
| 3231 |
VERTICALSHIFT32MINUS1SRC_UNNAMED0 = 0, //!< No additional details |
| 3232 |
}; |
| 3233 |
|
| 3234 |
//! \brief HZSHIFT32MINUS1SRC |
| 3235 |
//! \details |
| 3236 |
//! Horizontal_shift >= LCU_size and Horizontal_shift prefetch_offset |
| 3237 |
enum HZSHIFT32MINUS1SRC |
| 3238 |
{ |
| 3239 |
HZSHIFT32MINUS1SRC_UNNAMED3 = 3, //!< No additional details |
| 3240 |
}; |
| 3241 |
|
| 3242 |
//! \brief NUMVERTICALREQMINUS1SRC |
| 3243 |
//! \details |
| 3244 |
//! Number of Horizontal requests Minus 1 for source |
| 3245 |
enum NUMVERTICALREQMINUS1SRC |
| 3246 |
{ |
| 3247 |
NUMVERTICALREQMINUS1SRC_UNNAMED0 = 0, //!< This is the valid for AVC |
| 3248 |
NUMVERTICALREQMINUS1SRC_UNNAMED1 = 1, //!< This is the valid value for HEVC |
| 3249 |
}; |
| 3250 |
|
| 3251 |
//! \brief NUMHZREQMINUS1SRC |
| 3252 |
//! \details |
| 3253 |
//! Number of Horizontal requests Minus 1 for source |
| 3254 |
enum NUMHZREQMINUS1SRC |
| 3255 |
{ |
| 3256 |
NUMHZREQMINUS1SRC_UNNAMED0 = 0, //!< No additional details |
| 3257 |
}; |
| 3258 |
|
| 3259 |
//! \brief PRE_FETCHOFFSETFORSOURCE |
| 3260 |
//! \details |
| 3261 |
//! Pre-fetch offset for Reference in 16 pixel increment. |
| 3262 |
enum PRE_FETCHOFFSETFORSOURCE |
| 3263 |
{ |
| 3264 |
PRE_FETCHOFFSETFORSOURCE_UNNAMED_4 = 4, //!< This value is applicable in HEVC mode |
| 3265 |
PRE_FETCHOFFSETFORSOURCE_UNNAMED7 = 7, //!< This Value is applicable in AVC mode |
| 3266 |
}; |
| 3267 |
|
| 3268 |
enum CAPTURE_MODE |
| 3269 |
{ |
| 3270 |
CAPTURE_MODE_UNNAMED0 = 0, //!< No Parallel capture |
| 3271 |
CAPTURE_MODE_UNNAMED1 = 1, //!< Parallel encode from Display overlay |
| 3272 |
CAPTURE_MODE_CAMERA = 2, //!< Parallel encode from Camera Pipe |
| 3273 |
CAPTURE_MODE_UNNAMED3 = 3, //!< Reserved |
| 3274 |
}; |
| 3275 |
|
| 3276 |
enum STREAMING_BUFFER_CONFIG |
| 3277 |
{ |
| 3278 |
STREAMING_BUFFER_UNSUPPORTED = 0, |
| 3279 |
STREAMING_BUFFER_64 = 1, |
| 3280 |
STREAMING_BUFFER_128 = 2, |
| 3281 |
STREAMING_BUFFER_256 = 3, |
| 3282 |
}; |
| 3283 |
|
| 3284 |
enum PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID |
| 3285 |
{ |
| 3286 |
PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID_UNNAMED0 = 0, //!< Display tailpointer address location 00ED0h-00ED3h |
| 3287 |
PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID_UNNAMED1 = 1, //!< Display tailpointer address location 00ED4h-00ED7h |
| 3288 |
PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID_UNNAMED2 = 2, //!< Display tailpointer address location 00ED8h-00EDBh |
| 3289 |
PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID_UNNAMED3 = 3, //!< Display tailpointer address location 00EDCh-00EDFh |
| 3290 |
}; |
| 3291 |
|
| 3292 |
//! \name Initializations |
| 3293 |
|
| 3294 |
//! \brief Explicit member initialization function |
| 3295 |
VDENC_PIPE_MODE_SELECT_CMD(); |
| 3296 |
|
| 3297 |
static const size_t dwSize = 6; |
| 3298 |
static const size_t byteSize = 24; |
| 3299 |
}; |
| 3300 |
|
| 3301 |
//! |
| 3302 |
//! \brief VDENC_REF_SURFACE_STATE |
| 3303 |
//! \details |
| 3304 |
//! This command specifies the surface state parameters for the normal |
| 3305 |
//! reference surfaces. |
| 3306 |
//! |
| 3307 |
struct VDENC_REF_SURFACE_STATE_CMD |
| 3308 |
{ |
| 3309 |
union |
| 3310 |
{ |
| 3311 |
//!< DWORD 0 |
| 3312 |
struct |
| 3313 |
{ |
| 3314 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 3315 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3316 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3317 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3318 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3319 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3320 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3321 |
}; |
| 3322 |
uint32_t Value; |
| 3323 |
} DW0; |
| 3324 |
union |
| 3325 |
{ |
| 3326 |
//!< DWORD 1 |
| 3327 |
struct |
| 3328 |
{ |
| 3329 |
uint32_t SurfaceId : __CODEGEN_BITFIELD(0, 2) ; //!< Surface ID |
| 3330 |
uint32_t Reserved : __CODEGEN_BITFIELD(3, 31) ; //!< Reserved |
| 3331 |
}; |
| 3332 |
uint32_t Value; |
| 3333 |
} DW1; |
| 3334 |
VDENC_Surface_State_Fields_CMD Dwords25 ; //!< Dwords 2..5 |
| 3335 |
|
| 3336 |
//! \name Local enumerations |
| 3337 |
|
| 3338 |
enum SUBOPB |
| 3339 |
{ |
| 3340 |
SUBOPB_VDENCREFSURFACESTATE = 2, //!< No additional details |
| 3341 |
}; |
| 3342 |
|
| 3343 |
enum SUBOPA |
| 3344 |
{ |
| 3345 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3346 |
}; |
| 3347 |
|
| 3348 |
enum OPCODE |
| 3349 |
{ |
| 3350 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3351 |
}; |
| 3352 |
|
| 3353 |
enum PIPELINE |
| 3354 |
{ |
| 3355 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3356 |
}; |
| 3357 |
|
| 3358 |
enum COMMAND_TYPE |
| 3359 |
{ |
| 3360 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3361 |
}; |
| 3362 |
|
| 3363 |
//! \name Initializations |
| 3364 |
|
| 3365 |
//! \brief Explicit member initialization function |
| 3366 |
VDENC_REF_SURFACE_STATE_CMD(); |
| 3367 |
|
| 3368 |
static const size_t dwSize = 6; |
| 3369 |
static const size_t byteSize = 24; |
| 3370 |
}; |
| 3371 |
|
| 3372 |
//! |
| 3373 |
//! \brief VDENC_SRC_SURFACE_STATE |
| 3374 |
//! \details |
| 3375 |
//! This command specifies the uncompressed original input picture to be |
| 3376 |
//! encoded. The actual base address is defined in the |
| 3377 |
//! VDENC_PIPE_BUF_ADDR_STATE. Pitch can be wider than the Picture Width in |
| 3378 |
//! pixels and garbage will be there at the end of each line. The following |
| 3379 |
//! describes all the different formats that are supported in WLV+ VDEnc: |
| 3380 |
//! NV12 - 4:2:0 only; UV interleaved; Full Pitch, U and V offset is set to |
| 3381 |
//! 0 (the only format supported for video codec); vertical UV offset is MB |
| 3382 |
//! aligned; UV xoffsets = 0. |
| 3383 |
//! This surface state here is identical to the Surface State for |
| 3384 |
//! deinterlace and sample_8x8 messages described in the Shared Function |
| 3385 |
//! Volume and Sampler Chapter. For non pixel data, such as row stores, DMV |
| 3386 |
//! and streamin/out, a linear buffer is employed. For row stores, the H/W |
| 3387 |
//! is designed to guarantee legal memory accesses (read and write). For the |
| 3388 |
//! remaining cases, indirect object base address, indirect object address |
| 3389 |
//! upper bound, object data start address (offset) and object data length |
| 3390 |
//! are used to fully specified their corresponding buffer. This mechanism |
| 3391 |
//! is chosen over the pixel surface type because of their variable record |
| 3392 |
//! sizes. All row store surfaces are linear surface. Their addresses are |
| 3393 |
//! programmed in VDEnc_Pipe_Buf_Base_State. |
| 3394 |
//! |
| 3395 |
struct VDENC_SRC_SURFACE_STATE_CMD |
| 3396 |
{ |
| 3397 |
union |
| 3398 |
{ |
| 3399 |
//!< DWORD 0 |
| 3400 |
struct |
| 3401 |
{ |
| 3402 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 3403 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3404 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3405 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3406 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3407 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3408 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3409 |
}; |
| 3410 |
uint32_t Value; |
| 3411 |
} DW0; |
| 3412 |
union |
| 3413 |
{ |
| 3414 |
//!< DWORD 1 |
| 3415 |
struct |
| 3416 |
{ |
| 3417 |
uint32_t Reserved32 ; //!< Reserved |
| 3418 |
}; |
| 3419 |
uint32_t Value; |
| 3420 |
} DW1; |
| 3421 |
VDENC_Surface_State_Fields_CMD Dwords25 ; //!< Dwords 2..5 |
| 3422 |
|
| 3423 |
//! \name Local enumerations |
| 3424 |
|
| 3425 |
enum SUBOPB |
| 3426 |
{ |
| 3427 |
SUBOPB_VDENCSRCSURFACESTATE = 1, //!< No additional details |
| 3428 |
}; |
| 3429 |
|
| 3430 |
enum SUBOPA |
| 3431 |
{ |
| 3432 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3433 |
}; |
| 3434 |
|
| 3435 |
enum OPCODE |
| 3436 |
{ |
| 3437 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3438 |
}; |
| 3439 |
|
| 3440 |
enum PIPELINE |
| 3441 |
{ |
| 3442 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3443 |
}; |
| 3444 |
|
| 3445 |
enum COMMAND_TYPE |
| 3446 |
{ |
| 3447 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3448 |
}; |
| 3449 |
|
| 3450 |
//! \name Initializations |
| 3451 |
|
| 3452 |
//! \brief Explicit member initialization function |
| 3453 |
VDENC_SRC_SURFACE_STATE_CMD(); |
| 3454 |
|
| 3455 |
static const size_t dwSize = 6; |
| 3456 |
static const size_t byteSize = 24; |
| 3457 |
}; |
| 3458 |
|
| 3459 |
//! |
| 3460 |
//! \brief VDENC_WALKER_STATE |
| 3461 |
//! \details |
| 3462 |
//! This command provides the macroblock start location for the VDEnc |
| 3463 |
//! walker. Current programming to always have this command at the frame |
| 3464 |
//! level, hence the macroblock X,Y location need to be programmed to 0,0 to |
| 3465 |
//! always start at frame origin. Once the hardware receives this command |
| 3466 |
//! packet, it internally starts the VDEnc pipeline. This should be the last |
| 3467 |
//! command that is programmed for the VDEnc pipeline. |
| 3468 |
//! |
| 3469 |
//! This command is programmed per super-slice. The X location always needs |
| 3470 |
//! to be programmed to 0. The Y location needs to be programmed to the |
| 3471 |
//! starting point of the current super-slice. The programming needs to |
| 3472 |
//! ensure that all super-slices are contiguous. It is illegal to have gaps |
| 3473 |
//! between the super-slices. |
| 3474 |
//! |
| 3475 |
struct VDENC_WALKER_STATE_CMD |
| 3476 |
{ |
| 3477 |
union |
| 3478 |
{ |
| 3479 |
//!< DWORD 0 |
| 3480 |
struct |
| 3481 |
{ |
| 3482 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 3483 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3484 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3485 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3486 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3487 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3488 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3489 |
}; |
| 3490 |
uint32_t Value; |
| 3491 |
} DW0; |
| 3492 |
union |
| 3493 |
{ |
| 3494 |
//!< DWORD 1 |
| 3495 |
struct |
| 3496 |
{ |
| 3497 |
uint32_t MbLcuStartYPosition : __CODEGEN_BITFIELD( 0, 8) ; //!< MB/LCU Start Y Position |
| 3498 |
uint32_t Reserved41 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved |
| 3499 |
uint32_t MbLcuStartXPosition : __CODEGEN_BITFIELD(16, 24) ; //!< MB/LCU Start X Position |
| 3500 |
uint32_t Reserved57 : __CODEGEN_BITFIELD(25, 27) ; //!< Reserved |
| 3501 |
uint32_t FirstSuperSlice : __CODEGEN_BITFIELD(28, 28) ; //!< First Super Slice |
| 3502 |
uint32_t Reserved61 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 3503 |
}; |
| 3504 |
uint32_t Value; |
| 3505 |
} DW1; |
| 3506 |
union |
| 3507 |
{ |
| 3508 |
//!< DWORD 2 |
| 3509 |
struct |
| 3510 |
{ |
| 3511 |
uint32_t NextsliceMbStartYPosition : __CODEGEN_BITFIELD( 0, 9) ; //!< NextSlice MB Start Y Position |
| 3512 |
uint32_t Reserved74 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved |
| 3513 |
uint32_t NextsliceMbLcuStartXPosition : __CODEGEN_BITFIELD(16, 25) ; //!< NextSlice MB/LCU Start X Position |
| 3514 |
uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved |
| 3515 |
}; |
| 3516 |
uint32_t Value; |
| 3517 |
} DW2; |
| 3518 |
union |
| 3519 |
{ |
| 3520 |
//!< DWORD 3 |
| 3521 |
struct |
| 3522 |
{ |
| 3523 |
uint32_t Log2WeightDenomLuma : __CODEGEN_BITFIELD( 0, 2) ; //!< Log 2 Weight Denom Luma |
| 3524 |
uint32_t Reserved99 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved |
| 3525 |
uint32_t HevcLog2WeightDemonLuma : __CODEGEN_BITFIELD( 4, 6) ; //!< HevcLog2WeightDemonLuma |
| 3526 |
uint32_t Reserved78 : __CODEGEN_BITFIELD( 7, 8) ; //!< Reserved |
| 3527 |
uint32_t NumParEngine : __CODEGEN_BITFIELD( 9, 10) ; //!< NUM_PAR_ENGINE |
| 3528 |
uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 15) ; //!< Reserved |
| 3529 |
uint32_t TileRowStoreSelect : __CODEGEN_BITFIELD(16, 16) ; //!< TileRowStoreSelect |
| 3530 |
uint32_t Reserved108 : __CODEGEN_BITFIELD(17, 23) ; //!< Reserved |
| 3531 |
uint32_t TileNumber : __CODEGEN_BITFIELD(24, 31) ; //!< Tile number |
| 3532 |
}; |
| 3533 |
uint32_t Value; |
| 3534 |
} DW3; |
| 3535 |
union |
| 3536 |
{ |
| 3537 |
//!< DWORD 4 |
| 3538 |
struct |
| 3539 |
{ |
| 3540 |
uint32_t TileStartCtbY : __CODEGEN_BITFIELD( 0, 15) ; //!< Tile Start CTB-Y |
| 3541 |
uint32_t TileStartCtbX : __CODEGEN_BITFIELD(16, 31) ; //!< Tile Start CTB-X |
| 3542 |
}; |
| 3543 |
uint32_t Value; |
| 3544 |
} DW4; |
| 3545 |
union |
| 3546 |
{ |
| 3547 |
//!< DWORD 5 |
| 3548 |
struct |
| 3549 |
{ |
| 3550 |
uint32_t TileWidth : __CODEGEN_BITFIELD( 0, 15) ; //!< Tile Width |
| 3551 |
uint32_t TileHeight : __CODEGEN_BITFIELD(16, 31) ; //!< Tile Height |
| 3552 |
}; |
| 3553 |
uint32_t Value; |
| 3554 |
} DW5; |
| 3555 |
union |
| 3556 |
{ |
| 3557 |
//!< DWORD 6 |
| 3558 |
struct |
| 3559 |
{ |
| 3560 |
uint32_t StreaminOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Streamin Offset enable |
| 3561 |
uint32_t Reserved193 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3562 |
uint32_t TileStreaminOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile Streamin Offset |
| 3563 |
}; |
| 3564 |
uint32_t Value; |
| 3565 |
} DW6; |
| 3566 |
union |
| 3567 |
{ |
| 3568 |
//!< DWORD 7 |
| 3569 |
struct |
| 3570 |
{ |
| 3571 |
uint32_t RowStoreOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Row store Offset enable |
| 3572 |
uint32_t Reserved225 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3573 |
uint32_t TileRowstoreOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile Rowstore Offset |
| 3574 |
}; |
| 3575 |
uint32_t Value; |
| 3576 |
} DW7; |
| 3577 |
union |
| 3578 |
{ |
| 3579 |
//!< DWORD 8 |
| 3580 |
struct |
| 3581 |
{ |
| 3582 |
uint32_t TileStreamoutOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Tile streamout offset enable |
| 3583 |
uint32_t Reserved257 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3584 |
uint32_t TileStreamoutOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile streamout offset |
| 3585 |
}; |
| 3586 |
uint32_t Value; |
| 3587 |
} DW8; |
| 3588 |
union |
| 3589 |
{ |
| 3590 |
//!< DWORD 9 |
| 3591 |
struct |
| 3592 |
{ |
| 3593 |
uint32_t LcuStreamOutOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< LCU stream out offset enable |
| 3594 |
uint32_t Reserved289 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3595 |
uint32_t TileLcuStreamOutOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile LCU stream out offset |
| 3596 |
}; |
| 3597 |
uint32_t Value; |
| 3598 |
} DW9; |
| 3599 |
uint32_t DW_Reserved_10 = {0}; //!< Reserved |
| 3600 |
union |
| 3601 |
{ |
| 3602 |
//!< DWORD 11 |
| 3603 |
struct |
| 3604 |
{ |
| 3605 |
uint32_t Reserved290 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3606 |
}; |
| 3607 |
uint32_t Value; |
| 3608 |
} DW11; |
| 3609 |
union |
| 3610 |
{ |
| 3611 |
//!< DWORD 12 |
| 3612 |
struct |
| 3613 |
{ |
| 3614 |
uint32_t Reserved291 : __CODEGEN_BITFIELD(0, 25) ; //!< Reserved |
| 3615 |
uint32_t PaletteModeEnable : __CODEGEN_BITFIELD(26, 26) ; //!< PALETTE_MODE_ENABLE |
| 3616 |
uint32_t IbcControl : __CODEGEN_BITFIELD(27, 28) ; //!< IBC_CONTROL |
| 3617 |
uint32_t Reserved292 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 3618 |
}; |
| 3619 |
uint32_t Value; |
| 3620 |
} DW12; |
| 3621 |
union |
| 3622 |
{ |
| 3623 |
//!< DWORD 13 |
| 3624 |
struct |
| 3625 |
{ |
| 3626 |
uint32_t Reserved293 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3627 |
}; |
| 3628 |
uint32_t Value; |
| 3629 |
} DW13; |
| 3630 |
union |
| 3631 |
{ |
| 3632 |
//!< DWORD 14 |
| 3633 |
struct |
| 3634 |
{ |
| 3635 |
uint32_t Reserved294 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3636 |
}; |
| 3637 |
uint32_t Value; |
| 3638 |
} DW14; |
| 3639 |
union |
| 3640 |
{ |
| 3641 |
//!< DWORD 15 |
| 3642 |
struct |
| 3643 |
{ |
| 3644 |
uint32_t Reserved295 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3645 |
}; |
| 3646 |
uint32_t Value; |
| 3647 |
} DW15; |
| 3648 |
union |
| 3649 |
{ |
| 3650 |
//!< DWORD 16 |
| 3651 |
struct |
| 3652 |
{ |
| 3653 |
uint32_t Reserved518 : __CODEGEN_BITFIELD( 0, 23) ; //!< Reserved |
| 3654 |
uint32_t AdaptiveChannelThreshold : __CODEGEN_BITFIELD(24, 28) ; //!< Adaptive Channel Threshold |
| 3655 |
uint32_t Reserved520 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 3656 |
}; |
| 3657 |
uint32_t Value; |
| 3658 |
} DW16; |
| 3659 |
uint32_t DW_Reserved_17_26[10] = {0}; //!< Reserved |
| 3660 |
|
| 3661 |
//! \name Local enumerations |
| 3662 |
|
| 3663 |
enum SUBOPB |
| 3664 |
{ |
| 3665 |
SUBOPB_VDENCWALKERSTATE = 7, //!< No additional details |
| 3666 |
}; |
| 3667 |
|
| 3668 |
enum SUBOPA |
| 3669 |
{ |
| 3670 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3671 |
}; |
| 3672 |
|
| 3673 |
enum OPCODE |
| 3674 |
{ |
| 3675 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3676 |
}; |
| 3677 |
|
| 3678 |
enum PIPELINE |
| 3679 |
{ |
| 3680 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3681 |
}; |
| 3682 |
|
| 3683 |
enum COMMAND_TYPE |
| 3684 |
{ |
| 3685 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3686 |
}; |
| 3687 |
|
| 3688 |
//! \name Initializations |
| 3689 |
|
| 3690 |
//! \brief Explicit member initialization function |
| 3691 |
VDENC_WALKER_STATE_CMD(); |
| 3692 |
|
| 3693 |
static const size_t dwSize = 27; |
| 3694 |
static const size_t byteSize = 108; |
| 3695 |
}; |
| 3696 |
|
| 3697 |
//! |
| 3698 |
//! \brief VDENC_CONTROL_STATE |
| 3699 |
//! \details |
| 3700 |
//! |
| 3701 |
//! |
| 3702 |
struct VDENC_CONTROL_STATE_CMD |
| 3703 |
{ |
| 3704 |
union |
| 3705 |
{ |
| 3706 |
//!< DWORD 0 |
| 3707 |
struct |
| 3708 |
{ |
| 3709 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< Dword Length |
| 3710 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3711 |
uint32_t MediaInstructionCommand : __CODEGEN_BITFIELD(16, 22) ; //!< Media Instruction Command |
| 3712 |
uint32_t MediaInstructionOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< Media Instruction Opcode |
| 3713 |
uint32_t PipelineType : __CODEGEN_BITFIELD(27, 28) ; //!< Pipeline Type |
| 3714 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< Command Type |
| 3715 |
}; |
| 3716 |
uint32_t Value; |
| 3717 |
} DW0; |
| 3718 |
union |
| 3719 |
{ |
| 3720 |
//!< DWORD 1 |
| 3721 |
struct |
| 3722 |
{ |
| 3723 |
uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 0) ; //!< Reserved |
| 3724 |
uint32_t VdencInitialization : __CODEGEN_BITFIELD( 1, 1) ; //!< VDenc Initialization |
| 3725 |
uint32_t Reserved34 : __CODEGEN_BITFIELD( 2, 31) ; //!< Reserved |
| 3726 |
}; |
| 3727 |
uint32_t Value; |
| 3728 |
} DW1; |
| 3729 |
|
| 3730 |
//! \name Local enumerations |
| 3731 |
|
| 3732 |
//! \name Initializations |
| 3733 |
|
| 3734 |
//! \brief Explicit member initialization function |
| 3735 |
VDENC_CONTROL_STATE_CMD(); |
| 3736 |
|
| 3737 |
static const size_t dwSize = 2; |
| 3738 |
static const size_t byteSize = 8; |
| 3739 |
}; |
| 3740 |
|
| 3741 |
//! |
| 3742 |
//! \brief VDENC_CMD1_CMD |
| 3743 |
//! \details |
| 3744 |
//! |
| 3745 |
//! |
| 3746 |
struct VDENC_CMD1_CMD |
| 3747 |
{ |
| 3748 |
union |
| 3749 |
{ |
| 3750 |
//!< DWORD 0 |
| 3751 |
struct |
| 3752 |
{ |
| 3753 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWord Length |
| 3754 |
uint32_t Reserved13 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3755 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3756 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3757 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3758 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3759 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3760 |
}; |
| 3761 |
uint32_t Value; |
| 3762 |
} DW0; |
| 3763 |
union |
| 3764 |
{ |
| 3765 |
//!< DWORD 1 |
| 3766 |
struct |
| 3767 |
{ |
| 3768 |
uint32_t Reserved30 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3769 |
}; |
| 3770 |
uint32_t Value; |
| 3771 |
} DW1; |
| 3772 |
union |
| 3773 |
{ |
| 3774 |
//!< DWORD 2 |
| 3775 |
struct |
| 3776 |
{ |
| 3777 |
uint32_t Reserved42 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3778 |
}; |
| 3779 |
uint32_t Value; |
| 3780 |
} DW2; |
| 3781 |
union |
| 3782 |
{ |
| 3783 |
//!< DWORD 3 |
| 3784 |
struct |
| 3785 |
{ |
| 3786 |
uint32_t Reserved54 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3787 |
}; |
| 3788 |
uint32_t Value; |
| 3789 |
} DW3; |
| 3790 |
union |
| 3791 |
{ |
| 3792 |
//!< DWORD 4 |
| 3793 |
struct |
| 3794 |
{ |
| 3795 |
uint32_t Reserved66 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3796 |
}; |
| 3797 |
uint32_t Value; |
| 3798 |
} DW4; |
| 3799 |
union |
| 3800 |
{ |
| 3801 |
//!< DWORD 5 |
| 3802 |
struct |
| 3803 |
{ |
| 3804 |
uint32_t Reserved78 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3805 |
}; |
| 3806 |
uint32_t Value; |
| 3807 |
} DW5; |
| 3808 |
union |
| 3809 |
{ |
| 3810 |
//!< DWORD 6 |
| 3811 |
struct |
| 3812 |
{ |
| 3813 |
uint32_t Reserved90 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3814 |
}; |
| 3815 |
uint32_t Value; |
| 3816 |
} DW6; |
| 3817 |
union |
| 3818 |
{ |
| 3819 |
//!< DWORD 7 |
| 3820 |
struct |
| 3821 |
{ |
| 3822 |
uint32_t Reserved102 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3823 |
}; |
| 3824 |
uint32_t Value; |
| 3825 |
} DW7; |
| 3826 |
union |
| 3827 |
{ |
| 3828 |
//!< DWORD 8 |
| 3829 |
struct |
| 3830 |
{ |
| 3831 |
uint32_t Reserved114 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3832 |
}; |
| 3833 |
uint32_t Value; |
| 3834 |
} DW8; |
| 3835 |
union |
| 3836 |
{ |
| 3837 |
//!< DWORD 9 |
| 3838 |
struct |
| 3839 |
{ |
| 3840 |
uint32_t Reserved126 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3841 |
}; |
| 3842 |
uint32_t Value; |
| 3843 |
} DW9; |
| 3844 |
union |
| 3845 |
{ |
| 3846 |
//!< DWORD 10 |
| 3847 |
struct |
| 3848 |
{ |
| 3849 |
uint32_t Reserved138 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3850 |
}; |
| 3851 |
uint32_t Value; |
| 3852 |
} DW10; |
| 3853 |
union |
| 3854 |
{ |
| 3855 |
//!< DWORD 11 |
| 3856 |
struct |
| 3857 |
{ |
| 3858 |
uint32_t Reserved150 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3859 |
}; |
| 3860 |
uint32_t Value; |
| 3861 |
} DW11; |
| 3862 |
union |
| 3863 |
{ |
| 3864 |
//!< DWORD 12 |
| 3865 |
struct |
| 3866 |
{ |
| 3867 |
uint32_t Reserved162 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3868 |
}; |
| 3869 |
uint32_t Value; |
| 3870 |
} DW12; |
| 3871 |
union |
| 3872 |
{ |
| 3873 |
//!< DWORD 13 |
| 3874 |
struct |
| 3875 |
{ |
| 3876 |
uint32_t Reserved174 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3877 |
}; |
| 3878 |
uint32_t Value; |
| 3879 |
} DW13; |
| 3880 |
union |
| 3881 |
{ |
| 3882 |
//!< DWORD 14 |
| 3883 |
struct |
| 3884 |
{ |
| 3885 |
uint32_t Reserved184 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3886 |
}; |
| 3887 |
uint32_t Value; |
| 3888 |
} DW14; |
| 3889 |
union |
| 3890 |
{ |
| 3891 |
//!< DWORD 15 |
| 3892 |
struct |
| 3893 |
{ |
| 3894 |
uint32_t Reserved198 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3895 |
}; |
| 3896 |
uint32_t Value; |
| 3897 |
} DW15; |
| 3898 |
union |
| 3899 |
{ |
| 3900 |
//!< DWORD 16 |
| 3901 |
struct |
| 3902 |
{ |
| 3903 |
uint32_t Reserved210 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3904 |
}; |
| 3905 |
uint32_t Value; |
| 3906 |
} DW16; |
| 3907 |
union |
| 3908 |
{ |
| 3909 |
//!< DWORD 17 |
| 3910 |
struct |
| 3911 |
{ |
| 3912 |
uint32_t Reserved222 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3913 |
}; |
| 3914 |
uint32_t Value; |
| 3915 |
} DW17; |
| 3916 |
union |
| 3917 |
{ |
| 3918 |
//!< DWORD 18 |
| 3919 |
struct |
| 3920 |
{ |
| 3921 |
uint32_t Reserved231 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3922 |
}; |
| 3923 |
uint32_t Value; |
| 3924 |
} DW18; |
| 3925 |
union |
| 3926 |
{ |
| 3927 |
//!< DWORD 19 |
| 3928 |
struct |
| 3929 |
{ |
| 3930 |
uint32_t Reserved246 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3931 |
}; |
| 3932 |
uint32_t Value; |
| 3933 |
} DW19; |
| 3934 |
union |
| 3935 |
{ |
| 3936 |
//!< DWORD 20 |
| 3937 |
struct |
| 3938 |
{ |
| 3939 |
uint32_t Reserved258 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3940 |
}; |
| 3941 |
uint32_t Value; |
| 3942 |
} DW20; |
| 3943 |
union |
| 3944 |
{ |
| 3945 |
//!< DWORD 21 |
| 3946 |
struct |
| 3947 |
{ |
| 3948 |
uint32_t Reserved270 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3949 |
}; |
| 3950 |
uint32_t Value; |
| 3951 |
} DW21; |
| 3952 |
union |
| 3953 |
{ |
| 3954 |
//!< DWORD 22 |
| 3955 |
struct |
| 3956 |
{ |
| 3957 |
uint32_t Reserved282 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3958 |
}; |
| 3959 |
uint32_t Value; |
| 3960 |
} DW22; |
| 3961 |
union |
| 3962 |
{ |
| 3963 |
//!< DWORD 23 |
| 3964 |
struct |
| 3965 |
{ |
| 3966 |
uint32_t Reserved294 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3967 |
}; |
| 3968 |
uint32_t Value; |
| 3969 |
} DW23; |
| 3970 |
union |
| 3971 |
{ |
| 3972 |
//!< DWORD 24 |
| 3973 |
struct |
| 3974 |
{ |
| 3975 |
uint32_t Reserved306 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3976 |
}; |
| 3977 |
uint32_t Value; |
| 3978 |
} DW24; |
| 3979 |
union |
| 3980 |
{ |
| 3981 |
//!< DWORD 25 |
| 3982 |
struct |
| 3983 |
{ |
| 3984 |
uint32_t Reserved318 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3985 |
}; |
| 3986 |
uint32_t Value; |
| 3987 |
} DW25; |
| 3988 |
union |
| 3989 |
{ |
| 3990 |
//!< DWORD 26 |
| 3991 |
struct |
| 3992 |
{ |
| 3993 |
uint32_t Reserved330 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 3994 |
}; |
| 3995 |
uint32_t Value; |
| 3996 |
} DW26; |
| 3997 |
union |
| 3998 |
{ |
| 3999 |
//!< DWORD 27 |
| 4000 |
struct |
| 4001 |
{ |
| 4002 |
uint32_t Reserved342 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4003 |
}; |
| 4004 |
uint32_t Value; |
| 4005 |
} DW27; |
| 4006 |
union |
| 4007 |
{ |
| 4008 |
//!< DWORD 28 |
| 4009 |
struct |
| 4010 |
{ |
| 4011 |
uint32_t Reserved354 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4012 |
}; |
| 4013 |
uint32_t Value; |
| 4014 |
} DW28; |
| 4015 |
union |
| 4016 |
{ |
| 4017 |
//!< DWORD 29 |
| 4018 |
struct |
| 4019 |
{ |
| 4020 |
uint32_t Reserved366 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4021 |
}; |
| 4022 |
uint32_t Value; |
| 4023 |
} DW29; |
| 4024 |
union |
| 4025 |
{ |
| 4026 |
//!< DWORD 30 |
| 4027 |
struct |
| 4028 |
{ |
| 4029 |
uint32_t Reserved378 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4030 |
}; |
| 4031 |
uint32_t Value; |
| 4032 |
} DW30; |
| 4033 |
|
| 4034 |
//! \name Local enumerations |
| 4035 |
|
| 4036 |
enum SUBOPB |
| 4037 |
{ |
| 4038 |
SUBOPB_VDENCCMD1CMD = 10, //!< No additional details |
| 4039 |
}; |
| 4040 |
|
| 4041 |
enum SUBOPA |
| 4042 |
{ |
| 4043 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 4044 |
}; |
| 4045 |
|
| 4046 |
enum OPCODE |
| 4047 |
{ |
| 4048 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 4049 |
}; |
| 4050 |
|
| 4051 |
enum PIPELINE |
| 4052 |
{ |
| 4053 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 4054 |
}; |
| 4055 |
|
| 4056 |
enum COMMAND_TYPE |
| 4057 |
{ |
| 4058 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 4059 |
}; |
| 4060 |
|
| 4061 |
//! \name Initializations |
| 4062 |
|
| 4063 |
//! \brief Explicit member initialization function |
| 4064 |
VDENC_CMD1_CMD(); |
| 4065 |
|
| 4066 |
static const size_t dwSize = 31; |
| 4067 |
static const size_t byteSize = 124; |
| 4068 |
}; |
| 4069 |
|
| 4070 |
//! |
| 4071 |
//! \brief VDENC_CMD2_STATE |
| 4072 |
//! \details |
| 4073 |
//! |
| 4074 |
//! |
| 4075 |
struct VDENC_CMD2_CMD |
| 4076 |
{ |
| 4077 |
union |
| 4078 |
{ |
| 4079 |
//!< DWORD 0 |
| 4080 |
struct |
| 4081 |
{ |
| 4082 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWord Length |
| 4083 |
uint32_t Reserved13 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 4084 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 4085 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 4086 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 4087 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 4088 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 4089 |
}; |
| 4090 |
uint32_t Value; |
| 4091 |
} DW0; |
| 4092 |
union |
| 4093 |
{ |
| 4094 |
//!< DWORD 1 |
| 4095 |
struct |
| 4096 |
{ |
| 4097 |
uint32_t FrameWidthInPixelsMinusOne : __CODEGEN_BITFIELD( 0, 15) ; //!< FrameWidthInPixelsMinusOne |
| 4098 |
uint32_t FrameHeightInPixelsMinusOne : __CODEGEN_BITFIELD(16, 31) ; //!< FrameHeightInPixelsMinusOne |
| 4099 |
}; |
| 4100 |
uint32_t Value; |
| 4101 |
} DW1; |
| 4102 |
union |
| 4103 |
{ |
| 4104 |
//!< DWORD 2 |
| 4105 |
struct |
| 4106 |
{ |
| 4107 |
uint32_t Reserved46 : __CODEGEN_BITFIELD( 0, 19) ; //!< Reserved |
| 4108 |
uint32_t PictureType : __CODEGEN_BITFIELD(20, 21) ; //!< Picture Type |
| 4109 |
uint32_t TemporalMvpEnableFlag : __CODEGEN_BITFIELD(22, 22) ; //!< TemporalMvpEnableFlag |
| 4110 |
uint32_t Reserved49 : __CODEGEN_BITFIELD(23, 23) ; //!< Reserved |
| 4111 |
uint32_t LongTermReferenceFlagsL0 : __CODEGEN_BITFIELD(24, 26) ; //!< LongTermReferenceFlags_L0 |
| 4112 |
uint32_t LongTermReferenceFlagsL1 : __CODEGEN_BITFIELD(27, 27) ; //!< LongTermReferenceFlags_L1 |
| 4113 |
uint32_t Reserved53 : __CODEGEN_BITFIELD(28, 29) ; //!< Reserved |
| 4114 |
uint32_t TransformSkip : __CODEGEN_BITFIELD(30, 30) ; //!< TransformSkip |
| 4115 |
uint32_t Reserved55 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved |
| 4116 |
}; |
| 4117 |
uint32_t Value; |
| 4118 |
} DW2; |
| 4119 |
union |
| 4120 |
{ |
| 4121 |
//!< DWORD 3 |
| 4122 |
struct |
| 4123 |
{ |
| 4124 |
uint32_t PocNumberForRefid0InL0 : __CODEGEN_BITFIELD( 0, 7) ; //!< FWD_POC_NUMBER_FOR_REFID_0_IN_L0 |
| 4125 |
uint32_t PocNumberForRefid0InL1 : __CODEGEN_BITFIELD( 8, 15) ; //!< BWD_POC_NUMBER_FOR_REFID_0_IN_L1 |
| 4126 |
uint32_t PocNumberForRefid1InL0 : __CODEGEN_BITFIELD(16, 23) ; //!< POC_NUMBER_FOR_REFID_1_IN_L0 |
| 4127 |
uint32_t PocNumberForRefid1InL1 : __CODEGEN_BITFIELD(24, 31) ; //!< POC_NUMBER_FOR_REFID_1_IN_L1 |
| 4128 |
}; |
| 4129 |
uint32_t Value; |
| 4130 |
} DW3; |
| 4131 |
union |
| 4132 |
{ |
| 4133 |
//!< DWORD 4 |
| 4134 |
struct |
| 4135 |
{ |
| 4136 |
uint32_t PocNumberForRefid2InL0 : __CODEGEN_BITFIELD( 0, 7) ; //!< FWD_POC_NUMBER_FOR_REFID_2_IN_L0 |
| 4137 |
uint32_t PocNumberForRefid2InL1 : __CODEGEN_BITFIELD( 8, 15) ; //!< BWD_POC_NUMBER_FOR_REFID_2_IN_L1 |
| 4138 |
uint32_t Reserved79 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 4139 |
}; |
| 4140 |
uint32_t Value; |
| 4141 |
} DW4; |
| 4142 |
union |
| 4143 |
{ |
| 4144 |
//!< DWORD 5 |
| 4145 |
struct |
| 4146 |
{ |
| 4147 |
uint32_t Reserved89 : __CODEGEN_BITFIELD(0, 7); //!< Reserved |
| 4148 |
uint32_t StreaminRoiEnable : __CODEGEN_BITFIELD(8, 8); //!< StreamIn ROI Enable |
| 4149 |
uint32_t Reserved98 : __CODEGEN_BITFIELD(9, 9); //!< Reserved |
| 4150 |
uint32_t SubPelMode : __CODEGEN_BITFIELD(10, 11); //!< SubPelMode |
| 4151 |
uint32_t Reserved981 : __CODEGEN_BITFIELD(12, 23); //!< Reserved |
| 4152 |
uint32_t NumRefIdxL0Minus1 : __CODEGEN_BITFIELD(24, 27); //!< NumRefIdxL0_minus1 |
| 4153 |
uint32_t NumRefIdxL1Minus1 : __CODEGEN_BITFIELD(28, 31); //!< NumRefIdxL1_minus1 |
| 4154 |
}; |
| 4155 |
uint32_t Value; |
| 4156 |
} DW5; |
| 4157 |
union |
| 4158 |
{ |
| 4159 |
//!< DWORD 6 |
| 4160 |
struct |
| 4161 |
{ |
| 4162 |
uint32_t Reserved112 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4163 |
}; |
| 4164 |
uint32_t Value; |
| 4165 |
} DW6; |
| 4166 |
union |
| 4167 |
{ |
| 4168 |
//!< DWORD 7 |
| 4169 |
struct |
| 4170 |
{ |
| 4171 |
uint32_t Reserved121 : __CODEGEN_BITFIELD( 0, 3) ; //!< Reserved |
| 4172 |
uint32_t SegmentationEnable : __CODEGEN_BITFIELD( 4, 4) ; //!< Segmentation Enable |
| 4173 |
uint32_t SegmentationMapTemporalPredictionEnable : __CODEGEN_BITFIELD( 5, 5) ; //!< Segmentation map temporal prediction enable |
| 4174 |
uint32_t Reserved124 : __CODEGEN_BITFIELD( 6, 6) ; //!< Reserved |
| 4175 |
uint32_t TilingEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< Tiling enable |
| 4176 |
uint32_t Reserved126 : __CODEGEN_BITFIELD( 8, 8) ; //!< Reserved |
| 4177 |
uint32_t VdencStreamInEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< VDENC Stream IN |
| 4178 |
uint32_t Reserved130 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved |
| 4179 |
uint32_t PakOnlyMultiPassEnable : __CODEGEN_BITFIELD(16, 16) ; //!< PAK-Only Multi-Pass Enable |
| 4180 |
uint32_t Reserved139 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved |
| 4181 |
}; |
| 4182 |
uint32_t Value; |
| 4183 |
} DW7; |
| 4184 |
union |
| 4185 |
{ |
| 4186 |
//!< DWORD 8 |
| 4187 |
struct |
| 4188 |
{ |
| 4189 |
uint32_t Reserved155 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4190 |
}; |
| 4191 |
uint32_t Value; |
| 4192 |
} DW8; |
| 4193 |
union |
| 4194 |
{ |
| 4195 |
//!< DWORD 9 |
| 4196 |
struct |
| 4197 |
{ |
| 4198 |
uint32_t Reserved170 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4199 |
}; |
| 4200 |
uint32_t Value; |
| 4201 |
} DW9; |
| 4202 |
union |
| 4203 |
{ |
| 4204 |
//!< DWORD 10 |
| 4205 |
struct |
| 4206 |
{ |
| 4207 |
uint32_t Reserved182 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4208 |
}; |
| 4209 |
uint32_t Value; |
| 4210 |
} DW10; |
| 4211 |
union |
| 4212 |
{ |
| 4213 |
//!< DWORD 11 |
| 4214 |
struct |
| 4215 |
{ |
| 4216 |
uint32_t Reserved199 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4217 |
}; |
| 4218 |
uint32_t Value; |
| 4219 |
} DW11; |
| 4220 |
union |
| 4221 |
{ |
| 4222 |
//!< DWORD 12 |
| 4223 |
struct |
| 4224 |
{ |
| 4225 |
uint32_t Reserved209 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4226 |
}; |
| 4227 |
uint32_t Value; |
| 4228 |
} DW12; |
| 4229 |
union |
| 4230 |
{ |
| 4231 |
//!< DWORD 13 |
| 4232 |
struct |
| 4233 |
{ |
| 4234 |
uint32_t Reserved218 : __CODEGEN_BITFIELD( 0, 3) ; //!< Reserved |
| 4235 |
uint32_t RoiQpAdjustmentForZone1Stage3 : __CODEGEN_BITFIELD( 4, 7) ; //!< ROI QP adjustment for Zone1 (stage3) |
| 4236 |
uint32_t RoiQpAdjustmentForZone2Stage3 : __CODEGEN_BITFIELD( 8, 11) ; //!< ROI QP adjustment for Zone2 (stage3) |
| 4237 |
uint32_t RoiQpAdjustmentForZone3Stage3 : __CODEGEN_BITFIELD(12, 15) ; //!< ROI QP adjustment for Zone3 (stage3) |
| 4238 |
uint32_t Reserved225 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 4239 |
}; |
| 4240 |
uint32_t Value; |
| 4241 |
} DW13; |
| 4242 |
union |
| 4243 |
{ |
| 4244 |
//!< DWORD 14 |
| 4245 |
struct |
| 4246 |
{ |
| 4247 |
uint32_t Reserved238 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4248 |
}; |
| 4249 |
uint32_t Value; |
| 4250 |
} DW14; |
| 4251 |
union |
| 4252 |
{ |
| 4253 |
//!< DWORD 15 |
| 4254 |
struct |
| 4255 |
{ |
| 4256 |
uint32_t Reserved248 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4257 |
}; |
| 4258 |
uint32_t Value; |
| 4259 |
} DW15; |
| 4260 |
union |
| 4261 |
{ |
| 4262 |
//!< DWORD 16 |
| 4263 |
struct |
| 4264 |
{ |
| 4265 |
uint32_t MinQp : __CODEGEN_BITFIELD( 0, 7) ; //!< MINQP |
| 4266 |
uint32_t MaxQp : __CODEGEN_BITFIELD( 8, 15) ; //!< MAXQP |
| 4267 |
uint32_t Reserved262 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 4268 |
}; |
| 4269 |
uint32_t Value; |
| 4270 |
} DW16; |
| 4271 |
union |
| 4272 |
{ |
| 4273 |
//!< DWORD 17 |
| 4274 |
struct |
| 4275 |
{ |
| 4276 |
uint32_t Reserved271 : __CODEGEN_BITFIELD( 0, 19) ; //!< Reserved |
| 4277 |
uint32_t TemporalMVEnableForIntegerSearch : __CODEGEN_BITFIELD(20, 20) ; //!< Temporal MV disable for Integer Search |
| 4278 |
uint32_t Reserved273 : __CODEGEN_BITFIELD(21, 31) ; //!< Reserved |
| 4279 |
}; |
| 4280 |
uint32_t Value; |
| 4281 |
} DW17; |
| 4282 |
union |
| 4283 |
{ |
| 4284 |
//!< DWORD 18 |
| 4285 |
struct |
| 4286 |
{ |
| 4287 |
uint32_t Reserved286 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4288 |
}; |
| 4289 |
uint32_t Value; |
| 4290 |
} DW18; |
| 4291 |
union |
| 4292 |
{ |
| 4293 |
//!< DWORD 19 |
| 4294 |
struct |
| 4295 |
{ |
| 4296 |
uint32_t Reserved298 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4297 |
}; |
| 4298 |
uint32_t Value; |
| 4299 |
} DW19; |
| 4300 |
union |
| 4301 |
{ |
| 4302 |
//!< DWORD 20 |
| 4303 |
struct |
| 4304 |
{ |
| 4305 |
uint32_t Reserved312 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4306 |
}; |
| 4307 |
uint32_t Value; |
| 4308 |
} DW20; |
| 4309 |
union |
| 4310 |
{ |
| 4311 |
//!< DWORD 21 |
| 4312 |
struct |
| 4313 |
{ |
| 4314 |
uint32_t IntraRefreshPos : __CODEGEN_BITFIELD( 0, 8) ; //!< IntraRefreshPos |
| 4315 |
uint32_t Reserved322 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved |
| 4316 |
uint32_t IntraRefreshMBSizeMinusOne : __CODEGEN_BITFIELD(16, 23) ; //!< IntraRefreshMBSizeMinusOne |
| 4317 |
uint32_t IntraRefreshMode : __CODEGEN_BITFIELD(24, 24) ; //!< IntraRefreshMode |
| 4318 |
uint32_t Reserved326 : __CODEGEN_BITFIELD(25, 27) ; //!< Reserved |
| 4319 |
uint32_t QpAdjustmentForRollingI : __CODEGEN_BITFIELD(28, 31) ; //!< QP_ADJUSTMENT_FOR_ROLLING_I |
| 4320 |
}; |
| 4321 |
uint32_t Value; |
| 4322 |
} DW21; |
| 4323 |
union |
| 4324 |
{ |
| 4325 |
//!< DWORD 22 |
| 4326 |
struct |
| 4327 |
{ |
| 4328 |
uint32_t Reserved343 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4329 |
}; |
| 4330 |
uint32_t Value; |
| 4331 |
} DW22; |
| 4332 |
union |
| 4333 |
{ |
| 4334 |
//!< DWORD 23 |
| 4335 |
struct |
| 4336 |
{ |
| 4337 |
uint32_t Reserved357 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4338 |
}; |
| 4339 |
uint32_t Value; |
| 4340 |
} DW23; |
| 4341 |
union |
| 4342 |
{ |
| 4343 |
//!< DWORD 24 |
| 4344 |
struct |
| 4345 |
{ |
| 4346 |
uint32_t QpForSeg0 : __CODEGEN_BITFIELD( 0, 7) ; //!< QP for Seg0 |
| 4347 |
uint32_t QpForSeg1 : __CODEGEN_BITFIELD( 8, 15) ; //!< QP for Seg1 |
| 4348 |
uint32_t QpForSeg2 : __CODEGEN_BITFIELD(16, 23) ; //!< QP for Seg2 |
| 4349 |
uint32_t QpForSeg3 : __CODEGEN_BITFIELD(24, 31) ; //!< QP for Seg3 |
| 4350 |
}; |
| 4351 |
uint32_t Value; |
| 4352 |
} DW24; |
| 4353 |
union |
| 4354 |
{ |
| 4355 |
//!< DWORD 25 |
| 4356 |
struct |
| 4357 |
{ |
| 4358 |
uint32_t QpForSeg4 : __CODEGEN_BITFIELD( 0, 7) ; //!< QP for Seg4 |
| 4359 |
uint32_t QpForSeg5 : __CODEGEN_BITFIELD( 8, 15) ; //!< QP for Seg5 |
| 4360 |
uint32_t QpForSeg6 : __CODEGEN_BITFIELD(16, 23) ; //!< QP for Seg6 |
| 4361 |
uint32_t QpForSeg7 : __CODEGEN_BITFIELD(24, 31) ; //!< QP for Seg7 |
| 4362 |
}; |
| 4363 |
uint32_t Value; |
| 4364 |
} DW25; |
| 4365 |
union |
| 4366 |
{ |
| 4367 |
//!< DWORD 26 |
| 4368 |
struct |
| 4369 |
{ |
| 4370 |
uint32_t RdQpLambda : __CODEGEN_BITFIELD( 0, 15) ; //!< RD QP Lambda |
| 4371 |
uint32_t SadQpLambda : __CODEGEN_BITFIELD(16, 24) ; //!< SAD QP Lambda |
| 4372 |
uint32_t Vp9DynamicSliceEnable : __CODEGEN_BITFIELD(25, 25) ; //!< VP9 Dynamic slice enable |
| 4373 |
uint32_t Reserved394 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved |
| 4374 |
}; |
| 4375 |
uint32_t Value; |
| 4376 |
} DW26; |
| 4377 |
union |
| 4378 |
{ |
| 4379 |
//!< DWORD 27 |
| 4380 |
struct |
| 4381 |
{ |
| 4382 |
uint32_t QpPrimeYDc : __CODEGEN_BITFIELD( 0, 7) ; //!< QPPRIMEY_DC |
| 4383 |
uint32_t QpPrimeYAc : __CODEGEN_BITFIELD( 8, 15) ; //!< QPPRIMEY_AC |
| 4384 |
uint32_t Reserved405 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 4385 |
}; |
| 4386 |
uint32_t Value; |
| 4387 |
} DW27; |
| 4388 |
union |
| 4389 |
{ |
| 4390 |
//!< DWORD 28 |
| 4391 |
struct |
| 4392 |
{ |
| 4393 |
uint32_t Reserved415 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4394 |
}; |
| 4395 |
uint32_t Value; |
| 4396 |
} DW28; |
| 4397 |
union |
| 4398 |
{ |
| 4399 |
//!< DWORD 29 |
| 4400 |
struct |
| 4401 |
{ |
| 4402 |
uint32_t Reserved425 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4403 |
}; |
| 4404 |
uint32_t Value; |
| 4405 |
} DW29; |
| 4406 |
union |
| 4407 |
{ |
| 4408 |
//!< DWORD 30 |
| 4409 |
struct |
| 4410 |
{ |
| 4411 |
uint32_t Reserved435 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4412 |
}; |
| 4413 |
uint32_t Value; |
| 4414 |
} DW30; |
| 4415 |
union |
| 4416 |
{ |
| 4417 |
//!< DWORD 31 |
| 4418 |
struct |
| 4419 |
{ |
| 4420 |
uint32_t Reserved445 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4421 |
}; |
| 4422 |
uint32_t Value; |
| 4423 |
} DW31; |
| 4424 |
union |
| 4425 |
{ |
| 4426 |
//!< DWORD 32 |
| 4427 |
struct |
| 4428 |
{ |
| 4429 |
uint32_t Reserved454 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4430 |
}; |
| 4431 |
uint32_t Value; |
| 4432 |
} DW32; |
| 4433 |
union |
| 4434 |
{ |
| 4435 |
//!< DWORD 33 |
| 4436 |
struct |
| 4437 |
{ |
| 4438 |
uint32_t Reserved474 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4439 |
}; |
| 4440 |
uint32_t Value; |
| 4441 |
} DW33; |
| 4442 |
union |
| 4443 |
{ |
| 4444 |
//!< DWORD 34 |
| 4445 |
struct |
| 4446 |
{ |
| 4447 |
uint32_t Reserved490 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4448 |
}; |
| 4449 |
uint32_t Value; |
| 4450 |
} DW34; |
| 4451 |
union |
| 4452 |
{ |
| 4453 |
//!< DWORD 35 |
| 4454 |
struct |
| 4455 |
{ |
| 4456 |
uint32_t Reserved503 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4457 |
}; |
| 4458 |
uint32_t Value; |
| 4459 |
} DW35; |
| 4460 |
union |
| 4461 |
{ |
| 4462 |
//!< DWORD 36 |
| 4463 |
struct |
| 4464 |
{ |
| 4465 |
uint32_t IntraRefreshBoundaryRef0 : __CODEGEN_BITFIELD( 0, 8) ; //!< IntraRefreshBoundary Ref0 |
| 4466 |
uint32_t Reserved513 : __CODEGEN_BITFIELD( 9, 9) ; //!< Reserved |
| 4467 |
uint32_t IntraRefreshBoundaryRef1 : __CODEGEN_BITFIELD(10, 18) ; //!< IntraRefreshBoundary Ref1 |
| 4468 |
uint32_t Reserved515 : __CODEGEN_BITFIELD(19, 19) ; //!< Reserved |
| 4469 |
uint32_t IntraRefreshBoundaryRef2 : __CODEGEN_BITFIELD(20, 28) ; //!< IntraRefreshBoundary Ref2 |
| 4470 |
uint32_t Reserved517 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 4471 |
}; |
| 4472 |
uint32_t Value; |
| 4473 |
} DW36; |
| 4474 |
union |
| 4475 |
{ |
| 4476 |
//!< DWORD 37 |
| 4477 |
struct |
| 4478 |
{ |
| 4479 |
uint32_t Reserved530 : __CODEGEN_BITFIELD( 0, 22) ; //!< Reserved |
| 4480 |
uint32_t Reserved533 : __CODEGEN_BITFIELD(23, 26) ; //!< Reserved |
| 4481 |
uint32_t TileReplayEnable : __CODEGEN_BITFIELD(27, 27) ; //!< Tile Replay enable |
| 4482 |
uint32_t Reserved536 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 4483 |
}; |
| 4484 |
uint32_t Value; |
| 4485 |
} DW37; |
| 4486 |
union |
| 4487 |
{ |
| 4488 |
//!< DWORD 38 |
| 4489 |
struct |
| 4490 |
{ |
| 4491 |
uint32_t Reserved551 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4492 |
}; |
| 4493 |
uint32_t Value; |
| 4494 |
} DW38; |
| 4495 |
union |
| 4496 |
{ |
| 4497 |
//!< DWORD 39 |
| 4498 |
struct |
| 4499 |
{ |
| 4500 |
uint32_t Reserved561 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4501 |
}; |
| 4502 |
uint32_t Value; |
| 4503 |
} DW39; |
| 4504 |
union |
| 4505 |
{ |
| 4506 |
//!< DWORD 40 |
| 4507 |
struct |
| 4508 |
{ |
| 4509 |
uint32_t Reserved571 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4510 |
}; |
| 4511 |
uint32_t Value; |
| 4512 |
} DW40; |
| 4513 |
union |
| 4514 |
{ |
| 4515 |
//!< DWORD 41 |
| 4516 |
struct |
| 4517 |
{ |
| 4518 |
uint32_t Reserved581 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4519 |
}; |
| 4520 |
uint32_t Value; |
| 4521 |
} DW41; |
| 4522 |
union |
| 4523 |
{ |
| 4524 |
//!< DWORD 42 |
| 4525 |
struct |
| 4526 |
{ |
| 4527 |
uint32_t Reserved591 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4528 |
}; |
| 4529 |
uint32_t Value; |
| 4530 |
} DW42; |
| 4531 |
union |
| 4532 |
{ |
| 4533 |
//!< DWORD 43 |
| 4534 |
struct |
| 4535 |
{ |
| 4536 |
uint32_t Reserved601 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4537 |
}; |
| 4538 |
uint32_t Value; |
| 4539 |
} DW43; |
| 4540 |
union |
| 4541 |
{ |
| 4542 |
//!< DWORD 44 |
| 4543 |
struct |
| 4544 |
{ |
| 4545 |
uint32_t Reserved611 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4546 |
}; |
| 4547 |
uint32_t Value; |
| 4548 |
} DW44; |
| 4549 |
union |
| 4550 |
{ |
| 4551 |
//!< DWORD 45 |
| 4552 |
struct |
| 4553 |
{ |
| 4554 |
uint32_t Reserved621 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4555 |
}; |
| 4556 |
uint32_t Value; |
| 4557 |
} DW45; |
| 4558 |
union |
| 4559 |
{ |
| 4560 |
//!< DWORD 46 |
| 4561 |
struct |
| 4562 |
{ |
| 4563 |
uint32_t Reserved631 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4564 |
}; |
| 4565 |
uint32_t Value; |
| 4566 |
} DW46; |
| 4567 |
union |
| 4568 |
{ |
| 4569 |
//!< DWORD 47 |
| 4570 |
struct |
| 4571 |
{ |
| 4572 |
uint32_t Reserved641 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4573 |
}; |
| 4574 |
uint32_t Value; |
| 4575 |
} DW47; |
| 4576 |
union |
| 4577 |
{ |
| 4578 |
//!< DWORD 48 |
| 4579 |
struct |
| 4580 |
{ |
| 4581 |
uint32_t Reserved651 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4582 |
}; |
| 4583 |
uint32_t Value; |
| 4584 |
} DW48; |
| 4585 |
union |
| 4586 |
{ |
| 4587 |
//!< DWORD 49 |
| 4588 |
struct |
| 4589 |
{ |
| 4590 |
uint32_t Reserved661 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4591 |
}; |
| 4592 |
uint32_t Value; |
| 4593 |
} DW49; |
| 4594 |
union |
| 4595 |
{ |
| 4596 |
//!< DWORD 50 |
| 4597 |
struct |
| 4598 |
{ |
| 4599 |
uint32_t Reserved671 : __CODEGEN_BITFIELD( 0, 31) ; //!< Reserved |
| 4600 |
}; |
| 4601 |
uint32_t Value; |
| 4602 |
} DW50; |
| 4603 |
|
| 4604 |
|
| 4605 |
//! \name Local enumerations |
| 4606 |
|
| 4607 |
enum SUBOPB |
| 4608 |
{ |
| 4609 |
SUBOPB_VDENCCMD2CMD = 9, //!< No additional details |
| 4610 |
}; |
| 4611 |
|
| 4612 |
enum SUBOPA |
| 4613 |
{ |
| 4614 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 4615 |
}; |
| 4616 |
|
| 4617 |
enum OPCODE |
| 4618 |
{ |
| 4619 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 4620 |
}; |
| 4621 |
|
| 4622 |
enum PIPELINE |
| 4623 |
{ |
| 4624 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 4625 |
}; |
| 4626 |
|
| 4627 |
enum COMMAND_TYPE |
| 4628 |
{ |
| 4629 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 4630 |
}; |
| 4631 |
|
| 4632 |
//! \brief Explicit member initialization function |
| 4633 |
VDENC_CMD2_CMD(); |
| 4634 |
|
| 4635 |
static const size_t dwSize = 51; |
| 4636 |
static const size_t byteSize = 204; |
| 4637 |
}; |
| 4638 |
}; |
| 4639 |
|
| 4640 |
#pragma pack() |
| 4641 |
|
| 4642 |
#endif // __MHW_VDBOX_VDENC_HWCMD_G12_X_H__ |