Changeset 91 in 3DVCSoftware for branches/HTM-3.1-Qualcomm/source/Lib/TLibCommon/TComResidualGenerator.cpp
- Timestamp:
- 1 Jul 2012, 08:23:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-3.1-Qualcomm/source/Lib/TLibCommon/TComResidualGenerator.cpp
r77 r91 219 219 } 220 220 221 221 #if QC_MULTI_DIS_CAN 222 Bool 223 TComResidualGenerator::getResidualSamples( TComDataCU* pcCU, UInt uiPUIdx, TComYuv* pcYuv, Int iDisp 224 #if QC_SIMPLIFIEDIVRP_M24938 225 , Bool bRecon 226 #endif 227 ) 228 #else 222 229 Bool 223 230 TComResidualGenerator::getResidualSamples( TComDataCU* pcCU, UInt uiPUIdx, TComYuv* pcYuv … … 226 233 #endif 227 234 ) 235 #endif 228 236 { 229 237 AOF( pcCU ); … … 235 243 iBlkHeight = pcCU->getHeight ( 0 ); 236 244 pcCU->getPic()->getPicYuvRec()->getTopLeftSamplePos( pcCU->getAddr(), pcCU->getZorderIdxInCU() + uiPartAddr, iXPos, iYPos ); 245 #if QC_MULTI_DIS_CAN 246 return getResidualSamples( pcCU->getPic(), (UInt)iXPos, (UInt)iYPos, (UInt)iBlkWidth, (UInt)iBlkHeight, pcYuv, iDisp 247 #if QC_SIMPLIFIEDIVRP_M24938 248 , bRecon 249 #endif 250 ); 251 #else 237 252 return getResidualSamples( pcCU->getPic(), (UInt)iXPos, (UInt)iYPos, (UInt)iBlkWidth, (UInt)iBlkHeight, pcYuv 238 253 #if QC_SIMPLIFIEDIVRP_M24938 … … 240 255 #endif 241 256 ); 257 #endif 242 258 } 243 259 260 #if QC_MULTI_DIS_CAN 261 Bool 262 TComResidualGenerator::getResidualSamples( TComPic* pcPic, UInt uiXPos, UInt uiYPos, UInt uiBlkWidth, UInt uiBlkHeight, TComYuv* pcYuv, Int iDisp 263 #if QC_SIMPLIFIEDIVRP_M24938 264 , Bool bRecon 265 #endif 266 ) 267 #else 244 268 Bool 245 269 TComResidualGenerator::getResidualSamples( TComPic* pcPic, UInt uiXPos, UInt uiYPos, UInt uiBlkWidth, UInt uiBlkHeight, TComYuv* pcYuv … … 248 272 #endif 249 273 ) 274 #endif 250 275 { 251 276 UInt uiBaseViewId = m_pcDepthMapGenerator->getBaseViewId( 0 ); … … 258 283 UInt uiXPosInRefView = uiXPos , uiYPosInRefView = uiYPos; 259 284 #endif 285 #if QC_MULTI_DIS_CAN 286 xSetPredResidualBlock( pcPic, uiBaseViewId, uiXPos, uiYPos, uiBlkWidth, uiBlkHeight, pcYuv, iDisp 287 #if QC_SIMPLIFIEDIVRP_M24938 288 , &uiXPosInRefView , &uiYPosInRefView , bRecon 289 #endif 290 ); 291 #else 260 292 xSetPredResidualBlock( pcPic, uiBaseViewId, uiXPos, uiYPos, uiBlkWidth, uiBlkHeight, pcYuv 261 293 #if QC_SIMPLIFIEDIVRP_M24938 … … 263 295 #endif 264 296 ); 265 297 #endif 266 298 #if QC_SIMPLIFIEDIVRP_M24938 267 299 return xIsNonZeroByCBF( uiBaseViewId , uiXPosInRefView , uiYPosInRefView , uiBlkWidth , uiBlkHeight ); … … 485 517 486 518 487 519 #if QC_MULTI_DIS_CAN 520 Void 521 TComResidualGenerator::xSetPredResidualBlock( TComPic* pcPic, UInt uiBaseViewId, UInt uiXPos, UInt uiYPos, UInt uiBlkWidth, UInt uiBlkHeight, TComYuv* pcYuv, Int iDisp 522 #if QC_SIMPLIFIEDIVRP_M24938 523 , UInt * puiXPosInRefView , UInt * puiYPosInRefView , Bool bRecon 524 #endif 525 ) 526 #else 488 527 Void 489 528 TComResidualGenerator::xSetPredResidualBlock( TComPic* pcPic, UInt uiBaseViewId, UInt uiXPos, UInt uiYPos, UInt uiBlkWidth, UInt uiBlkHeight, TComYuv* pcYuv … … 492 531 #endif 493 532 ) 533 #endif 494 534 { 495 535 //===== set and check some basic variables ===== … … 508 548 509 549 //===== get disparity ===== 550 #if QC_MULTI_DIS_CAN 551 Int iDisparity = iDisp; 552 #else 510 553 Int iMidPosX = Int( uiXPos + ( ( uiBlkWidth - 1 ) >> 1 ) ) >> m_pcDepthMapGenerator->getSubSampExpX(); 511 554 Int iMidPosY = Int( uiYPos + ( ( uiBlkHeight - 1 ) >> 1 ) ) >> m_pcDepthMapGenerator->getSubSampExpY(); 512 555 Int iDisparity = m_pcDepthMapGenerator->getDisparity( pcPic, iMidPosX, iMidPosY, uiBaseViewId ); 513 556 #endif 514 557 //===== compensate luma ===== 515 558 Int iYWidth = Int( uiBlkWidth );
Note: See TracChangeset for help on using the changeset viewer.