Changeset 821 in 3DVCSoftware for branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComPrediction.cpp
- Timestamp:
- 5 Feb 2014, 12:28:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComPrediction.cpp
r820 r821 651 651 // SIZE_Nx2N 652 652 if(x<uiHalfSize) // left 653 { 653 654 matchedPartSum[0][ucSegment]++; 655 } 654 656 else // right 657 { 655 658 matchedPartSum[0][1-ucSegment]++; 659 } 656 660 657 661 // SIZE_2NxN 658 662 if(y<uiHalfSize) // top 663 { 659 664 matchedPartSum[1][ucSegment]++; 665 } 660 666 else // bottom 667 { 661 668 matchedPartSum[1][1-ucSegment]++; 669 } 662 670 663 671 if( bAMPAvail ) … … 665 673 // SIZE_2NxnU 666 674 if(y<uiQuarterSize) // top (1/4) 675 { 667 676 matchedPartSum[2][ucSegment]++; 677 } 668 678 else // bottom (3/4) 679 { 669 680 matchedPartSum[2][1-ucSegment]++; 681 } 670 682 671 683 // SIZE_2NxnD 672 684 if(y<(uiQuarterSize*3)) // top (3/4) 685 { 673 686 matchedPartSum[3][ucSegment]++; 687 } 674 688 else // bottom (1/4) 689 { 675 690 matchedPartSum[3][1-ucSegment]++; 691 } 676 692 677 693 // SIZE_nLx2N 678 694 if(x<uiQuarterSize) // left (1/4) 695 { 679 696 matchedPartSum[4][ucSegment]++; 697 } 680 698 else // right (3/4) 699 { 681 700 matchedPartSum[4][1-ucSegment]++; 701 } 682 702 683 703 // SIZE_nRx2N 684 704 if(x<(uiQuarterSize*3)) // left (3/4) 705 { 685 706 matchedPartSum[5][ucSegment]++; 707 } 686 708 else // right (1/4) 709 { 687 710 matchedPartSum[5][1-ucSegment]++; 711 } 688 712 } 689 713 } … … 730 754 731 755 if( depthPel > uiMaxDepth ) 756 { 732 757 uiMaxDepth = depthPel; 758 } 733 759 if( depthPel < uiMinDepth ) 760 { 734 761 uiMinDepth = depthPel; 762 } 735 763 } 736 764 … … 741 769 // don't generate mask for blocks with small depth range (encoder decision) 742 770 if( uiMaxDepth - uiMinDepth < 10 ) 771 { 743 772 return false; 773 } 744 774 745 775 AOF(uiWidth==uiHeight); … … 764 794 765 795 if( bInvertMask ) 796 { 766 797 ucSegment = 1-ucSegment; 798 } 767 799 768 800 // count pixels for each segment … … 782 814 UInt uiMinPixPerSegment = (uiWidth*uiHeight) >> 3; 783 815 if( !( uiSumPix[0] > uiMinPixPerSegment && uiSumPix[1] > uiMinPixPerSegment ) ) 816 { 784 817 return false; 818 } 785 819 786 820 // all good
Note: See TracChangeset for help on using the changeset viewer.