Changeset 443 in 3DVCSoftware for trunk/source/Lib/TLibCommon/ContextTables.h
- Timestamp:
- 26 May 2013, 15:41:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/ContextTables.h
r332 r443 101 101 #define NUM_ALF_SVLC_CTX 3 ///< number of context models for ALF SVLC (filter coeff.) 102 102 103 #if LGE_SAO_MIGRATION_D0091 104 #define NUM_SAO_MERGE_FLAG_CTX 1 ///< number of context models for SAO merge flags 105 #define NUM_SAO_TYPE_IDX_CTX 1 ///< number of context models for SAO type index 106 #else 103 107 #define NUM_SAO_FLAG_CTX 1 ///< number of context models for SAO flag 104 108 #define NUM_SAO_UVLC_CTX 2 ///< number of context models for SAO UVLC … … 108 112 #define NUM_SAO_MERGE_UP_FLAG_CTX 1 ///< number of context models for AO SVLC (filter coeff.) 109 113 #define NUM_SAO_TYPE_IDX_CTX 2 ///< number of context models for AO SVLC (filter coeff.) 114 #endif 110 115 #define CNU 154 ///< dummy initialization value for unused context models 'Context model Not Used' 111 116 … … 128 133 129 134 #if RWTH_SDC_DLT_B0036 135 #if PKU_QC_DEPTH_INTRA_UNI_D0195 136 #define DEPTH_MODE_NUM_FLAG_CTX 8 137 #define DMM_DELTA_NUM_FLAG_CTX 1 138 #else 130 139 #define SDC_NUM_FLAG_CTX 3 140 #endif 131 141 #define SDC_NUM_RESIDUAL_FLAG_CTX 1 142 #if !RWTH_SDC_CTX_SIMPL_D0032 132 143 #define SDC_NUM_SIGN_FLAG_CTX 1 144 #endif 145 #if LGE_CONCATENATE_D0141 146 #define SDC_NUM_RESIDUAL_CTX 1 147 #else 148 #if RWTH_SDC_CTX_SIMPL_D0032 149 #define SDC_NUM_RESIDUAL_CTX 8 150 #else 133 151 #define SDC_NUM_RESIDUAL_CTX 10 152 #endif 153 #endif 134 154 135 155 #define SDC_NUM_PRED_MODE_CTX 5 … … 376 396 { 141, 154, 159, }, 377 397 }; 378 398 #if LGE_SAO_MIGRATION_D0091 399 static const UChar 400 INIT_SAO_MERGE_FLAG[3][NUM_SAO_MERGE_FLAG_CTX] = 401 { 402 { 153, }, 403 { 153, }, 404 { 153, }, 405 }; 406 407 static const UChar 408 INIT_SAO_TYPE_IDX[3][NUM_SAO_TYPE_IDX_CTX] = 409 { 410 { 200, }, 411 { 185, }, 412 { 160, }, 413 }; 414 #else 379 415 static const UChar 380 416 INIT_SAO_FLAG[3][NUM_SAO_FLAG_CTX] = … … 424 460 { 200, 140, }, 425 461 }; 462 #endif 426 463 427 464 static const UChar … … 487 524 #endif 488 525 }; 526 #if QC_ARP_D0177 527 #define NUM_ARPW_CTX 4 ///< number of context models for generalized residual prediction weighting factor 528 static const UChar 529 INIT_ARPW[3][NUM_ARPW_CTX] = 530 { 531 { 154 , 154 , 154 , 154 }, 532 { 154 , 154 , 154 , 154 }, 533 { 154 , 154 , 154 , 154 }, 534 }; 535 #endif 489 536 490 537 #if LGE_EDGE_INTRA_A0070 … … 523 570 524 571 #if RWTH_SDC_DLT_B0036 572 #if PKU_QC_DEPTH_INTRA_UNI_D0195 573 static const UChar INIT_DEPTHMODE_FLAG[3][DEPTH_MODE_NUM_FLAG_CTX]= 574 { 575 {0, 0, 64, 0, CNU, 0, CNU, 0}, 576 {0, 64, 0, CNU, 0, CNU, 0, 0}, 577 {64, 0, CNU, 0, CNU, 0, 0, 0} 578 }; 579 static const UChar INIT_DMMDELTA_FLAG[3][DMM_DELTA_NUM_FLAG_CTX]= 580 { 581 {0}, 582 {0}, 583 {64} 584 }; 585 #else 525 586 static const Short INIT_SDC_FLAG[3][SDC_NUM_FLAG_CTX][2] = 526 587 { … … 535 596 } 536 597 }; 537 598 #endif 599 600 #if RWTH_SDC_CTX_SIMPL_D0032 601 static const UChar INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] = 602 { 603 { 604 CNU 605 606 }, 607 { 608 CNU 609 }, 610 { 611 CNU 612 } 613 }; 614 615 #if LGE_CONCATENATE_D0141 616 static const UChar INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] = 617 { 618 { 619 155 620 }, 621 { 622 155 623 }, 624 { 625 155 626 } 627 }; 628 #else 629 static const UChar INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] = 630 { 631 { 632 CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU 633 }, 634 { 635 CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU 636 }, 637 { 638 CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU 639 } 640 }; 641 #endif 642 643 static const UChar INIT_SDC_PRED_MODE[3][3*SDC_NUM_PRED_MODE_CTX] = 644 { 645 { 646 CNU, CNU 647 ,CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU 648 }, 649 { 650 CNU, CNU 651 ,CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU 652 }, 653 { 654 CNU, CNU 655 ,CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU 656 } 657 }; 658 #else 538 659 static const Short INIT_SDC_RESIDUAL_FLAG[3][3*SDC_NUM_RESIDUAL_FLAG_CTX][2] = 539 660 { … … 613 734 }; 614 735 #endif 736 #endif 615 737 616 738 //! \}
Note: See TracChangeset for help on using the changeset viewer.