| 1 |
/* |
| 2 |
* Copyright (c) 2017, Intel Corporation |
| 3 |
* |
| 4 |
* Permission is hereby granted, free of charge, to any person obtaining a |
| 5 |
* copy of this software and associated documentation files (the "Software"), |
| 6 |
* to deal in the Software without restriction, including without limitation |
| 7 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 |
* and/or sell copies of the Software, and to permit persons to whom the |
| 9 |
* Software is furnished to do so, subject to the following conditions: |
| 10 |
* |
| 11 |
* The above copyright notice and this permission notice shall be included |
| 12 |
* in all copies or substantial portions of the Software. |
| 13 |
* |
| 14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 15 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 17 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 18 |
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 19 |
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 20 |
* OTHER DEALINGS IN THE SOFTWARE. |
| 21 |
*/ |
| 22 |
//! |
| 23 |
//! \file mhw_vdbox_vdenc_hwcmd_g11_X.h |
| 24 |
//! \brief Auto-generated constructors for MHW and states. |
| 25 |
//! \details This file may not be included outside of g11_X as other components |
| 26 |
//! should use MHW interface to interact with MHW commands and states. |
| 27 |
//! |
| 28 |
#ifndef __MHW_VDBOX_VDENC_HWCMD_G11_X_H__ |
| 29 |
#define __MHW_VDBOX_VDENC_HWCMD_G11_X_H__ |
| 30 |
|
| 31 |
#pragma once |
| 32 |
#include <cstdint> |
| 33 |
#include <cstddef> |
| 34 |
|
| 35 |
|
| 36 |
#pragma pack(1) |
| 37 |
|
| 38 |
class mhw_vdbox_vdenc_g11_X |
| 39 |
{ |
| 40 |
public: |
| 41 |
// Internal Macros |
| 42 |
#define __CODEGEN_MAX(_a, _b) (((_a) > (_b)) ? (_a) : (_b)) |
| 43 |
#define __CODEGEN_BITFIELD(l, h) (h) - (l) + 1 |
| 44 |
#define __CODEGEN_OP_LENGTH_BIAS 2 |
| 45 |
#define __CODEGEN_OP_LENGTH(x) (uint32_t)((__CODEGEN_MAX(x, __CODEGEN_OP_LENGTH_BIAS)) - __CODEGEN_OP_LENGTH_BIAS) |
| 46 |
|
| 47 |
static uint32_t GetOpLength(uint32_t uiLength) { return __CODEGEN_OP_LENGTH(uiLength); } |
| 48 |
|
| 49 |
//! |
| 50 |
//! \brief VDENC_64B_Aligned_Lower_Address |
| 51 |
//! \details |
| 52 |
//! |
| 53 |
//! |
| 54 |
struct VDENC_64B_Aligned_Lower_Address_CMD |
| 55 |
{ |
| 56 |
union |
| 57 |
{ |
| 58 |
//!< DWORD 0 |
| 59 |
struct |
| 60 |
{ |
| 61 |
uint32_t Reserved0 : __CODEGEN_BITFIELD( 0, 5) ; //!< Reserved |
| 62 |
uint32_t Address : __CODEGEN_BITFIELD( 6, 31) ; //!< Address |
| 63 |
}; |
| 64 |
uint32_t Value; |
| 65 |
} DW0; |
| 66 |
|
| 67 |
//! \name Local enumerations |
| 68 |
|
| 69 |
//! \name Initializations |
| 70 |
|
| 71 |
//! \brief Explicit member initialization function |
| 72 |
VDENC_64B_Aligned_Lower_Address_CMD(); |
| 73 |
|
| 74 |
static const size_t dwSize = 1; |
| 75 |
static const size_t byteSize = 4; |
| 76 |
}; |
| 77 |
|
| 78 |
//! |
| 79 |
//! \brief VDENC_64B_Aligned_Upper_Address |
| 80 |
//! \details |
| 81 |
//! |
| 82 |
//! |
| 83 |
struct VDENC_64B_Aligned_Upper_Address_CMD |
| 84 |
{ |
| 85 |
union |
| 86 |
{ |
| 87 |
//!< DWORD 0 |
| 88 |
struct |
| 89 |
{ |
| 90 |
uint32_t AddressUpperDword : __CODEGEN_BITFIELD( 0, 15) ; //!< Address Upper DWord |
| 91 |
uint32_t Reserved16 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 92 |
}; |
| 93 |
uint32_t Value; |
| 94 |
} DW0; |
| 95 |
|
| 96 |
//! \name Local enumerations |
| 97 |
|
| 98 |
//! \name Initializations |
| 99 |
|
| 100 |
//! \brief Explicit member initialization function |
| 101 |
VDENC_64B_Aligned_Upper_Address_CMD(); |
| 102 |
|
| 103 |
static const size_t dwSize = 1; |
| 104 |
static const size_t byteSize = 4; |
| 105 |
}; |
| 106 |
|
| 107 |
//! |
| 108 |
//! \brief VDENC_Surface_Control_Bits |
| 109 |
//! \details |
| 110 |
//! |
| 111 |
//! |
| 112 |
struct VDENC_Surface_Control_Bits_CMD |
| 113 |
{ |
| 114 |
union |
| 115 |
{ |
| 116 |
//!< DWORD 0 |
| 117 |
struct |
| 118 |
{ |
| 119 |
uint32_t MemoryObjectControlState : __CODEGEN_BITFIELD( 0, 6) ; //!< Index to Memory Object Control State (MOCS) Tables: |
| 120 |
uint32_t ArbitrationPriorityControl : __CODEGEN_BITFIELD( 7, 8) ; //!< ARBITRATION_PRIORITY_CONTROL |
| 121 |
uint32_t MemoryCompressionEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< MEMORY_COMPRESSION_ENABLE |
| 122 |
uint32_t MemoryCompressionMode : __CODEGEN_BITFIELD(10, 10) ; //!< MEMORY_COMPRESSION_MODE |
| 123 |
uint32_t Reserved11 : __CODEGEN_BITFIELD(11, 11) ; //!< Reserved |
| 124 |
uint32_t CacheSelect : __CODEGEN_BITFIELD(12, 12) ; //!< CACHE_SELECT |
| 125 |
uint32_t TiledResourceMode : __CODEGEN_BITFIELD(13, 14) ; //!< TILED_RESOURCE_MODE |
| 126 |
uint32_t Reserved15 : __CODEGEN_BITFIELD(15, 31) ; //!< Reserved |
| 127 |
}; |
| 128 |
uint32_t Value; |
| 129 |
} DW0; |
| 130 |
|
| 131 |
//! \name Local enumerations |
| 132 |
|
| 133 |
//! \brief ARBITRATION_PRIORITY_CONTROL |
| 134 |
//! \details |
| 135 |
//! This field controls the priority of arbitration used in the GAC/GAM |
| 136 |
//! pipeline for this surface. |
| 137 |
enum ARBITRATION_PRIORITY_CONTROL |
| 138 |
{ |
| 139 |
ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY = 0, //!< No additional details |
| 140 |
ARBITRATION_PRIORITY_CONTROL_SECONDHIGHESTPRIORITY = 1, //!< No additional details |
| 141 |
ARBITRATION_PRIORITY_CONTROL_THIRDHIGHESTPRIORITY = 2, //!< No additional details |
| 142 |
ARBITRATION_PRIORITY_CONTROL_LOWESTPRIORITY = 3, //!< No additional details |
| 143 |
}; |
| 144 |
|
| 145 |
//! \brief MEMORY_COMPRESSION_ENABLE |
| 146 |
//! \details |
| 147 |
//! Memory compression will be attempted for this surface. |
| 148 |
enum MEMORY_COMPRESSION_ENABLE |
| 149 |
{ |
| 150 |
MEMORY_COMPRESSION_ENABLE_DISABLE = 0, //!< No additional details |
| 151 |
MEMORY_COMPRESSION_ENABLE_ENABLE = 1, //!< No additional details |
| 152 |
}; |
| 153 |
|
| 154 |
//! \brief MEMORY_COMPRESSION_MODE |
| 155 |
//! \details |
| 156 |
//! Distinguishes Vertical from Horizontal compression. Please refer to |
| 157 |
//! vol1a <b>Memory Data</b>. |
| 158 |
enum MEMORY_COMPRESSION_MODE |
| 159 |
{ |
| 160 |
MEMORY_COMPRESSION_MODE_HORIZONTALCOMPRESSIONMODE = 0, //!< No additional details |
| 161 |
MEMORY_COMPRESSION_MODE_VERTICALCOMPRESSIONMODE = 1, //!< No additional details |
| 162 |
}; |
| 163 |
|
| 164 |
//! \brief CACHE_SELECT |
| 165 |
//! \details |
| 166 |
//! This field controls if the Row Store is going to store inside Media |
| 167 |
//! Cache (rowstore cache) or to LLC. |
| 168 |
enum CACHE_SELECT |
| 169 |
{ |
| 170 |
CACHE_SELECT_UNNAMED0 = 0, //!< Buffer going to LLC. |
| 171 |
CACHE_SELECT_UNNAMED1 = 1, //!< Buffer going to Internal Media Storage. |
| 172 |
}; |
| 173 |
|
| 174 |
//! \brief TILED_RESOURCE_MODE |
| 175 |
//! \details |
| 176 |
//! <b>For Media Surfaces</b>: This field specifies the tiled resource mode. |
| 177 |
enum TILED_RESOURCE_MODE |
| 178 |
{ |
| 179 |
TILED_RESOURCE_MODE_TRMODENONE = 0, //!< No tiled resource. |
| 180 |
TILED_RESOURCE_MODE_TRMODETILEYF = 1, //!< 4KB tiled resources |
| 181 |
TILED_RESOURCE_MODE_TRMODETILEYS = 2, //!< 64KB tiled resources |
| 182 |
}; |
| 183 |
|
| 184 |
//! \name Initializations |
| 185 |
|
| 186 |
//! \brief Explicit member initialization function |
| 187 |
VDENC_Surface_Control_Bits_CMD(); |
| 188 |
|
| 189 |
static const size_t dwSize = 1; |
| 190 |
static const size_t byteSize = 4; |
| 191 |
}; |
| 192 |
|
| 193 |
//! |
| 194 |
//! \brief VDENC_Sub_Mb_Pred_Mode |
| 195 |
//! \details |
| 196 |
//! |
| 197 |
//! |
| 198 |
struct VDENC_Sub_Mb_Pred_Mode_CMD |
| 199 |
{ |
| 200 |
union |
| 201 |
{ |
| 202 |
//!< WORD 0 |
| 203 |
struct |
| 204 |
{ |
| 205 |
uint8_t Submbpredmode0 : __CODEGEN_BITFIELD( 0, 1) ; //!< SubMbPredMode[0] |
| 206 |
uint8_t Submbpredmode1 : __CODEGEN_BITFIELD( 2, 3) ; //!< SubMbPredMode[1] |
| 207 |
uint8_t Submbpredmode2 : __CODEGEN_BITFIELD( 4, 5) ; //!< SubMbPredMode[2] |
| 208 |
uint8_t Submbpredmode3 : __CODEGEN_BITFIELD( 6, 7) ; //!< SubMbPredMode[3] |
| 209 |
}; |
| 210 |
uint8_t Value; |
| 211 |
} DW0; |
| 212 |
|
| 213 |
//! \name Local enumerations |
| 214 |
|
| 215 |
//! \name Initializations |
| 216 |
|
| 217 |
//! \brief Explicit member initialization function |
| 218 |
VDENC_Sub_Mb_Pred_Mode_CMD(); |
| 219 |
|
| 220 |
static const size_t dwSize = 0; |
| 221 |
static const size_t byteSize = 1; |
| 222 |
}; |
| 223 |
|
| 224 |
//! |
| 225 |
//! \brief VDENC_Block_8x8_4 |
| 226 |
//! \details |
| 227 |
//! |
| 228 |
//! |
| 229 |
struct VDENC_Block_8x8_4_CMD |
| 230 |
{ |
| 231 |
union |
| 232 |
{ |
| 233 |
//!< WORD 0 |
| 234 |
struct |
| 235 |
{ |
| 236 |
uint16_t Block8X80 : __CODEGEN_BITFIELD( 0, 3) ; //!< Block8x8[0] |
| 237 |
uint16_t Block8X81 : __CODEGEN_BITFIELD( 4, 7) ; //!< Block8x8[1] |
| 238 |
uint16_t Block8X82 : __CODEGEN_BITFIELD( 8, 11) ; //!< Block8x8[2] |
| 239 |
uint16_t Block8X83 : __CODEGEN_BITFIELD(12, 15) ; //!< Block8x8[3] |
| 240 |
}; |
| 241 |
uint16_t Value; |
| 242 |
} DW0; |
| 243 |
|
| 244 |
//! \name Local enumerations |
| 245 |
|
| 246 |
//! \name Initializations |
| 247 |
|
| 248 |
//! \brief Explicit member initialization function |
| 249 |
VDENC_Block_8x8_4_CMD(); |
| 250 |
|
| 251 |
static const size_t dwSize = 0; |
| 252 |
static const size_t byteSize = 2; |
| 253 |
}; |
| 254 |
|
| 255 |
//! |
| 256 |
//! \brief VDENC_Delta_MV_XY |
| 257 |
//! \details |
| 258 |
//! |
| 259 |
//! |
| 260 |
//! Calculates the difference between the actual MV for the Sub Macroblock |
| 261 |
//! and the predicted MV based on the availability of the neighbors. |
| 262 |
//! |
| 263 |
//! This is calculated and populated for Inter frames only. In case of an |
| 264 |
//! Intra MB in Inter frames, this value should be 0. |
| 265 |
//! |
| 266 |
struct VDENC_Delta_MV_XY_CMD |
| 267 |
{ |
| 268 |
union |
| 269 |
{ |
| 270 |
//!< DWORD 0 |
| 271 |
struct |
| 272 |
{ |
| 273 |
uint32_t X0 : __CODEGEN_BITFIELD( 0, 15) ; //!< X0 |
| 274 |
uint32_t Y0 : __CODEGEN_BITFIELD(16, 31) ; //!< Y0 |
| 275 |
}; |
| 276 |
uint32_t Value; |
| 277 |
} DW0; |
| 278 |
union |
| 279 |
{ |
| 280 |
//!< DWORD 1 |
| 281 |
struct |
| 282 |
{ |
| 283 |
uint32_t X1 : __CODEGEN_BITFIELD( 0, 15) ; //!< X1 |
| 284 |
uint32_t Y1 : __CODEGEN_BITFIELD(16, 31) ; //!< Y1 |
| 285 |
}; |
| 286 |
uint32_t Value; |
| 287 |
} DW1; |
| 288 |
union |
| 289 |
{ |
| 290 |
//!< DWORD 2 |
| 291 |
struct |
| 292 |
{ |
| 293 |
uint32_t X2 : __CODEGEN_BITFIELD( 0, 15) ; //!< X2 |
| 294 |
uint32_t Y2 : __CODEGEN_BITFIELD(16, 31) ; //!< Y2 |
| 295 |
}; |
| 296 |
uint32_t Value; |
| 297 |
} DW2; |
| 298 |
union |
| 299 |
{ |
| 300 |
//!< DWORD 3 |
| 301 |
struct |
| 302 |
{ |
| 303 |
uint32_t X3 : __CODEGEN_BITFIELD( 0, 15) ; //!< X3 |
| 304 |
uint32_t Y3 : __CODEGEN_BITFIELD(16, 31) ; //!< Y3 |
| 305 |
}; |
| 306 |
uint32_t Value; |
| 307 |
} DW3; |
| 308 |
|
| 309 |
//! \name Local enumerations |
| 310 |
|
| 311 |
//! \brief X0 |
| 312 |
//! \details |
| 313 |
enum X0 |
| 314 |
{ |
| 315 |
X0_UNNAMED0 = 0, //!< No additional details |
| 316 |
}; |
| 317 |
|
| 318 |
//! \brief Y0 |
| 319 |
//! \details |
| 320 |
enum Y0 |
| 321 |
{ |
| 322 |
Y0_UNNAMED0 = 0, //!< No additional details |
| 323 |
}; |
| 324 |
|
| 325 |
//! \brief X1 |
| 326 |
//! \details |
| 327 |
enum X1 |
| 328 |
{ |
| 329 |
X1_UNNAMED0 = 0, //!< No additional details |
| 330 |
}; |
| 331 |
|
| 332 |
//! \brief Y1 |
| 333 |
//! \details |
| 334 |
enum Y1 |
| 335 |
{ |
| 336 |
Y1_UNNAMED0 = 0, //!< No additional details |
| 337 |
}; |
| 338 |
|
| 339 |
//! \brief X2 |
| 340 |
//! \details |
| 341 |
enum X2 |
| 342 |
{ |
| 343 |
X2_UNNAMED0 = 0, //!< No additional details |
| 344 |
}; |
| 345 |
|
| 346 |
//! \brief Y2 |
| 347 |
//! \details |
| 348 |
enum Y2 |
| 349 |
{ |
| 350 |
Y2_UNNAMED0 = 0, //!< No additional details |
| 351 |
}; |
| 352 |
|
| 353 |
//! \brief X3 |
| 354 |
//! \details |
| 355 |
enum X3 |
| 356 |
{ |
| 357 |
X3_UNNAMED0 = 0, //!< No additional details |
| 358 |
}; |
| 359 |
|
| 360 |
//! \brief Y3 |
| 361 |
//! \details |
| 362 |
enum Y3 |
| 363 |
{ |
| 364 |
Y3_UNNAMED0 = 0, //!< No additional details |
| 365 |
}; |
| 366 |
|
| 367 |
//! \name Initializations |
| 368 |
|
| 369 |
//! \brief Explicit member initialization function |
| 370 |
VDENC_Delta_MV_XY_CMD(); |
| 371 |
|
| 372 |
static const size_t dwSize = 4; |
| 373 |
static const size_t byteSize = 16; |
| 374 |
}; |
| 375 |
|
| 376 |
//! |
| 377 |
//! \brief VDENC_Colocated_MV_Picture |
| 378 |
//! \details |
| 379 |
//! |
| 380 |
//! |
| 381 |
struct VDENC_Colocated_MV_Picture_CMD |
| 382 |
{ |
| 383 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 384 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 385 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 386 |
|
| 387 |
//! \name Local enumerations |
| 388 |
|
| 389 |
//! \name Initializations |
| 390 |
|
| 391 |
//! \brief Explicit member initialization function |
| 392 |
VDENC_Colocated_MV_Picture_CMD(); |
| 393 |
|
| 394 |
static const size_t dwSize = 3; |
| 395 |
static const size_t byteSize = 12; |
| 396 |
}; |
| 397 |
|
| 398 |
//! |
| 399 |
//! \brief VDENC_Down_Scaled_Reference_Picture |
| 400 |
//! \details |
| 401 |
//! |
| 402 |
//! |
| 403 |
struct VDENC_Down_Scaled_Reference_Picture_CMD |
| 404 |
{ |
| 405 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 406 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 407 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 408 |
|
| 409 |
//! \name Local enumerations |
| 410 |
|
| 411 |
//! \name Initializations |
| 412 |
|
| 413 |
//! \brief Explicit member initialization function |
| 414 |
VDENC_Down_Scaled_Reference_Picture_CMD(); |
| 415 |
|
| 416 |
static const size_t dwSize = 3; |
| 417 |
static const size_t byteSize = 12; |
| 418 |
}; |
| 419 |
|
| 420 |
//! |
| 421 |
//! \brief VDENC_FRAME_BASED_STATISTICS_STREAMOUT |
| 422 |
//! \details |
| 423 |
//! |
| 424 |
//! |
| 425 |
struct VDENC_FRAME_BASED_STATISTICS_STREAMOUT_CMD |
| 426 |
{ |
| 427 |
union |
| 428 |
{ |
| 429 |
//!< DWORD 0 |
| 430 |
struct |
| 431 |
{ |
| 432 |
uint32_t SumSadHaarForBestMbChoice ; //!< Sum sad\haar for best MB choice |
| 433 |
}; |
| 434 |
uint32_t Value; |
| 435 |
} DW0; |
| 436 |
union |
| 437 |
{ |
| 438 |
//!< DWORD 1 |
| 439 |
struct |
| 440 |
{ |
| 441 |
uint32_t IntraIso16X16MbCount : __CODEGEN_BITFIELD( 0, 15) ; //!< Intra iso 16x16 MB count |
| 442 |
uint32_t IntraMbCount : __CODEGEN_BITFIELD(16, 31) ; //!< Intra MB count |
| 443 |
}; |
| 444 |
uint32_t Value; |
| 445 |
} DW1; |
| 446 |
union |
| 447 |
{ |
| 448 |
//!< DWORD 2 |
| 449 |
struct |
| 450 |
{ |
| 451 |
uint32_t IntraIso4X4MbCount : __CODEGEN_BITFIELD( 0, 15) ; //!< Intra iso 4x4 MB count |
| 452 |
uint32_t IntraIso8X8MbCount : __CODEGEN_BITFIELD(16, 31) ; //!< Intra iso 8x8 MB count |
| 453 |
}; |
| 454 |
uint32_t Value; |
| 455 |
} DW2; |
| 456 |
union |
| 457 |
{ |
| 458 |
//!< DWORD 3 |
| 459 |
struct |
| 460 |
{ |
| 461 |
uint32_t SegmentMapCount0 : __CODEGEN_BITFIELD( 0, 15) ; //!< segment map count 0 |
| 462 |
uint32_t SegmentMapCount1 : __CODEGEN_BITFIELD(16, 31) ; //!< segment map count 1 |
| 463 |
}; |
| 464 |
uint32_t Value; |
| 465 |
} DW3; |
| 466 |
union |
| 467 |
{ |
| 468 |
//!< DWORD 4 |
| 469 |
struct |
| 470 |
{ |
| 471 |
uint32_t SegmentMapCount2 : __CODEGEN_BITFIELD( 0, 15) ; //!< segment map count 2 |
| 472 |
uint32_t SegmentMapCount3 : __CODEGEN_BITFIELD(16, 31) ; //!< segment map count 3 |
| 473 |
}; |
| 474 |
uint32_t Value; |
| 475 |
} DW4; |
| 476 |
|
| 477 |
uint32_t Reserved160[12]; //!< Reserved |
| 478 |
|
| 479 |
union |
| 480 |
{ |
| 481 |
//!< DWORD 17 |
| 482 |
struct |
| 483 |
{ |
| 484 |
uint32_t SumSadHaarForBestMbChoiceBottomHalfPopulation ; //!< Sum sad\haar for best MB choice bottom half population |
| 485 |
}; |
| 486 |
uint32_t Value; |
| 487 |
} DW17; |
| 488 |
union |
| 489 |
{ |
| 490 |
//!< DWORD 18 |
| 491 |
struct |
| 492 |
{ |
| 493 |
uint32_t SumSadHaarForBestMbChoiceTopHalfPopulation ; //!< Sum sad\haar for best MB choice top half population |
| 494 |
}; |
| 495 |
uint32_t Value; |
| 496 |
} DW18; |
| 497 |
union |
| 498 |
{ |
| 499 |
//!< DWORD 19 |
| 500 |
struct |
| 501 |
{ |
| 502 |
uint32_t SumTopHalfPopulationOccurrences : __CODEGEN_BITFIELD( 0, 15) ; //!< Sum top half population occurrences |
| 503 |
uint32_t SumBottomHalfPopulationOccurrences : __CODEGEN_BITFIELD(16, 31) ; //!< Sum bottom half population occurrences |
| 504 |
}; |
| 505 |
uint32_t Value; |
| 506 |
} DW19; |
| 507 |
|
| 508 |
//! \name Local enumerations |
| 509 |
|
| 510 |
//! \name Initializations |
| 511 |
|
| 512 |
//! \brief Explicit member initialization function |
| 513 |
VDENC_FRAME_BASED_STATISTICS_STREAMOUT_CMD(); |
| 514 |
|
| 515 |
static const size_t dwSize = 20; |
| 516 |
static const size_t byteSize = 80; |
| 517 |
}; |
| 518 |
|
| 519 |
//! |
| 520 |
//! \brief VDENC_Mode_StreamOut_Data |
| 521 |
//! \details |
| 522 |
//! |
| 523 |
//! |
| 524 |
struct VDENC_Mode_StreamOut_Data_CMD |
| 525 |
{ |
| 526 |
union |
| 527 |
{ |
| 528 |
//!< DWORD 0 |
| 529 |
struct |
| 530 |
{ |
| 531 |
uint32_t MbX : __CODEGEN_BITFIELD( 0, 7) ; //!< MB.X |
| 532 |
uint32_t MbY : __CODEGEN_BITFIELD( 8, 15) ; //!< MB.Y |
| 533 |
uint32_t MinimalDistortion : __CODEGEN_BITFIELD(16, 31) ; //!< Minimal Distortion |
| 534 |
}; |
| 535 |
uint32_t Value; |
| 536 |
} DW0; |
| 537 |
union |
| 538 |
{ |
| 539 |
//!< DWORD 1 |
| 540 |
struct |
| 541 |
{ |
| 542 |
uint32_t Skiprawdistortion : __CODEGEN_BITFIELD( 0, 15) ; //!< SkipRawDistortion |
| 543 |
uint32_t Interrawdistortion : __CODEGEN_BITFIELD(16, 31) ; //!< InterRawDistortion |
| 544 |
}; |
| 545 |
uint32_t Value; |
| 546 |
} DW1; |
| 547 |
union |
| 548 |
{ |
| 549 |
//!< DWORD 2 |
| 550 |
struct |
| 551 |
{ |
| 552 |
uint32_t Bestintrarawdistortion : __CODEGEN_BITFIELD( 0, 15) ; //!< BestIntraRawDistortion |
| 553 |
uint32_t IntermbmodeChromaPredictionMode : __CODEGEN_BITFIELD(16, 17) ; //!< INTERMBMODECHROMA_PREDICTION_MODE |
| 554 |
uint32_t Intrambmode : __CODEGEN_BITFIELD(18, 19) ; //!< INTRAMBMODE |
| 555 |
uint32_t Intrambflag : __CODEGEN_BITFIELD(20, 20) ; //!< INTRAMBFLAG |
| 556 |
uint32_t Lastmbflag : __CODEGEN_BITFIELD(21, 21) ; //!< LASTMBFLAG |
| 557 |
uint32_t CoefficientClampOccurred : __CODEGEN_BITFIELD(22, 22) ; //!< Coefficient Clamp Occurred |
| 558 |
uint32_t ConformanceViolation : __CODEGEN_BITFIELD(23, 23) ; //!< Conformance Violation |
| 559 |
uint32_t Submbpredmode : __CODEGEN_BITFIELD(24, 31) ; //!< SubMbPredMode |
| 560 |
}; |
| 561 |
uint32_t Value; |
| 562 |
} DW2; |
| 563 |
union |
| 564 |
{ |
| 565 |
//!< DWORD 3 |
| 566 |
struct |
| 567 |
{ |
| 568 |
uint32_t Lumaintramode0 : __CODEGEN_BITFIELD( 0, 15) ; //!< LumaIntraMode[0] |
| 569 |
uint32_t Lumaintramode1 : __CODEGEN_BITFIELD(16, 31) ; //!< LumaIntraMode[1] |
| 570 |
}; |
| 571 |
uint32_t Value; |
| 572 |
} DW3; |
| 573 |
union |
| 574 |
{ |
| 575 |
//!< DWORD 4 |
| 576 |
struct |
| 577 |
{ |
| 578 |
uint32_t Lumaintramode2 : __CODEGEN_BITFIELD( 0, 15) ; //!< LumaIntraMode[2] |
| 579 |
uint32_t Lumaintramode3 : __CODEGEN_BITFIELD(16, 31) ; //!< LumaIntraMode[3] |
| 580 |
}; |
| 581 |
uint32_t Value; |
| 582 |
} DW4; |
| 583 |
VDENC_Delta_MV_XY_CMD DeltaMv0 ; //!< Delta MV0 |
| 584 |
VDENC_Delta_MV_XY_CMD DeltaMv1 ; //!< Delta MV1 |
| 585 |
union |
| 586 |
{ |
| 587 |
//!< DWORD 13 |
| 588 |
struct |
| 589 |
{ |
| 590 |
uint32_t FwdRefids : __CODEGEN_BITFIELD( 0, 15) ; //!< FWD REFIDs |
| 591 |
uint32_t BwdRefids : __CODEGEN_BITFIELD(16, 31) ; //!< BWD REFIDs |
| 592 |
}; |
| 593 |
uint32_t Value; |
| 594 |
} DW13; |
| 595 |
union |
| 596 |
{ |
| 597 |
//!< DWORD 14 |
| 598 |
struct |
| 599 |
{ |
| 600 |
uint32_t QpY : __CODEGEN_BITFIELD( 0, 5) ; //!< QP_y |
| 601 |
uint32_t MbBitCount : __CODEGEN_BITFIELD( 6, 18) ; //!< MB_Bit_Count |
| 602 |
uint32_t MbHeaderCount : __CODEGEN_BITFIELD(19, 31) ; //!< MB_Header_Count |
| 603 |
}; |
| 604 |
uint32_t Value; |
| 605 |
} DW14; |
| 606 |
union |
| 607 |
{ |
| 608 |
//!< DWORD 15 |
| 609 |
struct |
| 610 |
{ |
| 611 |
uint32_t MbType : __CODEGEN_BITFIELD( 0, 4) ; //!< MB Type |
| 612 |
uint32_t BlockCbp : __CODEGEN_BITFIELD( 5, 30) ; //!< Block CBP |
| 613 |
uint32_t Skipmbflag : __CODEGEN_BITFIELD(31, 31) ; //!< SkipMbFlag |
| 614 |
}; |
| 615 |
uint32_t Value; |
| 616 |
} DW15; |
| 617 |
|
| 618 |
//! \name Local enumerations |
| 619 |
|
| 620 |
//! \brief INTERMBMODECHROMA_PREDICTION_MODE |
| 621 |
//! \details |
| 622 |
//! This field indicates the InterMB Parition type for Inter MB. |
| 623 |
//! <br>OR</br> |
| 624 |
//! This field indicates Chroma Prediction Mode for Intra MB. |
| 625 |
enum INTERMBMODECHROMA_PREDICTION_MODE |
| 626 |
{ |
| 627 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED0 = 0, //!< 16x16 |
| 628 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED1 = 1, //!< 16x8 |
| 629 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED2 = 2, //!< 8x16 |
| 630 |
INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED3 = 3, //!< 8x8 |
| 631 |
}; |
| 632 |
|
| 633 |
//! \brief INTRAMBMODE |
| 634 |
//! \details |
| 635 |
//! This field indicates the Best Intra Partition. |
| 636 |
enum INTRAMBMODE |
| 637 |
{ |
| 638 |
INTRAMBMODE_UNNAMED0 = 0, //!< 16x16 |
| 639 |
INTRAMBMODE_UNNAMED1 = 1, //!< 8x8 |
| 640 |
INTRAMBMODE_UNNAMED2 = 2, //!< 4x4 |
| 641 |
}; |
| 642 |
|
| 643 |
//! \brief INTRAMBFLAG |
| 644 |
//! \details |
| 645 |
//! This field specifies whether the current macroblock is an Intra (I) |
| 646 |
//! macroblock. |
| 647 |
enum INTRAMBFLAG |
| 648 |
{ |
| 649 |
INTRAMBFLAG_INTER = 0, //!< inter macroblock |
| 650 |
INTRAMBFLAG_INTRA = 1, //!< intra macroblock |
| 651 |
}; |
| 652 |
|
| 653 |
enum LASTMBFLAG |
| 654 |
{ |
| 655 |
LASTMBFLAG_NOTLAST = 0, //!< The current MB is not the last MB in the current Slice. |
| 656 |
LASTMBFLAG_LAST = 1, //!< The current MB is the last MB in the current Slice. |
| 657 |
}; |
| 658 |
|
| 659 |
//! \name Initializations |
| 660 |
|
| 661 |
//! \brief Explicit member initialization function |
| 662 |
VDENC_Mode_StreamOut_Data_CMD(); |
| 663 |
|
| 664 |
static const size_t dwSize = 16; |
| 665 |
static const size_t byteSize = 64; |
| 666 |
}; |
| 667 |
|
| 668 |
//! |
| 669 |
//! \brief VDENC_Original_Uncompressed_Picture |
| 670 |
//! \details |
| 671 |
//! |
| 672 |
//! |
| 673 |
struct VDENC_Original_Uncompressed_Picture_CMD |
| 674 |
{ |
| 675 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 676 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 677 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 678 |
|
| 679 |
//! \name Local enumerations |
| 680 |
|
| 681 |
//! \name Initializations |
| 682 |
|
| 683 |
//! \brief Explicit member initialization function |
| 684 |
VDENC_Original_Uncompressed_Picture_CMD(); |
| 685 |
|
| 686 |
static const size_t dwSize = 3; |
| 687 |
static const size_t byteSize = 12; |
| 688 |
}; |
| 689 |
|
| 690 |
//! |
| 691 |
//! \brief VDENC_Reference_Picture |
| 692 |
//! \details |
| 693 |
//! |
| 694 |
//! |
| 695 |
struct VDENC_Reference_Picture_CMD |
| 696 |
{ |
| 697 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 698 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 699 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 700 |
|
| 701 |
//! \name Local enumerations |
| 702 |
|
| 703 |
//! \name Initializations |
| 704 |
|
| 705 |
//! \brief Explicit member initialization function |
| 706 |
VDENC_Reference_Picture_CMD(); |
| 707 |
|
| 708 |
static const size_t dwSize = 3; |
| 709 |
static const size_t byteSize = 12; |
| 710 |
}; |
| 711 |
|
| 712 |
//! |
| 713 |
//! \brief VDENC_Row_Store_Scratch_Buffer_Picture |
| 714 |
//! \details |
| 715 |
//! |
| 716 |
//! |
| 717 |
struct VDENC_Row_Store_Scratch_Buffer_Picture_CMD |
| 718 |
{ |
| 719 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 720 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 721 |
VDENC_Surface_Control_Bits_CMD BufferPictureFields ; //!< Buffer Picture Fields |
| 722 |
|
| 723 |
//! \name Local enumerations |
| 724 |
|
| 725 |
//! \name Initializations |
| 726 |
|
| 727 |
//! \brief Explicit member initialization function |
| 728 |
VDENC_Row_Store_Scratch_Buffer_Picture_CMD(); |
| 729 |
|
| 730 |
static const size_t dwSize = 3; |
| 731 |
static const size_t byteSize = 12; |
| 732 |
}; |
| 733 |
|
| 734 |
//! |
| 735 |
//! \brief VDENC_Statistics_Streamout |
| 736 |
//! \details |
| 737 |
//! |
| 738 |
//! |
| 739 |
struct VDENC_Statistics_Streamout_CMD |
| 740 |
{ |
| 741 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 742 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 743 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 744 |
|
| 745 |
//! \name Local enumerations |
| 746 |
|
| 747 |
//! \name Initializations |
| 748 |
|
| 749 |
//! \brief Explicit member initialization function |
| 750 |
VDENC_Statistics_Streamout_CMD(); |
| 751 |
|
| 752 |
static const size_t dwSize = 3; |
| 753 |
static const size_t byteSize = 12; |
| 754 |
}; |
| 755 |
|
| 756 |
//! |
| 757 |
//! \brief VDENC_Streamin_Data_Picture |
| 758 |
//! \details |
| 759 |
//! |
| 760 |
//! |
| 761 |
struct VDENC_Streamin_Data_Picture_CMD |
| 762 |
{ |
| 763 |
VDENC_64B_Aligned_Lower_Address_CMD LowerAddress ; //!< Lower Address |
| 764 |
VDENC_64B_Aligned_Upper_Address_CMD UpperAddress ; //!< Upper Address |
| 765 |
VDENC_Surface_Control_Bits_CMD PictureFields ; //!< Picture Fields |
| 766 |
|
| 767 |
//! \name Local enumerations |
| 768 |
|
| 769 |
//! \name Initializations |
| 770 |
|
| 771 |
//! \brief Explicit member initialization function |
| 772 |
VDENC_Streamin_Data_Picture_CMD(); |
| 773 |
|
| 774 |
static const size_t dwSize = 3; |
| 775 |
static const size_t byteSize = 12; |
| 776 |
}; |
| 777 |
|
| 778 |
//! |
| 779 |
//! \brief VDENC_STREAMIN_STATE |
| 780 |
//! \details |
| 781 |
//! |
| 782 |
//! |
| 783 |
struct VDENC_STREAMIN_STATE_CMD |
| 784 |
{ |
| 785 |
union |
| 786 |
{ |
| 787 |
//!< DWORD 0 |
| 788 |
struct |
| 789 |
{ |
| 790 |
uint32_t RegionOfInterestRoiSelection : __CODEGEN_BITFIELD( 0, 7) ; //!< Region of Interest (ROI) Selection |
| 791 |
uint32_t Forceintra : __CODEGEN_BITFIELD( 8, 8) ; //!< FORCEINTRA |
| 792 |
uint32_t Forceskip : __CODEGEN_BITFIELD( 9, 9) ; //!< FORCESKIP |
| 793 |
uint32_t Reserved10 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved |
| 794 |
}; |
| 795 |
uint32_t Value; |
| 796 |
} DW0; |
| 797 |
union |
| 798 |
{ |
| 799 |
//!< DWORD 1 |
| 800 |
struct |
| 801 |
{ |
| 802 |
uint32_t Qpprimey : __CODEGEN_BITFIELD( 0, 7) ; //!< QPPRIMEY |
| 803 |
uint32_t Targetsizeinword : __CODEGEN_BITFIELD( 8, 15) ; //!< TargetSizeInWord |
| 804 |
uint32_t Maxsizeinword : __CODEGEN_BITFIELD(16, 23) ; //!< MaxSizeInWord |
| 805 |
uint32_t Reserved56 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved |
| 806 |
}; |
| 807 |
uint32_t Value; |
| 808 |
} DW1; |
| 809 |
union |
| 810 |
{ |
| 811 |
//!< DWORD 2 |
| 812 |
struct |
| 813 |
{ |
| 814 |
uint32_t FwdPredictorX : __CODEGEN_BITFIELD( 0, 15) ; //!< Fwd Predictor.X |
| 815 |
uint32_t FwdPredictorY : __CODEGEN_BITFIELD(16, 31) ; //!< Fwd Predictor.Y |
| 816 |
}; |
| 817 |
uint32_t Value; |
| 818 |
} DW2; |
| 819 |
union |
| 820 |
{ |
| 821 |
//!< DWORD 3 |
| 822 |
struct |
| 823 |
{ |
| 824 |
uint32_t BwdPredictorX : __CODEGEN_BITFIELD( 0, 15) ; //!< Bwd Predictor.X |
| 825 |
uint32_t BwdPredictorY : __CODEGEN_BITFIELD(16, 31) ; //!< Bwd Predictor.Y |
| 826 |
}; |
| 827 |
uint32_t Value; |
| 828 |
} DW3; |
| 829 |
union |
| 830 |
{ |
| 831 |
//!< DWORD 4 |
| 832 |
struct |
| 833 |
{ |
| 834 |
uint32_t FwdRefid0 : __CODEGEN_BITFIELD( 0, 3) ; //!< Fwd RefID0 |
| 835 |
uint32_t BwdRefid0 : __CODEGEN_BITFIELD( 4, 7) ; //!< Bwd RefID0 |
| 836 |
uint32_t Reserved136 : __CODEGEN_BITFIELD( 8, 31) ; //!< Reserved |
| 837 |
}; |
| 838 |
uint32_t Value; |
| 839 |
} DW4; |
| 840 |
|
| 841 |
uint32_t Reserved160[11]; //!< Reserved |
| 842 |
|
| 843 |
|
| 844 |
//! \name Local enumerations |
| 845 |
|
| 846 |
//! \brief FORCEINTRA |
| 847 |
//! \details |
| 848 |
//! This field specifies whether current macroblock should be coded as an |
| 849 |
//! intra macroblock. |
| 850 |
//! It is illegal to enable both ForceSkip and ForceIntra for |
| 851 |
//! the same macroblock. |
| 852 |
//! This should be disabled if Rolling-I is enabled in the |
| 853 |
//! VDEnc Image State. |
| 854 |
enum FORCEINTRA |
| 855 |
{ |
| 856 |
FORCEINTRA_DISABLE = 0, //!< VDEnc determined macroblock type |
| 857 |
FORCEINTRA_ENABLE = 1, //!< Force to be coded as an intra macroblock |
| 858 |
}; |
| 859 |
|
| 860 |
//! \brief FORCESKIP |
| 861 |
//! \details |
| 862 |
//! This field specifies whether current macroblock should be coded as a |
| 863 |
//! skipped macroblock. |
| 864 |
//! It is illegal to enable both ForceSkip and ForceIntra for |
| 865 |
//! the same macroblock. |
| 866 |
//! This should be disabled if Rolling-I is enabled in the |
| 867 |
//! VDEnc Image State. |
| 868 |
//! It is illegal to enable ForceSkip for I-Frames. |
| 869 |
enum FORCESKIP |
| 870 |
{ |
| 871 |
FORCESKIP_DISABLE = 0, //!< VDEnc determined macroblock type |
| 872 |
FORCESKIP_ENABLE = 1, //!< Force to be coded as a skipped macroblock |
| 873 |
}; |
| 874 |
|
| 875 |
//! \brief QPPRIMEY |
| 876 |
//! \details |
| 877 |
//! Quantization parameter for Y. |
| 878 |
enum QPPRIMEY |
| 879 |
{ |
| 880 |
QPPRIMEY_UNNAMED0 = 0, //!< No additional details |
| 881 |
QPPRIMEY_UNNAMED51 = 51, //!< No additional details |
| 882 |
}; |
| 883 |
|
| 884 |
//! \name Initializations |
| 885 |
|
| 886 |
//! \brief Explicit member initialization function |
| 887 |
VDENC_STREAMIN_STATE_CMD(); |
| 888 |
|
| 889 |
static const size_t dwSize = 16; |
| 890 |
static const size_t byteSize = 64; |
| 891 |
}; |
| 892 |
|
| 893 |
//! |
| 894 |
//! \brief VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT |
| 895 |
//! \details |
| 896 |
//! |
| 897 |
//! |
| 898 |
struct VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT_CMD |
| 899 |
{ |
| 900 |
union |
| 901 |
{ |
| 902 |
//!< DWORD 0 |
| 903 |
struct |
| 904 |
{ |
| 905 |
uint32_t SumSadHaarForBestModeDecision ; //!< Sum sad\haar for best mode decision |
| 906 |
}; |
| 907 |
uint32_t Value; |
| 908 |
} DW0; |
| 909 |
union |
| 910 |
{ |
| 911 |
//!< DWORD 1 |
| 912 |
struct |
| 913 |
{ |
| 914 |
uint32_t IntraCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< Intra CU count normalized |
| 915 |
uint32_t Reserved52 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 916 |
}; |
| 917 |
uint32_t Value; |
| 918 |
} DW1; |
| 919 |
union |
| 920 |
{ |
| 921 |
//!< DWORD 2 |
| 922 |
struct |
| 923 |
{ |
| 924 |
uint32_t NonSkipInterCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< Non-skip Inter CU count normalized |
| 925 |
uint32_t Reserved84 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 926 |
}; |
| 927 |
uint32_t Value; |
| 928 |
} DW2; |
| 929 |
union |
| 930 |
{ |
| 931 |
//!< DWORD 3 |
| 932 |
struct |
| 933 |
{ |
| 934 |
uint32_t SegmentMapCount0 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 0 |
| 935 |
uint32_t Reserved116 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 936 |
}; |
| 937 |
uint32_t Value; |
| 938 |
} DW3; |
| 939 |
union |
| 940 |
{ |
| 941 |
//!< DWORD 4 |
| 942 |
struct |
| 943 |
{ |
| 944 |
uint32_t SegmentMapCount1 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 1 |
| 945 |
uint32_t Reserved148 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 946 |
}; |
| 947 |
uint32_t Value; |
| 948 |
} DW4; |
| 949 |
union |
| 950 |
{ |
| 951 |
//!< DWORD 5 |
| 952 |
struct |
| 953 |
{ |
| 954 |
uint32_t SegmentMapCount2 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 2 |
| 955 |
uint32_t Reserved180 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 956 |
}; |
| 957 |
uint32_t Value; |
| 958 |
} DW5; |
| 959 |
union |
| 960 |
{ |
| 961 |
//!< DWORD 6 |
| 962 |
struct |
| 963 |
{ |
| 964 |
uint32_t SegmentMapCount3 : __CODEGEN_BITFIELD( 0, 19) ; //!< segment map count 3 |
| 965 |
uint32_t Reserved212 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 966 |
}; |
| 967 |
uint32_t Value; |
| 968 |
} DW6; |
| 969 |
union |
| 970 |
{ |
| 971 |
//!< DWORD 7 |
| 972 |
struct |
| 973 |
{ |
| 974 |
uint32_t MvXGlobalMeSample025X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 0 (.25x,.25x) |
| 975 |
uint32_t MvYGlobalMeSample025X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 0 (.25x,.25x) |
| 976 |
}; |
| 977 |
uint32_t Value; |
| 978 |
} DW7; |
| 979 |
union |
| 980 |
{ |
| 981 |
//!< DWORD 8 |
| 982 |
struct |
| 983 |
{ |
| 984 |
uint32_t MvXGlobalMeSample125X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 1 (.25x,.25x) |
| 985 |
uint32_t MvYGlobalMeSample125X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 1 (.25x,.25x) |
| 986 |
}; |
| 987 |
uint32_t Value; |
| 988 |
} DW8; |
| 989 |
union |
| 990 |
{ |
| 991 |
//!< DWORD 9 |
| 992 |
struct |
| 993 |
{ |
| 994 |
uint32_t MvXGlobalMeSample225X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 2 (.25x,.25x) |
| 995 |
uint32_t MvYGlobalMeSample225X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 2 (.25x,.25x) |
| 996 |
}; |
| 997 |
uint32_t Value; |
| 998 |
} DW9; |
| 999 |
union |
| 1000 |
{ |
| 1001 |
//!< DWORD 10 |
| 1002 |
struct |
| 1003 |
{ |
| 1004 |
uint32_t MvXGlobalMeSample325X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 3 (.25x,.25x) |
| 1005 |
uint32_t MvYGlobalMeSample325X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 3 (.25x,.25x) |
| 1006 |
}; |
| 1007 |
uint32_t Value; |
| 1008 |
} DW10; |
| 1009 |
union |
| 1010 |
{ |
| 1011 |
//!< DWORD 11 |
| 1012 |
struct |
| 1013 |
{ |
| 1014 |
uint32_t MvXGlobalMeSample425X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 4 (.25x,.25x) |
| 1015 |
uint32_t MvYGlobalMeSample425X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 4 (.25x,.25x) |
| 1016 |
}; |
| 1017 |
uint32_t Value; |
| 1018 |
} DW11; |
| 1019 |
union |
| 1020 |
{ |
| 1021 |
//!< DWORD 12 |
| 1022 |
struct |
| 1023 |
{ |
| 1024 |
uint32_t MvXGlobalMeSample525X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 5 (.25x,.25x) |
| 1025 |
uint32_t MvYGlobalMeSample525X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 5 (.25x,.25x) |
| 1026 |
}; |
| 1027 |
uint32_t Value; |
| 1028 |
} DW12; |
| 1029 |
union |
| 1030 |
{ |
| 1031 |
//!< DWORD 13 |
| 1032 |
struct |
| 1033 |
{ |
| 1034 |
uint32_t MvXGlobalMeSample625X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 6 (.25x,.25x) |
| 1035 |
uint32_t MvYGlobalMeSample625X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 6 (.25x,.25x) |
| 1036 |
}; |
| 1037 |
uint32_t Value; |
| 1038 |
} DW13; |
| 1039 |
union |
| 1040 |
{ |
| 1041 |
//!< DWORD 14 |
| 1042 |
struct |
| 1043 |
{ |
| 1044 |
uint32_t MvXGlobalMeSample725X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 7 (.25x,.25x) |
| 1045 |
uint32_t MvYGlobalMeSample725X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 7 (.25x,.25x) |
| 1046 |
}; |
| 1047 |
uint32_t Value; |
| 1048 |
} DW14; |
| 1049 |
union |
| 1050 |
{ |
| 1051 |
//!< DWORD 15 |
| 1052 |
struct |
| 1053 |
{ |
| 1054 |
uint32_t MvXGlobalMeSample825X25X : __CODEGEN_BITFIELD( 0, 15) ; //!< MV.x Global ME sample 8 (.25x,.25x) |
| 1055 |
uint32_t MvYGlobalMeSample825X25X : __CODEGEN_BITFIELD(16, 31) ; //!< MV.y Global ME sample 8 (.25x,.25x) |
| 1056 |
}; |
| 1057 |
uint32_t Value; |
| 1058 |
} DW15; |
| 1059 |
union |
| 1060 |
{ |
| 1061 |
//!< DWORD 16 |
| 1062 |
struct |
| 1063 |
{ |
| 1064 |
uint32_t RefidForGlobalmeSample0 : __CODEGEN_BITFIELD( 0, 1) ; //!< RefID for GlobalME sample 0 |
| 1065 |
uint32_t RefidForGlobalmeSample18 : __CODEGEN_BITFIELD( 2, 17) ; //!< RefID for GlobalME sample 1-8 |
| 1066 |
uint32_t Reserved530 : __CODEGEN_BITFIELD(18, 31) ; //!< Reserved |
| 1067 |
}; |
| 1068 |
uint32_t Value; |
| 1069 |
} DW16; |
| 1070 |
union |
| 1071 |
{ |
| 1072 |
//!< DWORD 17 |
| 1073 |
struct |
| 1074 |
{ |
| 1075 |
uint32_t PaletteCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< Palette CU Count Normalized |
| 1076 |
uint32_t Reserved564 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 1077 |
}; |
| 1078 |
uint32_t Value; |
| 1079 |
} DW17; |
| 1080 |
union |
| 1081 |
{ |
| 1082 |
//!< DWORD 18 |
| 1083 |
struct |
| 1084 |
{ |
| 1085 |
uint32_t IbcCuCountNormalized : __CODEGEN_BITFIELD( 0, 19) ; //!< IBC CU Count Normalized |
| 1086 |
uint32_t Reserved596 : __CODEGEN_BITFIELD(20, 31) ; //!< Reserved |
| 1087 |
}; |
| 1088 |
uint32_t Value; |
| 1089 |
} DW18; |
| 1090 |
union |
| 1091 |
{ |
| 1092 |
//!< DWORD 19 |
| 1093 |
struct |
| 1094 |
{ |
| 1095 |
uint32_t NumberOfSecondaryColorsChannel1 : __CODEGEN_BITFIELD( 0, 15) ; //!< Number of secondary colors (Channel1) |
| 1096 |
uint32_t NumberOfPrimaryColorsChannel0 : __CODEGEN_BITFIELD(16, 31) ; //!< Number of primary colors (Channel0) |
| 1097 |
}; |
| 1098 |
uint32_t Value; |
| 1099 |
} DW19; |
| 1100 |
union |
| 1101 |
{ |
| 1102 |
//!< DWORD 20 |
| 1103 |
struct |
| 1104 |
{ |
| 1105 |
uint32_t NumberOfSecondaryColorsChannel2 : __CODEGEN_BITFIELD( 0, 15) ; //!< Number of secondary colors (Channel2) |
| 1106 |
uint32_t Reserved656 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 1107 |
}; |
| 1108 |
uint32_t Value; |
| 1109 |
} DW20; |
| 1110 |
union |
| 1111 |
{ |
| 1112 |
//!< DWORD 21 |
| 1113 |
struct |
| 1114 |
{ |
| 1115 |
uint32_t Reserved672 ; //!< Reserved |
| 1116 |
}; |
| 1117 |
uint32_t Value; |
| 1118 |
} DW21; |
| 1119 |
union |
| 1120 |
{ |
| 1121 |
//!< DWORD 22 |
| 1122 |
struct |
| 1123 |
{ |
| 1124 |
uint32_t PositionOfTimerExpiration : __CODEGEN_BITFIELD( 0, 15) ; //!< Position of Timer expiration |
| 1125 |
uint32_t TimerExpireStatus : __CODEGEN_BITFIELD(16, 16) ; //!< Timer Expire status |
| 1126 |
uint32_t Reserved721 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved |
| 1127 |
}; |
| 1128 |
uint32_t Value; |
| 1129 |
} DW22; |
| 1130 |
union |
| 1131 |
{ |
| 1132 |
//!< DWORD 23 |
| 1133 |
struct |
| 1134 |
{ |
| 1135 |
uint32_t LocationOfPanic : __CODEGEN_BITFIELD( 0, 15) ; //!< Location of panic |
| 1136 |
uint32_t PanicDetected : __CODEGEN_BITFIELD(16, 16) ; //!< Panic detected |
| 1137 |
uint32_t Reserved753 : __CODEGEN_BITFIELD(17, 31) ; //!< Reserved |
| 1138 |
}; |
| 1139 |
uint32_t Value; |
| 1140 |
} DW23; |
| 1141 |
|
| 1142 |
uint32_t Reserved768[5]; //!< Reserved |
| 1143 |
|
| 1144 |
union |
| 1145 |
{ |
| 1146 |
//!< DWORD 29 |
| 1147 |
struct |
| 1148 |
{ |
| 1149 |
uint32_t SumSadHaarForBestModeDecisionBottomHalfPopulation ; //!< Sum sad\haar for best mode decision bottom half population |
| 1150 |
}; |
| 1151 |
uint32_t Value; |
| 1152 |
} DW29; |
| 1153 |
union |
| 1154 |
{ |
| 1155 |
//!< DWORD 30 |
| 1156 |
struct |
| 1157 |
{ |
| 1158 |
uint32_t SumSadHaarForBestModeDecisionTopHalfPopulation ; //!< Sum sad\haar for best mode decision top half population |
| 1159 |
}; |
| 1160 |
uint32_t Value; |
| 1161 |
} DW30; |
| 1162 |
union |
| 1163 |
{ |
| 1164 |
//!< DWORD 31 |
| 1165 |
struct |
| 1166 |
{ |
| 1167 |
uint32_t SumTopHalfPopulationOccurrences : __CODEGEN_BITFIELD( 0, 15) ; //!< Sum top half population occurrences |
| 1168 |
uint32_t SumBottomHalfPopulationOccurrences : __CODEGEN_BITFIELD(16, 31) ; //!< Sum bottom half population occurrences |
| 1169 |
}; |
| 1170 |
uint32_t Value; |
| 1171 |
} DW31; |
| 1172 |
|
| 1173 |
//! \name Local enumerations |
| 1174 |
|
| 1175 |
//! \name Initializations |
| 1176 |
|
| 1177 |
//! \brief Explicit member initialization function |
| 1178 |
VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT_CMD(); |
| 1179 |
|
| 1180 |
static const size_t dwSize = 32; |
| 1181 |
static const size_t byteSize = 128; |
| 1182 |
}; |
| 1183 |
|
| 1184 |
//! |
| 1185 |
//! \brief VDENC_HEVC_VP9_STREAMIN_STATE |
| 1186 |
//! \details |
| 1187 |
//! For the NumMergeCandidate paramaters [64x64/32x32/16x16/8x8], only the |
| 1188 |
//! following configurations are valid. |
| 1189 |
//! Normal Mode without force mv or force intra: 4321 [64x64 --> 16x16]. |
| 1190 |
//! Speed Mode without force mv or force intra: 2220, 2110, 1210, 2200, 1110 |
| 1191 |
//! [64x64 --> 16x16]. |
| 1192 |
//! |
| 1193 |
struct VDENC_HEVC_VP9_STREAMIN_STATE_CMD |
| 1194 |
{ |
| 1195 |
union |
| 1196 |
{ |
| 1197 |
//!< DWORD 0 |
| 1198 |
struct |
| 1199 |
{ |
| 1200 |
uint32_t Roi32X32016X1603 : __CODEGEN_BITFIELD( 0, 7) ; //!< ROI 32x32_0 16x16_03 |
| 1201 |
uint32_t Maxtusize : __CODEGEN_BITFIELD( 8, 9) ; //!< MaxTUSize |
| 1202 |
uint32_t Maxcusize : __CODEGEN_BITFIELD(10, 11) ; //!< MaxCUSize |
| 1203 |
uint32_t Numimepredictors : __CODEGEN_BITFIELD(12, 15) ; //!< NUMIMEPREDICTORS |
| 1204 |
uint32_t PuType32X32016X1603 : __CODEGEN_BITFIELD(24, 31) ; //!< PU Type 32x32_0 16x16_03 |
| 1205 |
}; |
| 1206 |
uint32_t Value; |
| 1207 |
} DW0; |
| 1208 |
union |
| 1209 |
{ |
| 1210 |
//!< DWORD 1 |
| 1211 |
struct |
| 1212 |
{ |
| 1213 |
uint32_t ForceMvX32X32016X160 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_0 |
| 1214 |
uint32_t ForceMvY32X32016X160 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_0 |
| 1215 |
}; |
| 1216 |
uint32_t Value; |
| 1217 |
} DW1; |
| 1218 |
union |
| 1219 |
{ |
| 1220 |
//!< DWORD 2 |
| 1221 |
struct |
| 1222 |
{ |
| 1223 |
uint32_t ForceMvX32X32016X161 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_1 |
| 1224 |
uint32_t ForceMvY32X32016X161 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_1 |
| 1225 |
}; |
| 1226 |
uint32_t Value; |
| 1227 |
} DW2; |
| 1228 |
union |
| 1229 |
{ |
| 1230 |
//!< DWORD 3 |
| 1231 |
struct |
| 1232 |
{ |
| 1233 |
uint32_t ForceMvX32X32016X162 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_2 |
| 1234 |
uint32_t ForceMvY32X32016X162 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_2 |
| 1235 |
}; |
| 1236 |
uint32_t Value; |
| 1237 |
} DW3; |
| 1238 |
union |
| 1239 |
{ |
| 1240 |
//!< DWORD 4 |
| 1241 |
struct |
| 1242 |
{ |
| 1243 |
uint32_t ForceMvX32X32016X163 : __CODEGEN_BITFIELD( 0, 15) ; //!< force_mv.x 32x32_0 16x16_3 |
| 1244 |
uint32_t ForceMvY32X32016X163 : __CODEGEN_BITFIELD(16, 31) ; //!< force_mv.y 32x32_0 16x16_3 |
| 1245 |
}; |
| 1246 |
uint32_t Value; |
| 1247 |
} DW4; |
| 1248 |
union |
| 1249 |
{ |
| 1250 |
//!< DWORD 5 |
| 1251 |
struct |
| 1252 |
{ |
| 1253 |
uint32_t Reserved160 ; //!< Reserved |
| 1254 |
}; |
| 1255 |
uint32_t Value; |
| 1256 |
} DW5; |
| 1257 |
union |
| 1258 |
{ |
| 1259 |
//!< DWORD 6 |
| 1260 |
struct |
| 1261 |
{ |
| 1262 |
uint32_t ForceMvRefidx32X32016X160 : __CODEGEN_BITFIELD( 0, 3) ; //!< force_mv refidx 32x32_0 16x16_0 |
| 1263 |
uint32_t ForceMvRefidx32X32016X1613 : __CODEGEN_BITFIELD( 4, 15) ; //!< force_mv refidx 32x32_0 16x16_1-3 |
| 1264 |
uint32_t Nummergecandidatecu8X8 : __CODEGEN_BITFIELD(16, 19) ; //!< NumMergeCandidateCU8x8 |
| 1265 |
uint32_t Nummergecandidatecu16X16 : __CODEGEN_BITFIELD(20, 23) ; //!< NumMergeCandidateCU16x16 |
| 1266 |
uint32_t Nummergecandidatecu32X32 : __CODEGEN_BITFIELD(24, 27) ; //!< NumMergeCandidateCU32x32 |
| 1267 |
uint32_t Nummergecandidatecu64X64 : __CODEGEN_BITFIELD(28, 31) ; //!< NumMergeCandidateCU64x64 |
| 1268 |
}; |
| 1269 |
uint32_t Value; |
| 1270 |
} DW6; |
| 1271 |
union |
| 1272 |
{ |
| 1273 |
//!< DWORD 7 |
| 1274 |
struct |
| 1275 |
{ |
| 1276 |
uint32_t Segid32X32016X1603Vp9Only : __CODEGEN_BITFIELD( 0, 15) ; //!< SegID 32x32_0 16x16_03 (VP9 only) |
| 1277 |
uint32_t QpEn32X32016X1603 : __CODEGEN_BITFIELD(16, 19) ; //!< QP_En 32x32_0 16x16_03 |
| 1278 |
uint32_t SegidEnable : __CODEGEN_BITFIELD(20, 20) ; //!< SegID Enable |
| 1279 |
uint32_t Reserved245 : __CODEGEN_BITFIELD(21, 22) ; //!< Reserved |
| 1280 |
uint32_t ForceRefidEnable32X320 : __CODEGEN_BITFIELD(23, 23) ; //!< Force Refid Enable (32x32_0) |
| 1281 |
uint32_t ImePredictorRefidSelect0332X320 : __CODEGEN_BITFIELD(24, 31) ; //!< IME predictor/refid Select0-3 32x32_0 |
| 1282 |
}; |
| 1283 |
uint32_t Value; |
| 1284 |
} DW7; |
| 1285 |
union |
| 1286 |
{ |
| 1287 |
//!< DWORD 8 |
| 1288 |
struct |
| 1289 |
{ |
| 1290 |
uint32_t ImePredictor0X32X320 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_0 |
| 1291 |
uint32_t ImePredictor0Y32X320 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_0 |
| 1292 |
}; |
| 1293 |
uint32_t Value; |
| 1294 |
} DW8; |
| 1295 |
union |
| 1296 |
{ |
| 1297 |
//!< DWORD 9 |
| 1298 |
struct |
| 1299 |
{ |
| 1300 |
uint32_t ImePredictor0X32X321 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_1 |
| 1301 |
uint32_t ImePredictor0Y32X321 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_1 |
| 1302 |
}; |
| 1303 |
uint32_t Value; |
| 1304 |
} DW9; |
| 1305 |
union |
| 1306 |
{ |
| 1307 |
//!< DWORD 10 |
| 1308 |
struct |
| 1309 |
{ |
| 1310 |
uint32_t ImePredictor0X32X322 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_2 |
| 1311 |
uint32_t ImePredictor0Y32X322 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_2 |
| 1312 |
}; |
| 1313 |
uint32_t Value; |
| 1314 |
} DW10; |
| 1315 |
union |
| 1316 |
{ |
| 1317 |
//!< DWORD 11 |
| 1318 |
struct |
| 1319 |
{ |
| 1320 |
uint32_t ImePredictor0X32X323 : __CODEGEN_BITFIELD( 0, 15) ; //!< ime_predictor0.x 32x32_3 |
| 1321 |
uint32_t ImePredictor0Y32X323 : __CODEGEN_BITFIELD(16, 31) ; //!< ime_predictor0.y 32x32_3 |
| 1322 |
}; |
| 1323 |
uint32_t Value; |
| 1324 |
} DW11; |
| 1325 |
union |
| 1326 |
{ |
| 1327 |
//!< DWORD 12 |
| 1328 |
struct |
| 1329 |
{ |
| 1330 |
uint32_t ImePredictor0Refidx32X320 : __CODEGEN_BITFIELD( 0, 3) ; //!< ime_predictor0 refidx 32x32_0 |
| 1331 |
uint32_t ImePredictor13Refidx32X3213 : __CODEGEN_BITFIELD( 4, 15) ; //!< ime_predictor1-3 refidx 32x32_1-3 |
| 1332 |
uint32_t Reserved400 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 1333 |
}; |
| 1334 |
uint32_t Value; |
| 1335 |
} DW12; |
| 1336 |
union |
| 1337 |
{ |
| 1338 |
//!< DWORD 13 |
| 1339 |
struct |
| 1340 |
{ |
| 1341 |
uint32_t Panicmodelcuthreshold : __CODEGEN_BITFIELD( 0, 15) ; //!< PanicModeLCUThreshold |
| 1342 |
uint32_t Reserved432 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 1343 |
}; |
| 1344 |
uint32_t Value; |
| 1345 |
} DW13; |
| 1346 |
union |
| 1347 |
{ |
| 1348 |
//!< DWORD 14 |
| 1349 |
struct |
| 1350 |
{ |
| 1351 |
uint32_t ForceQpValue16X160 : __CODEGEN_BITFIELD( 0, 7) ; //!< Force QP Value 16x16_0 |
| 1352 |
uint32_t ForceQpValue16X161 : __CODEGEN_BITFIELD( 8, 15) ; //!< Force QP Value 16x16_1 |
| 1353 |
uint32_t ForceQpValue16X162 : __CODEGEN_BITFIELD(16, 23) ; //!< Force QP Value 16x16_2 |
| 1354 |
uint32_t ForceQpValue16X163 : __CODEGEN_BITFIELD(24, 31) ; //!< Force QP Value 16x16_3 |
| 1355 |
}; |
| 1356 |
uint32_t Value; |
| 1357 |
} DW14; |
| 1358 |
union |
| 1359 |
{ |
| 1360 |
//!< DWORD 15 |
| 1361 |
struct |
| 1362 |
{ |
| 1363 |
uint32_t Reserved480 ; //!< Reserved |
| 1364 |
}; |
| 1365 |
uint32_t Value; |
| 1366 |
} DW15; |
| 1367 |
|
| 1368 |
//! \name Local enumerations |
| 1369 |
|
| 1370 |
//! \brief NUMIMEPREDICTORS |
| 1371 |
//! \details |
| 1372 |
//! <p>This parameter specifes the number of IME predictors to be processed |
| 1373 |
//! in stage3 IME.</p> |
| 1374 |
//! <p></p> |
| 1375 |
enum NUMIMEPREDICTORS |
| 1376 |
{ |
| 1377 |
NUMIMEPREDICTORS_UNNAMED0 = 0, //!< No additional details |
| 1378 |
NUMIMEPREDICTORS_UNNAMED4 = 4, //!< No additional details |
| 1379 |
NUMIMEPREDICTORS_UNNAMED8 = 8, //!< No additional details |
| 1380 |
NUMIMEPREDICTORS_UNNAMED12 = 12, //!< No additional details |
| 1381 |
}; |
| 1382 |
|
| 1383 |
//! \name Initializations |
| 1384 |
|
| 1385 |
//! \brief Explicit member initialization function |
| 1386 |
VDENC_HEVC_VP9_STREAMIN_STATE_CMD(); |
| 1387 |
|
| 1388 |
static const size_t dwSize = 16; |
| 1389 |
static const size_t byteSize = 64; |
| 1390 |
}; |
| 1391 |
|
| 1392 |
//! |
| 1393 |
//! \brief VDENC_Surface_State_Fields |
| 1394 |
//! \details |
| 1395 |
//! |
| 1396 |
//! |
| 1397 |
struct VDENC_Surface_State_Fields_CMD |
| 1398 |
{ |
| 1399 |
union |
| 1400 |
{ |
| 1401 |
//!< DWORD 0 |
| 1402 |
struct |
| 1403 |
{ |
| 1404 |
uint32_t CrVCbUPixelOffsetVDirection : __CODEGEN_BITFIELD( 0, 1) ; //!< Cr(V)/Cb(U) Pixel Offset V Direction |
| 1405 |
uint32_t SurfaceFormatByteSwizzle : __CODEGEN_BITFIELD( 2, 2) ; //!< Surface Format Byte Swizzle |
| 1406 |
uint32_t ColorSpaceSelection : __CODEGEN_BITFIELD( 3, 3) ; //!< Color space selection |
| 1407 |
uint32_t Width : __CODEGEN_BITFIELD( 4, 17) ; //!< Width |
| 1408 |
uint32_t Height : __CODEGEN_BITFIELD(18, 31) ; //!< Height |
| 1409 |
}; |
| 1410 |
uint32_t Value; |
| 1411 |
} DW0; |
| 1412 |
union |
| 1413 |
{ |
| 1414 |
//!< DWORD 1 |
| 1415 |
struct |
| 1416 |
{ |
| 1417 |
uint32_t TileWalk : __CODEGEN_BITFIELD( 0, 0) ; //!< TILE_WALK |
| 1418 |
uint32_t TiledSurface : __CODEGEN_BITFIELD( 1, 1) ; //!< TILED_SURFACE |
| 1419 |
uint32_t HalfPitchForChroma : __CODEGEN_BITFIELD( 2, 2) ; //!< HALF_PITCH_FOR_CHROMA |
| 1420 |
uint32_t SurfacePitch : __CODEGEN_BITFIELD( 3, 19) ; //!< Surface Pitch |
| 1421 |
uint32_t ChromaDownsampleFilterControl : __CODEGEN_BITFIELD(20, 22) ; //!< Chroma Downsample Filter Control |
| 1422 |
uint32_t Reserved55 : __CODEGEN_BITFIELD(23, 26) ; //!< Reserved |
| 1423 |
uint32_t SurfaceFormat : __CODEGEN_BITFIELD(27, 31) ; //!< SURFACE_FORMAT |
| 1424 |
}; |
| 1425 |
uint32_t Value; |
| 1426 |
} DW1; |
| 1427 |
union |
| 1428 |
{ |
| 1429 |
//!< DWORD 2 |
| 1430 |
struct |
| 1431 |
{ |
| 1432 |
uint32_t YOffsetForUCb : __CODEGEN_BITFIELD( 0, 14) ; //!< Y Offset for U(Cb) |
| 1433 |
uint32_t Reserved79 : __CODEGEN_BITFIELD(15, 15) ; //!< Reserved |
| 1434 |
uint32_t XOffsetForUCb : __CODEGEN_BITFIELD(16, 30) ; //!< X Offset for U(Cb) |
| 1435 |
uint32_t Reserved95 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved |
| 1436 |
}; |
| 1437 |
uint32_t Value; |
| 1438 |
} DW2; |
| 1439 |
union |
| 1440 |
{ |
| 1441 |
//!< DWORD 3 |
| 1442 |
struct |
| 1443 |
{ |
| 1444 |
uint32_t YOffsetForVCr : __CODEGEN_BITFIELD( 0, 15) ; //!< Y Offset for V(Cr) |
| 1445 |
uint32_t XOffsetForVCr : __CODEGEN_BITFIELD(16, 28) ; //!< X Offset for V(Cr) |
| 1446 |
uint32_t Reserved125 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 1447 |
}; |
| 1448 |
uint32_t Value; |
| 1449 |
} DW3; |
| 1450 |
|
| 1451 |
//! \name Local enumerations |
| 1452 |
|
| 1453 |
//! \brief TILE_WALK |
| 1454 |
//! \details |
| 1455 |
//! (This field must be set to 1: TILEWALK_YMAJOR.) This field specifies the |
| 1456 |
//! type of memory tiling |
| 1457 |
//! (XMajor or YMajor) employed to tile this surface. See Memory |
| 1458 |
//! Interface Functions for details |
| 1459 |
//! on memory tiling and restrictions.This field is ignored when the |
| 1460 |
//! surface is linear. Internally |
| 1461 |
//! H/W always 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. |
| 1472 |
//! This field is ignored by VDEnc usage. |
| 1473 |
enum TILED_SURFACE |
| 1474 |
{ |
| 1475 |
TILED_SURFACE_FALSE = 0, //!< Linear |
| 1476 |
TILED_SURFACE_TRUE = 1, //!< Tiled |
| 1477 |
}; |
| 1478 |
|
| 1479 |
//! \brief HALF_PITCH_FOR_CHROMA |
| 1480 |
//! \details |
| 1481 |
//! (This field must be set to Disable.) This field indicates that the |
| 1482 |
//! chroma plane(s) will use a pitch equal |
| 1483 |
//! to half the value specified in the Surface Pitch field. This field |
| 1484 |
//! is only used for PLANAR surface formats. |
| 1485 |
//! This field is igored by VDEnc (unless we support YV12). |
| 1486 |
enum HALF_PITCH_FOR_CHROMA |
| 1487 |
{ |
| 1488 |
HALF_PITCH_FOR_CHROMA_DISABLE = 0, //!< No additional details |
| 1489 |
HALF_PITCH_FOR_CHROMA_ENABLE = 1, //!< No additional details |
| 1490 |
}; |
| 1491 |
|
| 1492 |
//! \brief SURFACE_FORMAT |
| 1493 |
//! \details |
| 1494 |
//! Specifies the format of the surface. |
| 1495 |
enum SURFACE_FORMAT |
| 1496 |
{ |
| 1497 |
SURFACE_FORMAT_YUV422 = 0, //!< YUYV/YUY2 (8:8:8:8 MSB V0 Y1 U0 Y0) |
| 1498 |
SURFACE_FORMAT_RGBA4444 = 1, //!< RGBA 32-bit 4:4:4:4 packed (8:8:8:8 MSB-X:B:G:R) |
| 1499 |
SURFACE_FORMAT_YUV444 = 2, //!< YUV 32-bit 4:4:4 packed (8:8:8:8 MSB-A:Y:U:V) |
| 1500 |
SURFACE_FORMAT_Y8UNORM = 3, //!< No additional details |
| 1501 |
SURFACE_FORMAT_PLANAR_420_8 = 4, //!< (NV12, IMC1,2,3,4, YV12) |
| 1502 |
SURFACE_FORMAT_YCRCB_SWAPY_422 = 5, //!< UYVY (8:8:8:8 MSB Y1 V0 Y0 U0) |
| 1503 |
SURFACE_FORMAT_YCRCB_SWAPUV_422 = 6, //!< YVYU (8:8:8:8 MSB U0 Y1 V0 Y0) |
| 1504 |
SURFACE_FORMAT_YCRCB_SWAPUVY_422 = 7, //!< VYUY (8:8:8:8 MSB Y1 U0 Y0 V0) |
| 1505 |
SURFACE_FORMAT_P010 = 8, //!< 10 - bit planar 420 (Tile - Y / Linear / Tile - X) |
| 1506 |
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 |
| 1507 |
SURFACE_FORMAT_Y410 = 10, //!< 10 bit 4:4:4 packed |
| 1508 |
SURFACE_FORMAT_NV21 = 11, //!< 8-bit, same as NV12 but UV interleave is reversed |
| 1509 |
SURFACE_FORMAT_P010_VARIANT = 12, //!< >8 bit planar 420 with MSB together and LSB at an offset in x direction |
| 1510 |
}; |
| 1511 |
|
| 1512 |
//! \name Initializations |
| 1513 |
|
| 1514 |
//! \brief Explicit member initialization function |
| 1515 |
VDENC_Surface_State_Fields_CMD(); |
| 1516 |
|
| 1517 |
static const size_t dwSize = 4; |
| 1518 |
static const size_t byteSize = 16; |
| 1519 |
}; |
| 1520 |
|
| 1521 |
//! |
| 1522 |
//! \brief VD_PIPELINE_FLUSH |
| 1523 |
//! \details |
| 1524 |
//! |
| 1525 |
//! |
| 1526 |
struct VD_PIPELINE_FLUSH_CMD |
| 1527 |
{ |
| 1528 |
union |
| 1529 |
{ |
| 1530 |
//!< DWORD 0 |
| 1531 |
struct |
| 1532 |
{ |
| 1533 |
uint32_t DwordCountN : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_COUNT_N |
| 1534 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1535 |
uint32_t Subopcodeb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPCODEB |
| 1536 |
uint32_t Subopcodea : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPCODEA |
| 1537 |
uint32_t MediaCommandOpcode : __CODEGEN_BITFIELD(23, 26) ; //!< MEDIA_COMMAND_OPCODE |
| 1538 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1539 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1540 |
}; |
| 1541 |
uint32_t Value; |
| 1542 |
} DW0; |
| 1543 |
union |
| 1544 |
{ |
| 1545 |
//!< DWORD 1 |
| 1546 |
struct |
| 1547 |
{ |
| 1548 |
uint32_t HevcPipelineDone : __CODEGEN_BITFIELD( 0, 0) ; //!< HEVC pipeline Done |
| 1549 |
uint32_t VdencPipelineDone : __CODEGEN_BITFIELD( 1, 1) ; //!< VD-ENC pipeline Done |
| 1550 |
uint32_t MflPipelineDone : __CODEGEN_BITFIELD( 2, 2) ; //!< MFL pipeline Done |
| 1551 |
uint32_t MfxPipelineDone : __CODEGEN_BITFIELD( 3, 3) ; //!< MFX pipeline Done |
| 1552 |
uint32_t VdCommandMessageParserDone : __CODEGEN_BITFIELD( 4, 4) ; //!< VD command/message parser Done |
| 1553 |
uint32_t Reserved37 : __CODEGEN_BITFIELD( 5, 15) ; //!< Reserved |
| 1554 |
uint32_t HevcPipelineCommandFlush : __CODEGEN_BITFIELD(16, 16) ; //!< HEVC pipeline command flush |
| 1555 |
uint32_t VdencPipelineCommandFlush : __CODEGEN_BITFIELD(17, 17) ; //!< VD-ENC pipeline command flush |
| 1556 |
uint32_t MflPipelineCommandFlush : __CODEGEN_BITFIELD(18, 18) ; //!< MFL pipeline command flush |
| 1557 |
uint32_t MfxPipelineCommandFlush : __CODEGEN_BITFIELD(19, 19) ; //!< MFX pipeline command flush |
| 1558 |
uint32_t Reserved52 : __CODEGEN_BITFIELD(20, 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 |
union |
| 1654 |
{ |
| 1655 |
//!< DWORD 3 |
| 1656 |
struct |
| 1657 |
{ |
| 1658 |
uint32_t HevcVp9WeightsForwardReference0 : __CODEGEN_BITFIELD( 0, 7) ; //!< HEVC/VP9 Weights Forward Reference0 |
| 1659 |
uint32_t HevcVp9OffsetForwardReference0 : __CODEGEN_BITFIELD( 8, 15) ; //!< HEVC/VP9 Offset Forward Reference0 |
| 1660 |
uint32_t HevcVp9WeightsForwardReference1 : __CODEGEN_BITFIELD(16, 23) ; //!< HEVC/VP9 Weights Forward Reference1 |
| 1661 |
uint32_t HevcVp9OffsetForwardReference1 : __CODEGEN_BITFIELD(24, 31) ; //!< HEVC/VP9 Offset Forward Reference1 |
| 1662 |
}; |
| 1663 |
uint32_t Value; |
| 1664 |
} DW3; |
| 1665 |
union |
| 1666 |
{ |
| 1667 |
//!< DWORD 4 |
| 1668 |
struct |
| 1669 |
{ |
| 1670 |
uint32_t HevcVp9WeightsForwardReference2 : __CODEGEN_BITFIELD( 0, 7) ; //!< HEVC/VP9 Weights Forward Reference2 |
| 1671 |
uint32_t HevcVp9OffsetForwardReference2 : __CODEGEN_BITFIELD( 8, 15) ; //!< HEVC/VP9 Offset Forward Reference2 |
| 1672 |
uint32_t HevcVp9WeightsBackwardReference0 : __CODEGEN_BITFIELD(16, 23) ; //!< HEVC/VP9 Weights Backward Reference0 |
| 1673 |
uint32_t HevcVp9OffsetBackwardReference0 : __CODEGEN_BITFIELD(24, 31) ; //!< HEVC/VP9 Offset Backward Reference0 |
| 1674 |
}; |
| 1675 |
uint32_t Value; |
| 1676 |
} DW4; |
| 1677 |
|
| 1678 |
//! \name Local enumerations |
| 1679 |
|
| 1680 |
//! \brief DW_LENGTH |
| 1681 |
//! \details |
| 1682 |
//! Total Length - 2 |
| 1683 |
enum DW_LENGTH |
| 1684 |
{ |
| 1685 |
DW_LENGTH_DWORDCOUNTN = 1, //!< Excludes DWord (0,1) |
| 1686 |
}; |
| 1687 |
|
| 1688 |
enum SUBOPB |
| 1689 |
{ |
| 1690 |
SUBOPB_VDENCAVCWEIGHTSOFFSETSTATE = 8, //!< No additional details |
| 1691 |
}; |
| 1692 |
|
| 1693 |
enum SUBOPA |
| 1694 |
{ |
| 1695 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 1696 |
}; |
| 1697 |
|
| 1698 |
enum OPCODE |
| 1699 |
{ |
| 1700 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 1701 |
}; |
| 1702 |
|
| 1703 |
enum PIPELINE |
| 1704 |
{ |
| 1705 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 1706 |
}; |
| 1707 |
|
| 1708 |
enum COMMAND_TYPE |
| 1709 |
{ |
| 1710 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1711 |
}; |
| 1712 |
|
| 1713 |
//! \name Initializations |
| 1714 |
|
| 1715 |
//! \brief Explicit member initialization function |
| 1716 |
VDENC_WEIGHTSOFFSETS_STATE_CMD(); |
| 1717 |
|
| 1718 |
static const size_t dwSize = 5; |
| 1719 |
static const size_t byteSize = 20; |
| 1720 |
}; |
| 1721 |
|
| 1722 |
//! |
| 1723 |
//! \brief VDENC_CONST_QPT_STATE |
| 1724 |
//! \details |
| 1725 |
//! This commands provides the tables for frame constants to the VDEnc HW. |
| 1726 |
//! The specific parameter value is picked by the VDEnc HW based on the |
| 1727 |
//! frame level QP. The QP Lambda array for costing (motion-vectors and mode |
| 1728 |
//! costs) has 42 entires. Skip Threshold tables has 27 entries. 7 FTQ |
| 1729 |
//! thresholds [0-6] are programmed using 4 sets of tables with 27 entires |
| 1730 |
//! each. |
| 1731 |
//! |
| 1732 |
struct VDENC_CONST_QPT_STATE_CMD |
| 1733 |
{ |
| 1734 |
union |
| 1735 |
{ |
| 1736 |
//!< DWORD 0 |
| 1737 |
struct |
| 1738 |
{ |
| 1739 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 1740 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1741 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1742 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1743 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1744 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1745 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1746 |
}; |
| 1747 |
uint32_t Value; |
| 1748 |
} DW0; |
| 1749 |
union { |
| 1750 |
//!< DWORD 1..10 |
| 1751 |
struct { |
| 1752 |
uint8_t QpLambdaArrayIndex[40]; //!< QP Lambda Array Index[n] |
| 1753 |
}; |
| 1754 |
uint32_t Value[10]; |
| 1755 |
} DW1_10; |
| 1756 |
union { |
| 1757 |
//!< DWORD 11 |
| 1758 |
struct { |
| 1759 |
uint32_t QpLambdaArrayIndex40 : __CODEGEN_BITFIELD(0, 7); |
| 1760 |
uint32_t QpLambdaArrayIndex41 : __CODEGEN_BITFIELD(8, 15); |
| 1761 |
uint32_t Reserved : __CODEGEN_BITFIELD(16, 31); |
| 1762 |
}; |
| 1763 |
uint32_t Value; |
| 1764 |
} DW11; |
| 1765 |
union { |
| 1766 |
//!< DWORD 12..24 |
| 1767 |
struct { |
| 1768 |
uint16_t SkipThresholdArrayIndex[26]; //!< Skip Threshold Array Index[n] |
| 1769 |
}; |
| 1770 |
uint32_t Value[13]; |
| 1771 |
} DW12_24; |
| 1772 |
union { |
| 1773 |
//!< DWORD 25 |
| 1774 |
struct { |
| 1775 |
uint32_t SkipThresholdArrayIndex26 : __CODEGEN_BITFIELD(0, 15); |
| 1776 |
uint32_t Reserved : __CODEGEN_BITFIELD(16, 31); |
| 1777 |
}; |
| 1778 |
uint32_t Value; |
| 1779 |
} DW25; |
| 1780 |
union { |
| 1781 |
//!< DWORD 26..38 |
| 1782 |
struct { |
| 1783 |
uint16_t SicForwardTransformCoeffThresholdMatrix0ArrayIndex[26]; //!< SIC Forward Transform Coeff Threshold Matrix0 Array Index[n] |
| 1784 |
}; |
| 1785 |
uint32_t Value[13]; |
| 1786 |
} DW26_38; |
| 1787 |
union { |
| 1788 |
//!< DWORD 39 |
| 1789 |
struct { |
| 1790 |
uint32_t SicForwardTransformCoeffThresholdMatrix0ArrayIndex26 : __CODEGEN_BITFIELD(0, 15); |
| 1791 |
uint32_t Reserved : __CODEGEN_BITFIELD(16, 31); |
| 1792 |
}; |
| 1793 |
uint32_t Value; |
| 1794 |
} DW39; |
| 1795 |
union { |
| 1796 |
//!< DWORD 40..45 |
| 1797 |
struct { |
| 1798 |
uint8_t SicForwardTransformCoeffThresholdMatrix135ArrayIndexN[24]; //!< SIC Forward Transform Coeff Threshold Matrix1/3/5 Array Index[n] |
| 1799 |
}; |
| 1800 |
uint32_t Value[6]; |
| 1801 |
} DW40_45; |
| 1802 |
union { |
| 1803 |
//!< DWORD 46 |
| 1804 |
struct { |
| 1805 |
uint32_t SicForwardTransformCoeffThresholdMatrix135ArrayIndex24 : __CODEGEN_BITFIELD(0, 7); |
| 1806 |
uint32_t SicForwardTransformCoeffThresholdMatrix135ArrayIndex25 : __CODEGEN_BITFIELD(8, 15); |
| 1807 |
uint32_t SicForwardTransformCoeffThresholdMatrix135ArrayIndex26 : __CODEGEN_BITFIELD(16, 23); |
| 1808 |
uint32_t Reserved : __CODEGEN_BITFIELD(24, 31); |
| 1809 |
}; |
| 1810 |
uint32_t Value; |
| 1811 |
} DW46; |
| 1812 |
union { |
| 1813 |
//!< DWORD 47..52 |
| 1814 |
struct { |
| 1815 |
uint8_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex[24]; //!< SIC Forward Transform Coeff Threshold Matrix2 Array Index[n] |
| 1816 |
}; |
| 1817 |
uint32_t Value[6]; |
| 1818 |
} DW47_52; |
| 1819 |
union { |
| 1820 |
//!< DWORD 53 |
| 1821 |
struct { |
| 1822 |
uint32_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex24 : __CODEGEN_BITFIELD(0, 7); |
| 1823 |
uint32_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex25 : __CODEGEN_BITFIELD(8, 15); |
| 1824 |
uint32_t SicForwardTransformCoeffThresholdMatrix2ArrayIndex26 : __CODEGEN_BITFIELD(16, 23); |
| 1825 |
uint32_t Reserved : __CODEGEN_BITFIELD(24, 31); |
| 1826 |
}; |
| 1827 |
uint32_t Value; |
| 1828 |
} DW53; |
| 1829 |
union { |
| 1830 |
//!< DWORD 54..59 |
| 1831 |
struct { |
| 1832 |
uint8_t SicForwardTransformCoeffThresholdMatrix46ArrayIndexN[24]; //!< SIC Forward Transform Coeff Threshold Matrix4/6 Array Index[n] |
| 1833 |
}; |
| 1834 |
uint32_t Value[6]; |
| 1835 |
} DW54_59; |
| 1836 |
union { |
| 1837 |
//!< DWORD 60 |
| 1838 |
struct { |
| 1839 |
uint32_t SicForwardTransformCoeffThresholdMatrix46ArrayIndex24 : __CODEGEN_BITFIELD(0, 7); |
| 1840 |
uint32_t SicForwardTransformCoeffThresholdMatrix46ArrayIndex25 : __CODEGEN_BITFIELD(8, 15); |
| 1841 |
uint32_t SicForwardTransformCoeffThresholdMatrix46ArrayIndex26 : __CODEGEN_BITFIELD(16, 23); |
| 1842 |
uint32_t Reserved : __CODEGEN_BITFIELD(24, 31); |
| 1843 |
}; |
| 1844 |
uint32_t Value; |
| 1845 |
} DW60; |
| 1846 |
|
| 1847 |
//! \name Local enumerations |
| 1848 |
|
| 1849 |
enum SUBOPB |
| 1850 |
{ |
| 1851 |
SUBOPB_VDENCCONSTQPTSTATE = 6, //!< No additional details |
| 1852 |
}; |
| 1853 |
|
| 1854 |
enum SUBOPA |
| 1855 |
{ |
| 1856 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 1857 |
}; |
| 1858 |
|
| 1859 |
enum OPCODE |
| 1860 |
{ |
| 1861 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 1862 |
}; |
| 1863 |
|
| 1864 |
enum PIPELINE |
| 1865 |
{ |
| 1866 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 1867 |
}; |
| 1868 |
|
| 1869 |
enum COMMAND_TYPE |
| 1870 |
{ |
| 1871 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1872 |
}; |
| 1873 |
|
| 1874 |
//! \name Initializations |
| 1875 |
|
| 1876 |
//! \brief Explicit member initialization function |
| 1877 |
VDENC_CONST_QPT_STATE_CMD(); |
| 1878 |
|
| 1879 |
static const size_t dwSize = 61; |
| 1880 |
static const size_t byteSize = 244; |
| 1881 |
}; |
| 1882 |
|
| 1883 |
//! |
| 1884 |
//! \brief VDENC_DS_REF_SURFACE_STATE |
| 1885 |
//! \details |
| 1886 |
//! This command specifies the surface state parameters for the downscaled |
| 1887 |
//! reference surfaces. |
| 1888 |
//! |
| 1889 |
struct VDENC_DS_REF_SURFACE_STATE_CMD |
| 1890 |
{ |
| 1891 |
union |
| 1892 |
{ |
| 1893 |
//!< DWORD 0 |
| 1894 |
struct |
| 1895 |
{ |
| 1896 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 1897 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1898 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1899 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1900 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1901 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1902 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1903 |
}; |
| 1904 |
uint32_t Value; |
| 1905 |
} DW0; |
| 1906 |
union |
| 1907 |
{ |
| 1908 |
//!< DWORD 1 |
| 1909 |
struct |
| 1910 |
{ |
| 1911 |
uint32_t Reserved32 ; //!< Reserved |
| 1912 |
}; |
| 1913 |
uint32_t Value; |
| 1914 |
} DW1; |
| 1915 |
VDENC_Surface_State_Fields_CMD Dwords25 ; //!< Dwords 2..5 |
| 1916 |
VDENC_Surface_State_Fields_CMD Dwords69 ; //!< Dwords 6..9 |
| 1917 |
|
| 1918 |
//! \name Local enumerations |
| 1919 |
|
| 1920 |
enum SUBOPB |
| 1921 |
{ |
| 1922 |
SUBOPB_VDENCDSREFSURFACESTATE = 3, //!< No additional details |
| 1923 |
}; |
| 1924 |
|
| 1925 |
enum SUBOPA |
| 1926 |
{ |
| 1927 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 1928 |
}; |
| 1929 |
|
| 1930 |
enum OPCODE |
| 1931 |
{ |
| 1932 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 1933 |
}; |
| 1934 |
|
| 1935 |
enum PIPELINE |
| 1936 |
{ |
| 1937 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 1938 |
}; |
| 1939 |
|
| 1940 |
enum COMMAND_TYPE |
| 1941 |
{ |
| 1942 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 1943 |
}; |
| 1944 |
|
| 1945 |
//! \name Initializations |
| 1946 |
|
| 1947 |
//! \brief Explicit member initialization function |
| 1948 |
VDENC_DS_REF_SURFACE_STATE_CMD(); |
| 1949 |
|
| 1950 |
static const size_t dwSize = 10; |
| 1951 |
static const size_t byteSize = 40; |
| 1952 |
}; |
| 1953 |
|
| 1954 |
//! |
| 1955 |
//! \brief VDENC_IMG_STATE |
| 1956 |
//! \details |
| 1957 |
//! This command programs the frame level parameters required by the VDEnc |
| 1958 |
//! pipeline. |
| 1959 |
//! |
| 1960 |
struct VDENC_IMG_STATE_CMD |
| 1961 |
{ |
| 1962 |
union |
| 1963 |
{ |
| 1964 |
//!< DWORD 0 |
| 1965 |
struct |
| 1966 |
{ |
| 1967 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 1968 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 1969 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 1970 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 1971 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 1972 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 1973 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 1974 |
}; |
| 1975 |
uint32_t Value; |
| 1976 |
} DW0; |
| 1977 |
union |
| 1978 |
{ |
| 1979 |
//!< DWORD 1 |
| 1980 |
struct |
| 1981 |
{ |
| 1982 |
uint32_t Reserved32 : __CODEGEN_BITFIELD( 0, 1) ; //!< Reserved |
| 1983 |
uint32_t BidirectionalMixDisable : __CODEGEN_BITFIELD( 2, 2) ; //!< BIDIRECTIONAL_MIX_DISABLE |
| 1984 |
uint32_t VdencPerfmode : __CODEGEN_BITFIELD( 3, 3) ; //!< VDENC_PERFMODE |
| 1985 |
uint32_t TimeBudgetOverflowCheck : __CODEGEN_BITFIELD( 4, 4) ; //!< TIME_BUDGET_OVERFLOW_CHECK |
| 1986 |
uint32_t Reserved37 : __CODEGEN_BITFIELD( 5, 5) ; //!< Reserved |
| 1987 |
uint32_t VdencExtendedPakObjCmdEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE |
| 1988 |
uint32_t Transform8X8Flag : __CODEGEN_BITFIELD( 7, 7) ; //!< TRANSFORM_8X8_FLAG |
| 1989 |
uint32_t VdencL1CachePriority : __CODEGEN_BITFIELD( 8, 9) ; //!< VDENC_L1_CACHE_PRIORITY |
| 1990 |
uint32_t Reserved42 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved |
| 1991 |
uint32_t LambdaValueForTrellis : __CODEGEN_BITFIELD(16, 31) ; //!< Lambda value for Trellis |
| 1992 |
}; |
| 1993 |
uint32_t Value; |
| 1994 |
} DW1; |
| 1995 |
union |
| 1996 |
{ |
| 1997 |
//!< DWORD 2 |
| 1998 |
struct |
| 1999 |
{ |
| 2000 |
uint32_t Reserved64 : __CODEGEN_BITFIELD( 0, 15) ; //!< Reserved |
| 2001 |
uint32_t BidirectionalWeight : __CODEGEN_BITFIELD(16, 21) ; //!< BIDIRECTIONAL_WEIGHT |
| 2002 |
uint32_t Reserved86 : __CODEGEN_BITFIELD(22, 27) ; //!< Reserved |
| 2003 |
uint32_t UnidirectionalMixDisable : __CODEGEN_BITFIELD(28, 28) ; //!< Unidirectional Mix Disable |
| 2004 |
uint32_t Reserved93 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 2005 |
}; |
| 2006 |
uint32_t Value; |
| 2007 |
} DW2; |
| 2008 |
union |
| 2009 |
{ |
| 2010 |
//!< DWORD 3 |
| 2011 |
struct |
| 2012 |
{ |
| 2013 |
uint32_t Reserved96 : __CODEGEN_BITFIELD( 0, 15) ; //!< Reserved |
| 2014 |
uint32_t PictureWidth : __CODEGEN_BITFIELD(16, 31) ; //!< Picture Width |
| 2015 |
}; |
| 2016 |
uint32_t Value; |
| 2017 |
} DW3; |
| 2018 |
union |
| 2019 |
{ |
| 2020 |
//!< DWORD 4 |
| 2021 |
struct |
| 2022 |
{ |
| 2023 |
uint32_t Reserved128 : __CODEGEN_BITFIELD( 0, 11) ; //!< Reserved |
| 2024 |
uint32_t SubPelMode : __CODEGEN_BITFIELD(12, 13) ; //!< SUB_PEL_MODE |
| 2025 |
uint32_t Reserved142 : __CODEGEN_BITFIELD(14, 16) ; //!< Reserved |
| 2026 |
uint32_t ForwardTransformSkipCheckEnable : __CODEGEN_BITFIELD(17, 17) ; //!< FORWARD_TRANSFORM_SKIP_CHECK_ENABLE |
| 2027 |
uint32_t BmeDisableForFbrMessage : __CODEGEN_BITFIELD(18, 18) ; //!< BME_DISABLE_FOR_FBR_MESSAGE |
| 2028 |
uint32_t BlockBasedSkipEnabled : __CODEGEN_BITFIELD(19, 19) ; //!< BLOCK_BASED_SKIP_ENABLED |
| 2029 |
uint32_t InterSadMeasureAdjustment : __CODEGEN_BITFIELD(20, 21) ; //!< INTER_SAD_MEASURE_ADJUSTMENT |
| 2030 |
uint32_t IntraSadMeasureAdjustment : __CODEGEN_BITFIELD(22, 23) ; //!< INTRA_SAD_MEASURE_ADJUSTMENT |
| 2031 |
uint32_t SubMacroblockSubPartitionMask : __CODEGEN_BITFIELD(24, 30) ; //!< SUB_MACROBLOCK_SUB_PARTITION_MASK |
| 2032 |
uint32_t BlockBasedSkipType : __CODEGEN_BITFIELD(31, 31) ; //!< BLOCK_BASED_SKIP_TYPE |
| 2033 |
}; |
| 2034 |
uint32_t Value; |
| 2035 |
} DW4; |
| 2036 |
union |
| 2037 |
{ |
| 2038 |
//!< DWORD 5 |
| 2039 |
struct |
| 2040 |
{ |
| 2041 |
uint32_t PictureHeightMinusOne : __CODEGEN_BITFIELD( 0, 15) ; //!< Picture Height Minus One |
| 2042 |
uint32_t CrePrefetchEnable : __CODEGEN_BITFIELD(16, 16) ; //!< CRE_PREFETCH_ENABLE |
| 2043 |
uint32_t HmeRef1Disable : __CODEGEN_BITFIELD(17, 17) ; //!< HME_REF1_DISABLE |
| 2044 |
uint32_t MbSliceThresholdValue : __CODEGEN_BITFIELD(18, 21) ; //!< MB Slice Threshold Value |
| 2045 |
uint32_t Reserved182 : __CODEGEN_BITFIELD(22, 25) ; //!< Reserved |
| 2046 |
uint32_t ConstrainedIntraPredictionFlag : __CODEGEN_BITFIELD(26, 26) ; //!< CONSTRAINED_INTRA_PREDICTION_FLAG |
| 2047 |
uint32_t Reserved187 : __CODEGEN_BITFIELD(27, 28) ; //!< Reserved |
| 2048 |
uint32_t PictureType : __CODEGEN_BITFIELD(29, 30) ; //!< PICTURE_TYPE |
| 2049 |
uint32_t Reserved191 : __CODEGEN_BITFIELD(31, 31) ; //!< Reserved |
| 2050 |
}; |
| 2051 |
uint32_t Value; |
| 2052 |
} DW5; |
| 2053 |
union |
| 2054 |
{ |
| 2055 |
//!< DWORD 6 |
| 2056 |
struct |
| 2057 |
{ |
| 2058 |
uint32_t SliceMacroblockHeightMinusOne : __CODEGEN_BITFIELD( 0, 15) ; //!< Slice Macroblock Height Minus One |
| 2059 |
uint32_t Reserved208 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 2060 |
}; |
| 2061 |
uint32_t Value; |
| 2062 |
} DW6; |
| 2063 |
union |
| 2064 |
{ |
| 2065 |
//!< DWORD 7 |
| 2066 |
struct |
| 2067 |
{ |
| 2068 |
uint32_t Hme0XOffset : __CODEGEN_BITFIELD( 0, 7) ; //!< HME0 X Offset |
| 2069 |
uint32_t Hme0YOffset : __CODEGEN_BITFIELD( 8, 15) ; //!< HME0 Y Offset |
| 2070 |
uint32_t Hme1XOffset : __CODEGEN_BITFIELD(16, 23) ; //!< HME1 X Offset |
| 2071 |
uint32_t Hme1YOffset : __CODEGEN_BITFIELD(24, 31) ; //!< HME1 Y Offset |
| 2072 |
}; |
| 2073 |
uint32_t Value; |
| 2074 |
} DW7; |
| 2075 |
union |
| 2076 |
{ |
| 2077 |
//!< DWORD 8 |
| 2078 |
struct |
| 2079 |
{ |
| 2080 |
uint32_t LumaIntraPartitionMask : __CODEGEN_BITFIELD( 0, 4) ; //!< LUMA_INTRA_PARTITION_MASK |
| 2081 |
uint32_t NonSkipZeroMvCostAdded : __CODEGEN_BITFIELD( 5, 5) ; //!< Non Skip Zero MV Cost Added |
| 2082 |
uint32_t NonSkipMbModeCostAdded : __CODEGEN_BITFIELD( 6, 6) ; //!< Non Skip MB Mode Cost Added |
| 2083 |
uint32_t Reserved263 : __CODEGEN_BITFIELD( 7, 15) ; //!< Reserved |
| 2084 |
uint32_t MvCostScalingFactor : __CODEGEN_BITFIELD(16, 17) ; //!< MV_COST_SCALING_FACTOR |
| 2085 |
uint32_t BilinearFilterEnable : __CODEGEN_BITFIELD(18, 18) ; //!< BiLinear Filter Enable |
| 2086 |
uint32_t Reserved275 : __CODEGEN_BITFIELD(19, 21) ; //!< Reserved |
| 2087 |
uint32_t RefidCostModeSelect : __CODEGEN_BITFIELD(22, 22) ; //!< REFID_COST_MODE_SELECT |
| 2088 |
uint32_t Reserved279 : __CODEGEN_BITFIELD(23, 31) ; //!< Reserved |
| 2089 |
}; |
| 2090 |
uint32_t Value; |
| 2091 |
} DW8; |
| 2092 |
union |
| 2093 |
{ |
| 2094 |
//!< DWORD 9 |
| 2095 |
struct |
| 2096 |
{ |
| 2097 |
uint32_t Mode0Cost : __CODEGEN_BITFIELD( 0, 7) ; //!< Mode 0 Cost |
| 2098 |
uint32_t Mode1Cost : __CODEGEN_BITFIELD( 8, 15) ; //!< Mode 1 Cost |
| 2099 |
uint32_t Mode2Cost : __CODEGEN_BITFIELD(16, 23) ; //!< Mode 2 Cost |
| 2100 |
uint32_t Mode3Cost : __CODEGEN_BITFIELD(24, 31) ; //!< Mode 3 Cost |
| 2101 |
}; |
| 2102 |
uint32_t Value; |
| 2103 |
} DW9; |
| 2104 |
union |
| 2105 |
{ |
| 2106 |
//!< DWORD 10 |
| 2107 |
struct |
| 2108 |
{ |
| 2109 |
uint32_t Mode4Cost : __CODEGEN_BITFIELD( 0, 7) ; //!< Mode 4 Cost |
| 2110 |
uint32_t Mode5Cost : __CODEGEN_BITFIELD( 8, 15) ; //!< Mode 5 Cost |
| 2111 |
uint32_t Mode6Cost : __CODEGEN_BITFIELD(16, 23) ; //!< Mode 6 Cost |
| 2112 |
uint32_t Mode7Cost : __CODEGEN_BITFIELD(24, 31) ; //!< Mode 7 Cost |
| 2113 |
}; |
| 2114 |
uint32_t Value; |
| 2115 |
} DW10; |
| 2116 |
union |
| 2117 |
{ |
| 2118 |
//!< DWORD 11 |
| 2119 |
struct |
| 2120 |
{ |
| 2121 |
uint32_t Mode8Cost : __CODEGEN_BITFIELD( 0, 7) ; //!< Mode 8 Cost |
| 2122 |
uint32_t Mode9Cost : __CODEGEN_BITFIELD( 8, 15) ; //!< Mode 9 Cost |
| 2123 |
uint32_t RefIdCost : __CODEGEN_BITFIELD(16, 23) ; //!< RefID Cost |
| 2124 |
uint32_t ChromaIntraModeCost : __CODEGEN_BITFIELD(24, 31) ; //!< Chroma Intra Mode Cost |
| 2125 |
}; |
| 2126 |
uint32_t Value; |
| 2127 |
} DW11; |
| 2128 |
union |
| 2129 |
{ |
| 2130 |
//!< DWORD 12 |
| 2131 |
struct |
| 2132 |
{ |
| 2133 |
uint32_t MvCost0 : __CODEGEN_BITFIELD( 0, 7) ; //!< MvCost 0 |
| 2134 |
uint32_t MvCost1 : __CODEGEN_BITFIELD( 8, 15) ; //!< MvCost 1 |
| 2135 |
uint32_t MvCost2 : __CODEGEN_BITFIELD(16, 23) ; //!< MvCost 2 |
| 2136 |
uint32_t MvCost3 : __CODEGEN_BITFIELD(24, 31) ; //!< MvCost 3 |
| 2137 |
}; |
| 2138 |
uint32_t Value; |
| 2139 |
} DW12; |
| 2140 |
union |
| 2141 |
{ |
| 2142 |
//!< DWORD 13 |
| 2143 |
struct |
| 2144 |
{ |
| 2145 |
uint32_t MvCost4 : __CODEGEN_BITFIELD( 0, 7) ; //!< MvCost 4 |
| 2146 |
uint32_t MvCost5 : __CODEGEN_BITFIELD( 8, 15) ; //!< MvCost 5 |
| 2147 |
uint32_t MvCost6 : __CODEGEN_BITFIELD(16, 23) ; //!< MvCost 6 |
| 2148 |
uint32_t MvCost7 : __CODEGEN_BITFIELD(24, 31) ; //!< MvCost 7 |
| 2149 |
}; |
| 2150 |
uint32_t Value; |
| 2151 |
} DW13; |
| 2152 |
union |
| 2153 |
{ |
| 2154 |
//!< DWORD 14 |
| 2155 |
struct |
| 2156 |
{ |
| 2157 |
uint32_t QpPrimeY : __CODEGEN_BITFIELD( 0, 7) ; //!< QpPrimeY |
| 2158 |
uint32_t Reserved456 : __CODEGEN_BITFIELD( 8, 23) ; //!< Reserved |
| 2159 |
uint32_t TargetSizeInWord : __CODEGEN_BITFIELD(24, 31) ; //!< TargetSizeInWord |
| 2160 |
}; |
| 2161 |
uint32_t Value; |
| 2162 |
} DW14; |
| 2163 |
union |
| 2164 |
{ |
| 2165 |
//!< DWORD 15 |
| 2166 |
struct |
| 2167 |
{ |
| 2168 |
uint32_t Reserved480 ; //!< Reserved |
| 2169 |
}; |
| 2170 |
uint32_t Value; |
| 2171 |
} DW15; |
| 2172 |
union |
| 2173 |
{ |
| 2174 |
//!< DWORD 16 |
| 2175 |
struct |
| 2176 |
{ |
| 2177 |
uint32_t Reserved512 ; //!< Reserved |
| 2178 |
}; |
| 2179 |
uint32_t Value; |
| 2180 |
} DW16; |
| 2181 |
union |
| 2182 |
{ |
| 2183 |
//!< DWORD 17 |
| 2184 |
struct |
| 2185 |
{ |
| 2186 |
uint32_t AvcIntra4X4ModeMask : __CODEGEN_BITFIELD( 0, 8) ; //!< AVC Intra 4x4 Mode Mask |
| 2187 |
uint32_t Reserved553 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved |
| 2188 |
uint32_t AvcIntra8X8ModeMask : __CODEGEN_BITFIELD(16, 24) ; //!< AVC Intra 8x8 Mode Mask |
| 2189 |
uint32_t Reserved569 : __CODEGEN_BITFIELD(25, 31) ; //!< Reserved |
| 2190 |
}; |
| 2191 |
uint32_t Value; |
| 2192 |
} DW17; |
| 2193 |
union |
| 2194 |
{ |
| 2195 |
//!< DWORD 18 |
| 2196 |
struct |
| 2197 |
{ |
| 2198 |
uint32_t AvcIntra16X16ModeMask : __CODEGEN_BITFIELD( 0, 3) ; //!< AVC_INTRA_16X16_MODE_MASK |
| 2199 |
uint32_t AvcIntraChromaModeMask : __CODEGEN_BITFIELD( 4, 7) ; //!< AVC_INTRA_CHROMA_MODE_MASK |
| 2200 |
uint32_t IntraComputeTypeIntracomputetype : __CODEGEN_BITFIELD( 8, 9) ; //!< INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE |
| 2201 |
uint32_t Reserved586 : __CODEGEN_BITFIELD(10, 31) ; //!< Reserved |
| 2202 |
}; |
| 2203 |
uint32_t Value; |
| 2204 |
} DW18; |
| 2205 |
union |
| 2206 |
{ |
| 2207 |
//!< DWORD 19 |
| 2208 |
struct |
| 2209 |
{ |
| 2210 |
uint32_t Reserved608 ; //!< Reserved |
| 2211 |
}; |
| 2212 |
uint32_t Value; |
| 2213 |
} DW19; |
| 2214 |
union |
| 2215 |
{ |
| 2216 |
//!< DWORD 20 |
| 2217 |
struct |
| 2218 |
{ |
| 2219 |
uint32_t PenaltyForIntra16X16NondcPrediction : __CODEGEN_BITFIELD( 0, 7) ; //!< Penalty for Intra16x16 NonDC Prediction. |
| 2220 |
uint32_t PenaltyForIntra8X8NondcPrediction : __CODEGEN_BITFIELD( 8, 15) ; //!< Penalty for Intra8x8 NonDC Prediction. |
| 2221 |
uint32_t PenaltyForIntra4X4NondcPrediction : __CODEGEN_BITFIELD(16, 23) ; //!< Penalty for Intra4x4 NonDC Prediction. |
| 2222 |
uint32_t Reserved664 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved |
| 2223 |
}; |
| 2224 |
uint32_t Value; |
| 2225 |
} DW20; |
| 2226 |
union |
| 2227 |
{ |
| 2228 |
//!< DWORD 21 |
| 2229 |
struct |
| 2230 |
{ |
| 2231 |
uint32_t IntraRefreshMBPos : __CODEGEN_BITFIELD( 0, 7) ; //!< IntraRefreshMBPos |
| 2232 |
uint32_t IntraRefreshMBSizeMinusOne : __CODEGEN_BITFIELD( 8, 15) ; //!< IntraRefreshMBSizeMinusOne |
| 2233 |
uint32_t IntraRefreshEnableRollingIEnable : __CODEGEN_BITFIELD(16, 16) ; //!< INTRAREFRESHENABLE_ROLLING_I_ENABLE |
| 2234 |
uint32_t IntraRefreshMode : __CODEGEN_BITFIELD(17, 17) ; //!< INTRAREFRESHMODE |
| 2235 |
uint32_t Reserved690 : __CODEGEN_BITFIELD(18, 23) ; //!< Reserved |
| 2236 |
uint32_t QpAdjustmentForRollingI : __CODEGEN_BITFIELD(24, 31) ; //!< QP adjustment for Rolling-I |
| 2237 |
}; |
| 2238 |
uint32_t Value; |
| 2239 |
} DW21; |
| 2240 |
union |
| 2241 |
{ |
| 2242 |
//!< DWORD 22 |
| 2243 |
struct |
| 2244 |
{ |
| 2245 |
uint32_t Panicmodembthreshold : __CODEGEN_BITFIELD( 0, 15) ; //!< PanicModeMBThreshold |
| 2246 |
uint32_t Smallmbsizeinword : __CODEGEN_BITFIELD(16, 23) ; //!< SmallMbSizeInWord |
| 2247 |
uint32_t Largembsizeinword : __CODEGEN_BITFIELD(24, 31) ; //!< LargeMbSizeInWord |
| 2248 |
}; |
| 2249 |
uint32_t Value; |
| 2250 |
} DW22; |
| 2251 |
union |
| 2252 |
{ |
| 2253 |
//!< DWORD 23 |
| 2254 |
struct |
| 2255 |
{ |
| 2256 |
uint32_t L0NumberOfReferencesMinusOne : __CODEGEN_BITFIELD( 0, 7) ; //!< L0 number of references Minus one |
| 2257 |
uint32_t Reserved744 : __CODEGEN_BITFIELD( 8, 15) ; //!< Reserved |
| 2258 |
uint32_t L1NumberOfReferencesMinusOne : __CODEGEN_BITFIELD(16, 23) ; //!< L1 number of references Minus One |
| 2259 |
uint32_t Reserved760 : __CODEGEN_BITFIELD(24, 31) ; //!< Reserved |
| 2260 |
}; |
| 2261 |
uint32_t Value; |
| 2262 |
} DW23; |
| 2263 |
union |
| 2264 |
{ |
| 2265 |
//!< DWORD 24 |
| 2266 |
struct |
| 2267 |
{ |
| 2268 |
uint32_t MacroblockBudget : __CODEGEN_BITFIELD( 0, 15) ; //!< Macroblock Budget |
| 2269 |
uint32_t InitialTime : __CODEGEN_BITFIELD(16, 31) ; //!< Initial Time |
| 2270 |
}; |
| 2271 |
uint32_t Value; |
| 2272 |
} DW24; |
| 2273 |
union |
| 2274 |
{ |
| 2275 |
//!< DWORD 25 |
| 2276 |
struct |
| 2277 |
{ |
| 2278 |
uint32_t Reserved800 ; //!< Reserved |
| 2279 |
}; |
| 2280 |
uint32_t Value; |
| 2281 |
} DW25; |
| 2282 |
union |
| 2283 |
{ |
| 2284 |
//!< DWORD 26 |
| 2285 |
struct |
| 2286 |
{ |
| 2287 |
uint32_t Reserved832 : __CODEGEN_BITFIELD( 0, 7) ; //!< Reserved |
| 2288 |
uint32_t HmeRefWindowsCombiningThreshold : __CODEGEN_BITFIELD( 8, 15) ; //!< HME_REF_WINDOWS_COMBINING_THRESHOLD |
| 2289 |
uint32_t Reserved848 : __CODEGEN_BITFIELD(16, 31) ; //!< Reserved |
| 2290 |
}; |
| 2291 |
uint32_t Value; |
| 2292 |
} DW26; |
| 2293 |
union |
| 2294 |
{ |
| 2295 |
//!< DWORD 27 |
| 2296 |
struct |
| 2297 |
{ |
| 2298 |
uint32_t MaxHmvR : __CODEGEN_BITFIELD( 0, 15) ; //!< MAXHMVR |
| 2299 |
uint32_t MaxVmvR : __CODEGEN_BITFIELD(16, 31) ; //!< MAXVMVR |
| 2300 |
}; |
| 2301 |
uint32_t Value; |
| 2302 |
} DW27; |
| 2303 |
union |
| 2304 |
{ |
| 2305 |
//!< DWORD 28 |
| 2306 |
struct |
| 2307 |
{ |
| 2308 |
uint32_t HmeMvCost0 : __CODEGEN_BITFIELD( 0, 7) ; //!< HmeMvCost 0 |
| 2309 |
uint32_t HmeMvCost1 : __CODEGEN_BITFIELD( 8, 15) ; //!< HmeMvCost 1 |
| 2310 |
uint32_t HmeMvCost2 : __CODEGEN_BITFIELD(16, 23) ; //!< HmeMvCost 2 |
| 2311 |
uint32_t HmeMvCost3 : __CODEGEN_BITFIELD(24, 31) ; //!< HmeMvCost 3 |
| 2312 |
}; |
| 2313 |
uint32_t Value; |
| 2314 |
} DW28; |
| 2315 |
union |
| 2316 |
{ |
| 2317 |
//!< DWORD 29 |
| 2318 |
struct |
| 2319 |
{ |
| 2320 |
uint32_t HmeMvCost4 : __CODEGEN_BITFIELD( 0, 7) ; //!< HmeMvCost 4 |
| 2321 |
uint32_t HmeMvCost5 : __CODEGEN_BITFIELD( 8, 15) ; //!< HmeMvCost 5 |
| 2322 |
uint32_t HmeMvCost6 : __CODEGEN_BITFIELD(16, 23) ; //!< HmeMvCost 6 |
| 2323 |
uint32_t HmeMvCost7 : __CODEGEN_BITFIELD(24, 31) ; //!< HmeMvCost 7 |
| 2324 |
}; |
| 2325 |
uint32_t Value; |
| 2326 |
} DW29; |
| 2327 |
union |
| 2328 |
{ |
| 2329 |
//!< DWORD 30 |
| 2330 |
struct |
| 2331 |
{ |
| 2332 |
uint32_t RoiQpAdjustmentForZone0 : __CODEGEN_BITFIELD( 0, 3) ; //!< ROI QP adjustment for Zone0 |
| 2333 |
uint32_t RoiQpAdjustmentForZone1 : __CODEGEN_BITFIELD( 4, 7) ; //!< ROI QP adjustment for Zone1 |
| 2334 |
uint32_t RoiQpAdjustmentForZone2 : __CODEGEN_BITFIELD( 8, 11) ; //!< ROI QP adjustment for Zone2 |
| 2335 |
uint32_t RoiQpAdjustmentForZone3 : __CODEGEN_BITFIELD(12, 15) ; //!< ROI QP adjustment for Zone3 |
| 2336 |
uint32_t QpAdjustmentForShapeBestIntra4X4Winner : __CODEGEN_BITFIELD(16, 19) ; //!< QP adjustment for shape best intra 4x4 winner |
| 2337 |
uint32_t QpAdjustmentForShapeBestIntra8X8Winner : __CODEGEN_BITFIELD(20, 23) ; //!< QP adjustment for shape best intra 8x8 winner |
| 2338 |
uint32_t QpAdjustmentForShapeBestIntra16X16Winner : __CODEGEN_BITFIELD(24, 27) ; //!< QP adjustment for shape best intra 16x16 winner |
| 2339 |
uint32_t Reserved988 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 2340 |
}; |
| 2341 |
uint32_t Value; |
| 2342 |
} DW30; |
| 2343 |
union |
| 2344 |
{ |
| 2345 |
//!< DWORD 31 |
| 2346 |
struct |
| 2347 |
{ |
| 2348 |
uint32_t BestdistortionQpAdjustmentForZone0 : __CODEGEN_BITFIELD( 0, 3) ; //!< BestDistortion QP adjustment for Zone0 |
| 2349 |
uint32_t BestdistortionQpAdjustmentForZone1 : __CODEGEN_BITFIELD( 4, 7) ; //!< BestDistortion QP adjustment for Zone1 |
| 2350 |
uint32_t BestdistortionQpAdjustmentForZone2 : __CODEGEN_BITFIELD( 8, 11) ; //!< BestDistortion QP adjustment for Zone2 |
| 2351 |
uint32_t BestdistortionQpAdjustmentForZone3 : __CODEGEN_BITFIELD(12, 15) ; //!< BestDistortion QP adjustment for Zone3 |
| 2352 |
uint32_t SadHaarThreshold0 : __CODEGEN_BITFIELD(16, 31) ; //!< Sad/Haar_Threshold_0 |
| 2353 |
}; |
| 2354 |
uint32_t Value; |
| 2355 |
} DW31; |
| 2356 |
union |
| 2357 |
{ |
| 2358 |
//!< DWORD 32 |
| 2359 |
struct |
| 2360 |
{ |
| 2361 |
uint32_t SadHaarThreshold1 : __CODEGEN_BITFIELD( 0, 15) ; //!< Sad/Haar_Threshold_1 |
| 2362 |
uint32_t SadHaarThreshold2 : __CODEGEN_BITFIELD(16, 31) ; //!< Sad/Haar_Threshold_2 |
| 2363 |
}; |
| 2364 |
uint32_t Value; |
| 2365 |
} DW32; |
| 2366 |
union |
| 2367 |
{ |
| 2368 |
//!< DWORD 33 |
| 2369 |
struct |
| 2370 |
{ |
| 2371 |
uint32_t MaxQp : __CODEGEN_BITFIELD( 0, 7) ; //!< MaxQP |
| 2372 |
uint32_t MinQp : __CODEGEN_BITFIELD( 8, 15) ; //!< MinQP |
| 2373 |
uint32_t Reserved1072 : __CODEGEN_BITFIELD(16, 23) ; //!< Reserved |
| 2374 |
uint32_t Maxdeltaqp : __CODEGEN_BITFIELD(24, 27) ; //!< MaxDeltaQP |
| 2375 |
uint32_t Reserved1084 : __CODEGEN_BITFIELD(28, 31) ; //!< Reserved |
| 2376 |
}; |
| 2377 |
uint32_t Value; |
| 2378 |
} DW33; |
| 2379 |
union |
| 2380 |
{ |
| 2381 |
//!< DWORD 34 |
| 2382 |
struct |
| 2383 |
{ |
| 2384 |
uint32_t RoiEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< ROI_Enable |
| 2385 |
uint32_t FwdPredictor0MvEnable : __CODEGEN_BITFIELD( 1, 1) ; //!< Fwd/Predictor0 MV Enable |
| 2386 |
uint32_t BwdPredictor1MvEnable : __CODEGEN_BITFIELD( 2, 2) ; //!< Bwd/Predictor1 MV Enable |
| 2387 |
uint32_t MbLevelQpEnable : __CODEGEN_BITFIELD( 3, 3) ; //!< MB Level QP Enable |
| 2388 |
uint32_t TargetsizeinwordsmbMaxsizeinwordsmbEnable : __CODEGEN_BITFIELD( 4, 4) ; //!< TargetSizeinWordsMB/MaxSizeinWordsMB Enable |
| 2389 |
uint32_t Reserverd : __CODEGEN_BITFIELD( 5, 7) ; //!< Reserverd |
| 2390 |
uint32_t PpmvDisable : __CODEGEN_BITFIELD( 8, 8) ; //!< PPMV_DISABLE |
| 2391 |
uint32_t CoefficientClampEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< Coefficient Clamp Enable |
| 2392 |
uint32_t LongtermReferenceFrameBwdRef0Indicator : __CODEGEN_BITFIELD(10, 10) ; //!< LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR |
| 2393 |
uint32_t LongtermReferenceFrameFwdRef2Indicator : __CODEGEN_BITFIELD(11, 11) ; //!< LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR |
| 2394 |
uint32_t LongtermReferenceFrameFwdRef1Indicator : __CODEGEN_BITFIELD(12, 12) ; //!< LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR |
| 2395 |
uint32_t LongtermReferenceFrameFwdRef0Indicator : __CODEGEN_BITFIELD(13, 13) ; //!< LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR |
| 2396 |
uint32_t Reserved1102 : __CODEGEN_BITFIELD(14, 15) ; //!< Reserved |
| 2397 |
uint32_t MidpointSadHaar : __CODEGEN_BITFIELD(16, 31) ; //!< Midpoint sad/haar |
| 2398 |
}; |
| 2399 |
uint32_t Value; |
| 2400 |
} DW34; |
| 2401 |
|
| 2402 |
//! \name Local enumerations |
| 2403 |
|
| 2404 |
enum SUBOPB |
| 2405 |
{ |
| 2406 |
SUBOPB_VDENCIMGSTATE = 5, //!< No additional details |
| 2407 |
}; |
| 2408 |
|
| 2409 |
enum SUBOPA |
| 2410 |
{ |
| 2411 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 2412 |
}; |
| 2413 |
|
| 2414 |
enum OPCODE |
| 2415 |
{ |
| 2416 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 2417 |
}; |
| 2418 |
|
| 2419 |
enum PIPELINE |
| 2420 |
{ |
| 2421 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 2422 |
}; |
| 2423 |
|
| 2424 |
enum COMMAND_TYPE |
| 2425 |
{ |
| 2426 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 2427 |
}; |
| 2428 |
|
| 2429 |
enum BIDIRECTIONAL_MIX_DISABLE |
| 2430 |
{ |
| 2431 |
BIDIRECTIONAL_MIX_DISABLE_SUBBLOCKENABLED = 0, //!< Bidirectional decision on subblock level that bidirectional mode is enabled. |
| 2432 |
BIDIRECTIONAL_MIX_DISABLE_WHOLEMACROBLOCKENABLED = 1, //!< Bidirectional decision on whole macroblock. |
| 2433 |
}; |
| 2434 |
|
| 2435 |
//! \brief VDENC_PERFMODE |
| 2436 |
//! \details |
| 2437 |
//! This bit indicates if VDEnc is configured for normal or speed mode of |
| 2438 |
//! operation. |
| 2439 |
enum VDENC_PERFMODE |
| 2440 |
{ |
| 2441 |
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). |
| 2442 |
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). |
| 2443 |
}; |
| 2444 |
|
| 2445 |
//! \brief TIME_BUDGET_OVERFLOW_CHECK |
| 2446 |
//! \details |
| 2447 |
//! <p>This bit enables the frame time budget detection in VDEnc.</p> |
| 2448 |
//! <p>To detect if a Time Budget Overflow happened in a frame, SW |
| 2449 |
//! can read "PAK_Stream-Out Report (Errors)" register in MFX. When Time |
| 2450 |
//! budget overflow condition happens in the frame, this register bits 15:8 |
| 2451 |
//! indicate MB y position and bits 7:0 indicate MB x position where Time |
| 2452 |
//! budget overflow occured. When there is no time budget overflow in a |
| 2453 |
//! frame, "<span style="line-height: 20.7999992370605px;">PAK_Stream-Out |
| 2454 |
//! Report (Errors)" register reads zero.</span></p> |
| 2455 |
enum TIME_BUDGET_OVERFLOW_CHECK |
| 2456 |
{ |
| 2457 |
TIME_BUDGET_OVERFLOW_CHECK_DISABLED = 0, //!< No additional details |
| 2458 |
TIME_BUDGET_OVERFLOW_CHECK_ENABLED = 1, //!< No additional details |
| 2459 |
}; |
| 2460 |
|
| 2461 |
//! \brief VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE |
| 2462 |
//! \details |
| 2463 |
//! This bit enables the distortion data to be populated in the VDenc PAK |
| 2464 |
//! Obj inline data. |
| 2465 |
enum VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE |
| 2466 |
{ |
| 2467 |
VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE_DISABLE = 0, //!< The extra two DWS from VDEnc (MDC) to PAK will be Zero. |
| 2468 |
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.) |
| 2469 |
}; |
| 2470 |
|
| 2471 |
//! \brief TRANSFORM_8X8_FLAG |
| 2472 |
//! \details |
| 2473 |
//! 8x8 IDCT Transform Mode Flag, trans8x8_mode_flag specifies 8x8 IDCT |
| 2474 |
//! transform may be used in this |
| 2475 |
//! picture. It is set to the value of the syntax element in the |
| 2476 |
//! current active PPS. |
| 2477 |
enum TRANSFORM_8X8_FLAG |
| 2478 |
{ |
| 2479 |
TRANSFORM_8X8_FLAG_DISABLED = 0, //!< No 8x8 IDCT Transform, only 4x4 IDCT transform blocks are present. |
| 2480 |
TRANSFORM_8X8_FLAG_ENABLED = 1, //!< 8x8 Transform is allowed. |
| 2481 |
}; |
| 2482 |
|
| 2483 |
//! \brief VDENC_L1_CACHE_PRIORITY |
| 2484 |
//! \details |
| 2485 |
//! L1 Cache inside VDEnc has 3 clients - IME, CRE and VMC. These bits |
| 2486 |
//! indicate the priority order for |
| 2487 |
//! L1 cache to service the client requests. |
| 2488 |
enum VDENC_L1_CACHE_PRIORITY |
| 2489 |
{ |
| 2490 |
VDENC_L1_CACHE_PRIORITY_UNNAMED0 = 0, //!< CRE High Priority, VMC and IME round robin. |
| 2491 |
VDENC_L1_CACHE_PRIORITY_UNNAMED1 = 1, //!< CRE and VMC round robin, IME low priority. |
| 2492 |
VDENC_L1_CACHE_PRIORITY_UNNAMED2 = 2, //!< CRE High Priority, IME Medium, VMC Low. |
| 2493 |
VDENC_L1_CACHE_PRIORITY_UNNAMED3 = 3, //!< VMC High Priority, CRE Medium, IME low. |
| 2494 |
}; |
| 2495 |
|
| 2496 |
//! \brief BIDIRECTIONAL_WEIGHT |
| 2497 |
//! \details |
| 2498 |
//! Default value: Depends on the distance between the B and reference |
| 2499 |
//! pictures. |
| 2500 |
enum BIDIRECTIONAL_WEIGHT |
| 2501 |
{ |
| 2502 |
BIDIRECTIONAL_WEIGHT_UNNAMED16 = 16, //!< No additional details |
| 2503 |
BIDIRECTIONAL_WEIGHT_UNNAMED21 = 21, //!< No additional details |
| 2504 |
BIDIRECTIONAL_WEIGHT_UNNAMED32 = 32, //!< No additional details |
| 2505 |
BIDIRECTIONAL_WEIGHT_UNNAMED43 = 43, //!< No additional details |
| 2506 |
BIDIRECTIONAL_WEIGHT_UNNAMED48 = 48, //!< No additional details |
| 2507 |
}; |
| 2508 |
|
| 2509 |
//! \brief SUB_PEL_MODE |
| 2510 |
//! \details |
| 2511 |
//! This field defines the half/quarter pel modes. The mode is inclusive, |
| 2512 |
//! i.e., higher precision mode samples lower precision locations. |
| 2513 |
enum SUB_PEL_MODE |
| 2514 |
{ |
| 2515 |
SUB_PEL_MODE_UNNAMED0 = 0, //!< Integer mode searching. |
| 2516 |
SUB_PEL_MODE_UNNAMED1 = 1, //!< Half-pel mode searching. |
| 2517 |
SUB_PEL_MODE_UNNAMED3 = 3, //!< Quarter-pel mode searching. |
| 2518 |
}; |
| 2519 |
|
| 2520 |
//! \brief FORWARD_TRANSFORM_SKIP_CHECK_ENABLE |
| 2521 |
//! \details |
| 2522 |
//! This field enables the forward transform calculation for skip check. It |
| 2523 |
//! does not override the other |
| 2524 |
//! skip calculations but it does decrease the performance marginally |
| 2525 |
//! so don't enable it unless the transform is necessary. |
| 2526 |
enum FORWARD_TRANSFORM_SKIP_CHECK_ENABLE |
| 2527 |
{ |
| 2528 |
FORWARD_TRANSFORM_SKIP_CHECK_ENABLE_FTDISABLED = 0, //!< No additional details |
| 2529 |
FORWARD_TRANSFORM_SKIP_CHECK_ENABLE_FTENABLED = 1, //!< No additional details |
| 2530 |
}; |
| 2531 |
|
| 2532 |
//! \brief BME_DISABLE_FOR_FBR_MESSAGE |
| 2533 |
//! \details |
| 2534 |
//! FBR messages that do not want bidirectional motion estimation performed |
| 2535 |
//! will set this bit and VME will |
| 2536 |
//! only perform fractional refinement on the shapes identified by |
| 2537 |
//! subpredmode. Note: only the LSB of the |
| 2538 |
//! subpredmode for each shape will be considered in FBR (a shape is |
| 2539 |
//! either FWD or BWD as input of FBR, |
| 2540 |
//! output however could change to BI if BME is enabled). |
| 2541 |
enum BME_DISABLE_FOR_FBR_MESSAGE |
| 2542 |
{ |
| 2543 |
BME_DISABLE_FOR_FBR_MESSAGE_BMEENABLED = 0, //!< No additional details |
| 2544 |
BME_DISABLE_FOR_FBR_MESSAGE_BMEDISABLED = 1, //!< No additional details |
| 2545 |
}; |
| 2546 |
|
| 2547 |
//! \brief BLOCK_BASED_SKIP_ENABLED |
| 2548 |
//! \details |
| 2549 |
//! When this field is set on the skip thresholding passing criterion will |
| 2550 |
//! be based on the maximal distortion |
| 2551 |
//! of individual blocks (8x8's or 4x4's) instead of their sum (i.e. |
| 2552 |
//! the distortion of 16x16). |
| 2553 |
enum BLOCK_BASED_SKIP_ENABLED |
| 2554 |
{ |
| 2555 |
BLOCK_BASED_SKIP_ENABLED_UNNAMED0 = 0, //!< 16x16 Block Based Skip threshold check. |
| 2556 |
BLOCK_BASED_SKIP_ENABLED_BLOCK_BASEDSKIPTYPE = 1, //!< Parameter indicates 8x8 vs. 4x4 based check. |
| 2557 |
}; |
| 2558 |
|
| 2559 |
//! \brief INTER_SAD_MEASURE_ADJUSTMENT |
| 2560 |
//! \details |
| 2561 |
//! This field specifies distortion measure adjustments used for the motion |
| 2562 |
//! search SAD comparison. |
| 2563 |
//! This field applies to both luma and chroma inter measurement. |
| 2564 |
enum INTER_SAD_MEASURE_ADJUSTMENT |
| 2565 |
{ |
| 2566 |
INTER_SAD_MEASURE_ADJUSTMENT_NONE = 0, //!< No additional details |
| 2567 |
INTER_SAD_MEASURE_ADJUSTMENT_HAARTRANSFORMADJUSTED = 2, //!< No additional details |
| 2568 |
}; |
| 2569 |
|
| 2570 |
//! \brief INTRA_SAD_MEASURE_ADJUSTMENT |
| 2571 |
//! \details |
| 2572 |
//! This field specifies distortion measure adjustments used for the motion |
| 2573 |
//! search SAD comparison. |
| 2574 |
//! This field applies to both luma and chroma intra measurement. |
| 2575 |
enum INTRA_SAD_MEASURE_ADJUSTMENT |
| 2576 |
{ |
| 2577 |
INTRA_SAD_MEASURE_ADJUSTMENT_NONE = 0, //!< No additional details |
| 2578 |
INTRA_SAD_MEASURE_ADJUSTMENT_HAARTRANSFORMADJUSTED = 2, //!< No additional details |
| 2579 |
}; |
| 2580 |
|
| 2581 |
//! \brief SUB_MACROBLOCK_SUB_PARTITION_MASK |
| 2582 |
//! \details |
| 2583 |
//! This field defines the bit-mask for disabling |
| 2584 |
//! <ul> |
| 2585 |
//! <li>sub-partition (minor partition [30:28]) modes</li> |
| 2586 |
//! <li>sub-macroblock (major partition [27:24]) modes</li> |
| 2587 |
//! </ul> |
| 2588 |
enum SUB_MACROBLOCK_SUB_PARTITION_MASK |
| 2589 |
{ |
| 2590 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED113 = 113, //!< 16x16 sub-macroblock disabled |
| 2591 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED114 = 114, //!< 2x(16x8) sub-macroblock within 16x16 disabled |
| 2592 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED116 = 116, //!< 2x(8x16) sub-macroblock within 16x16 disabled |
| 2593 |
SUB_MACROBLOCK_SUB_PARTITION_MASK_UNNAMED120 = 120, //!< 1x(8x8) sub-partition for 4x(8x8) within 16x16 disabled |
| 2594 |
}; |
| 2595 |
|
| 2596 |
//! \brief BLOCK_BASED_SKIP_TYPE |
| 2597 |
//! \details |
| 2598 |
//! The skip thresholding passing criterion will be based on the maximal |
| 2599 |
//! distortion of individual blocks |
| 2600 |
//! (8x8's or 4x4's) instead of their sum (i.e. the distortion of |
| 2601 |
//! 16x16). This field is only valid when |
| 2602 |
//! <b>Block-Based Skip Enabled</b> = 1. |
| 2603 |
enum BLOCK_BASED_SKIP_TYPE |
| 2604 |
{ |
| 2605 |
BLOCK_BASED_SKIP_TYPE_UNNAMED0 = 0, //!< 4x4 block-based skip threshold check. |
| 2606 |
BLOCK_BASED_SKIP_TYPE_UNNAMED1 = 1, //!< 8x8 block-based skip threshold check. |
| 2607 |
}; |
| 2608 |
|
| 2609 |
//! \brief CRE_PREFETCH_ENABLE |
| 2610 |
//! \details |
| 2611 |
//! This field determines if IME will prefetch the fractional CLs that are |
| 2612 |
//! required by CRE ahead of time |
| 2613 |
//! while fetching the reference windows around the IME predictors. The |
| 2614 |
//! recommendation for driver is to |
| 2615 |
//! always program this bit to 1 unless some usages restrict SubPelMode |
| 2616 |
//! to be "<i>Integer mode searching</i>". |
| 2617 |
enum CRE_PREFETCH_ENABLE |
| 2618 |
{ |
| 2619 |
CRE_PREFETCH_ENABLE_UNNAMED0 = 0, //!< Disable |
| 2620 |
CRE_PREFETCH_ENABLE_UNNAMED1 = 1, //!< Enable |
| 2621 |
}; |
| 2622 |
|
| 2623 |
//! \brief HME_REF1_DISABLE |
| 2624 |
//! \details |
| 2625 |
//! This field indicates if HME is disabled for reference 1 (second forward |
| 2626 |
//! reference). |
| 2627 |
enum HME_REF1_DISABLE |
| 2628 |
{ |
| 2629 |
HME_REF1_DISABLE_UNNAMED0 = 0, //!< HME search is performed on forward reference 1. |
| 2630 |
HME_REF1_DISABLE_UNNAMED1 = 1, //!< HME search is disabled on forward reference 1. |
| 2631 |
}; |
| 2632 |
|
| 2633 |
enum CONSTRAINED_INTRA_PREDICTION_FLAG |
| 2634 |
{ |
| 2635 |
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. |
| 2636 |
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. |
| 2637 |
}; |
| 2638 |
|
| 2639 |
//! \brief PICTURE_TYPE |
| 2640 |
//! \details |
| 2641 |
//! This field specifies how the current picture is predicted. (It might be |
| 2642 |
//! redundant from the kernel type.) |
| 2643 |
enum PICTURE_TYPE |
| 2644 |
{ |
| 2645 |
PICTURE_TYPE_I = 0, //!< No additional details |
| 2646 |
PICTURE_TYPE_P = 1, //!< No additional details |
| 2647 |
}; |
| 2648 |
|
| 2649 |
//! \brief LUMA_INTRA_PARTITION_MASK |
| 2650 |
//! \details |
| 2651 |
//! This field specifies which Luma Intra partition is enabled/disabled for |
| 2652 |
//! intra mode decision. |
| 2653 |
enum LUMA_INTRA_PARTITION_MASK |
| 2654 |
{ |
| 2655 |
LUMA_INTRA_PARTITION_MASK_UNNAMED1 = 1, //!< luma_intra_16x16 disabled |
| 2656 |
LUMA_INTRA_PARTITION_MASK_UNNAMED2 = 2, //!< luma_intra_8x8 disabled |
| 2657 |
LUMA_INTRA_PARTITION_MASK_UNNAMED4 = 4, //!< luma_intra_4x4 disabled |
| 2658 |
}; |
| 2659 |
|
| 2660 |
enum MV_COST_SCALING_FACTOR |
| 2661 |
{ |
| 2662 |
MV_COST_SCALING_FACTOR_QPEL = 0, //!< Qpel difference between MV and cost center: eff cost range 0-15pel |
| 2663 |
MV_COST_SCALING_FACTOR_HPEL = 1, //!< Hpel difference between MV and cost center: eff cost range 0-31pel |
| 2664 |
MV_COST_SCALING_FACTOR_PEL = 2, //!< Pel difference between MV and cost center: eff cost range 0-63pel |
| 2665 |
MV_COST_SCALING_FACTOR_2PEL = 3, //!< 2Pel difference between MV and cost center: eff cost range 0-127pel |
| 2666 |
}; |
| 2667 |
|
| 2668 |
enum REFID_COST_MODE_SELECT |
| 2669 |
{ |
| 2670 |
REFID_COST_MODE_SELECT_MODE0 = 0, //!< AVC |
| 2671 |
REFID_COST_MODE_SELECT_MODE1 = 1, //!< Linear |
| 2672 |
}; |
| 2673 |
|
| 2674 |
enum AVC_INTRA_16X16_MODE_MASK |
| 2675 |
{ |
| 2676 |
AVC_INTRA_16X16_MODE_MASK_VERT = 1, //!< No additional details |
| 2677 |
AVC_INTRA_16X16_MODE_MASK_HORZ = 2, //!< No additional details |
| 2678 |
AVC_INTRA_16X16_MODE_MASK_DC = 4, //!< No additional details |
| 2679 |
AVC_INTRA_16X16_MODE_MASK_PLANAR = 8, //!< No additional details |
| 2680 |
}; |
| 2681 |
|
| 2682 |
enum AVC_INTRA_CHROMA_MODE_MASK |
| 2683 |
{ |
| 2684 |
AVC_INTRA_CHROMA_MODE_MASK_VERT = 1, //!< No additional details |
| 2685 |
AVC_INTRA_CHROMA_MODE_MASK_HORZ = 2, //!< No additional details |
| 2686 |
AVC_INTRA_CHROMA_MODE_MASK_DC = 4, //!< No additional details |
| 2687 |
AVC_INTRA_CHROMA_MODE_MASK_PLANAR = 8, //!< No additional details |
| 2688 |
}; |
| 2689 |
|
| 2690 |
//! \brief INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE |
| 2691 |
//! \details |
| 2692 |
//! This field specifies the pixel components measured for Intra prediction. |
| 2693 |
enum INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE |
| 2694 |
{ |
| 2695 |
INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED0 = 0, //!< Luma+Chroma enabled. |
| 2696 |
INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED1 = 1, //!< Luma Only. |
| 2697 |
INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED2 = 2, //!< Intra Disabled. |
| 2698 |
}; |
| 2699 |
|
| 2700 |
//! \brief INTRAREFRESHENABLE_ROLLING_I_ENABLE |
| 2701 |
//! \details |
| 2702 |
//! <p>This parameter indicates if the IntraRefresh is enabled or |
| 2703 |
//! disabled.</p> |
| 2704 |
//! |
| 2705 |
//! <p>This must be disabled on I-Frames.</p> |
| 2706 |
enum INTRAREFRESHENABLE_ROLLING_I_ENABLE |
| 2707 |
{ |
| 2708 |
INTRAREFRESHENABLE_ROLLING_I_ENABLE_DISABLE = 0, //!< No additional details |
| 2709 |
INTRAREFRESHENABLE_ROLLING_I_ENABLE_ENABLE = 1, //!< No additional details |
| 2710 |
}; |
| 2711 |
|
| 2712 |
//! \brief INTRAREFRESHMODE |
| 2713 |
//! \details |
| 2714 |
//! This parameter indicates if the IntraRefresh is row based or column |
| 2715 |
//! based. |
| 2716 |
enum INTRAREFRESHMODE |
| 2717 |
{ |
| 2718 |
INTRAREFRESHMODE_ROWBASED = 0, //!< No additional details |
| 2719 |
INTRAREFRESHMODE_COLUMNBASED = 1, //!< No additional details |
| 2720 |
}; |
| 2721 |
|
| 2722 |
//! \brief HME_REF_WINDOWS_COMBINING_THRESHOLD |
| 2723 |
//! \details |
| 2724 |
//! When the reference windows of the HME refinement VME call and the |
| 2725 |
//! regular VME call are overlapped |
| 2726 |
//! and the difference of the locations is within this threshold in |
| 2727 |
//! quarter pixel unit, the two calls |
| 2728 |
//! are merged to a single call. |
| 2729 |
enum HME_REF_WINDOWS_COMBINING_THRESHOLD |
| 2730 |
{ |
| 2731 |
HME_REF_WINDOWS_COMBINING_THRESHOLD_UNNAMED0 = 0, //!< No additional details |
| 2732 |
HME_REF_WINDOWS_COMBINING_THRESHOLD_UNNAMED255 = 255, //!< No additional details |
| 2733 |
}; |
| 2734 |
|
| 2735 |
//! \brief MAXHMVR |
| 2736 |
//! \details |
| 2737 |
//! Horizontal MV component range. The MV range is restricted to |
| 2738 |
//! [-MaxHmvR+1, MaxHmvR-1] in luma quarter pel unit, |
| 2739 |
//! which corresponds to [-MaxHmvR/4 + 0.25, MaxHmvR/4-0.25] in luma |
| 2740 |
//! integer pel unit. |
| 2741 |
enum MAXHMVR |
| 2742 |
{ |
| 2743 |
MAXHMVR_UNNAMED256 = 256, //!< No additional details |
| 2744 |
MAXHMVR_UNNAMED512 = 512, //!< No additional details |
| 2745 |
MAXHMVR_UNNAMED1024 = 1024, //!< No additional details |
| 2746 |
MAXHMVR_UNNAMED2048 = 2048, //!< No additional details |
| 2747 |
MAXHMVR_UNNAMED4096 = 4096, //!< No additional details |
| 2748 |
MAXHMVR_UNNAMED8192 = 8192, //!< No additional details |
| 2749 |
}; |
| 2750 |
|
| 2751 |
//! \brief MAXVMVR |
| 2752 |
//! \details |
| 2753 |
//! Vertical MV component range defined in the AVC Spec Annex A. The MV |
| 2754 |
//! range is restricted to [-MaxVmvR+1, MaxVmvR-1] |
| 2755 |
//! in luma quarter pel unit, which corresponds to [-MaxVmvR/4 + 0.25, |
| 2756 |
//! MaxVmvR/4-0.25] in luma integer pel unit. |
| 2757 |
enum MAXVMVR |
| 2758 |
{ |
| 2759 |
MAXVMVR_UNNAMED256 = 256, //!< No additional details |
| 2760 |
MAXVMVR_UNNAMED512 = 512, //!< No additional details |
| 2761 |
MAXVMVR_UNNAMED1024 = 1024, //!< No additional details |
| 2762 |
MAXVMVR_UNNAMED2048 = 2048, //!< No additional details |
| 2763 |
}; |
| 2764 |
|
| 2765 |
//! \brief PPMV_DISABLE |
| 2766 |
//! \details |
| 2767 |
//! This bit forces the IME to use the actual PMV predictor for the IME |
| 2768 |
//! search. |
| 2769 |
enum PPMV_DISABLE |
| 2770 |
{ |
| 2771 |
PPMV_DISABLE_UNNAMED0 = 0, //!< Use PPMV based IME search. |
| 2772 |
PPMV_DISABLE_UNNAMED1 = 1, //!< Use PMV based IME search. |
| 2773 |
}; |
| 2774 |
|
| 2775 |
//! \brief LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR |
| 2776 |
//! \details |
| 2777 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2778 |
enum LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR |
| 2779 |
{ |
| 2780 |
LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2781 |
LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2782 |
}; |
| 2783 |
|
| 2784 |
//! \brief LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR |
| 2785 |
//! \details |
| 2786 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2787 |
enum LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR |
| 2788 |
{ |
| 2789 |
LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2790 |
LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2791 |
}; |
| 2792 |
|
| 2793 |
//! \brief LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR |
| 2794 |
//! \details |
| 2795 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2796 |
enum LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR |
| 2797 |
{ |
| 2798 |
LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2799 |
LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2800 |
}; |
| 2801 |
|
| 2802 |
//! \brief LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR |
| 2803 |
//! \details |
| 2804 |
//! Indicates whether the reference frame is a long or short term reference. |
| 2805 |
enum LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR |
| 2806 |
{ |
| 2807 |
LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR_SHORT_TERMREFERENCE = 0, //!< No additional details |
| 2808 |
LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR_LONG_TERMREFERENCE = 1, //!< No additional details |
| 2809 |
}; |
| 2810 |
|
| 2811 |
//! \name Initializations |
| 2812 |
|
| 2813 |
//! \brief Explicit member initialization function |
| 2814 |
VDENC_IMG_STATE_CMD(); |
| 2815 |
|
| 2816 |
static const size_t dwSize = 35; |
| 2817 |
static const size_t byteSize = 140; |
| 2818 |
}; |
| 2819 |
|
| 2820 |
//! |
| 2821 |
//! \brief VDENC_PIPE_BUF_ADDR_STATE |
| 2822 |
//! \details |
| 2823 |
//! This state command provides the memory base addresses for all row |
| 2824 |
//! stores, Streamin/StreamOut, DMV buffer along with the uncompressed |
| 2825 |
//! source, reference pictures and downscaled reference pictures required by |
| 2826 |
//! the VDENC pipeline. All reference pixel surfaces in the Encoder are |
| 2827 |
//! programmed with the same surface state (NV12 and TileY format), except |
| 2828 |
//! each has its own frame buffer base address. Same holds true for the |
| 2829 |
//! down-scaled reference pictures too. In the tile format, there is no need |
| 2830 |
//! to provide buffer offset for each slice; since from each MB address, the |
| 2831 |
//! hardware can calculated the corresponding memory location within the |
| 2832 |
//! frame buffer directly. VDEnc supports 3 Downscaled reference frames ( 2 |
| 2833 |
//! fwd, 1 bwd) and 4 normal reference frames ( 3 fwd, 1 bwd). The driver |
| 2834 |
//! will sort out the base address from the DPB table and populate the base |
| 2835 |
//! addresses that map to the corresponding reference index for both DS |
| 2836 |
//! references and normal reference frames. Each of the individual DS ref/ |
| 2837 |
//! Normal ref frames have their own MOCS DW that corresponds to the |
| 2838 |
//! respective base address. The only thing that is different in the MOCS DW |
| 2839 |
//! amongst the DS reference frames is the MMCD controls (specified in bits |
| 2840 |
//! [10:9] of the MOCS DW). Driver needs to ensure that the other bits need |
| 2841 |
//! to be the same across the different DS ref frames. The same is |
| 2842 |
//! applicable for the normal reference frames. |
| 2843 |
//! |
| 2844 |
struct VDENC_PIPE_BUF_ADDR_STATE_CMD |
| 2845 |
{ |
| 2846 |
union |
| 2847 |
{ |
| 2848 |
//!< DWORD 0 |
| 2849 |
struct |
| 2850 |
{ |
| 2851 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 2852 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 2853 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 2854 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 2855 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 2856 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 2857 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 2858 |
}; |
| 2859 |
uint32_t Value; |
| 2860 |
} DW0; |
| 2861 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef0 ; //!< DS FWD REF0 |
| 2862 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef1 ; //!< DS FWD REF1 |
| 2863 |
VDENC_Down_Scaled_Reference_Picture_CMD DsBwdRef0 ; //!< DS BWD REF0 |
| 2864 |
VDENC_Original_Uncompressed_Picture_CMD OriginalUncompressedPicture ; //!< Original Uncompressed Picture |
| 2865 |
VDENC_Streamin_Data_Picture_CMD StreaminDataPicture ; //!< Streamin Data Picture |
| 2866 |
VDENC_Row_Store_Scratch_Buffer_Picture_CMD RowStoreScratchBuffer ; //!< Row Store Scratch Buffer |
| 2867 |
VDENC_Colocated_MV_Picture_CMD ColocatedMv ; //!< Colocated MV |
| 2868 |
VDENC_Reference_Picture_CMD FwdRef0 ; //!< FWD REF0 |
| 2869 |
VDENC_Reference_Picture_CMD FwdRef1 ; //!< FWD REF1 |
| 2870 |
VDENC_Reference_Picture_CMD FwdRef2 ; //!< FWD REF2 |
| 2871 |
VDENC_Reference_Picture_CMD BwdRef0 ; //!< BWD REF0 |
| 2872 |
VDENC_Statistics_Streamout_CMD VdencStatisticsStreamout ; //!< VDEnc Statistics Streamout |
| 2873 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef04X ; //!< DS FWD REF0 4X |
| 2874 |
VDENC_Down_Scaled_Reference_Picture_CMD DsFwdRef14X ; //!< DS FWD REF1 4X |
| 2875 |
VDENC_Colocated_MV_Picture_CMD VdencCuRecordStreamOutBuffer ; //!< VDEnc CuRecord stream-out buffer |
| 2876 |
VDENC_Colocated_MV_Picture_CMD VdencLcuPakObjCmdBuffer ; //!< VDEnc LCU PAK OBJ CMD Buffer |
| 2877 |
VDENC_Down_Scaled_Reference_Picture_CMD ScaledReferenceSurface8X ; //!< Scaled Reference Surface 8X |
| 2878 |
VDENC_Down_Scaled_Reference_Picture_CMD ScaledReferenceSurface4X ; //!< Scaled Reference Surface 4X |
| 2879 |
VDENC_Colocated_MV_Picture_CMD Vp9SegmentationMapStreaminBuffer ; //!< VP9 Segmentation Map Streamin Buffer |
| 2880 |
VDENC_Colocated_MV_Picture_CMD Vp9SegmentationMapStreamoutBuffer ; //!< VP9 Segmentation Map Streamout Buffer |
| 2881 |
union |
| 2882 |
{ |
| 2883 |
//!< DWORD 61 |
| 2884 |
struct |
| 2885 |
{ |
| 2886 |
uint32_t WeightsHistogramStreamoutOffset ; //!< Weights Histogram Streamout offset |
| 2887 |
}; |
| 2888 |
uint32_t Value; |
| 2889 |
} DW61; |
| 2890 |
|
| 2891 |
//! \name Local enumerations |
| 2892 |
|
| 2893 |
enum SUBOPB |
| 2894 |
{ |
| 2895 |
SUBOPB_VDENCPIPEBUFADDRSTATE = 4, //!< No additional details |
| 2896 |
}; |
| 2897 |
|
| 2898 |
enum SUBOPA |
| 2899 |
{ |
| 2900 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 2901 |
}; |
| 2902 |
|
| 2903 |
enum OPCODE |
| 2904 |
{ |
| 2905 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 2906 |
}; |
| 2907 |
|
| 2908 |
enum PIPELINE |
| 2909 |
{ |
| 2910 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 2911 |
}; |
| 2912 |
|
| 2913 |
enum COMMAND_TYPE |
| 2914 |
{ |
| 2915 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 2916 |
}; |
| 2917 |
|
| 2918 |
//! \name Initializations |
| 2919 |
|
| 2920 |
//! \brief Explicit member initialization function |
| 2921 |
VDENC_PIPE_BUF_ADDR_STATE_CMD(); |
| 2922 |
|
| 2923 |
static const size_t dwSize = 62; |
| 2924 |
static const size_t byteSize = 248; |
| 2925 |
}; |
| 2926 |
|
| 2927 |
//! |
| 2928 |
//! \brief VDENC_PIPE_MODE_SELECT |
| 2929 |
//! \details |
| 2930 |
//! Specifies which codec and hardware module is being used to encode/decode |
| 2931 |
//! the video data, on a per-frame basis. The VDENC_PIPE_MODE_SELECT command |
| 2932 |
//! specifies which codec and hardware module is being used to encode/decode |
| 2933 |
//! the video data, on a per-frame basis. It also configures the hardware |
| 2934 |
//! pipeline according to the active encoder/decoder operating mode for |
| 2935 |
//! encoding/decoding the current picture. |
| 2936 |
//! |
| 2937 |
struct VDENC_PIPE_MODE_SELECT_CMD |
| 2938 |
{ |
| 2939 |
union |
| 2940 |
{ |
| 2941 |
//!< DWORD 0 |
| 2942 |
struct |
| 2943 |
{ |
| 2944 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 2945 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 2946 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 2947 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 2948 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 2949 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 2950 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 2951 |
}; |
| 2952 |
uint32_t Value; |
| 2953 |
} DW0; |
| 2954 |
union |
| 2955 |
{ |
| 2956 |
//!< DWORD 1 |
| 2957 |
struct |
| 2958 |
{ |
| 2959 |
uint32_t StandardSelect : __CODEGEN_BITFIELD( 0, 3) ; //!< STANDARD_SELECT |
| 2960 |
uint32_t ScalabilityMode : __CODEGEN_BITFIELD( 4, 4) ; //!< Scalability Mode |
| 2961 |
uint32_t FrameStatisticsStreamOutEnable : __CODEGEN_BITFIELD( 5, 5) ; //!< FRAME_STATISTICS_STREAM_OUT_ENABLE |
| 2962 |
uint32_t VdencPakObjCmdStreamOutEnable : __CODEGEN_BITFIELD( 6, 6) ; //!< VDEnc PAK_OBJ_CMD Stream-Out Enable |
| 2963 |
uint32_t TlbPrefetchEnable : __CODEGEN_BITFIELD( 7, 7) ; //!< TLB_PREFETCH_ENABLE |
| 2964 |
uint32_t PakThresholdCheckEnable : __CODEGEN_BITFIELD( 8, 8) ; //!< PAK_THRESHOLD_CHECK_ENABLE |
| 2965 |
uint32_t VdencStreamInEnable : __CODEGEN_BITFIELD( 9, 9) ; //!< VDENC_STREAM_IN_ENABLE |
| 2966 |
uint32_t Downscaled8XWriteDisable : __CODEGEN_BITFIELD(10, 10) ; //!< DownScaled 8x write Disable |
| 2967 |
uint32_t Downscaled4XWriteDisable : __CODEGEN_BITFIELD(11, 11) ; //!< DownScaled 4x write Disable |
| 2968 |
uint32_t BitDepth : __CODEGEN_BITFIELD(12, 14) ; //!< BIT_DEPTH |
| 2969 |
uint32_t PakChromaSubSamplingType : __CODEGEN_BITFIELD(15, 16) ; //!< PAK_CHROMA_SUB_SAMPLING_TYPE |
| 2970 |
uint32_t OutputRangeControlAfterColorSpaceConversion : __CODEGEN_BITFIELD(17, 17) ; //!< output range control after color space conversion |
| 2971 |
uint32_t Reserved50 : __CODEGEN_BITFIELD(18, 30) ; //!< Reserved |
| 2972 |
uint32_t DisableSpeedModeFetchOptimization : __CODEGEN_BITFIELD(31, 31) ; //!< Disable Speed Mode fetch optimization |
| 2973 |
}; |
| 2974 |
uint32_t Value; |
| 2975 |
} DW1; |
| 2976 |
|
| 2977 |
//! \name Local enumerations |
| 2978 |
|
| 2979 |
enum SUBOPB |
| 2980 |
{ |
| 2981 |
SUBOPB_VDENCPIPEMODESELECT = 0, //!< No additional details |
| 2982 |
}; |
| 2983 |
|
| 2984 |
enum SUBOPA |
| 2985 |
{ |
| 2986 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 2987 |
}; |
| 2988 |
|
| 2989 |
enum OPCODE |
| 2990 |
{ |
| 2991 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 2992 |
}; |
| 2993 |
|
| 2994 |
enum PIPELINE |
| 2995 |
{ |
| 2996 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 2997 |
}; |
| 2998 |
|
| 2999 |
enum COMMAND_TYPE |
| 3000 |
{ |
| 3001 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3002 |
}; |
| 3003 |
|
| 3004 |
enum STANDARD_SELECT |
| 3005 |
{ |
| 3006 |
STANDARD_SELECT_AVC = 2, //!< No additional details |
| 3007 |
}; |
| 3008 |
|
| 3009 |
//! \brief FRAME_STATISTICS_STREAM_OUT_ENABLE |
| 3010 |
//! \details |
| 3011 |
//! This field controls whether the frame statistics stream-out is enabled. |
| 3012 |
enum FRAME_STATISTICS_STREAM_OUT_ENABLE |
| 3013 |
{ |
| 3014 |
FRAME_STATISTICS_STREAM_OUT_ENABLE_DISABLE = 0, //!< No additional details |
| 3015 |
FRAME_STATISTICS_STREAM_OUT_ENABLE_ENABLE = 1, //!< No additional details |
| 3016 |
}; |
| 3017 |
|
| 3018 |
//! \brief TLB_PREFETCH_ENABLE |
| 3019 |
//! \details |
| 3020 |
//! This field controls whether TLB prefetching is enabled. |
| 3021 |
enum TLB_PREFETCH_ENABLE |
| 3022 |
{ |
| 3023 |
TLB_PREFETCH_ENABLE_DISABLE = 0, //!< No additional details |
| 3024 |
TLB_PREFETCH_ENABLE_ENABLE = 1, //!< No additional details |
| 3025 |
}; |
| 3026 |
|
| 3027 |
//! \brief PAK_THRESHOLD_CHECK_ENABLE |
| 3028 |
//! \details |
| 3029 |
//! <p>For AVC standard: This field controls whether VDEnc will check the |
| 3030 |
//! PAK indicator for bits overflow and terminates the slice. This mode is |
| 3031 |
//! called Dynamic Slice Mode. When this field is disabled, VDEnc is in |
| 3032 |
//! Static Slice Mode. It uses the driver programmed Slice Macroblock Height |
| 3033 |
//! Minus One to terminate the slice. This feature is also referred to as |
| 3034 |
//! slice size conformance.</p> |
| 3035 |
//! <p>For HEVC standard: This bit is used to enable dynamic slice size |
| 3036 |
//! control.</p> |
| 3037 |
enum PAK_THRESHOLD_CHECK_ENABLE |
| 3038 |
{ |
| 3039 |
PAK_THRESHOLD_CHECK_ENABLE_DISABLESTATICSLICEMODE = 0, //!< No additional details |
| 3040 |
PAK_THRESHOLD_CHECK_ENABLE_ENABLEDYNAMICSLICEMODE = 1, //!< No additional details |
| 3041 |
}; |
| 3042 |
|
| 3043 |
//! \brief VDENC_STREAM_IN_ENABLE |
| 3044 |
//! \details |
| 3045 |
//! <p>This field controls whether VDEnc will read the stream-in surface |
| 3046 |
//! that is programmed. Currently the stream-in surface has MB level QP, |
| 3047 |
//! ROI, predictors and MaxSize/TargetSizeinWordsMB parameters. The |
| 3048 |
//! individual enables for each of the fields is programmed in the |
| 3049 |
//! VDENC_IMG_STATE.</p> |
| 3050 |
//! <p>(ROI_Enable, Fwd/Predictor0 MV Enable, Bwd/Predictor1 MV Enable, MB |
| 3051 |
//! Level QP Enable, TargetSizeinWordsMB/MaxSizeinWordsMB Enable).</p> |
| 3052 |
//! <p>This bit is valid only in AVC mode. In HEVC / VP9 mode this bit is |
| 3053 |
//! reserved and should be set to zero.</p> |
| 3054 |
enum VDENC_STREAM_IN_ENABLE |
| 3055 |
{ |
| 3056 |
VDENC_STREAM_IN_ENABLE_DISABLE = 0, //!< No additional details |
| 3057 |
VDENC_STREAM_IN_ENABLE_ENABLE = 1, //!< No additional details |
| 3058 |
}; |
| 3059 |
|
| 3060 |
//! \brief BIT_DEPTH |
| 3061 |
//! \details |
| 3062 |
//! <p>This parameter indicates the PAK bit depth. The valid values for this |
| 3063 |
//! are 0 / 2 in HEVC / VP9 standard. In AVC standard this field should be |
| 3064 |
//! set to 0.</p> |
| 3065 |
//! <p></p> |
| 3066 |
enum BIT_DEPTH |
| 3067 |
{ |
| 3068 |
BIT_DEPTH_8BIT = 0, //!< No additional details |
| 3069 |
BIT_DEPTH_10BIT = 2, //!< No additional details |
| 3070 |
BIT_DEPTH_12BIT = 3, //!< No additional details |
| 3071 |
}; |
| 3072 |
|
| 3073 |
//! \brief PAK_CHROMA_SUB_SAMPLING_TYPE |
| 3074 |
//! \details |
| 3075 |
//! <p>This field is applicable only in HEVC and VP9. In AVC, this field is |
| 3076 |
//! ignored.</p> |
| 3077 |
//! <p></p> |
| 3078 |
enum PAK_CHROMA_SUB_SAMPLING_TYPE |
| 3079 |
{ |
| 3080 |
PAK_CHROMA_SUB_SAMPLING_TYPE_420 = 1, //!< Used for Main8 and Main10 HEVC, VP9 profile0, AVC. |
| 3081 |
PAK_CHROMA_SUB_SAMPLING_TYPE_444 = 3, //!< HEVC RExt 444, VP9 444 profiles. |
| 3082 |
}; |
| 3083 |
|
| 3084 |
//! \name Initializations |
| 3085 |
|
| 3086 |
//! \brief Explicit member initialization function |
| 3087 |
VDENC_PIPE_MODE_SELECT_CMD(); |
| 3088 |
|
| 3089 |
static const size_t dwSize = 2; |
| 3090 |
static const size_t byteSize = 8; |
| 3091 |
}; |
| 3092 |
|
| 3093 |
//! |
| 3094 |
//! \brief VDENC_REF_SURFACE_STATE |
| 3095 |
//! \details |
| 3096 |
//! This command specifies the surface state parameters for the normal |
| 3097 |
//! reference surfaces. |
| 3098 |
//! |
| 3099 |
struct VDENC_REF_SURFACE_STATE_CMD |
| 3100 |
{ |
| 3101 |
union |
| 3102 |
{ |
| 3103 |
//!< DWORD 0 |
| 3104 |
struct |
| 3105 |
{ |
| 3106 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 3107 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3108 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3109 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3110 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3111 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3112 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3113 |
}; |
| 3114 |
uint32_t Value; |
| 3115 |
} DW0; |
| 3116 |
union |
| 3117 |
{ |
| 3118 |
//!< DWORD 1 |
| 3119 |
struct |
| 3120 |
{ |
| 3121 |
uint32_t SurfaceId : __CODEGEN_BITFIELD(0, 2) ; //!< Surface ID |
| 3122 |
uint32_t Reserved : __CODEGEN_BITFIELD(3, 31) ; //!< Reserved |
| 3123 |
}; |
| 3124 |
uint32_t Value; |
| 3125 |
} DW1; |
| 3126 |
VDENC_Surface_State_Fields_CMD Dwords25 ; //!< Dwords 2..5 |
| 3127 |
|
| 3128 |
//! \name Local enumerations |
| 3129 |
|
| 3130 |
enum SUBOPB |
| 3131 |
{ |
| 3132 |
SUBOPB_VDENCREFSURFACESTATE = 2, //!< No additional details |
| 3133 |
}; |
| 3134 |
|
| 3135 |
enum SUBOPA |
| 3136 |
{ |
| 3137 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3138 |
}; |
| 3139 |
|
| 3140 |
enum OPCODE |
| 3141 |
{ |
| 3142 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3143 |
}; |
| 3144 |
|
| 3145 |
enum PIPELINE |
| 3146 |
{ |
| 3147 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3148 |
}; |
| 3149 |
|
| 3150 |
enum COMMAND_TYPE |
| 3151 |
{ |
| 3152 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3153 |
}; |
| 3154 |
|
| 3155 |
//! \name Initializations |
| 3156 |
|
| 3157 |
//! \brief Explicit member initialization function |
| 3158 |
VDENC_REF_SURFACE_STATE_CMD(); |
| 3159 |
|
| 3160 |
static const size_t dwSize = 6; |
| 3161 |
static const size_t byteSize = 24; |
| 3162 |
}; |
| 3163 |
|
| 3164 |
//! |
| 3165 |
//! \brief VDENC_SRC_SURFACE_STATE |
| 3166 |
//! \details |
| 3167 |
//! This command specifies the uncompressed original input picture to be |
| 3168 |
//! encoded. The actual base address is defined in the |
| 3169 |
//! VDENC_PIPE_BUF_ADDR_STATE. Pitch can be wider than the Picture Width in |
| 3170 |
//! pixels and garbage will be there at the end of each line. The following |
| 3171 |
//! describes all the different formats that are supported in WLV+ VDEnc: |
| 3172 |
//! NV12 - 4:2:0 only; UV interleaved; Full Pitch, U and V offset is set to |
| 3173 |
//! 0 (the only format supported for video codec); vertical UV offset is MB |
| 3174 |
//! aligned; UV xoffsets = 0. |
| 3175 |
//! This surface state here is identical to the Surface State for |
| 3176 |
//! deinterlace and sample_8x8 messages described in the Shared Function |
| 3177 |
//! Volume and Sampler Chapter. For non pixel data, such as row stores, DMV |
| 3178 |
//! and streamin/out, a linear buffer is employed. For row stores, the H/W |
| 3179 |
//! is designed to guarantee legal memory accesses (read and write). For the |
| 3180 |
//! remaining cases, indirect object base address, indirect object address |
| 3181 |
//! upper bound, object data start address (offset) and object data length |
| 3182 |
//! are used to fully specified their corresponding buffer. This mechanism |
| 3183 |
//! is chosen over the pixel surface type because of their variable record |
| 3184 |
//! sizes. All row store surfaces are linear surface. Their addresses are |
| 3185 |
//! programmed in VDEnc_Pipe_Buf_Base_State. |
| 3186 |
//! |
| 3187 |
struct VDENC_SRC_SURFACE_STATE_CMD |
| 3188 |
{ |
| 3189 |
union |
| 3190 |
{ |
| 3191 |
//!< DWORD 0 |
| 3192 |
struct |
| 3193 |
{ |
| 3194 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 3195 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3196 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3197 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3198 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3199 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3200 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3201 |
}; |
| 3202 |
uint32_t Value; |
| 3203 |
} DW0; |
| 3204 |
union |
| 3205 |
{ |
| 3206 |
//!< DWORD 1 |
| 3207 |
struct |
| 3208 |
{ |
| 3209 |
uint32_t Reserved32 ; //!< Reserved |
| 3210 |
}; |
| 3211 |
uint32_t Value; |
| 3212 |
} DW1; |
| 3213 |
VDENC_Surface_State_Fields_CMD Dwords25 ; //!< Dwords 2..5 |
| 3214 |
|
| 3215 |
//! \name Local enumerations |
| 3216 |
|
| 3217 |
enum SUBOPB |
| 3218 |
{ |
| 3219 |
SUBOPB_VDENCSRCSURFACESTATE = 1, //!< No additional details |
| 3220 |
}; |
| 3221 |
|
| 3222 |
enum SUBOPA |
| 3223 |
{ |
| 3224 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3225 |
}; |
| 3226 |
|
| 3227 |
enum OPCODE |
| 3228 |
{ |
| 3229 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3230 |
}; |
| 3231 |
|
| 3232 |
enum PIPELINE |
| 3233 |
{ |
| 3234 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3235 |
}; |
| 3236 |
|
| 3237 |
enum COMMAND_TYPE |
| 3238 |
{ |
| 3239 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3240 |
}; |
| 3241 |
|
| 3242 |
//! \name Initializations |
| 3243 |
|
| 3244 |
//! \brief Explicit member initialization function |
| 3245 |
VDENC_SRC_SURFACE_STATE_CMD(); |
| 3246 |
|
| 3247 |
static const size_t dwSize = 6; |
| 3248 |
static const size_t byteSize = 24; |
| 3249 |
}; |
| 3250 |
|
| 3251 |
//! |
| 3252 |
//! \brief VDENC_WALKER_STATE |
| 3253 |
//! \details |
| 3254 |
//! This command provides the macroblock start location for the VDEnc |
| 3255 |
//! walker. Current programming to always have this command at the frame |
| 3256 |
//! level, hence the macroblock X,Y location need to be programmed to 0,0 to |
| 3257 |
//! always start at frame origin. Once the hardware receives this command |
| 3258 |
//! packet, it internally starts the VDEnc pipeline. This should be the last |
| 3259 |
//! command that is programmed for the VDEnc pipeline. |
| 3260 |
//! |
| 3261 |
//! This command is programmed per super-slice. The X location always needs |
| 3262 |
//! to be programmed to 0. The Y location needs to be programmed to the |
| 3263 |
//! starting point of the current super-slice. The programming needs to |
| 3264 |
//! ensure that all super-slices are contiguous. It is illegal to have gaps |
| 3265 |
//! between the super-slices. |
| 3266 |
//! |
| 3267 |
struct VDENC_WALKER_STATE_CMD |
| 3268 |
{ |
| 3269 |
union |
| 3270 |
{ |
| 3271 |
//!< DWORD 0 |
| 3272 |
struct |
| 3273 |
{ |
| 3274 |
uint32_t DwordLength : __CODEGEN_BITFIELD( 0, 11) ; //!< DWORD_LENGTH |
| 3275 |
uint32_t Reserved12 : __CODEGEN_BITFIELD(12, 15) ; //!< Reserved |
| 3276 |
uint32_t Subopb : __CODEGEN_BITFIELD(16, 20) ; //!< SUBOPB |
| 3277 |
uint32_t Subopa : __CODEGEN_BITFIELD(21, 22) ; //!< SUBOPA |
| 3278 |
uint32_t Opcode : __CODEGEN_BITFIELD(23, 26) ; //!< OPCODE |
| 3279 |
uint32_t Pipeline : __CODEGEN_BITFIELD(27, 28) ; //!< PIPELINE |
| 3280 |
uint32_t CommandType : __CODEGEN_BITFIELD(29, 31) ; //!< COMMAND_TYPE |
| 3281 |
}; |
| 3282 |
uint32_t Value; |
| 3283 |
} DW0; |
| 3284 |
union |
| 3285 |
{ |
| 3286 |
//!< DWORD 1 |
| 3287 |
struct |
| 3288 |
{ |
| 3289 |
uint32_t MbLcuStartYPosition : __CODEGEN_BITFIELD( 0, 8) ; //!< MB/LCU Start Y Position |
| 3290 |
uint32_t Reserved41 : __CODEGEN_BITFIELD( 9, 15) ; //!< Reserved |
| 3291 |
uint32_t MbLcuStartXPosition : __CODEGEN_BITFIELD(16, 24) ; //!< MB/LCU Start X Position |
| 3292 |
uint32_t Reserved57 : __CODEGEN_BITFIELD(25, 27) ; //!< Reserved |
| 3293 |
uint32_t FirstSuperSlice : __CODEGEN_BITFIELD(28, 28) ; //!< First Super Slice |
| 3294 |
uint32_t Reserved61 : __CODEGEN_BITFIELD(29, 31) ; //!< Reserved |
| 3295 |
}; |
| 3296 |
uint32_t Value; |
| 3297 |
} DW1; |
| 3298 |
union |
| 3299 |
{ |
| 3300 |
//!< DWORD 2 |
| 3301 |
struct |
| 3302 |
{ |
| 3303 |
uint32_t NextsliceMbStartYPosition : __CODEGEN_BITFIELD( 0, 9) ; //!< NextSlice MB Start Y Position |
| 3304 |
uint32_t Reserved74 : __CODEGEN_BITFIELD(10, 15) ; //!< Reserved |
| 3305 |
uint32_t NextsliceMbLcuStartXPosition : __CODEGEN_BITFIELD(16, 25) ; //!< NextSlice MB/LCU Start X Position |
| 3306 |
uint32_t Reserved90 : __CODEGEN_BITFIELD(26, 31) ; //!< Reserved |
| 3307 |
}; |
| 3308 |
uint32_t Value; |
| 3309 |
} DW2; |
| 3310 |
union |
| 3311 |
{ |
| 3312 |
//!< DWORD 3 |
| 3313 |
struct |
| 3314 |
{ |
| 3315 |
uint32_t Log2WeightDenomLuma : __CODEGEN_BITFIELD( 0, 2) ; //!< Log 2 Weight Denom Luma |
| 3316 |
uint32_t Reserved99 : __CODEGEN_BITFIELD( 3, 3) ; //!< Reserved |
| 3317 |
uint32_t HevcLog2WeightDemonLuma : __CODEGEN_BITFIELD( 4, 6) ; //!< HevcLog2WeightDemonLuma |
| 3318 |
uint32_t Reserved78 : __CODEGEN_BITFIELD( 7, 8) ; //!< Reserved |
| 3319 |
uint32_t NumParEngine : __CODEGEN_BITFIELD( 9, 10) ; //!< NUM_PAR_ENGINE |
| 3320 |
uint32_t Reserved107 : __CODEGEN_BITFIELD(11, 23) ; //!< Reserved |
| 3321 |
uint32_t TileNumber : __CODEGEN_BITFIELD(24, 31) ; //!< Tile number |
| 3322 |
}; |
| 3323 |
uint32_t Value; |
| 3324 |
} DW3; |
| 3325 |
union |
| 3326 |
{ |
| 3327 |
//!< DWORD 4 |
| 3328 |
struct |
| 3329 |
{ |
| 3330 |
uint32_t TileStartCtbY : __CODEGEN_BITFIELD( 0, 15) ; //!< Tile Start CTB-Y |
| 3331 |
uint32_t TileStartCtbX : __CODEGEN_BITFIELD(16, 31) ; //!< Tile Start CTB-X |
| 3332 |
}; |
| 3333 |
uint32_t Value; |
| 3334 |
} DW4; |
| 3335 |
union |
| 3336 |
{ |
| 3337 |
//!< DWORD 5 |
| 3338 |
struct |
| 3339 |
{ |
| 3340 |
uint32_t TileWidth : __CODEGEN_BITFIELD( 0, 15) ; //!< Tile Width |
| 3341 |
uint32_t TileHeight : __CODEGEN_BITFIELD(16, 31) ; //!< Tile Height |
| 3342 |
}; |
| 3343 |
uint32_t Value; |
| 3344 |
} DW5; |
| 3345 |
union |
| 3346 |
{ |
| 3347 |
//!< DWORD 6 |
| 3348 |
struct |
| 3349 |
{ |
| 3350 |
uint32_t StreaminOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Streamin Offset enable |
| 3351 |
uint32_t Reserved193 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3352 |
uint32_t TileStreaminOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile Streamin Offset |
| 3353 |
}; |
| 3354 |
uint32_t Value; |
| 3355 |
} DW6; |
| 3356 |
union |
| 3357 |
{ |
| 3358 |
//!< DWORD 7 |
| 3359 |
struct |
| 3360 |
{ |
| 3361 |
uint32_t RowStoreOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Row store Offset enable |
| 3362 |
uint32_t Reserved225 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3363 |
uint32_t TileRowstoreOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile Rowstore Offset |
| 3364 |
}; |
| 3365 |
uint32_t Value; |
| 3366 |
} DW7; |
| 3367 |
union |
| 3368 |
{ |
| 3369 |
//!< DWORD 8 |
| 3370 |
struct |
| 3371 |
{ |
| 3372 |
uint32_t TileStreamoutOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< Tile streamout offset enable |
| 3373 |
uint32_t Reserved257 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3374 |
uint32_t TileStreamoutOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile streamout offset |
| 3375 |
}; |
| 3376 |
uint32_t Value; |
| 3377 |
} DW8; |
| 3378 |
union |
| 3379 |
{ |
| 3380 |
//!< DWORD 9 |
| 3381 |
struct |
| 3382 |
{ |
| 3383 |
uint32_t LcuStreamOutOffsetEnable : __CODEGEN_BITFIELD( 0, 0) ; //!< LCU stream out offset enable |
| 3384 |
uint32_t Reserved289 : __CODEGEN_BITFIELD( 1, 5) ; //!< Reserved |
| 3385 |
uint32_t TileLcuStreamOutOffset : __CODEGEN_BITFIELD( 6, 31) ; //!< Tile LCU stream out offset |
| 3386 |
}; |
| 3387 |
uint32_t Value; |
| 3388 |
} DW9; |
| 3389 |
|
| 3390 |
//! \name Local enumerations |
| 3391 |
|
| 3392 |
enum SUBOPB |
| 3393 |
{ |
| 3394 |
SUBOPB_VDENCWALKERSTATE = 7, //!< No additional details |
| 3395 |
}; |
| 3396 |
|
| 3397 |
enum SUBOPA |
| 3398 |
{ |
| 3399 |
SUBOPA_UNNAMED0 = 0, //!< No additional details |
| 3400 |
}; |
| 3401 |
|
| 3402 |
enum OPCODE |
| 3403 |
{ |
| 3404 |
OPCODE_VDENCPIPE = 1, //!< No additional details |
| 3405 |
}; |
| 3406 |
|
| 3407 |
enum PIPELINE |
| 3408 |
{ |
| 3409 |
PIPELINE_MFXCOMMON = 2, //!< No additional details |
| 3410 |
}; |
| 3411 |
|
| 3412 |
enum COMMAND_TYPE |
| 3413 |
{ |
| 3414 |
COMMAND_TYPE_PARALLELVIDEOPIPE = 3, //!< No additional details |
| 3415 |
}; |
| 3416 |
|
| 3417 |
//! \name Initializations |
| 3418 |
|
| 3419 |
//! \brief Explicit member initialization function |
| 3420 |
VDENC_WALKER_STATE_CMD(); |
| 3421 |
|
| 3422 |
static const size_t dwSize = 10; |
| 3423 |
static const size_t byteSize = 40; |
| 3424 |
}; |
| 3425 |
|
| 3426 |
}; |
| 3427 |
|
| 3428 |
#pragma pack() |
| 3429 |
|
| 3430 |
#endif // __MHW_VDBOX_VDENC_HWCMD_G11_X_H__ |