Changeset 1084 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComYuv.cpp
- Timestamp:
- 24 Oct 2014, 11:44:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComYuv.cpp
r1039 r1084 689 689 UInt iSrc1Stride = pcYuvSrc1->getStride(); 690 690 UInt iDstStride = getStride(); 691 #if QC_I0129_ARP_FIX692 691 Int iIFshift = IF_INTERNAL_PREC - g_bitDepthY; 693 692 Int iOffSet = ( 1 << ( iIFshift - 1 ) ) + IF_INTERNAL_OFFS; 694 #endif695 693 for ( y = uiHeight-1; y >= 0; y-- ) 696 694 { … … 700 698 if( bClip ) 701 699 { 702 #if QC_I0129_ARP_FIX703 700 pDst[x] = ClipY( ( pDst[x] + iOffSet ) >> iIFshift ); 704 #else705 pDst[x] = ClipY( pDst[x] );706 #endif707 701 } 708 702 } … … 727 721 UInt iSrc1Stride = pcYuvSrc1->getCStride(); 728 722 UInt iDstStride = getCStride(); 729 #if QC_I0129_ARP_FIX 723 730 724 Int iIFshift = IF_INTERNAL_PREC - g_bitDepthC; 731 725 Int iOffSet = ( 1 << ( iIFshift - 1 ) ) + IF_INTERNAL_OFFS; 732 #endif 726 733 727 for ( y = uiHeight-1; y >= 0; y-- ) 734 728 { … … 739 733 if( bClip ) 740 734 { 741 #if QC_I0129_ARP_FIX742 735 pDstU[x] = ClipC( ( pDstU[x] + iOffSet ) >> iIFshift ); 743 736 pDstV[x] = ClipC( ( pDstV[x] + iOffSet ) >> iIFshift ); 744 #else745 pDstU[x] = ClipC( pDstU[x] );746 pDstV[x] = ClipC( pDstV[x] );747 #endif748 737 } 749 738 } … … 761 750 { 762 751 subtractARPLuma ( pcYuvSrc0, pcYuvSrc1, uiAbsPartIdx, uiWidth , uiHeight ); 763 #if SHARP_ARP_CHROMA_I0104 752 764 753 if (uiWidth > 8) 765 #endif 766 subtractARPChroma( pcYuvSrc0, pcYuvSrc1, uiAbsPartIdx, uiWidth>>1 , uiHeight>>1 ); 754 subtractARPChroma( pcYuvSrc0, pcYuvSrc1, uiAbsPartIdx, uiWidth>>1 , uiHeight>>1 ); 767 755 } 768 756 … … 823 811 { 824 812 multiplyARPLuma( uiAbsPartIdx , uiWidth , uiHeight , dW ); 825 #if SHARP_ARP_CHROMA_I0104 813 826 814 if (uiWidth > 8) 827 #endif 828 multiplyARPChroma( uiAbsPartIdx , uiWidth >> 1 , uiHeight >> 1 , dW ); 815 multiplyARPChroma( uiAbsPartIdx , uiWidth >> 1 , uiHeight >> 1 , dW ); 829 816 } 830 817
Note: See TracChangeset for help on using the changeset viewer.