Changeset 999 in 3DVCSoftware for branches/HTM-11.2-dev1-Sharp/source
- Timestamp:
- 18 Jul 2014, 05:41:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-11.2-dev1-Sharp/source/Lib/TLibCommon/TComPrediction.cpp
r998 r999 842 842 right = (x==uiWidth-1) ? tmpTar[y*uiWidth+x] : tmpTar[y*uiWidth+x+1]; 843 843 844 piDst[x] = (l!=r) ? Clip 3( Pel( 0 ), Pel( 255 ),Pel(( left + (tmpTar[y*uiWidth+x] << 1) + right ) >> 2 )) : tmpTar[y*uiWidth+x];844 piDst[x] = (l!=r) ? ClipY( Pel(( left + (tmpTar[y*uiWidth+x] << 1) + right ) >> 2 )) : tmpTar[y*uiWidth+x]; 845 845 } 846 846 piDst += uiDstStride; … … 860 860 bottom = (y==uiHeight-1) ? tmpTar[y*uiWidth+x] : tmpTar[(y+1)*uiWidth+x]; 861 861 862 piDst[x] = (t!=b) ? Clip 3( Pel( 0 ), Pel( 255 ),Pel(( top + (tmpTar[y*uiWidth+x] << 1) + bottom ) >> 2 )) : tmpTar[y*uiWidth+x];862 piDst[x] = (t!=b) ? ClipY( Pel(( top + (tmpTar[y*uiWidth+x] << 1) + bottom ) >> 2 )) : tmpTar[y*uiWidth+x]; 863 863 } 864 864 piDst += uiDstStride; … … 936 936 pMask += 2*uiMaskStride; 937 937 } 938 938 939 939 #if SHARP_DBBP_SIMPLE_FLTER_I0109 940 940 if (partSize == SIZE_Nx2N) … … 956 956 if (l!=r) 957 957 { 958 filSrcU = Clip 3( Pel( 0 ), Pel( 255 ),Pel(( leftU + (tmpTarU[y*uiWidthC+x] << 1) + rightU ) >> 2 ));959 filSrcV = Clip 3( Pel( 0 ), Pel( 255 ),Pel(( leftV + (tmpTarV[y*uiWidthC+x] << 1) + rightV ) >> 2 ));958 filSrcU = ClipC( Pel(( leftU + (tmpTarU[y*uiWidthC+x] << 1) + rightU ) >> 2 )); 959 filSrcV = ClipC( Pel(( leftV + (tmpTarV[y*uiWidthC+x] << 1) + rightV ) >> 2 )); 960 960 } 961 961 else … … 989 989 if (t!=b) 990 990 { 991 filSrcU = Clip 3( Pel( 0 ), Pel( 255 ),Pel(( topU + (tmpTarU[y*uiWidthC+x] << 1) + bottomU ) >> 2 ));992 filSrcV = Clip 3( Pel( 0 ), Pel( 255 ),Pel(( topV + (tmpTarV[y*uiWidthC+x] << 1) + bottomV ) >> 2 ));991 filSrcU = ClipC( Pel(( topU + (tmpTarU[y*uiWidthC+x] << 1) + bottomU ) >> 2 )); 992 filSrcV = ClipC( Pel(( topV + (tmpTarV[y*uiWidthC+x] << 1) + bottomV ) >> 2 )); 993 993 } 994 994 else
Note: See TracChangeset for help on using the changeset viewer.