| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#ifndef __VPHAL_RENDER_COMMON_H__ |
| 32 |
#define __VPHAL_RENDER_COMMON_H__ |
| 33 |
|
| 34 |
#include "vphal.h" |
| 35 |
#include "renderhal_legacy.h" |
| 36 |
#include "mhw_utilities.h" |
| 37 |
#include "mos_os.h" |
| 38 |
#include "hal_kerneldll.h" |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
#define VPHAL_USE_MEDIA_THREADS_MAX 0 |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
#define VPHAL_YTILE_H_ALIGNMENT 32 |
| 49 |
#define VPHAL_YTILE_W_ALIGNMENT 128 |
| 50 |
#define VPHAL_XTILE_H_ALIGNMENT 8 |
| 51 |
#define VPHAL_XTILE_W_ALIGNMENT 512 |
| 52 |
|
| 53 |
#define VPHAL_YTILE_H_SHIFTBITS 5 |
| 54 |
#define VPHAL_YTILE_W_SHIFTBITS 7 |
| 55 |
#define VPHAL_XTILE_H_SHITFBITS 3 |
| 56 |
#define VPHAL_XTILE_W_SHIFTBITS 9 |
| 57 |
|
| 58 |
#define VPHAL_MACROBLOCK_SIZE 16 |
| 59 |
#define VPHAL_PAGE_SIZE 0x1000 |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
#define VPHAL_STE_OPTIMAL 3 // for perfect HD-HQV Score |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
#define VPHAL_STE_LTEO(dwSteFactor, fSatp1, fSats0, fSats1) \ |
| 71 |
fSatp1 = (-6) + ((3 - (float)dwSteFactor) * 2); \ |
| 72 |
fSats0 = (float)29 / (fSatp1 + 31) * 256; \ |
| 73 |
fSats1 = (float)4 / (6 - fSatp1) * 256; |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
#define VPHAL_STE_GTO(dwSteFactor, fSatp1, fSats0, fSats1) \ |
| 80 |
fSatp1 = (-20) + ((9 - (float)dwSteFactor) * 2); \ |
| 81 |
fSats0 = (float)31 / (fSatp1 + 31) * 256; \ |
| 82 |
fSats1 = (float)31 / (31 - fSatp1) * 256; |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
#define VPHAL_CURBE_BLOCK_ALIGN_G7 32 |
| 88 |
|
| 89 |
|
| 90 |
struct MEDIA_DP_FC_STATIC_DATA |
| 91 |
{ |
| 92 |
|
| 93 |
union |
| 94 |
{ |
| 95 |
|
| 96 |
struct |
| 97 |
{ |
| 98 |
uint32_t CscConstantC0 : 16; |
| 99 |
uint32_t CscConstantC1 : 16; |
| 100 |
}; |
| 101 |
|
| 102 |
uint32_t Value; |
| 103 |
} DW0; |
| 104 |
|
| 105 |
|
| 106 |
union |
| 107 |
{ |
| 108 |
|
| 109 |
struct |
| 110 |
{ |
| 111 |
uint32_t CscConstantC2 : 16; |
| 112 |
uint32_t CscConstantC3 : 16; |
| 113 |
}; |
| 114 |
|
| 115 |
uint32_t Value; |
| 116 |
} DW1; |
| 117 |
|
| 118 |
|
| 119 |
union |
| 120 |
{ |
| 121 |
|
| 122 |
struct |
| 123 |
{ |
| 124 |
uint32_t CscConstantC4 : 16; |
| 125 |
uint32_t CscConstantC5 : 16; |
| 126 |
}; |
| 127 |
|
| 128 |
uint32_t Value; |
| 129 |
} DW2; |
| 130 |
|
| 131 |
|
| 132 |
union |
| 133 |
{ |
| 134 |
|
| 135 |
struct |
| 136 |
{ |
| 137 |
uint32_t CscConstantC6 : 16; |
| 138 |
uint32_t CscConstantC7 : 16; |
| 139 |
}; |
| 140 |
|
| 141 |
uint32_t Value; |
| 142 |
} DW3; |
| 143 |
|
| 144 |
|
| 145 |
union |
| 146 |
{ |
| 147 |
|
| 148 |
struct |
| 149 |
{ |
| 150 |
uint32_t CscConstantC8 : 16; |
| 151 |
uint32_t CscConstantC9 : 16; |
| 152 |
}; |
| 153 |
|
| 154 |
uint32_t Value; |
| 155 |
} DW4; |
| 156 |
|
| 157 |
|
| 158 |
union |
| 159 |
{ |
| 160 |
|
| 161 |
struct |
| 162 |
{ |
| 163 |
uint32_t CscConstantC10 : 16; |
| 164 |
uint32_t CscConstantC11 : 16; |
| 165 |
}; |
| 166 |
|
| 167 |
uint32_t Value; |
| 168 |
} DW5; |
| 169 |
|
| 170 |
|
| 171 |
union |
| 172 |
{ |
| 173 |
|
| 174 |
struct |
| 175 |
{ |
| 176 |
uint32_t InputPictureWidth : 16; |
| 177 |
uint32_t InputPictureHeight : 16; |
| 178 |
}; |
| 179 |
|
| 180 |
uint32_t Value; |
| 181 |
} DW6; |
| 182 |
|
| 183 |
|
| 184 |
union |
| 185 |
{ |
| 186 |
struct |
| 187 |
{ |
| 188 |
uint32_t DestinationRectangleWidth : 16; |
| 189 |
uint32_t DestinationRectangleHeight : 16; |
| 190 |
}; |
| 191 |
|
| 192 |
uint32_t Value; |
| 193 |
} DW7; |
| 194 |
|
| 195 |
|
| 196 |
union |
| 197 |
{ |
| 198 |
struct |
| 199 |
{ |
| 200 |
uint32_t RotationChromaSitingFlag; |
| 201 |
}; |
| 202 |
|
| 203 |
uint32_t Value; |
| 204 |
} DW8; |
| 205 |
|
| 206 |
|
| 207 |
union |
| 208 |
{ |
| 209 |
struct |
| 210 |
{ |
| 211 |
float HorizontalScalingStepRatioLayer0; |
| 212 |
}; |
| 213 |
|
| 214 |
uint32_t Value; |
| 215 |
} DW9; |
| 216 |
|
| 217 |
|
| 218 |
union |
| 219 |
{ |
| 220 |
struct |
| 221 |
{ |
| 222 |
float VerticalScalingStepRatioLayer0; |
| 223 |
}; |
| 224 |
|
| 225 |
uint32_t Value; |
| 226 |
} DW10; |
| 227 |
|
| 228 |
|
| 229 |
union |
| 230 |
{ |
| 231 |
struct |
| 232 |
{ |
| 233 |
float HorizontalFrameOriginLayer0; |
| 234 |
}; |
| 235 |
|
| 236 |
uint32_t Value; |
| 237 |
} DW11; |
| 238 |
|
| 239 |
|
| 240 |
union |
| 241 |
{ |
| 242 |
struct |
| 243 |
{ |
| 244 |
float VerticalFrameOriginLayer0; |
| 245 |
}; |
| 246 |
|
| 247 |
uint32_t Value; |
| 248 |
} DW12; |
| 249 |
|
| 250 |
|
| 251 |
union |
| 252 |
{ |
| 253 |
struct |
| 254 |
{ |
| 255 |
uint32_t DestXTopLeftLayer0 : 16; |
| 256 |
uint32_t DestYTopLeftLayer0 : 16; |
| 257 |
}; |
| 258 |
|
| 259 |
uint32_t Value; |
| 260 |
} DW13; |
| 261 |
|
| 262 |
|
| 263 |
union |
| 264 |
{ |
| 265 |
struct |
| 266 |
{ |
| 267 |
uint32_t DestXBottomRightLayer0 : 16; |
| 268 |
uint32_t DestYBottomRightLayer0 : 16; |
| 269 |
}; |
| 270 |
|
| 271 |
uint32_t Value; |
| 272 |
} DW14; |
| 273 |
|
| 274 |
|
| 275 |
union |
| 276 |
{ |
| 277 |
struct |
| 278 |
{ |
| 279 |
uint32_t waFlag : 16; |
| 280 |
uint32_t StatisticsSurfacePitch : 16; |
| 281 |
}; |
| 282 |
|
| 283 |
uint32_t Value; |
| 284 |
} DW15; |
| 285 |
|
| 286 |
}; |
| 287 |
|
| 288 |
struct MEDIA_WALKER_KA2_STATIC_DATA |
| 289 |
{ |
| 290 |
|
| 291 |
union |
| 292 |
{ |
| 293 |
|
| 294 |
struct |
| 295 |
{ |
| 296 |
uint32_t CscConstantC0 : 16; |
| 297 |
uint32_t CscConstantC1 : 16; |
| 298 |
}; |
| 299 |
|
| 300 |
|
| 301 |
struct |
| 302 |
{ |
| 303 |
uint32_t LocalDifferenceThresholdU : 8; |
| 304 |
uint32_t LocalDifferenceThresholdV : 8; |
| 305 |
uint32_t SobelEdgeThresholdU : 8; |
| 306 |
uint32_t SobelEdgeThresholdV : 8; |
| 307 |
}; |
| 308 |
|
| 309 |
|
| 310 |
struct |
| 311 |
{ |
| 312 |
uint32_t InputPictureWidth : 16; |
| 313 |
uint32_t InputPictureHeight : 16; |
| 314 |
}; |
| 315 |
|
| 316 |
uint32_t Value; |
| 317 |
} DW00; |
| 318 |
|
| 319 |
|
| 320 |
union |
| 321 |
{ |
| 322 |
|
| 323 |
struct |
| 324 |
{ |
| 325 |
uint32_t CscConstantC2 : 16; |
| 326 |
uint32_t CscConstantC3 : 16; |
| 327 |
}; |
| 328 |
|
| 329 |
|
| 330 |
struct |
| 331 |
{ |
| 332 |
uint32_t HistoryInitialValueU : 8; |
| 333 |
uint32_t HistoryInitialValueV : 8; |
| 334 |
uint32_t HistoryMaxU : 8; |
| 335 |
uint32_t HistoryMaxV : 8; |
| 336 |
}; |
| 337 |
|
| 338 |
|
| 339 |
struct |
| 340 |
{ |
| 341 |
uint32_t RotationMirrorMode : 8; |
| 342 |
uint32_t DestinationRGBFormat : 8; |
| 343 |
uint32_t : 16; |
| 344 |
}; |
| 345 |
|
| 346 |
uint32_t Value; |
| 347 |
} DW01; |
| 348 |
|
| 349 |
|
| 350 |
union |
| 351 |
{ |
| 352 |
|
| 353 |
struct |
| 354 |
{ |
| 355 |
uint32_t CscConstantC4 : 16; |
| 356 |
uint32_t CscConstantC5 : 16; |
| 357 |
}; |
| 358 |
|
| 359 |
|
| 360 |
struct |
| 361 |
{ |
| 362 |
uint32_t HistoryDeltaU : 8; |
| 363 |
uint32_t HistoryDeltaV : 8; |
| 364 |
uint32_t DNSADThresholdU : 8; |
| 365 |
uint32_t DNSADThresholdV : 8; |
| 366 |
}; |
| 367 |
|
| 368 |
|
| 369 |
struct |
| 370 |
{ |
| 371 |
uint32_t CscConstantC0 : 16; |
| 372 |
uint32_t CscConstantC1 : 16; |
| 373 |
}; |
| 374 |
|
| 375 |
uint32_t Value; |
| 376 |
} DW02; |
| 377 |
|
| 378 |
|
| 379 |
union |
| 380 |
{ |
| 381 |
|
| 382 |
struct |
| 383 |
{ |
| 384 |
uint32_t CscConstantC6 : 16; |
| 385 |
uint32_t CscConstantC7 : 16; |
| 386 |
}; |
| 387 |
|
| 388 |
|
| 389 |
struct |
| 390 |
{ |
| 391 |
uint32_t DNTDThresholdU : 8; |
| 392 |
uint32_t DNTDThresholdV : 8; |
| 393 |
uint32_t DNLTDThresholdU : 8; |
| 394 |
uint32_t DNLTDThresholdV : 8; |
| 395 |
}; |
| 396 |
|
| 397 |
|
| 398 |
struct |
| 399 |
{ |
| 400 |
uint32_t CscConstantC2 : 16; |
| 401 |
uint32_t CscConstantC3 : 16; |
| 402 |
}; |
| 403 |
|
| 404 |
uint32_t Value; |
| 405 |
} DW03; |
| 406 |
|
| 407 |
|
| 408 |
union |
| 409 |
{ |
| 410 |
|
| 411 |
struct |
| 412 |
{ |
| 413 |
uint32_t CscConstantC8 : 16; |
| 414 |
uint32_t CscConstantC9 : 16; |
| 415 |
}; |
| 416 |
|
| 417 |
|
| 418 |
struct |
| 419 |
{ |
| 420 |
uint32_t CscConstantC4 : 16; |
| 421 |
uint32_t CscConstantC5 : 16; |
| 422 |
}; |
| 423 |
|
| 424 |
uint32_t Value; |
| 425 |
} DW04; |
| 426 |
|
| 427 |
|
| 428 |
union |
| 429 |
{ |
| 430 |
|
| 431 |
struct |
| 432 |
{ |
| 433 |
uint32_t CscConstantC10 : 16; |
| 434 |
uint32_t CscConstantC11 : 16; |
| 435 |
}; |
| 436 |
|
| 437 |
|
| 438 |
struct |
| 439 |
{ |
| 440 |
uint32_t CscConstantC6 : 16; |
| 441 |
uint32_t CscConstantC7 : 16; |
| 442 |
}; |
| 443 |
|
| 444 |
uint32_t Value; |
| 445 |
} DW05; |
| 446 |
|
| 447 |
|
| 448 |
union |
| 449 |
{ |
| 450 |
|
| 451 |
struct |
| 452 |
{ |
| 453 |
uint32_t ConstantBlendingAlphaLayer1 : 8; |
| 454 |
uint32_t ConstantBlendingAlphaLayer2 : 8; |
| 455 |
uint32_t ConstantBlendingAlphaLayer3 : 8; |
| 456 |
uint32_t ConstantBlendingAlphaLayer4 : 8; |
| 457 |
}; |
| 458 |
|
| 459 |
|
| 460 |
struct |
| 461 |
{ |
| 462 |
uint32_t HalfStatisticsSurfacePitch : 16; |
| 463 |
uint32_t StatisticsSurfaceHeight : 16; |
| 464 |
}; |
| 465 |
|
| 466 |
|
| 467 |
struct |
| 468 |
{ |
| 469 |
uint32_t CscConstantC8 : 16; |
| 470 |
uint32_t CscConstantC9 : 16; |
| 471 |
}; |
| 472 |
|
| 473 |
uint32_t Value; |
| 474 |
} DW06; |
| 475 |
|
| 476 |
|
| 477 |
union |
| 478 |
{ |
| 479 |
|
| 480 |
struct |
| 481 |
{ |
| 482 |
uint32_t ConstantBlendingAlphaLayer5 : 8; |
| 483 |
uint32_t ConstantBlendingAlphaLayer6 : 8; |
| 484 |
uint32_t ConstantBlendingAlphaLayer7 : 8; |
| 485 |
uint32_t PointerToInlineParameters : 8; |
| 486 |
}; |
| 487 |
|
| 488 |
struct |
| 489 |
{ |
| 490 |
uint32_t ConstantBlendingAlphaLayer51 : 8; |
| 491 |
uint32_t ConstantBlendingAlphaLayer61 : 8; |
| 492 |
uint32_t ConstantBlendingAlphaLayer71 : 8; |
| 493 |
uint32_t OutputDepth : 8; |
| 494 |
}; |
| 495 |
|
| 496 |
|
| 497 |
struct |
| 498 |
{ |
| 499 |
uint32_t TopFieldFirst : 8; |
| 500 |
uint32_t : 24; |
| 501 |
}; |
| 502 |
|
| 503 |
|
| 504 |
struct |
| 505 |
{ |
| 506 |
uint32_t CscConstantC10 : 16; |
| 507 |
uint32_t CscConstantC11 : 16; |
| 508 |
}; |
| 509 |
|
| 510 |
uint32_t Value; |
| 511 |
} DW07; |
| 512 |
|
| 513 |
|
| 514 |
union |
| 515 |
{ |
| 516 |
struct |
| 517 |
{ |
| 518 |
uint32_t DestinationRectangleWidth : 16; |
| 519 |
uint32_t DestinationRectangleHeight : 16; |
| 520 |
}; |
| 521 |
|
| 522 |
|
| 523 |
struct |
| 524 |
{ |
| 525 |
uint32_t InputIndex : 32; |
| 526 |
}; |
| 527 |
|
| 528 |
uint32_t Value; |
| 529 |
} DW08; |
| 530 |
|
| 531 |
|
| 532 |
union |
| 533 |
{ |
| 534 |
|
| 535 |
struct |
| 536 |
{ |
| 537 |
uint32_t RotationMirrorMode : 3; |
| 538 |
uint32_t RotationMirrorAllLayer : 1; |
| 539 |
uint32_t DualOutputMode : 1; |
| 540 |
uint32_t : 11; |
| 541 |
uint32_t ChannelSwap : 1; |
| 542 |
uint32_t : 1; |
| 543 |
uint32_t : 1; |
| 544 |
uint32_t : 13; |
| 545 |
}; |
| 546 |
|
| 547 |
|
| 548 |
struct |
| 549 |
{ |
| 550 |
uint32_t : 3; |
| 551 |
uint32_t : 1; |
| 552 |
uint32_t : 12; |
| 553 |
uint32_t : 1; |
| 554 |
uint32_t : 10; |
| 555 |
uint32_t IEFByPassEnable : 1; |
| 556 |
uint32_t : 4; |
| 557 |
}; |
| 558 |
|
| 559 |
|
| 560 |
struct |
| 561 |
{ |
| 562 |
uint32_t : 5; |
| 563 |
uint32_t : 3; |
| 564 |
uint32_t : 8; |
| 565 |
uint32_t : 1; |
| 566 |
uint32_t : 1; |
| 567 |
uint32_t AlphaChannelCalculation : 1; |
| 568 |
uint32_t : 8; |
| 569 |
uint32_t : 1; |
| 570 |
uint32_t : 4; |
| 571 |
}; |
| 572 |
|
| 573 |
|
| 574 |
struct |
| 575 |
{ |
| 576 |
uint32_t OutputIndex : 32; |
| 577 |
}; |
| 578 |
|
| 579 |
uint32_t Value; |
| 580 |
} DW09; |
| 581 |
|
| 582 |
|
| 583 |
union |
| 584 |
{ |
| 585 |
struct |
| 586 |
{ |
| 587 |
uint32_t ChromaSitingLocation : 3; |
| 588 |
uint32_t : 29; |
| 589 |
}; |
| 590 |
|
| 591 |
uint32_t Value; |
| 592 |
} DW10; |
| 593 |
|
| 594 |
|
| 595 |
union |
| 596 |
{ |
| 597 |
uint32_t Value; |
| 598 |
} DW11; |
| 599 |
|
| 600 |
|
| 601 |
union |
| 602 |
{ |
| 603 |
|
| 604 |
struct |
| 605 |
{ |
| 606 |
uint32_t ColorProcessingEnable : 1; |
| 607 |
uint32_t : 1; |
| 608 |
uint32_t MessageFormat : 2; |
| 609 |
uint32_t : 1; |
| 610 |
uint32_t ColorProcessingStatePointer : 27; |
| 611 |
}; |
| 612 |
|
| 613 |
uint32_t Value; |
| 614 |
} DW12; |
| 615 |
|
| 616 |
|
| 617 |
union |
| 618 |
{ |
| 619 |
|
| 620 |
struct |
| 621 |
{ |
| 622 |
uint32_t ColorFill_R : 8; |
| 623 |
uint32_t ColorFill_G : 8; |
| 624 |
uint32_t ColorFill_B : 8; |
| 625 |
uint32_t ColorFill_A : 8; |
| 626 |
}; |
| 627 |
|
| 628 |
|
| 629 |
struct |
| 630 |
{ |
| 631 |
uint32_t ColorFill_V : 8; |
| 632 |
uint32_t ColorFill_Y : 8; |
| 633 |
uint32_t ColorFill_U : 8; |
| 634 |
uint32_t : 8; |
| 635 |
}; |
| 636 |
|
| 637 |
uint32_t Value; |
| 638 |
} DW13; |
| 639 |
|
| 640 |
|
| 641 |
union |
| 642 |
{ |
| 643 |
|
| 644 |
struct |
| 645 |
{ |
| 646 |
uint32_t LumakeyLowThreshold : 8; |
| 647 |
uint32_t LumakeyHighThreshold : 8; |
| 648 |
uint32_t NLASEnable : 8; |
| 649 |
uint32_t Reserved : 8; |
| 650 |
}; |
| 651 |
|
| 652 |
uint32_t Value; |
| 653 |
} DW14; |
| 654 |
|
| 655 |
|
| 656 |
union |
| 657 |
{ |
| 658 |
|
| 659 |
struct |
| 660 |
{ |
| 661 |
uint8_t DestinationPackedYOffset; |
| 662 |
uint8_t DestinationPackedUOffset; |
| 663 |
uint8_t DestinationPackedVOffset; |
| 664 |
uint8_t DestinationRGBFormat; |
| 665 |
}; |
| 666 |
|
| 667 |
uint32_t Value; |
| 668 |
} DW15; |
| 669 |
|
| 670 |
|
| 671 |
union |
| 672 |
{ |
| 673 |
|
| 674 |
struct |
| 675 |
{ |
| 676 |
float HorizontalScalingStepRatioLayer0; |
| 677 |
}; |
| 678 |
|
| 679 |
uint32_t Value; |
| 680 |
} DW16; |
| 681 |
|
| 682 |
|
| 683 |
union |
| 684 |
{ |
| 685 |
|
| 686 |
struct |
| 687 |
{ |
| 688 |
float HorizontalScalingStepRatioLayer1; |
| 689 |
}; |
| 690 |
|
| 691 |
uint32_t Value; |
| 692 |
} DW17; |
| 693 |
|
| 694 |
|
| 695 |
union |
| 696 |
{ |
| 697 |
|
| 698 |
struct |
| 699 |
{ |
| 700 |
float HorizontalScalingStepRatioLayer2; |
| 701 |
}; |
| 702 |
|
| 703 |
uint32_t Value; |
| 704 |
} DW18; |
| 705 |
|
| 706 |
|
| 707 |
union |
| 708 |
{ |
| 709 |
|
| 710 |
struct |
| 711 |
{ |
| 712 |
float HorizontalScalingStepRatioLayer3; |
| 713 |
}; |
| 714 |
|
| 715 |
uint32_t Value; |
| 716 |
} DW19; |
| 717 |
|
| 718 |
|
| 719 |
union |
| 720 |
{ |
| 721 |
|
| 722 |
struct |
| 723 |
{ |
| 724 |
float HorizontalScalingStepRatioLayer4; |
| 725 |
}; |
| 726 |
|
| 727 |
uint32_t Value; |
| 728 |
} DW20; |
| 729 |
|
| 730 |
|
| 731 |
union |
| 732 |
{ |
| 733 |
|
| 734 |
struct |
| 735 |
{ |
| 736 |
float HorizontalScalingStepRatioLayer5; |
| 737 |
}; |
| 738 |
|
| 739 |
uint32_t Value; |
| 740 |
} DW21; |
| 741 |
|
| 742 |
|
| 743 |
union |
| 744 |
{ |
| 745 |
|
| 746 |
struct |
| 747 |
{ |
| 748 |
float HorizontalScalingStepRatioLayer6; |
| 749 |
}; |
| 750 |
|
| 751 |
uint32_t Value; |
| 752 |
} DW22; |
| 753 |
|
| 754 |
|
| 755 |
union |
| 756 |
{ |
| 757 |
|
| 758 |
struct |
| 759 |
{ |
| 760 |
float HorizontalScalingStepRatioLayer7; |
| 761 |
}; |
| 762 |
|
| 763 |
uint32_t Value; |
| 764 |
} DW23; |
| 765 |
|
| 766 |
|
| 767 |
union |
| 768 |
{ |
| 769 |
|
| 770 |
struct |
| 771 |
{ |
| 772 |
float VerticalScalingStepRatioLayer0; |
| 773 |
}; |
| 774 |
|
| 775 |
|
| 776 |
struct |
| 777 |
{ |
| 778 |
uint8_t SourcePackedYOffset; |
| 779 |
uint8_t SourcePackedUOffset; |
| 780 |
uint8_t SourcePackedVOffset; |
| 781 |
uint8_t Reserved; |
| 782 |
}; |
| 783 |
|
| 784 |
uint32_t Value; |
| 785 |
} DW24; |
| 786 |
|
| 787 |
|
| 788 |
union |
| 789 |
{ |
| 790 |
|
| 791 |
struct |
| 792 |
{ |
| 793 |
float VerticalScalingStepRatioLayer1; |
| 794 |
}; |
| 795 |
|
| 796 |
uint32_t Value; |
| 797 |
} DW25; |
| 798 |
|
| 799 |
|
| 800 |
union |
| 801 |
{ |
| 802 |
|
| 803 |
struct |
| 804 |
{ |
| 805 |
float VerticalScalingStepRatioLayer2; |
| 806 |
}; |
| 807 |
|
| 808 |
|
| 809 |
struct |
| 810 |
{ |
| 811 |
uint32_t HorizontalFrameOriginOffset : 16; |
| 812 |
uint32_t VerticalFrameOriginOffset : 16; |
| 813 |
}; |
| 814 |
|
| 815 |
uint32_t Value; |
| 816 |
} DW26; |
| 817 |
|
| 818 |
|
| 819 |
union |
| 820 |
{ |
| 821 |
|
| 822 |
struct |
| 823 |
{ |
| 824 |
float VerticalScalingStepRatioLayer3; |
| 825 |
}; |
| 826 |
|
| 827 |
uint32_t Value; |
| 828 |
} DW27; |
| 829 |
|
| 830 |
|
| 831 |
union |
| 832 |
{ |
| 833 |
|
| 834 |
struct |
| 835 |
{ |
| 836 |
float VerticalScalingStepRatioLayer4; |
| 837 |
}; |
| 838 |
|
| 839 |
uint32_t Value; |
| 840 |
} DW28; |
| 841 |
|
| 842 |
|
| 843 |
union |
| 844 |
{ |
| 845 |
|
| 846 |
struct |
| 847 |
{ |
| 848 |
float VerticalScalingStepRatioLayer5; |
| 849 |
}; |
| 850 |
|
| 851 |
uint32_t Value; |
| 852 |
} DW29; |
| 853 |
|
| 854 |
|
| 855 |
union |
| 856 |
{ |
| 857 |
|
| 858 |
struct |
| 859 |
{ |
| 860 |
float VerticalScalingStepRatioLayer6; |
| 861 |
}; |
| 862 |
|
| 863 |
uint32_t Value; |
| 864 |
} DW30; |
| 865 |
|
| 866 |
|
| 867 |
union |
| 868 |
{ |
| 869 |
|
| 870 |
struct |
| 871 |
{ |
| 872 |
float VerticalScalingStepRatioLayer7; |
| 873 |
}; |
| 874 |
|
| 875 |
uint32_t Value; |
| 876 |
} DW31; |
| 877 |
|
| 878 |
|
| 879 |
union |
| 880 |
{ |
| 881 |
|
| 882 |
struct |
| 883 |
{ |
| 884 |
float VerticalFrameOriginLayer0; |
| 885 |
}; |
| 886 |
|
| 887 |
uint32_t Value; |
| 888 |
} DW32; |
| 889 |
|
| 890 |
|
| 891 |
union |
| 892 |
{ |
| 893 |
|
| 894 |
struct |
| 895 |
{ |
| 896 |
float VerticalFrameOriginLayer1; |
| 897 |
}; |
| 898 |
|
| 899 |
uint32_t Value; |
| 900 |
} DW33; |
| 901 |
|
| 902 |
|
| 903 |
union |
| 904 |
{ |
| 905 |
|
| 906 |
struct |
| 907 |
{ |
| 908 |
float VerticalFrameOriginLayer2; |
| 909 |
}; |
| 910 |
|
| 911 |
uint32_t Value; |
| 912 |
} DW34; |
| 913 |
|
| 914 |
|
| 915 |
union |
| 916 |
{ |
| 917 |
|
| 918 |
struct |
| 919 |
{ |
| 920 |
float VerticalFrameOriginLayer3; |
| 921 |
}; |
| 922 |
|
| 923 |
uint32_t Value; |
| 924 |
} DW35; |
| 925 |
|
| 926 |
|
| 927 |
union |
| 928 |
{ |
| 929 |
|
| 930 |
struct |
| 931 |
{ |
| 932 |
float VerticalFrameOriginLayer4; |
| 933 |
}; |
| 934 |
|
| 935 |
uint32_t Value; |
| 936 |
} DW36; |
| 937 |
|
| 938 |
|
| 939 |
union |
| 940 |
{ |
| 941 |
|
| 942 |
struct |
| 943 |
{ |
| 944 |
float VerticalFrameOriginLayer5; |
| 945 |
}; |
| 946 |
|
| 947 |
uint32_t Value; |
| 948 |
} DW37; |
| 949 |
|
| 950 |
|
| 951 |
union |
| 952 |
{ |
| 953 |
|
| 954 |
struct |
| 955 |
{ |
| 956 |
float VerticalFrameOriginLayer6; |
| 957 |
}; |
| 958 |
|
| 959 |
uint32_t Value; |
| 960 |
} DW38; |
| 961 |
|
| 962 |
|
| 963 |
union |
| 964 |
{ |
| 965 |
|
| 966 |
struct |
| 967 |
{ |
| 968 |
float VerticalFrameOriginLayer7; |
| 969 |
}; |
| 970 |
|
| 971 |
uint32_t Value; |
| 972 |
} DW39; |
| 973 |
|
| 974 |
|
| 975 |
union |
| 976 |
{ |
| 977 |
|
| 978 |
struct |
| 979 |
{ |
| 980 |
float HorizontalFrameOriginLayer0; |
| 981 |
}; |
| 982 |
|
| 983 |
uint32_t Value; |
| 984 |
} DW40; |
| 985 |
|
| 986 |
|
| 987 |
union |
| 988 |
{ |
| 989 |
|
| 990 |
struct |
| 991 |
{ |
| 992 |
float HorizontalFrameOriginLayer1; |
| 993 |
}; |
| 994 |
|
| 995 |
uint32_t Value; |
| 996 |
} DW41; |
| 997 |
|
| 998 |
|
| 999 |
union |
| 1000 |
{ |
| 1001 |
|
| 1002 |
struct |
| 1003 |
{ |
| 1004 |
float HorizontalFrameOriginLayer2; |
| 1005 |
}; |
| 1006 |
|
| 1007 |
uint32_t Value; |
| 1008 |
} DW42; |
| 1009 |
|
| 1010 |
|
| 1011 |
union |
| 1012 |
{ |
| 1013 |
|
| 1014 |
struct |
| 1015 |
{ |
| 1016 |
float HorizontalFrameOriginLayer3; |
| 1017 |
}; |
| 1018 |
|
| 1019 |
uint32_t Value; |
| 1020 |
} DW43; |
| 1021 |
|
| 1022 |
|
| 1023 |
union |
| 1024 |
{ |
| 1025 |
|
| 1026 |
struct |
| 1027 |
{ |
| 1028 |
float HorizontalFrameOriginLayer4; |
| 1029 |
}; |
| 1030 |
|
| 1031 |
uint32_t Value; |
| 1032 |
} DW44; |
| 1033 |
|
| 1034 |
|
| 1035 |
union |
| 1036 |
{ |
| 1037 |
|
| 1038 |
struct |
| 1039 |
{ |
| 1040 |
float HorizontalFrameOriginLayer5; |
| 1041 |
}; |
| 1042 |
|
| 1043 |
uint32_t Value; |
| 1044 |
} DW45; |
| 1045 |
|
| 1046 |
|
| 1047 |
union |
| 1048 |
{ |
| 1049 |
|
| 1050 |
struct |
| 1051 |
{ |
| 1052 |
float HorizontalFrameOriginLayer6; |
| 1053 |
}; |
| 1054 |
|
| 1055 |
uint32_t Value; |
| 1056 |
} DW46; |
| 1057 |
|
| 1058 |
|
| 1059 |
union |
| 1060 |
{ |
| 1061 |
|
| 1062 |
struct |
| 1063 |
{ |
| 1064 |
float HorizontalFrameOriginLayer7; |
| 1065 |
}; |
| 1066 |
|
| 1067 |
uint32_t Value; |
| 1068 |
} DW47; |
| 1069 |
|
| 1070 |
|
| 1071 |
union |
| 1072 |
{ |
| 1073 |
struct |
| 1074 |
{ |
| 1075 |
uint32_t DestXTopLeftLayer0 : BITFIELD_RANGE(0,15); |
| 1076 |
uint32_t DestYTopLeftLayer0 : BITFIELD_RANGE(16,31); |
| 1077 |
}; |
| 1078 |
|
| 1079 |
uint32_t Value; |
| 1080 |
} DW48; |
| 1081 |
|
| 1082 |
|
| 1083 |
union |
| 1084 |
{ |
| 1085 |
struct |
| 1086 |
{ |
| 1087 |
uint32_t DestXTopLeftLayer1 : BITFIELD_RANGE(0,15); |
| 1088 |
uint32_t DestYTopLeftLayer1 : BITFIELD_RANGE(16,31); |
| 1089 |
}; |
| 1090 |
|
| 1091 |
uint32_t Value; |
| 1092 |
} DW49; |
| 1093 |
|
| 1094 |
|
| 1095 |
union |
| 1096 |
{ |
| 1097 |
struct |
| 1098 |
{ |
| 1099 |
uint32_t DestXTopLeftLayer2 : BITFIELD_RANGE(0,15); |
| 1100 |
uint32_t DestYTopLeftLayer2 : BITFIELD_RANGE(16,31); |
| 1101 |
}; |
| 1102 |
|
| 1103 |
uint32_t Value; |
| 1104 |
} DW50; |
| 1105 |
|
| 1106 |
|
| 1107 |
union |
| 1108 |
{ |
| 1109 |
struct |
| 1110 |
{ |
| 1111 |
uint32_t DestXTopLeftLayer3 : BITFIELD_RANGE(0,15); |
| 1112 |
uint32_t DestYTopLeftLayer3 : BITFIELD_RANGE(16,31); |
| 1113 |
}; |
| 1114 |
|
| 1115 |
uint32_t Value; |
| 1116 |
} DW51; |
| 1117 |
|
| 1118 |
|
| 1119 |
union |
| 1120 |
{ |
| 1121 |
struct |
| 1122 |
{ |
| 1123 |
uint32_t DestXTopLeftLayer4 : BITFIELD_RANGE(0,15); |
| 1124 |
uint32_t DestYTopLeftLayer4 : BITFIELD_RANGE(16,31); |
| 1125 |
}; |
| 1126 |
|
| 1127 |
uint32_t Value; |
| 1128 |
} DW52; |
| 1129 |
|
| 1130 |
|
| 1131 |
union |
| 1132 |
{ |
| 1133 |
struct |
| 1134 |
{ |
| 1135 |
uint32_t DestXTopLeftLayer5 : BITFIELD_RANGE(0,15); |
| 1136 |
uint32_t DestYTopLeftLayer5 : BITFIELD_RANGE(16,31); |
| 1137 |
}; |
| 1138 |
|
| 1139 |
uint32_t Value; |
| 1140 |
} DW53; |
| 1141 |
|
| 1142 |
|
| 1143 |
union |
| 1144 |
{ |
| 1145 |
struct |
| 1146 |
{ |
| 1147 |
uint32_t DestXTopLeftLayer6 : BITFIELD_RANGE(0,15); |
| 1148 |
uint32_t DestYTopLeftLayer6 : BITFIELD_RANGE(16,31); |
| 1149 |
}; |
| 1150 |
|
| 1151 |
uint32_t Value; |
| 1152 |
} DW54; |
| 1153 |
|
| 1154 |
|
| 1155 |
union |
| 1156 |
{ |
| 1157 |
struct |
| 1158 |
{ |
| 1159 |
uint32_t DestXTopLeftLayer7 : BITFIELD_RANGE(0,15); |
| 1160 |
uint32_t DestYTopLeftLayer7 : BITFIELD_RANGE(16,31); |
| 1161 |
}; |
| 1162 |
|
| 1163 |
uint32_t Value; |
| 1164 |
} DW55; |
| 1165 |
|
| 1166 |
|
| 1167 |
union |
| 1168 |
{ |
| 1169 |
struct |
| 1170 |
{ |
| 1171 |
uint32_t DestXBottomRightLayer0 : BITFIELD_RANGE(0,15); |
| 1172 |
uint32_t DestYBottomRightLayer0 : BITFIELD_RANGE(16,31); |
| 1173 |
}; |
| 1174 |
|
| 1175 |
uint32_t Value; |
| 1176 |
} DW56; |
| 1177 |
|
| 1178 |
|
| 1179 |
union |
| 1180 |
{ |
| 1181 |
struct |
| 1182 |
{ |
| 1183 |
uint32_t DestXBottomRightLayer1 : BITFIELD_RANGE(0,15); |
| 1184 |
uint32_t DestYBottomRightLayer1 : BITFIELD_RANGE(16,31); |
| 1185 |
}; |
| 1186 |
|
| 1187 |
uint32_t Value; |
| 1188 |
} DW57; |
| 1189 |
|
| 1190 |
|
| 1191 |
union |
| 1192 |
{ |
| 1193 |
struct |
| 1194 |
{ |
| 1195 |
uint32_t DestXBottomRightLayer2 : BITFIELD_RANGE(0,15); |
| 1196 |
uint32_t DestYBottomRightLayer2 : BITFIELD_RANGE(16,31); |
| 1197 |
}; |
| 1198 |
|
| 1199 |
uint32_t Value; |
| 1200 |
} DW58; |
| 1201 |
|
| 1202 |
|
| 1203 |
union |
| 1204 |
{ |
| 1205 |
struct |
| 1206 |
{ |
| 1207 |
uint32_t DestXBottomRightLayer3 : BITFIELD_RANGE(0,15); |
| 1208 |
uint32_t DestYBottomRightLayer3 : BITFIELD_RANGE(16,31); |
| 1209 |
}; |
| 1210 |
|
| 1211 |
uint32_t Value; |
| 1212 |
} DW59; |
| 1213 |
|
| 1214 |
|
| 1215 |
union |
| 1216 |
{ |
| 1217 |
struct |
| 1218 |
{ |
| 1219 |
uint32_t DestXBottomRightLayer4 : BITFIELD_RANGE(0,15); |
| 1220 |
uint32_t DestYBottomRightLayer4 : BITFIELD_RANGE(16,31); |
| 1221 |
}; |
| 1222 |
|
| 1223 |
uint32_t Value; |
| 1224 |
} DW60; |
| 1225 |
|
| 1226 |
|
| 1227 |
union |
| 1228 |
{ |
| 1229 |
struct |
| 1230 |
{ |
| 1231 |
uint32_t DestXBottomRightLayer5 : BITFIELD_RANGE(0,15); |
| 1232 |
uint32_t DestYBottomRightLayer5 : BITFIELD_RANGE(16,31); |
| 1233 |
}; |
| 1234 |
|
| 1235 |
uint32_t Value; |
| 1236 |
} DW61; |
| 1237 |
|
| 1238 |
|
| 1239 |
union |
| 1240 |
{ |
| 1241 |
struct |
| 1242 |
{ |
| 1243 |
uint32_t DestXBottomRightLayer6 : BITFIELD_RANGE(0,15); |
| 1244 |
uint32_t DestYBottomRightLayer6 : BITFIELD_RANGE(16,31); |
| 1245 |
}; |
| 1246 |
|
| 1247 |
uint32_t Value; |
| 1248 |
} DW62; |
| 1249 |
|
| 1250 |
|
| 1251 |
union |
| 1252 |
{ |
| 1253 |
struct |
| 1254 |
{ |
| 1255 |
uint32_t DestXBottomRightLayer7 : BITFIELD_RANGE(0,15); |
| 1256 |
uint32_t DestYBottomRightLayer7 : BITFIELD_RANGE(16,31); |
| 1257 |
}; |
| 1258 |
|
| 1259 |
uint32_t Value; |
| 1260 |
} DW63; |
| 1261 |
|
| 1262 |
|
| 1263 |
union |
| 1264 |
{ |
| 1265 |
struct |
| 1266 |
{ |
| 1267 |
float MainVideoXScalingStepLeft; |
| 1268 |
}; |
| 1269 |
|
| 1270 |
uint32_t Value; |
| 1271 |
} DW64; |
| 1272 |
|
| 1273 |
|
| 1274 |
union |
| 1275 |
{ |
| 1276 |
struct |
| 1277 |
{ |
| 1278 |
float VideoStepDeltaForNonLinearRegion; |
| 1279 |
}; |
| 1280 |
|
| 1281 |
uint32_t Value; |
| 1282 |
} DW65; |
| 1283 |
|
| 1284 |
|
| 1285 |
union |
| 1286 |
{ |
| 1287 |
struct |
| 1288 |
{ |
| 1289 |
uint32_t StartofLinearScalingInPixelPositionC0 : BITFIELD_RANGE(0,15); |
| 1290 |
uint32_t StartofRHSNonLinearScalingInPixelPositionC1 : BITFIELD_RANGE(16,31); |
| 1291 |
}; |
| 1292 |
|
| 1293 |
uint32_t Value; |
| 1294 |
} DW66; |
| 1295 |
|
| 1296 |
|
| 1297 |
union |
| 1298 |
{ |
| 1299 |
|
| 1300 |
struct |
| 1301 |
{ |
| 1302 |
float MainVideoXScalingStepCenter; |
| 1303 |
}; |
| 1304 |
|
| 1305 |
uint32_t Value; |
| 1306 |
} DW67; |
| 1307 |
|
| 1308 |
|
| 1309 |
union |
| 1310 |
{ |
| 1311 |
|
| 1312 |
struct |
| 1313 |
{ |
| 1314 |
float MainVideoXScalingStepRight; |
| 1315 |
}; |
| 1316 |
|
| 1317 |
uint32_t Value; |
| 1318 |
} DW68; |
| 1319 |
|
| 1320 |
|
| 1321 |
union |
| 1322 |
{ |
| 1323 |
struct |
| 1324 |
{ |
| 1325 |
uint32_t DestHorizontalBlockOrigin : BITFIELD_RANGE(0,15); |
| 1326 |
uint32_t DestVerticalBlockOrigin : BITFIELD_RANGE(16,31); |
| 1327 |
}; |
| 1328 |
|
| 1329 |
uint32_t Value; |
| 1330 |
} DW69; |
| 1331 |
|
| 1332 |
|
| 1333 |
uint32_t dwPad[2]; |
| 1334 |
}; |
| 1335 |
|
| 1336 |
|
| 1337 |
struct MEDIA_OBJECT_KA2_STATIC_DATA |
| 1338 |
{ |
| 1339 |
|
| 1340 |
union |
| 1341 |
{ |
| 1342 |
|
| 1343 |
struct |
| 1344 |
{ |
| 1345 |
uint32_t CscConstantC0 : 16; |
| 1346 |
uint32_t CscConstantC1 : 16; |
| 1347 |
}; |
| 1348 |
|
| 1349 |
|
| 1350 |
struct |
| 1351 |
{ |
| 1352 |
uint32_t LocalDifferenceThresholdU : 8; |
| 1353 |
uint32_t LocalDifferenceThresholdV : 8; |
| 1354 |
uint32_t SobelEdgeThresholdU : 8; |
| 1355 |
uint32_t SobelEdgeThresholdV : 8; |
| 1356 |
}; |
| 1357 |
|
| 1358 |
uint32_t Value; |
| 1359 |
} DW00; |
| 1360 |
|
| 1361 |
|
| 1362 |
union |
| 1363 |
{ |
| 1364 |
|
| 1365 |
struct |
| 1366 |
{ |
| 1367 |
uint32_t CscConstantC2 : 16; |
| 1368 |
uint32_t CscConstantC3 : 16; |
| 1369 |
}; |
| 1370 |
|
| 1371 |
|
| 1372 |
struct |
| 1373 |
{ |
| 1374 |
uint32_t HistoryInitialValueU : 8; |
| 1375 |
uint32_t HistoryInitialValueV : 8; |
| 1376 |
uint32_t HistoryMaxU : 8; |
| 1377 |
uint32_t HistoryMaxV : 8; |
| 1378 |
}; |
| 1379 |
|
| 1380 |
uint32_t Value; |
| 1381 |
} DW01; |
| 1382 |
|
| 1383 |
|
| 1384 |
union |
| 1385 |
{ |
| 1386 |
|
| 1387 |
struct |
| 1388 |
{ |
| 1389 |
uint32_t CscConstantC4 : 16; |
| 1390 |
uint32_t CscConstantC5 : 16; |
| 1391 |
}; |
| 1392 |
|
| 1393 |
|
| 1394 |
struct |
| 1395 |
{ |
| 1396 |
uint32_t HistoryDeltaU : 8; |
| 1397 |
uint32_t HistoryDeltaV : 8; |
| 1398 |
uint32_t DNSADThresholdU : 8; |
| 1399 |
uint32_t DNSADThresholdV : 8; |
| 1400 |
}; |
| 1401 |
|
| 1402 |
uint32_t Value; |
| 1403 |
} DW02; |
| 1404 |
|
| 1405 |
|
| 1406 |
union |
| 1407 |
{ |
| 1408 |
|
| 1409 |
struct |
| 1410 |
{ |
| 1411 |
uint32_t CscConstantC6 : 16; |
| 1412 |
uint32_t CscConstantC7 : 16; |
| 1413 |
}; |
| 1414 |
|
| 1415 |
|
| 1416 |
struct |
| 1417 |
{ |
| 1418 |
uint32_t DNTDThresholdU : 8; |
| 1419 |
uint32_t DNTDThresholdV : 8; |
| 1420 |
uint32_t DNLTDThresholdU : 8; |
| 1421 |
uint32_t DNLTDThresholdV : 8; |
| 1422 |
}; |
| 1423 |
|
| 1424 |
uint32_t Value; |
| 1425 |
} DW03; |
| 1426 |
|
| 1427 |
|
| 1428 |
union |
| 1429 |
{ |
| 1430 |
|
| 1431 |
struct |
| 1432 |
{ |
| 1433 |
uint32_t CscConstantC8 : 16; |
| 1434 |
uint32_t CscConstantC9 : 16; |
| 1435 |
}; |
| 1436 |
|
| 1437 |
uint32_t Value; |
| 1438 |
} DW04; |
| 1439 |
|
| 1440 |
|
| 1441 |
union |
| 1442 |
{ |
| 1443 |
|
| 1444 |
struct |
| 1445 |
{ |
| 1446 |
uint32_t CscConstantC10 : 16; |
| 1447 |
uint32_t CscConstantC11 : 16; |
| 1448 |
}; |
| 1449 |
|
| 1450 |
uint32_t Value; |
| 1451 |
} DW05; |
| 1452 |
|
| 1453 |
|
| 1454 |
union |
| 1455 |
{ |
| 1456 |
|
| 1457 |
struct |
| 1458 |
{ |
| 1459 |
uint32_t ConstantBlendingAlphaLayer1 : 8; |
| 1460 |
uint32_t ConstantBlendingAlphaLayer2 : 8; |
| 1461 |
uint32_t ConstantBlendingAlphaLayer3 : 8; |
| 1462 |
uint32_t ConstantBlendingAlphaLayer4 : 8; |
| 1463 |
}; |
| 1464 |
|
| 1465 |
|
| 1466 |
struct |
| 1467 |
{ |
| 1468 |
uint32_t HalfStatisticsSurfacePitch : 16; |
| 1469 |
uint32_t StatisticsSurfaceHeight : 16; |
| 1470 |
}; |
| 1471 |
|
| 1472 |
uint32_t Value; |
| 1473 |
} DW06; |
| 1474 |
|
| 1475 |
|
| 1476 |
union |
| 1477 |
{ |
| 1478 |
|
| 1479 |
struct |
| 1480 |
{ |
| 1481 |
uint32_t ConstantBlendingAlphaLayer5 : 8; |
| 1482 |
uint32_t ConstantBlendingAlphaLayer6 : 8; |
| 1483 |
uint32_t ConstantBlendingAlphaLayer7 : 8; |
| 1484 |
uint32_t PointerToInlineParameters : 8; |
| 1485 |
}; |
| 1486 |
|
| 1487 |
struct |
| 1488 |
{ |
| 1489 |
uint32_t ConstantBlendingAlphaLayer51 : 8; |
| 1490 |
uint32_t ConstantBlendingAlphaLayer61 : 8; |
| 1491 |
uint32_t ConstantBlendingAlphaLayer71 : 8; |
| 1492 |
uint32_t OutputDepth : 8; |
| 1493 |
}; |
| 1494 |
|
| 1495 |
|
| 1496 |
struct |
| 1497 |
{ |
| 1498 |
uint32_t TopFieldFirst : 8; |
| 1499 |
uint32_t : 24; |
| 1500 |
}; |
| 1501 |
|
| 1502 |
uint32_t Value; |
| 1503 |
} DW07; |
| 1504 |
|
| 1505 |
|
| 1506 |
union |
| 1507 |
{ |
| 1508 |
struct |
| 1509 |
{ |
| 1510 |
uint32_t DestinationRectangleWidth : 16; |
| 1511 |
uint32_t DestinationRectangleHeight : 16; |
| 1512 |
}; |
| 1513 |
|
| 1514 |
uint32_t Value; |
| 1515 |
} DW08; |
| 1516 |
|
| 1517 |
|
| 1518 |
union |
| 1519 |
{ |
| 1520 |
struct |
| 1521 |
{ |
| 1522 |
uint32_t RotationMirrorMode : 3; |
| 1523 |
uint32_t RotationMirrorAllLayer : 1; |
| 1524 |
uint32_t DualOutputMode : 1; |
| 1525 |
uint32_t : 11; |
| 1526 |
uint32_t ChannelSwap : 1; |
| 1527 |
uint32_t : 1; |
| 1528 |
uint32_t : 1; |
| 1529 |
uint32_t : 13; |
| 1530 |
}; |
| 1531 |
|
| 1532 |
|
| 1533 |
struct |
| 1534 |
{ |
| 1535 |
uint32_t : 8; |
| 1536 |
uint32_t : 8; |
| 1537 |
uint32_t ChannelSwap : 1; |
| 1538 |
uint32_t AlphaChannelCalculation : 1; |
| 1539 |
uint32_t : 9; |
| 1540 |
uint32_t IEFByPassEnable : 1; |
| 1541 |
uint32_t : 4; |
| 1542 |
}ObjKa2Gen8; |
| 1543 |
|
| 1544 |
|
| 1545 |
struct |
| 1546 |
{ |
| 1547 |
uint32_t : 5; |
| 1548 |
uint32_t : 3; |
| 1549 |
uint32_t : 8; |
| 1550 |
uint32_t ChannelSwap : 1; |
| 1551 |
uint32_t DitheringAvdFlag : 1; |
| 1552 |
uint32_t AlphaChannelCalculation : 1; |
| 1553 |
uint32_t : 8; |
| 1554 |
uint32_t IEFByPassEnable : 1; |
| 1555 |
uint32_t : 4; |
| 1556 |
}ObjKa2Gen9; |
| 1557 |
|
| 1558 |
uint32_t Value; |
| 1559 |
} DW09; |
| 1560 |
|
| 1561 |
|
| 1562 |
union |
| 1563 |
{ |
| 1564 |
struct |
| 1565 |
{ |
| 1566 |
uint32_t ChromaSitingLocation : 3; |
| 1567 |
uint32_t : 29; |
| 1568 |
}; |
| 1569 |
|
| 1570 |
struct |
| 1571 |
{ |
| 1572 |
uint32_t RotationAngleofLayer0 : 3; |
| 1573 |
uint32_t RotationAngleofLayer1 : 3; |
| 1574 |
uint32_t RotationAngleofLayer2 : 3; |
| 1575 |
uint32_t RotationAngleofLayer3 : 3; |
| 1576 |
uint32_t RotationAngleofLayer4 : 3; |
| 1577 |
uint32_t RotationAngleofLayer5 : 3; |
| 1578 |
uint32_t RotationAngleofLayer6 : 3; |
| 1579 |
uint32_t RotationAngleofLayer7 : 3; |
| 1580 |
uint32_t ChromaSitingLocation : 3; |
| 1581 |
uint32_t MonoXORCompositeMask : 3; |
| 1582 |
uint32_t : 2; |
| 1583 |
} ObjKa2Gen9; |
| 1584 |
|
| 1585 |
uint32_t Value; |
| 1586 |
} DW10; |
| 1587 |
|
| 1588 |
|
| 1589 |
union |
| 1590 |
{ |
| 1591 |
struct |
| 1592 |
{ |
| 1593 |
float TopBottomDelta; |
| 1594 |
}; |
| 1595 |
|
| 1596 |
struct |
| 1597 |
{ |
| 1598 |
float ChromasitingUOffset; |
| 1599 |
}; |
| 1600 |
|
| 1601 |
uint32_t Value; |
| 1602 |
} DW11; |
| 1603 |
|
| 1604 |
|
| 1605 |
union |
| 1606 |
{ |
| 1607 |
|
| 1608 |
struct |
| 1609 |
{ |
| 1610 |
uint32_t ColorProcessingEnable : 1; |
| 1611 |
uint32_t : 1; |
| 1612 |
uint32_t MessageFormat : 2; |
| 1613 |
uint32_t : 1; |
| 1614 |
uint32_t ColorProcessingStatePointer : 27; |
| 1615 |
}; |
| 1616 |
|
| 1617 |
struct |
| 1618 |
{ |
| 1619 |
float TopBottomDelta; |
| 1620 |
}; |
| 1621 |
|
| 1622 |
struct |
| 1623 |
{ |
| 1624 |
float ChromasitingVOffset; |
| 1625 |
}; |
| 1626 |
|
| 1627 |
uint32_t Value; |
| 1628 |
} DW12; |
| 1629 |
|
| 1630 |
|
| 1631 |
union |
| 1632 |
{ |
| 1633 |
|
| 1634 |
struct |
| 1635 |
{ |
| 1636 |
uint32_t ColorFill_R : 8; |
| 1637 |
uint32_t ColorFill_G : 8; |
| 1638 |
uint32_t ColorFill_B : 8; |
| 1639 |
uint32_t ColorFill_A : 8; |
| 1640 |
}; |
| 1641 |
|
| 1642 |
|
| 1643 |
struct |
| 1644 |
{ |
| 1645 |
uint32_t ColorFill_V : 8; |
| 1646 |
uint32_t ColorFill_Y : 8; |
| 1647 |
uint32_t ColorFill_U : 8; |
| 1648 |
uint32_t : 8; |
| 1649 |
}; |
| 1650 |
|
| 1651 |
uint32_t Value; |
| 1652 |
} DW13; |
| 1653 |
|
| 1654 |
|
| 1655 |
union |
| 1656 |
{ |
| 1657 |
|
| 1658 |
struct |
| 1659 |
{ |
| 1660 |
uint32_t LumakeyLowThreshold : 8; |
| 1661 |
uint32_t LumakeyHighThreshold : 8; |
| 1662 |
uint32_t NLASEnable : 8; |
| 1663 |
uint32_t Reserved : 8; |
| 1664 |
}; |
| 1665 |
|
| 1666 |
uint32_t Value; |
| 1667 |
} DW14; |
| 1668 |
|
| 1669 |
|
| 1670 |
union |
| 1671 |
{ |
| 1672 |
|
| 1673 |
struct |
| 1674 |
{ |
| 1675 |
uint8_t DestinationPackedYOffset; |
| 1676 |
uint8_t DestinationPackedUOffset; |
| 1677 |
uint8_t DestinationPackedVOffset; |
| 1678 |
uint8_t DestinationRGBFormat; |
| 1679 |
}; |
| 1680 |
|
| 1681 |
uint32_t Value; |
| 1682 |
} DW15; |
| 1683 |
|
| 1684 |
|
| 1685 |
union |
| 1686 |
{ |
| 1687 |
|
| 1688 |
struct |
| 1689 |
{ |
| 1690 |
float HorizontalScalingStepRatioLayer0; |
| 1691 |
}; |
| 1692 |
|
| 1693 |
uint32_t Value; |
| 1694 |
} DW16; |
| 1695 |
|
| 1696 |
|
| 1697 |
union |
| 1698 |
{ |
| 1699 |
|
| 1700 |
struct |
| 1701 |
{ |
| 1702 |
float HorizontalScalingStepRatioLayer1; |
| 1703 |
}; |
| 1704 |
|
| 1705 |
uint32_t Value; |
| 1706 |
} DW17; |
| 1707 |
|
| 1708 |
|
| 1709 |
union |
| 1710 |
{ |
| 1711 |
|
| 1712 |
struct |
| 1713 |
{ |
| 1714 |
float HorizontalScalingStepRatioLayer2; |
| 1715 |
}; |
| 1716 |
|
| 1717 |
uint32_t Value; |
| 1718 |
} DW18; |
| 1719 |
|
| 1720 |
|
| 1721 |
union |
| 1722 |
{ |
| 1723 |
|
| 1724 |
struct |
| 1725 |
{ |
| 1726 |
float HorizontalScalingStepRatioLayer3; |
| 1727 |
}; |
| 1728 |
|
| 1729 |
uint32_t Value; |
| 1730 |
} DW19; |
| 1731 |
|
| 1732 |
|
| 1733 |
union |
| 1734 |
{ |
| 1735 |
|
| 1736 |
struct |
| 1737 |
{ |
| 1738 |
float HorizontalScalingStepRatioLayer4; |
| 1739 |
}; |
| 1740 |
|
| 1741 |
uint32_t Value; |
| 1742 |
} DW20; |
| 1743 |
|
| 1744 |
|
| 1745 |
union |
| 1746 |
{ |
| 1747 |
|
| 1748 |
struct |
| 1749 |
{ |
| 1750 |
float HorizontalScalingStepRatioLayer5; |
| 1751 |
}; |
| 1752 |
|
| 1753 |
uint32_t Value; |
| 1754 |
} DW21; |
| 1755 |
|
| 1756 |
|
| 1757 |
union |
| 1758 |
{ |
| 1759 |
|
| 1760 |
struct |
| 1761 |
{ |
| 1762 |
float HorizontalScalingStepRatioLayer6; |
| 1763 |
}; |
| 1764 |
|
| 1765 |
uint32_t Value; |
| 1766 |
} DW22; |
| 1767 |
|
| 1768 |
|
| 1769 |
union |
| 1770 |
{ |
| 1771 |
|
| 1772 |
struct |
| 1773 |
{ |
| 1774 |
float HorizontalScalingStepRatioLayer7; |
| 1775 |
}; |
| 1776 |
|
| 1777 |
uint32_t Value; |
| 1778 |
} DW23; |
| 1779 |
|
| 1780 |
|
| 1781 |
union |
| 1782 |
{ |
| 1783 |
|
| 1784 |
struct |
| 1785 |
{ |
| 1786 |
float VerticalScalingStepRatioLayer0; |
| 1787 |
}; |
| 1788 |
|
| 1789 |
|
| 1790 |
struct |
| 1791 |
{ |
| 1792 |
uint8_t SourcePackedYOffset; |
| 1793 |
uint8_t SourcePackedUOffset; |
| 1794 |
uint8_t SourcePackedVOffset; |
| 1795 |
uint8_t Reserved; |
| 1796 |
}; |
| 1797 |
|
| 1798 |
uint32_t Value; |
| 1799 |
} DW24; |
| 1800 |
|
| 1801 |
|
| 1802 |
union |
| 1803 |
{ |
| 1804 |
|
| 1805 |
struct |
| 1806 |
{ |
| 1807 |
float VerticalScalingStepRatioLayer1; |
| 1808 |
}; |
| 1809 |
|
| 1810 |
uint32_t Value; |
| 1811 |
} DW25; |
| 1812 |
|
| 1813 |
|
| 1814 |
union |
| 1815 |
{ |
| 1816 |
|
| 1817 |
struct |
| 1818 |
{ |
| 1819 |
float VerticalScalingStepRatioLayer2; |
| 1820 |
}; |
| 1821 |
|
| 1822 |
|
| 1823 |
struct |
| 1824 |
{ |
| 1825 |
uint32_t HorizontalFrameOriginOffset : 16; |
| 1826 |
uint32_t VerticalFrameOriginOffset : 16; |
| 1827 |
}; |
| 1828 |
|
| 1829 |
uint32_t Value; |
| 1830 |
} DW26; |
| 1831 |
|
| 1832 |
|
| 1833 |
union |
| 1834 |
{ |
| 1835 |
|
| 1836 |
struct |
| 1837 |
{ |
| 1838 |
float VerticalScalingStepRatioLayer3; |
| 1839 |
}; |
| 1840 |
|
| 1841 |
uint32_t Value; |
| 1842 |
} DW27; |
| 1843 |
|
| 1844 |
|
| 1845 |
union |
| 1846 |
{ |
| 1847 |
|
| 1848 |
struct |
| 1849 |
{ |
| 1850 |
float VerticalScalingStepRatioLayer4; |
| 1851 |
}; |
| 1852 |
|
| 1853 |
uint32_t Value; |
| 1854 |
} DW28; |
| 1855 |
|
| 1856 |
|
| 1857 |
union |
| 1858 |
{ |
| 1859 |
|
| 1860 |
struct |
| 1861 |
{ |
| 1862 |
float VerticalScalingStepRatioLayer5; |
| 1863 |
}; |
| 1864 |
|
| 1865 |
uint32_t Value; |
| 1866 |
} DW29; |
| 1867 |
|
| 1868 |
|
| 1869 |
union |
| 1870 |
{ |
| 1871 |
|
| 1872 |
struct |
| 1873 |
{ |
| 1874 |
float VerticalScalingStepRatioLayer6; |
| 1875 |
}; |
| 1876 |
|
| 1877 |
uint32_t Value; |
| 1878 |
} DW30; |
| 1879 |
|
| 1880 |
|
| 1881 |
union |
| 1882 |
{ |
| 1883 |
|
| 1884 |
struct |
| 1885 |
{ |
| 1886 |
float VerticalScalingStepRatioLayer7; |
| 1887 |
}; |
| 1888 |
|
| 1889 |
uint32_t Value; |
| 1890 |
} DW31; |
| 1891 |
|
| 1892 |
|
| 1893 |
union |
| 1894 |
{ |
| 1895 |
|
| 1896 |
struct |
| 1897 |
{ |
| 1898 |
float VerticalFrameOriginLayer0; |
| 1899 |
}; |
| 1900 |
|
| 1901 |
uint32_t Value; |
| 1902 |
} DW32; |
| 1903 |
|
| 1904 |
|
| 1905 |
union |
| 1906 |
{ |
| 1907 |
|
| 1908 |
struct |
| 1909 |
{ |
| 1910 |
float VerticalFrameOriginLayer1; |
| 1911 |
}; |
| 1912 |
|
| 1913 |
uint32_t Value; |
| 1914 |
} DW33; |
| 1915 |
|
| 1916 |
|
| 1917 |
union |
| 1918 |
{ |
| 1919 |
|
| 1920 |
struct |
| 1921 |
{ |
| 1922 |
float VerticalFrameOriginLayer2; |
| 1923 |
}; |
| 1924 |
|
| 1925 |
uint32_t Value; |
| 1926 |
} DW34; |
| 1927 |
|
| 1928 |
|
| 1929 |
union |
| 1930 |
{ |
| 1931 |
|
| 1932 |
struct |
| 1933 |
{ |
| 1934 |
float VerticalFrameOriginLayer3; |
| 1935 |
}; |
| 1936 |
|
| 1937 |
uint32_t Value; |
| 1938 |
} DW35; |
| 1939 |
|
| 1940 |
|
| 1941 |
union |
| 1942 |
{ |
| 1943 |
|
| 1944 |
struct |
| 1945 |
{ |
| 1946 |
float VerticalFrameOriginLayer4; |
| 1947 |
}; |
| 1948 |
|
| 1949 |
uint32_t Value; |
| 1950 |
} DW36; |
| 1951 |
|
| 1952 |
|
| 1953 |
union |
| 1954 |
{ |
| 1955 |
|
| 1956 |
struct |
| 1957 |
{ |
| 1958 |
float VerticalFrameOriginLayer5; |
| 1959 |
}; |
| 1960 |
|
| 1961 |
uint32_t Value; |
| 1962 |
} DW37; |
| 1963 |
|
| 1964 |
|
| 1965 |
union |
| 1966 |
{ |
| 1967 |
|
| 1968 |
struct |
| 1969 |
{ |
| 1970 |
float VerticalFrameOriginLayer6; |
| 1971 |
}; |
| 1972 |
|
| 1973 |
uint32_t Value; |
| 1974 |
} DW38; |
| 1975 |
|
| 1976 |
|
| 1977 |
union |
| 1978 |
{ |
| 1979 |
|
| 1980 |
struct |
| 1981 |
{ |
| 1982 |
float VerticalFrameOriginLayer7; |
| 1983 |
}; |
| 1984 |
|
| 1985 |
uint32_t Value; |
| 1986 |
} DW39; |
| 1987 |
|
| 1988 |
|
| 1989 |
union |
| 1990 |
{ |
| 1991 |
|
| 1992 |
struct |
| 1993 |
{ |
| 1994 |
float HorizontalFrameOriginLayer0; |
| 1995 |
}; |
| 1996 |
|
| 1997 |
uint32_t Value; |
| 1998 |
} DW40; |
| 1999 |
|
| 2000 |
|
| 2001 |
union |
| 2002 |
{ |
| 2003 |
|
| 2004 |
struct |
| 2005 |
{ |
| 2006 |
float HorizontalFrameOriginLayer1; |
| 2007 |
}; |
| 2008 |
|
| 2009 |
uint32_t Value; |
| 2010 |
} DW41; |
| 2011 |
|
| 2012 |
|
| 2013 |
union |
| 2014 |
{ |
| 2015 |
|
| 2016 |
struct |
| 2017 |
{ |
| 2018 |
float HorizontalFrameOriginLayer2; |
| 2019 |
}; |
| 2020 |
|
| 2021 |
uint32_t Value; |
| 2022 |
} DW42; |
| 2023 |
|
| 2024 |
|
| 2025 |
union |
| 2026 |
{ |
| 2027 |
|
| 2028 |
struct |
| 2029 |
{ |
| 2030 |
float HorizontalFrameOriginLayer3; |
| 2031 |
}; |
| 2032 |
|
| 2033 |
uint32_t Value; |
| 2034 |
} DW43; |
| 2035 |
|
| 2036 |
|
| 2037 |
union |
| 2038 |
{ |
| 2039 |
|
| 2040 |
struct |
| 2041 |
{ |
| 2042 |
float HorizontalFrameOriginLayer4; |
| 2043 |
}; |
| 2044 |
|
| 2045 |
uint32_t Value; |
| 2046 |
} DW44; |
| 2047 |
|
| 2048 |
|
| 2049 |
union |
| 2050 |
{ |
| 2051 |
|
| 2052 |
struct |
| 2053 |
{ |
| 2054 |
float HorizontalFrameOriginLayer5; |
| 2055 |
}; |
| 2056 |
|
| 2057 |
uint32_t Value; |
| 2058 |
} DW45; |
| 2059 |
|
| 2060 |
|
| 2061 |
union |
| 2062 |
{ |
| 2063 |
|
| 2064 |
struct |
| 2065 |
{ |
| 2066 |
float HorizontalFrameOriginLayer6; |
| 2067 |
}; |
| 2068 |
|
| 2069 |
uint32_t Value; |
| 2070 |
} DW46; |
| 2071 |
|
| 2072 |
|
| 2073 |
union |
| 2074 |
{ |
| 2075 |
|
| 2076 |
struct |
| 2077 |
{ |
| 2078 |
float HorizontalFrameOriginLayer7; |
| 2079 |
}; |
| 2080 |
|
| 2081 |
uint32_t Value; |
| 2082 |
} DW47; |
| 2083 |
}; |
| 2084 |
|
| 2085 |
struct MEDIA_OBJECT_KA2_INLINE_DATA |
| 2086 |
{ |
| 2087 |
|
| 2088 |
union |
| 2089 |
{ |
| 2090 |
|
| 2091 |
struct |
| 2092 |
{ |
| 2093 |
uint32_t DestinationBlockHorizontalOrigin : 16; |
| 2094 |
uint32_t DestinationBlockVerticalOrigin : 16; |
| 2095 |
}; |
| 2096 |
|
| 2097 |
|
| 2098 |
struct |
| 2099 |
{ |
| 2100 |
uint32_t BlockHeight : 16; |
| 2101 |
uint32_t BufferOffset : 16; |
| 2102 |
}; |
| 2103 |
|
| 2104 |
|
| 2105 |
struct |
| 2106 |
{ |
| 2107 |
uint32_t StartRowOffset; |
| 2108 |
}; |
| 2109 |
|
| 2110 |
uint32_t Value; |
| 2111 |
} DW00; |
| 2112 |
|
| 2113 |
|
| 2114 |
union |
| 2115 |
{ |
| 2116 |
|
| 2117 |
struct |
| 2118 |
{ |
| 2119 |
uint32_t HorizontalBlockCompositeMaskLayer0 : 16; |
| 2120 |
uint32_t VerticalBlockCompositeMaskLayer0 : 16; |
| 2121 |
}; |
| 2122 |
|
| 2123 |
|
| 2124 |
struct |
| 2125 |
{ |
| 2126 |
uint32_t TotalRows; |
| 2127 |
}; |
| 2128 |
|
| 2129 |
uint32_t Value; |
| 2130 |
} DW01; |
| 2131 |
|
| 2132 |
|
| 2133 |
union |
| 2134 |
{ |
| 2135 |
|
| 2136 |
struct |
| 2137 |
{ |
| 2138 |
uint32_t HorizontalBlockCompositeMaskLayer1 : 16; |
| 2139 |
uint32_t VerticalBlockCompositeMaskLayer1 : 16; |
| 2140 |
}; |
| 2141 |
|
| 2142 |
|
| 2143 |
struct |
| 2144 |
{ |
| 2145 |
uint32_t StartColumnOffset; |
| 2146 |
}; |
| 2147 |
|
| 2148 |
uint32_t Value; |
| 2149 |
} DW02; |
| 2150 |
|
| 2151 |
|
| 2152 |
union |
| 2153 |
{ |
| 2154 |
|
| 2155 |
struct |
| 2156 |
{ |
| 2157 |
uint32_t HorizontalBlockCompositeMaskLayer2 : 16; |
| 2158 |
uint32_t VerticalBlockCompositeMaskLayer2 : 16; |
| 2159 |
}; |
| 2160 |
|
| 2161 |
|
| 2162 |
struct |
| 2163 |
{ |
| 2164 |
uint32_t TotalColumns; |
| 2165 |
}; |
| 2166 |
|
| 2167 |
uint32_t Value; |
| 2168 |
} DW03; |
| 2169 |
|
| 2170 |
|
| 2171 |
union |
| 2172 |
{ |
| 2173 |
|
| 2174 |
struct |
| 2175 |
{ |
| 2176 |
float VideoXScalingStep; |
| 2177 |
}; |
| 2178 |
|
| 2179 |
uint32_t Value; |
| 2180 |
} DW04; |
| 2181 |
|
| 2182 |
|
| 2183 |
union |
| 2184 |
{ |
| 2185 |
|
| 2186 |
struct |
| 2187 |
{ |
| 2188 |
float VideoStepDelta; |
| 2189 |
}; |
| 2190 |
|
| 2191 |
uint32_t Value; |
| 2192 |
} DW05; |
| 2193 |
|
| 2194 |
|
| 2195 |
union |
| 2196 |
{ |
| 2197 |
|
| 2198 |
struct |
| 2199 |
{ |
| 2200 |
uint32_t VerticalBlockNumber :17; |
| 2201 |
uint32_t AreaOfInterest :1; |
| 2202 |
uint32_t :14; |
| 2203 |
}; |
| 2204 |
|
| 2205 |
uint32_t Value; |
| 2206 |
} DW06; |
| 2207 |
|
| 2208 |
|
| 2209 |
union |
| 2210 |
{ |
| 2211 |
|
| 2212 |
struct |
| 2213 |
{ |
| 2214 |
uint32_t GroupIDNumber; |
| 2215 |
}; |
| 2216 |
|
| 2217 |
uint32_t Value; |
| 2218 |
} DW07; |
| 2219 |
|
| 2220 |
|
| 2221 |
union |
| 2222 |
{ |
| 2223 |
|
| 2224 |
struct |
| 2225 |
{ |
| 2226 |
uint32_t HorizontalBlockCompositeMaskLayer3 : 16; |
| 2227 |
uint32_t VerticalBlockCompositeMaskLayer3 : 16; |
| 2228 |
}; |
| 2229 |
|
| 2230 |
uint32_t Value; |
| 2231 |
} DW08; |
| 2232 |
|
| 2233 |
|
| 2234 |
union |
| 2235 |
{ |
| 2236 |
|
| 2237 |
struct |
| 2238 |
{ |
| 2239 |
uint32_t HorizontalBlockCompositeMaskLayer4 : 16; |
| 2240 |
uint32_t VerticalBlockCompositeMaskLayer4 : 16; |
| 2241 |
}; |
| 2242 |
|
| 2243 |
uint32_t Value; |
| 2244 |
} DW09; |
| 2245 |
|
| 2246 |
|
| 2247 |
union |
| 2248 |
{ |
| 2249 |
|
| 2250 |
struct |
| 2251 |
{ |
| 2252 |
uint32_t HorizontalBlockCompositeMaskLayer5 : 16; |
| 2253 |
uint32_t VerticalBlockCompositeMaskLayer5 : 16; |
| 2254 |
}; |
| 2255 |
|
| 2256 |
uint32_t Value; |
| 2257 |
} DW10; |
| 2258 |
|
| 2259 |
|
| 2260 |
union |
| 2261 |
{ |
| 2262 |
|
| 2263 |
struct |
| 2264 |
{ |
| 2265 |
uint32_t HorizontalBlockCompositeMaskLayer6 : 16; |
| 2266 |
uint32_t VerticalBlockCompositeMaskLayer6 : 16; |
| 2267 |
}; |
| 2268 |
|
| 2269 |
uint32_t Value; |
| 2270 |
} DW11; |
| 2271 |
|
| 2272 |
|
| 2273 |
union |
| 2274 |
{ |
| 2275 |
|
| 2276 |
struct |
| 2277 |
{ |
| 2278 |
uint32_t HorizontalBlockCompositeMaskLayer7 : 16; |
| 2279 |
uint32_t VerticalBlockCompositeMaskLayer7 : 16; |
| 2280 |
}; |
| 2281 |
|
| 2282 |
uint32_t Value; |
| 2283 |
} DW12; |
| 2284 |
|
| 2285 |
|
| 2286 |
union |
| 2287 |
{ |
| 2288 |
struct |
| 2289 |
{ |
| 2290 |
uint32_t Reserved; |
| 2291 |
}; |
| 2292 |
|
| 2293 |
uint32_t Value; |
| 2294 |
} DW13; |
| 2295 |
|
| 2296 |
|
| 2297 |
union |
| 2298 |
{ |
| 2299 |
struct |
| 2300 |
{ |
| 2301 |
uint32_t Reserved; |
| 2302 |
}; |
| 2303 |
|
| 2304 |
uint32_t Value; |
| 2305 |
} DW14; |
| 2306 |
|
| 2307 |
|
| 2308 |
union |
| 2309 |
{ |
| 2310 |
struct |
| 2311 |
{ |
| 2312 |
uint32_t Reserved; |
| 2313 |
}; |
| 2314 |
|
| 2315 |
uint32_t Value; |
| 2316 |
} DW15; |
| 2317 |
}; |
| 2318 |
|
| 2319 |
extern const MEDIA_OBJECT_KA2_INLINE_DATA g_cInit_MEDIA_OBJECT_KA2_INLINE_DATA; |
| 2320 |
|
| 2321 |
|
| 2322 |
|
| 2323 |
|
| 2324 |
typedef enum _VEBOX_EXECUTION_MODE |
| 2325 |
{ |
| 2326 |
VEBOX_EXEC_MODE_0 = 0, |
| 2327 |
VEBOX_EXEC_MODE_0_TO_2 = 1, |
| 2328 |
VEBOX_EXEC_MODE_2 = 2, |
| 2329 |
VEBOX_EXEC_MODE_2_TO_0 = 3 |
| 2330 |
} VEBOX_EXECUTION_MODE; |
| 2331 |
|
| 2332 |
#define MAX_VEBOX_EXECUTION_MODE 4 |
| 2333 |
|
| 2334 |
|
| 2335 |
|
| 2336 |
typedef struct _VPHAL_VEBOX_EXEC_STATE |
| 2337 |
{ |
| 2338 |
bool bEnable = false; |
| 2339 |
VEBOX_EXECUTION_MODE Mode = VEBOX_EXEC_MODE_0; |
| 2340 |
bool bDIOutputPair01 = false; |
| 2341 |
bool bSpeculativeCopy = false; |
| 2342 |
bool bFrcActive = false; |
| 2343 |
bool bPostponedFMDCalc = false; |
| 2344 |
uint32_t ModeCount[MAX_VEBOX_EXECUTION_MODE] = {0}; |
| 2345 |
} VPHAL_VEBOX_EXEC_STATE, *PVPHAL_VEBOX_EXEC_STATE; |
| 2346 |
|
| 2347 |
#define RESET_VEBOX_SPECULATIVE_COPY(_a) (_a->bSpeculativeCopy = false) |
| 2348 |
|
| 2349 |
|
| 2350 |
|
| 2351 |
|
| 2352 |
#define REQUEST_VEBOX_SPECULATIVE_COPY(_a) (_a->bSpeculativeCopy = true) |
| 2353 |
#define IS_VEBOX_SPECULATIVE_COPY_REQUESTED(_a) (_a->bSpeculativeCopy == true) |
| 2354 |
#define SET_VEBOX_EXECUTION_MODE(_a, _Mode) \ |
| 2355 |
{ \ |
| 2356 |
(_a->Mode = _Mode); \ |
| 2357 |
VPHAL_RENDER_NORMALMESSAGE("VEBOX_EXECUTION_MODE %d", _Mode); \ |
| 2358 |
} |
| 2359 |
#define IS_VEBOX_EXECUTION_MODE_PARALLEL_CAPABLE(_a) (_a->bEnable == true) |
| 2360 |
#define IS_VEBOX_EXECUTION_MODE_0(_a) (_a->Mode == VEBOX_EXEC_MODE_0) |
| 2361 |
#define IS_VEBOX_EXECUTION_MODE_0_TO_2(_a) (_a->Mode == VEBOX_EXEC_MODE_0_TO_2) |
| 2362 |
#define IS_VEBOX_EXECUTION_MODE_2(_a) (_a->Mode == VEBOX_EXEC_MODE_2) |
| 2363 |
#define IS_VEBOX_EXECUTION_MODE_2_TO_0(_a) (_a->Mode == VEBOX_EXEC_MODE_2_TO_0) |
| 2364 |
#define VEBOX_EXECUTION_OVERRIDE_ENABLE 1 |
| 2365 |
#define VEBOX_EXECUTION_OVERRIDE_DISABLE 2 |
| 2366 |
#define RESET_VEBOX_POSTPONED_FMD_CALC(_a) (_a->bPostponedFMDCalc = false) |
| 2367 |
|
| 2368 |
|
| 2369 |
|
| 2370 |
|
| 2371 |
#define REQUEST_VEBOX_POSTPONED_FMD_CALC(_a) (_a->bPostponedFMDCalc = true) |
| 2372 |
#define IS_VEBOX_POSTPONED_FMD_CALC_REQUESTED(_a) (_a->bPostponedFMDCalc == true) |
| 2373 |
|
| 2374 |
|
| 2375 |
|
| 2376 |
|
| 2377 |
|
| 2378 |
#define VPHAL_SAMPLER_BIAS_GEN575 0.015625f |
| 2379 |
#define VPHAL_HW_LINEAR_SHIFT 0.5f |
| 2380 |
#define FIRST_FRAME -1024 |
| 2381 |
|
| 2382 |
|
| 2383 |
|
| 2384 |
|
| 2385 |
#define GRF_SIZE (8 * sizeof(uint32_t)) |
| 2386 |
|
| 2387 |
|
| 2388 |
|
| 2389 |
|
| 2390 |
#define VPHAL_COMP_MAX_LAYERS 8 |
| 2391 |
#define CM_MAX_KERNELS_PER_TASK 16 |
| 2392 |
|
| 2393 |
#define VPHAL_BB_ALIGN_SIZE 32768 |
| 2394 |
|
| 2395 |
|
| 2396 |
|
| 2397 |
|
| 2398 |
|
| 2399 |
|
| 2400 |
|
| 2401 |
|
| 2402 |
|
| 2403 |
|
| 2404 |
#define VPHAL_L3_CACHE_CONFIG_SQCREG1_VALUE_G75 0x00610000 |
| 2405 |
#define VPHAL_L3_CACHE_CONFIG_CNTLREG2_VALUE_G75 0x00880040 |
| 2406 |
#define VPHAL_L3_CACHE_CONFIG_CNTLREG3_VALUE_G75 0x00000000 |
| 2407 |
#define VPHAL_L3_CACHE_CONFIG_L3LRA1REG_VALUE_G75 0x27FD007F |
| 2408 |
|
| 2409 |
|
| 2410 |
|
| 2411 |
|
| 2412 |
#define INIT_MHW_KERNEL_PARAM(MhwKernelParam, _pKernelEntry) \ |
| 2413 |
do \ |
| 2414 |
{ \ |
| 2415 |
MOS_ZeroMemory(&(MhwKernelParam), sizeof(MhwKernelParam)); \ |
| 2416 |
(MhwKernelParam).pBinary = (_pKernelEntry)->pBinary; \ |
| 2417 |
(MhwKernelParam).iSize = (_pKernelEntry)->iSize; \ |
| 2418 |
(MhwKernelParam).iKUID = (_pKernelEntry)->iKUID; \ |
| 2419 |
(MhwKernelParam).iKCID = (_pKernelEntry)->iKCID; \ |
| 2420 |
(MhwKernelParam).iPaddingSize = (_pKernelEntry)->iPaddingSize; \ |
| 2421 |
} while(0) |
| 2422 |
|
| 2423 |
|
| 2424 |
|
| 2425 |
|
| 2426 |
typedef enum _VPHAL_ISTAB_PHASE |
| 2427 |
{ |
| 2428 |
ISTAB_PH_NONE = -1, |
| 2429 |
ISTAB_PH1_DS , |
| 2430 |
ISTAB_PH2_ME , |
| 2431 |
ISTAB_PH3_GMC , |
| 2432 |
ISTAB_PH4_FW , |
| 2433 |
ISTAB_PH_MAX |
| 2434 |
} VPHAL_ISTAB_PHASE; |
| 2435 |
|
| 2436 |
typedef struct _VPHAL_BATCH_BUFFER *PVPHAL_BATCH_BUFFER; |
| 2437 |
|
| 2438 |
|
| 2439 |
|
| 2440 |
|
| 2441 |
typedef struct _VPHAL_BB_COMP_ARGS |
| 2442 |
{ |
| 2443 |
int32_t iMediaID; |
| 2444 |
float fStepX; |
| 2445 |
int32_t iLayers; |
| 2446 |
RECT rcOutput; |
| 2447 |
RECT rcDst[VPHAL_COMP_MAX_LAYERS]; |
| 2448 |
bool bSkipBlocks; |
| 2449 |
bool bEnableNLAS; |
| 2450 |
VPHAL_ROTATION Rotation[VPHAL_COMP_MAX_LAYERS]; |
| 2451 |
VPHAL_NLAS_PARAMS NLASParams; |
| 2452 |
} VPHAL_BB_COMP_ARGS, *PVPHAL_BB_COMP_ARGS; |
| 2453 |
|
| 2454 |
|
| 2455 |
|
| 2456 |
|
| 2457 |
typedef struct |
| 2458 |
{ |
| 2459 |
int32_t iMediaID; |
| 2460 |
uint32_t uiKuid; |
| 2461 |
uint32_t uiParamId; |
| 2462 |
} VPHAL_BB_GENERIC_ARGS, *PVPHAL_BB_GENERIC_ARGS; |
| 2463 |
|
| 2464 |
|
| 2465 |
|
| 2466 |
|
| 2467 |
typedef struct _VPHAL_ADVPROC_BB_ARGS |
| 2468 |
{ |
| 2469 |
int32_t iMediaID; |
| 2470 |
RECT rcDst; |
| 2471 |
int32_t BlockWd; |
| 2472 |
int32_t BlockHt; |
| 2473 |
} VPHAL_ADVPROC_BB_ARGS, *PVPHAL_ADVPROC_BB_ARGS; |
| 2474 |
|
| 2475 |
|
| 2476 |
|
| 2477 |
|
| 2478 |
typedef struct _VPHAL_ISTAB_BB_ARGS |
| 2479 |
{ |
| 2480 |
VPHAL_ISTAB_PHASE IStabPhase; |
| 2481 |
uint32_t dwWidth; |
| 2482 |
uint32_t dwHeight; |
| 2483 |
} VPHAL_ISTAB_BB_ARGS, *PVPHAL_ISTAB_BB_ARGS; |
| 2484 |
|
| 2485 |
|
| 2486 |
|
| 2487 |
|
| 2488 |
typedef enum _VPHAL_BB_TYPE |
| 2489 |
{ |
| 2490 |
VPHAL_BB_TYPE_COMPOSITING, |
| 2491 |
VPHAL_BB_TYPE_ADVANCED, |
| 2492 |
VPHAL_BB_TYPE_GENERIC, |
| 2493 |
VPHAL_BB_TYPE_PRIVATE |
| 2494 |
} VPHAL_BB_TYPE; |
| 2495 |
|
| 2496 |
|
| 2497 |
|
| 2498 |
|
| 2499 |
typedef struct _VPHAL_BB_CM_ARGS |
| 2500 |
{ |
| 2501 |
uint64_t uiKernelIds[CM_MAX_KERNELS_PER_TASK]; |
| 2502 |
uint64_t uiRefCount; |
| 2503 |
bool bLatest; |
| 2504 |
} VPHAL_BB_CM_ARGS, *PVPHAL_BB_CM_ARGS; |
| 2505 |
|
| 2506 |
|
| 2507 |
|
| 2508 |
|
| 2509 |
typedef struct _VPHAL_BATCH_BUFFER_PARAMS |
| 2510 |
{ |
| 2511 |
bool bMatch; |
| 2512 |
int32_t iCallID; |
| 2513 |
VPHAL_BB_TYPE iType; |
| 2514 |
int32_t iSize; |
| 2515 |
union |
| 2516 |
{ |
| 2517 |
VPHAL_BB_COMP_ARGS CompositeBB; |
| 2518 |
VPHAL_ADVPROC_BB_ARGS AdvProcBB; |
| 2519 |
VPHAL_BB_GENERIC_ARGS BbGenericArgs; |
| 2520 |
VPHAL_BB_CM_ARGS BbCmArgs; |
| 2521 |
} BbArgs; |
| 2522 |
} VPHAL_BATCH_BUFFER_PARAMS, *PVPHAL_BATCH_BUFFER_PARAMS; |
| 2523 |
|
| 2524 |
typedef struct _VPHAL_BATCH_BUFFER |
| 2525 |
{ |
| 2526 |
MOS_RESOURCE OsResource; |
| 2527 |
int32_t iSize; |
| 2528 |
int32_t iCurrent; |
| 2529 |
bool bLocked; |
| 2530 |
uint8_t* pData; |
| 2531 |
|
| 2532 |
|
| 2533 |
bool bBusy; |
| 2534 |
uint32_t dwSyncTag; |
| 2535 |
PVPHAL_BATCH_BUFFER pNext; |
| 2536 |
PVPHAL_BATCH_BUFFER pPrev; |
| 2537 |
|
| 2538 |
|
| 2539 |
PVPHAL_BATCH_BUFFER_PARAMS pBBRenderData; |
| 2540 |
} VPHAL_BATCH_BUFFER; |
| 2541 |
|
| 2542 |
|
| 2543 |
|
| 2544 |
|
| 2545 |
typedef struct _VPHAL_BATCH_BUFFER_TABLE |
| 2546 |
{ |
| 2547 |
int32_t* piBatchBufferCount; |
| 2548 |
int32_t iBbCountMax; |
| 2549 |
PMHW_BATCH_BUFFER pBatchBufferHeader; |
| 2550 |
PVPHAL_BATCH_BUFFER_PARAMS pBbParamsHeader; |
| 2551 |
} VPHAL_BATCH_BUFFER_TABLE, *PVPHAL_BATCH_BUFFER_TABLE; |
| 2552 |
|
| 2553 |
|
| 2554 |
|
| 2555 |
|
| 2556 |
typedef struct |
| 2557 |
{ |
| 2558 |
uint32_t uiVal; |
| 2559 |
bool bEnabled; |
| 2560 |
}VPHAL_RNDR_PERF_DATA_VAL; |
| 2561 |
|
| 2562 |
|
| 2563 |
|
| 2564 |
|
| 2565 |
typedef struct |
| 2566 |
{ |
| 2567 |
VPHAL_RNDR_PERF_DATA_VAL CompMaxThreads; |
| 2568 |
VPHAL_RNDR_PERF_DATA_VAL DndiMaxThreads; |
| 2569 |
VPHAL_RNDR_PERF_DATA_VAL VdiFrameShareEnable; |
| 2570 |
VPHAL_RNDR_PERF_DATA_VAL VdiStride; |
| 2571 |
VPHAL_RNDR_PERF_DATA_VAL VdiColumnWidth; |
| 2572 |
VPHAL_RNDR_PERF_DATA_VAL L3SQCReg1Override; |
| 2573 |
VPHAL_RNDR_PERF_DATA_VAL L3CntlReg2Override; |
| 2574 |
VPHAL_RNDR_PERF_DATA_VAL L3CntlReg3Override; |
| 2575 |
VPHAL_RNDR_PERF_DATA_VAL L3LRA1RegOverride; |
| 2576 |
VPHAL_RNDR_PERF_DATA_VAL L3SQCReg4Override; |
| 2577 |
VPHAL_RNDR_PERF_DATA_VAL L3CntlRegOverride; |
| 2578 |
} VPHAL_RNDR_PERF_DATA, *PVPHAL_RNDR_PERF_DATA; |
| 2579 |
|
| 2580 |
|
| 2581 |
|
| 2582 |
|
| 2583 |
|
| 2584 |
|
| 2585 |
|
| 2586 |
|
| 2587 |
|
| 2588 |
|
| 2589 |
|
| 2590 |
|
| 2591 |
|
| 2592 |
void VpHal_RndrGetAlignUnit( |
| 2593 |
uint16_t* pwWidthAlignUnit, |
| 2594 |
uint16_t* pwHeightAlignUnit, |
| 2595 |
MOS_FORMAT format); |
| 2596 |
|
| 2597 |
|
| 2598 |
|
| 2599 |
|
| 2600 |
|
| 2601 |
|
| 2602 |
|
| 2603 |
|
| 2604 |
|
| 2605 |
|
| 2606 |
|
| 2607 |
|
| 2608 |
|
| 2609 |
|
| 2610 |
|
| 2611 |
MOS_STATUS VpHal_RndrSetYUVComponents( |
| 2612 |
MOS_FORMAT format, |
| 2613 |
uint8_t* pOffsetY, |
| 2614 |
uint8_t* pOffsetU, |
| 2615 |
uint8_t* pOffsetV); |
| 2616 |
|
| 2617 |
|
| 2618 |
|
| 2619 |
|
| 2620 |
|
| 2621 |
|
| 2622 |
|
| 2623 |
|
| 2624 |
|
| 2625 |
|
| 2626 |
|
| 2627 |
|
| 2628 |
MOS_STATUS VpHal_RndrCommonSetPowerMode( |
| 2629 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2630 |
VpKernelID KernelID); |
| 2631 |
|
| 2632 |
|
| 2633 |
|
| 2634 |
|
| 2635 |
|
| 2636 |
|
| 2637 |
|
| 2638 |
|
| 2639 |
|
| 2640 |
MOS_STATUS VpHal_RndrCommonInitRenderHalSurface( |
| 2641 |
PVPHAL_SURFACE pVpSurface, |
| 2642 |
PRENDERHAL_SURFACE pRenderHalSurface); |
| 2643 |
|
| 2644 |
|
| 2645 |
|
| 2646 |
|
| 2647 |
|
| 2648 |
|
| 2649 |
|
| 2650 |
|
| 2651 |
|
| 2652 |
MOS_STATUS VpHal_RndrCommonGetBackVpSurfaceParams( |
| 2653 |
PRENDERHAL_SURFACE pRenderHalSurface, |
| 2654 |
PVPHAL_SURFACE pVpSurface); |
| 2655 |
|
| 2656 |
|
| 2657 |
|
| 2658 |
|
| 2659 |
|
| 2660 |
|
| 2661 |
|
| 2662 |
|
| 2663 |
|
| 2664 |
|
| 2665 |
|
| 2666 |
|
| 2667 |
|
| 2668 |
|
| 2669 |
|
| 2670 |
|
| 2671 |
|
| 2672 |
|
| 2673 |
|
| 2674 |
|
| 2675 |
MOS_STATUS VpHal_RndrCommonSetSurfaceForHwAccess( |
| 2676 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2677 |
PVPHAL_SURFACE pSurface, |
| 2678 |
PRENDERHAL_SURFACE_STATE_PARAMS pSurfaceParams, |
| 2679 |
int32_t iBindingTable, |
| 2680 |
int32_t iBTEntry, |
| 2681 |
bool bWrite); |
| 2682 |
|
| 2683 |
|
| 2684 |
|
| 2685 |
|
| 2686 |
|
| 2687 |
|
| 2688 |
|
| 2689 |
|
| 2690 |
|
| 2691 |
|
| 2692 |
|
| 2693 |
|
| 2694 |
|
| 2695 |
|
| 2696 |
|
| 2697 |
|
| 2698 |
|
| 2699 |
|
| 2700 |
|
| 2701 |
|
| 2702 |
MOS_STATUS VpHal_RndrCommonSetBufferSurfaceForHwAccess( |
| 2703 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2704 |
PVPHAL_SURFACE pSurface, |
| 2705 |
PRENDERHAL_SURFACE_STATE_PARAMS pSurfaceParams, |
| 2706 |
int32_t iBindingTable, |
| 2707 |
int32_t iBTEntry, |
| 2708 |
bool bWrite); |
| 2709 |
|
| 2710 |
|
| 2711 |
|
| 2712 |
|
| 2713 |
|
| 2714 |
|
| 2715 |
|
| 2716 |
|
| 2717 |
|
| 2718 |
|
| 2719 |
|
| 2720 |
|
| 2721 |
|
| 2722 |
|
| 2723 |
|
| 2724 |
|
| 2725 |
|
| 2726 |
|
| 2727 |
|
| 2728 |
|
| 2729 |
|
| 2730 |
|
| 2731 |
MOS_STATUS VpHal_CommonSetSurfaceForHwAccess( |
| 2732 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2733 |
PVPHAL_SURFACE pSurface, |
| 2734 |
PRENDERHAL_SURFACE pRenderSurface, |
| 2735 |
PRENDERHAL_SURFACE_STATE_PARAMS pSurfaceParams, |
| 2736 |
int32_t iBindingTable, |
| 2737 |
int32_t iBTEntry, |
| 2738 |
bool bWrite); |
| 2739 |
|
| 2740 |
|
| 2741 |
|
| 2742 |
|
| 2743 |
|
| 2744 |
|
| 2745 |
|
| 2746 |
|
| 2747 |
|
| 2748 |
|
| 2749 |
|
| 2750 |
|
| 2751 |
|
| 2752 |
|
| 2753 |
|
| 2754 |
|
| 2755 |
|
| 2756 |
|
| 2757 |
|
| 2758 |
|
| 2759 |
|
| 2760 |
|
| 2761 |
MOS_STATUS VpHal_CommonSetBufferSurfaceForHwAccess( |
| 2762 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2763 |
PVPHAL_SURFACE pSurface, |
| 2764 |
PRENDERHAL_SURFACE pRenderSurface, |
| 2765 |
PRENDERHAL_SURFACE_STATE_PARAMS pSurfaceParams, |
| 2766 |
int32_t iBindingTable, |
| 2767 |
int32_t iBTEntry, |
| 2768 |
bool bWrite); |
| 2769 |
|
| 2770 |
|
| 2771 |
|
| 2772 |
|
| 2773 |
|
| 2774 |
|
| 2775 |
|
| 2776 |
|
| 2777 |
|
| 2778 |
|
| 2779 |
|
| 2780 |
|
| 2781 |
|
| 2782 |
|
| 2783 |
|
| 2784 |
|
| 2785 |
|
| 2786 |
|
| 2787 |
|
| 2788 |
MOS_STATUS VpHal_RndrCommonSubmitCommands( |
| 2789 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2790 |
PMHW_BATCH_BUFFER pBatchBuffer, |
| 2791 |
bool bNullRendering, |
| 2792 |
PMHW_WALKER_PARAMS pWalkerParams, |
| 2793 |
PMHW_GPGPU_WALKER_PARAMS pGpGpuWalkerParams, |
| 2794 |
VpKernelID KernelID, |
| 2795 |
bool bLastSubmission); |
| 2796 |
|
| 2797 |
|
| 2798 |
|
| 2799 |
|
| 2800 |
|
| 2801 |
|
| 2802 |
|
| 2803 |
|
| 2804 |
|
| 2805 |
|
| 2806 |
|
| 2807 |
|
| 2808 |
|
| 2809 |
|
| 2810 |
|
| 2811 |
|
| 2812 |
|
| 2813 |
|
| 2814 |
|
| 2815 |
|
| 2816 |
|
| 2817 |
|
| 2818 |
|
| 2819 |
|
| 2820 |
|
| 2821 |
|
| 2822 |
MOS_STATUS VpHal_RndrSubmitCommands( |
| 2823 |
PRENDERHAL_INTERFACE pRenderHal, |
| 2824 |
PMHW_BATCH_BUFFER pBatchBuffer, |
| 2825 |
bool bNullRendering, |
| 2826 |
PMHW_WALKER_PARAMS pWalkerParams, |
| 2827 |
PMHW_GPGPU_WALKER_PARAMS pGpGpuWalkerParams, |
| 2828 |
PSTATUS_TABLE_UPDATE_PARAMS pStatusTableUpdateParams, |
| 2829 |
VpKernelID KernelID, |
| 2830 |
int FcKernelCount, |
| 2831 |
int *FcKernelList, |
| 2832 |
bool bLastSubmission); |
| 2833 |
|
| 2834 |
|
| 2835 |
|
| 2836 |
|
| 2837 |
|
| 2838 |
|
| 2839 |
|
| 2840 |
|
| 2841 |
|
| 2842 |
|
| 2843 |
|
| 2844 |
|
| 2845 |
|
| 2846 |
|
| 2847 |
|
| 2848 |
|
| 2849 |
|
| 2850 |
|
| 2851 |
bool VpHal_RndrCommonIsAlignmentWANeeded( |
| 2852 |
PVPHAL_SURFACE pSurface, |
| 2853 |
MOS_GPU_CONTEXT GpuContext); |
| 2854 |
|
| 2855 |
|
| 2856 |
|
| 2857 |
|
| 2858 |
|
| 2859 |
|
| 2860 |
|
| 2861 |
|
| 2862 |
|
| 2863 |
|
| 2864 |
MOS_STATUS VpHal_RenderCommonSetAVSTableParam( |
| 2865 |
PMHW_AVS_PARAMS pAvsParams, |
| 2866 |
PMHW_SAMPLER_AVS_TABLE_PARAM pMhwSamplerAvsTableParam); |
| 2867 |
|
| 2868 |
|
| 2869 |
|
| 2870 |
|
| 2871 |
|
| 2872 |
|
| 2873 |
|
| 2874 |
|
| 2875 |
|
| 2876 |
|
| 2877 |
|
| 2878 |
|
| 2879 |
|
| 2880 |
MOS_STATUS VpHal_RndrCommonInitAVSParams( |
| 2881 |
PMHW_AVS_PARAMS pAVS_Params, |
| 2882 |
uint32_t uiYCoeffTableSize, |
| 2883 |
uint32_t uiUVCoeffTableSize); |
| 2884 |
|
| 2885 |
|
| 2886 |
|
| 2887 |
|
| 2888 |
|
| 2889 |
|
| 2890 |
|
| 2891 |
|
| 2892 |
void VpHal_RndrCommonDestroyAVSParams( |
| 2893 |
PMHW_AVS_PARAMS pAVS_Params); |
| 2894 |
|
| 2895 |
|
| 2896 |
|
| 2897 |
|
| 2898 |
|
| 2899 |
|
| 2900 |
|
| 2901 |
|
| 2902 |
|
| 2903 |
|
| 2904 |
|
| 2905 |
|
| 2906 |
|
| 2907 |
|
| 2908 |
MOS_STATUS VpHal_RndrUpdateStatusTableAfterSubmit( |
| 2909 |
PMOS_INTERFACE pOsInterface, |
| 2910 |
PSTATUS_TABLE_UPDATE_PARAMS pStatusTableUpdateParams, |
| 2911 |
MOS_GPU_CONTEXT eMosGpuContext, |
| 2912 |
MOS_STATUS eLastStatus |
| 2913 |
); |
| 2914 |
|
| 2915 |
|
| 2916 |
|
| 2917 |
|
| 2918 |
|
| 2919 |
|
| 2920 |
|
| 2921 |
|
| 2922 |
|
| 2923 |
bool VpHal_RndrCommonIsMiBBEndNeeded( |
| 2924 |
PMOS_INTERFACE pOsInterface); |
| 2925 |
|
| 2926 |
struct AvsCoeffsCacheTag |
| 2927 |
{ |
| 2928 |
bool operator==(const AvsCoeffsCacheTag &rhs) const |
| 2929 |
{ |
| 2930 |
return (this->m_format == rhs.m_format && |
| 2931 |
this->m_8TapAdaptiveEnable == rhs.m_8TapAdaptiveEnable && |
| 2932 |
this->m_balancedFilter == rhs.m_balancedFilter && |
| 2933 |
this->m_forcePolyPhaseCoefs == rhs.m_forcePolyPhaseCoefs && |
| 2934 |
this->m_chromaSiting == rhs.m_chromaSiting && |
| 2935 |
fabsf(this->m_scaleX - rhs.m_scaleX) < 1e-6 && |
| 2936 |
fabsf(this->m_scaleY - rhs.m_scaleY) < 1e-6); |
| 2937 |
} |
| 2938 |
|
| 2939 |
MOS_FORMAT m_format; |
| 2940 |
bool m_8TapAdaptiveEnable; |
| 2941 |
bool m_balancedFilter; |
| 2942 |
bool m_forcePolyPhaseCoefs; |
| 2943 |
uint32_t m_chromaSiting; |
| 2944 |
float m_scaleX; |
| 2945 |
float m_scaleY; |
| 2946 |
}; |
| 2947 |
|
| 2948 |
struct AvsCoeffsCacheEntry |
| 2949 |
{ |
| 2950 |
AvsCoeffsCacheTag m_tag; |
| 2951 |
MHW_AVS_PARAMS m_AvsParams; |
| 2952 |
bool m_valid; |
| 2953 |
}; |
| 2954 |
|
| 2955 |
template <int N> |
| 2956 |
class AvsCoeffsCache |
| 2957 |
{ |
| 2958 |
public: |
| 2959 |
AvsCoeffsCache(): |
| 2960 |
m_evictIndex(0), |
| 2961 |
m_YCoeffTableSize(0), |
| 2962 |
m_UVCoeffTableSize(0) |
| 2963 |
{ |
| 2964 |
MOS_ZeroMemory(m_entries, sizeof(m_entries)); |
| 2965 |
} |
| 2966 |
|
| 2967 |
~AvsCoeffsCache() |
| 2968 |
{ |
| 2969 |
for (int i = 0; i < N; ++i) |
| 2970 |
{ |
| 2971 |
VpHal_RndrCommonDestroyAVSParams(&m_entries[i].m_AvsParams); |
| 2972 |
} |
| 2973 |
} |
| 2974 |
|
| 2975 |
void Init(int YCoeffTableSize, int UVCoeffTableSize) |
| 2976 |
{ |
| 2977 |
m_YCoeffTableSize = YCoeffTableSize; |
| 2978 |
m_UVCoeffTableSize = UVCoeffTableSize; |
| 2979 |
|
| 2980 |
for (int i = 0; i < N; i++) |
| 2981 |
{ |
| 2982 |
VpHal_RndrCommonInitAVSParams(&m_entries[i].m_AvsParams, |
| 2983 |
YCoeffTableSize, |
| 2984 |
UVCoeffTableSize); |
| 2985 |
} |
| 2986 |
} |
| 2987 |
|
| 2988 |
const MHW_AVS_PARAMS* Find(const AvsCoeffsCacheTag &tag) const |
| 2989 |
{ |
| 2990 |
for (int i = 0; i < N; i++) |
| 2991 |
{ |
| 2992 |
if (m_entries[i].m_valid && m_entries[i].m_tag == tag) |
| 2993 |
{ |
| 2994 |
return &m_entries[i].m_AvsParams; |
| 2995 |
} |
| 2996 |
} |
| 2997 |
return nullptr; |
| 2998 |
} |
| 2999 |
|
| 3000 |
void Insert(const AvsCoeffsCacheTag &tag, const MHW_AVS_PARAMS ¶ms) |
| 3001 |
{ |
| 3002 |
m_entries[m_evictIndex].m_tag = tag; |
| 3003 |
Clone(params, m_entries[m_evictIndex].m_AvsParams); |
| 3004 |
m_entries[m_evictIndex].m_valid = true; |
| 3005 |
m_evictIndex = (m_evictIndex + 1) % N; |
| 3006 |
} |
| 3007 |
|
| 3008 |
void Clone(const MHW_AVS_PARAMS &from, MHW_AVS_PARAMS &to) |
| 3009 |
{ |
| 3010 |
to.Format = from.Format; |
| 3011 |
to.fScaleX = from.fScaleX; |
| 3012 |
to.fScaleY = from.fScaleY; |
| 3013 |
to.bForcePolyPhaseCoefs = from.bForcePolyPhaseCoefs; |
| 3014 |
|
| 3015 |
MOS_SecureMemcpy(to.piYCoefsX, m_YCoeffTableSize, from.piYCoefsX, m_YCoeffTableSize); |
| 3016 |
MOS_SecureMemcpy(to.piYCoefsY, m_YCoeffTableSize, from.piYCoefsY, m_YCoeffTableSize); |
| 3017 |
MOS_SecureMemcpy(to.piUVCoefsX, m_UVCoeffTableSize, from.piUVCoefsX, m_UVCoeffTableSize); |
| 3018 |
MOS_SecureMemcpy(to.piUVCoefsY, m_UVCoeffTableSize, from.piUVCoefsY, m_UVCoeffTableSize); |
| 3019 |
} |
| 3020 |
|
| 3021 |
private: |
| 3022 |
AvsCoeffsCacheEntry m_entries[N]; |
| 3023 |
int m_evictIndex; |
| 3024 |
int m_YCoeffTableSize; |
| 3025 |
int m_UVCoeffTableSize; |
| 3026 |
}; |
| 3027 |
|
| 3028 |
#endif |