Changeset 603 in 3DVCSoftware for branches/HTM-DEV-2.0-dev0/source/Lib/TLibRenderer
- Timestamp:
- 31 Aug 2013, 01:49:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-2.0-dev0/source/Lib/TLibRenderer/TRenTop.cpp
r499 r603 1033 1033 for ( ; iInterPolPos <= xCeil (iShiftedPos ) -1 ; iInterPolPos++) 1034 1034 { 1035 #if H_3D_FIX_REN 1036 if ( ( iInterPolPos >= 0 ) && ( iInterPolPos < iOutputWidth ) ) 1037 { 1038 if( pcFilledData[iInterPolPos] == REN_IS_HOLE ) 1039 { 1040 Int iNextPos = std::min(iInputWidth-1,iPosX + iStep); 1041 Int iPosXBG = ( std::abs( pcDepthData[iNextPos] - pcDepthData[iPosX] ) > 5 ) ? iPosX : iNextPos; 1042 for( UInt uiCurPlane = 0; uiCurPlane < uiNumberOfPlanes; uiCurPlane++) 1043 { 1044 apcOutputData[uiCurPlane][iInterPolPos] = apcInputData[uiCurPlane][iPosXBG]; 1045 } 1046 } 1047 else 1048 { 1049 pcFilledData[iInterPolPos] = REN_IS_HOLE + 1; 1050 } 1051 } 1052 #else 1035 1053 for( UInt uiCurPlane = 0; uiCurPlane < uiNumberOfPlanes; uiCurPlane++) 1036 1054 { … … 1040 1058 } 1041 1059 } 1060 #endif 1042 1061 } 1043 1062 } … … 1285 1304 else 1286 1305 { 1306 #if H_3D_FIX_REN 1307 pcAlphaData[iXPos] = pcFilledData[iXPos]; 1308 #else 1287 1309 pcAlphaData[iXPos] = REN_IS_FILLED; 1310 #endif 1288 1311 } 1289 1312 }
Note: See TracChangeset for help on using the changeset viewer.