Changeset 1039 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComYuv.cpp
- Timestamp:
- 4 Aug 2014, 11:36:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComYuv.cpp
r872 r1039 689 689 UInt iSrc1Stride = pcYuvSrc1->getStride(); 690 690 UInt iDstStride = getStride(); 691 #if QC_I0129_ARP_FIX 692 Int iIFshift = IF_INTERNAL_PREC - g_bitDepthY; 693 Int iOffSet = ( 1 << ( iIFshift - 1 ) ) + IF_INTERNAL_OFFS; 694 #endif 691 695 for ( y = uiHeight-1; y >= 0; y-- ) 692 696 { … … 696 700 if( bClip ) 697 701 { 702 #if QC_I0129_ARP_FIX 703 pDst[x] = ClipY( ( pDst[x] + iOffSet ) >> iIFshift ); 704 #else 698 705 pDst[x] = ClipY( pDst[x] ); 706 #endif 699 707 } 700 708 } … … 719 727 UInt iSrc1Stride = pcYuvSrc1->getCStride(); 720 728 UInt iDstStride = getCStride(); 729 #if QC_I0129_ARP_FIX 730 Int iIFshift = IF_INTERNAL_PREC - g_bitDepthC; 731 Int iOffSet = ( 1 << ( iIFshift - 1 ) ) + IF_INTERNAL_OFFS; 732 #endif 721 733 for ( y = uiHeight-1; y >= 0; y-- ) 722 734 { … … 727 739 if( bClip ) 728 740 { 741 #if QC_I0129_ARP_FIX 742 pDstU[x] = ClipC( ( pDstU[x] + iOffSet ) >> iIFshift ); 743 pDstV[x] = ClipC( ( pDstV[x] + iOffSet ) >> iIFshift ); 744 #else 729 745 pDstU[x] = ClipC( pDstU[x] ); 730 746 pDstV[x] = ClipC( pDstV[x] ); 747 #endif 731 748 } 732 749 } … … 744 761 { 745 762 subtractARPLuma ( pcYuvSrc0, pcYuvSrc1, uiAbsPartIdx, uiWidth , uiHeight ); 763 #if SHARP_ARP_CHROMA_I0104 764 if (uiWidth > 8) 765 #endif 746 766 subtractARPChroma( pcYuvSrc0, pcYuvSrc1, uiAbsPartIdx, uiWidth>>1 , uiHeight>>1 ); 747 767 } … … 803 823 { 804 824 multiplyARPLuma( uiAbsPartIdx , uiWidth , uiHeight , dW ); 825 #if SHARP_ARP_CHROMA_I0104 826 if (uiWidth > 8) 827 #endif 805 828 multiplyARPChroma( uiAbsPartIdx , uiWidth >> 1 , uiHeight >> 1 , dW ); 806 829 }
Note: See TracChangeset for help on using the changeset viewer.