Changeset 446 in 3DVCSoftware for branches/HTM-DEV-0.2-dev/source/Lib/TLibRenderer/TRenSingleModel.cpp
- Timestamp:
- 26 May 2013, 16:22:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.2-dev/source/Lib/TLibRenderer/TRenSingleModel.cpp
r438 r446 36 36 #include "TRenSingleModel.h" 37 37 38 #if !QC_MVHEVC_B0046 38 #if H_3D_VSO 39 39 40 ////////////// TRENSINGLE MODEL /////////////// 40 41 template <BlenMod iBM, Bool bBitInc> 41 42 TRenSingleModelC<iBM,bBitInc>::TRenSingleModelC() 42 : m_iDistShift ( g_uiBitIncrement<< 1 )43 : m_iDistShift ( ( g_bitDepthY - 8) << 1 ) 43 44 { 44 45 m_iWidth = -1; … … 84 85 } 85 86 86 #if def LGE_VSO_EARLY_SKIP_A009387 #if H_3D_VSO_EARLY_SKIP 87 88 m_pbHorSkip = NULL; 88 89 #endif … … 92 93 TRenSingleModelC<iBM,bBitInc>::~TRenSingleModelC() 93 94 { 94 #if def LGE_VSO_EARLY_SKIP_A009395 #if H_3D_VSO_EARLY_SKIP 95 96 if ( m_pbHorSkip ) 96 97 { … … 114 115 115 116 template <BlenMod iBM, Bool bBitInc> Void 116 #if LGE_VSO_EARLY_SKIP_A0093117 #if H_3D_VSO_EARLY_SKIP 117 118 TRenSingleModelC<iBM,bBitInc>::create( Int iMode, Int iWidth, Int iHeight, Int iShiftPrec, Int*** aaaiSubPelShiftTable, Int iHoleMargin, Bool bUseOrgRef, Int iBlendMode, Bool bEarlySkip ) 118 119 #else … … 121 122 122 123 { 123 #if LGE_VSO_EARLY_SKIP_A0093124 #if H_3D_VSO_EARLY_SKIP 124 125 m_pbHorSkip = new Bool [MAX_CU_SIZE]; 125 126 m_bEarlySkip = bEarlySkip; … … 182 183 Pel* piDRow = piCurDepthPel; 183 184 Pel* piYRow = apiCurVideoPel[0]; 184 #if H HI_VSO_COLOR_PLANES185 #if H_3D_VSO_COLOR_PLANES 185 186 Pel* piURow = apiCurVideoPel[1]; 186 187 Pel* piVRow = apiCurVideoPel[2]; … … 196 197 Int iSubPosX = (1 << m_iShiftPrec); 197 198 pcCurInputSampleRow[0].aiY[iSubPosX] = piYRow[0]; 198 #if H HI_VSO_COLOR_PLANES199 #if H_3D_VSO_COLOR_PLANES 199 200 pcCurInputSampleRow[0].aiU[iSubPosX] = piURow[0]; 200 201 pcCurInputSampleRow[0].aiV[iSubPosX] = piVRow[0]; … … 210 211 Int iShift = (iPosX << m_iShiftPrec) + iSubPosX; 211 212 pcCurInputSampleRow[iPosX+iOffsetX].aiY[iSubPosX] = piYRow[iShift]; 212 #if H HI_VSO_COLOR_PLANES213 #if H_3D_VSO_COLOR_PLANES 213 214 pcCurInputSampleRow[iPosX+iOffsetX].aiU[iSubPosX] = piURow[iShift]; 214 215 pcCurInputSampleRow[iPosX+iOffsetX].aiV[iSubPosX] = piVRow[iShift]; … … 221 222 piDRow += iCurDepthStride; 222 223 piYRow += aiCurVideoStride[0]; 223 #if H HI_VSO_COLOR_PLANES224 #if H_3D_VSO_COLOR_PLANES 224 225 piURow += aiCurVideoStride[1]; 225 226 piVRow += aiCurVideoStride[2]; … … 270 271 { 271 272 case 0: 272 #if LGE_VSO_EARLY_SKIP_A0093273 #if H_3D_VSO_EARLY_SKIP 273 274 xRenderL<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[0], m_apiBaseDepthPel[0],false ); 274 275 #else … … 277 278 break; 278 279 case 1: 279 #if def LGE_VSO_EARLY_SKIP_A0093280 #if H_3D_VSO_EARLY_SKIP 280 281 xRenderR<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[1], m_apiBaseDepthPel[1],false); 281 282 #else … … 285 286 case 2: 286 287 TRenFilter::setupZLUT( true, 30, iDistToLeft, ppiBaseShiftLutLeft, ppiBaseShiftLutRight, m_iBlendZThres, m_iBlendDistWeight, m_piInvZLUTLeft, m_piInvZLUTRight ); 287 #if def LGE_VSO_EARLY_SKIP_A0093288 #if H_3D_VSO_EARLY_SKIP 288 289 xRenderL<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[0], m_apiBaseDepthPel[0],false); 289 290 xRenderR<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[1], m_apiBaseDepthPel[1],false); … … 306 307 307 308 template <BlenMod iBM, Bool bBitInc> Void 308 #if H HI_VSO_COLOR_PLANES309 #if H_3D_VSO_COLOR_PLANES 309 310 TRenSingleModelC<iBM,bBitInc>::xGetSampleStrTextPtrs( Int iViewNum, Pel RenModelOutPels::*& rpiSrcY, Pel RenModelOutPels::*& rpiSrcU, Pel RenModelOutPels::*& rpiSrcV ) 310 311 #else … … 316 317 case 0: 317 318 rpiSrcY = &RenModelOutPels::iYLeft; 318 #if H HI_VSO_COLOR_PLANES319 #if H_3D_VSO_COLOR_PLANES 319 320 rpiSrcU = &RenModelOutPels::iULeft; 320 321 rpiSrcV = &RenModelOutPels::iVLeft; … … 323 324 case 1: 324 325 rpiSrcY = &RenModelOutPels::iYRight; 325 #if H HI_VSO_COLOR_PLANES326 #if H_3D_VSO_COLOR_PLANES 326 327 rpiSrcU = &RenModelOutPels::iURight; 327 328 rpiSrcV = &RenModelOutPels::iVRight; … … 330 331 case 2: 331 332 rpiSrcY = &RenModelOutPels::iYBlended; 332 #if H HI_VSO_COLOR_PLANES333 #if H_3D_VSO_COLOR_PLANES 333 334 rpiSrcU = &RenModelOutPels::iUBlended; 334 335 rpiSrcV = &RenModelOutPels::iVBlended; … … 353 354 354 355 Pel* piYRow = m_aapiRefVideoPel[0]; 355 #if H HI_VSO_COLOR_PLANES356 #if H_3D_VSO_COLOR_PLANES 356 357 Pel* piURow = m_aapiRefVideoPel[1]; 357 358 Pel* piVRow = m_aapiRefVideoPel[2]; … … 363 364 { 364 365 pcCurOutSampleRow[iPosX].iYRef = piYRow[iPosX]; 365 #if H HI_VSO_COLOR_PLANES366 #if H_3D_VSO_COLOR_PLANES 366 367 pcCurOutSampleRow[iPosX].iURef = piURow[iPosX]; 367 368 pcCurOutSampleRow[iPosX].iVRef = piVRow[iPosX]; … … 372 373 373 374 piYRow += m_aiRefVideoStrides[0]; 374 #if H HI_VSO_COLOR_PLANES375 #if H_3D_VSO_COLOR_PLANES 375 376 piURow += m_aiRefVideoStrides[1]; 376 377 piVRow += m_aiRefVideoStrides[2]; … … 403 404 Pel RenModelOutPels::* piSrcY = NULL; 404 405 405 #if H HI_VSO_COLOR_PLANES406 #if H_3D_VSO_COLOR_PLANES 406 407 Pel RenModelOutPels::* piSrcU = NULL; 407 408 Pel RenModelOutPels::* piSrcV = NULL; … … 416 417 { 417 418 pcCurOutSampleRow[iPosX].iYRef = pcCurOutSampleRow[iPosX].*piSrcY; 418 #if H HI_VSO_COLOR_PLANES419 #if H_3D_VSO_COLOR_PLANES 419 420 pcCurOutSampleRow[iPosX].iURef = pcCurOutSampleRow[iPosX].*piSrcU; 420 421 pcCurOutSampleRow[iPosX].iVRef = pcCurOutSampleRow[iPosX].*piSrcV; … … 449 450 pcOutSampleRow[iPosX].iYRight = 0; 450 451 pcOutSampleRow[iPosX].iYBlended = 0; 451 #if H HI_VSO_COLOR_PLANES452 #if H_3D_VSO_COLOR_PLANES 452 453 // U Planes 453 pcOutSampleRow[iPosX].iULeft = 1 28 << g_uiBitIncrement;454 pcOutSampleRow[iPosX].iURight = 1 28 << g_uiBitIncrement;455 pcOutSampleRow[iPosX].iUBlended = 1 28 << g_uiBitIncrement;454 pcOutSampleRow[iPosX].iULeft = 1 << (g_bitDepthC - 1); 455 pcOutSampleRow[iPosX].iURight = 1 << (g_bitDepthC - 1); 456 pcOutSampleRow[iPosX].iUBlended = 1 << (g_bitDepthC - 1); 456 457 457 458 // V Planes 458 pcOutSampleRow[iPosX].iVLeft = 1 28 << g_uiBitIncrement;459 pcOutSampleRow[iPosX].iVRight = 1 28 << g_uiBitIncrement;460 pcOutSampleRow[iPosX].iVBlended = 1 28 << g_uiBitIncrement;459 pcOutSampleRow[iPosX].iVLeft = 1 << (g_bitDepthC - 1); 460 pcOutSampleRow[iPosX].iVRight = 1 << (g_bitDepthC - 1); 461 pcOutSampleRow[iPosX].iVBlended = 1 << (g_bitDepthC - 1); 461 462 #endif 462 463 //// Input Samples … … 472 473 473 474 474 #if def LGE_VSO_EARLY_SKIP_A0093475 #if H_3D_VSO_EARLY_SKIP 475 476 template <BlenMod iBM, Bool bBitInc> RMDist 476 477 TRenSingleModelC<iBM,bBitInc>::getDistDepth( Int iViewPos, Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData , Pel * piOrgData, Int iOrgStride ) … … 481 482 { 482 483 RMDist iSSE = 0; 483 #if def LGE_VSO_EARLY_SKIP_A0093484 #if H_3D_VSO_EARLY_SKIP 484 485 Bool bEarlySkip; 485 486 #endif … … 487 488 { 488 489 case 0: 489 #if def LGE_VSO_EARLY_SKIP_A0093490 #if H_3D_VSO_EARLY_SKIP 490 491 bEarlySkip = m_bEarlySkip ? xDetectEarlySkipL(iStartPosX, iStartPosY, iWidth, iHeight, iStride, piNewData, piOrgData, iOrgStride) : false; 491 492 if( !bEarlySkip ) … … 498 499 break; 499 500 case 1: 500 #if def LGE_VSO_EARLY_SKIP_A0093501 #if H_3D_VSO_EARLY_SKIP 501 502 bEarlySkip = m_bEarlySkip ? xDetectEarlySkipR(iStartPosX, iStartPosY, iWidth, iHeight, iStride, piNewData, piOrgData, iOrgStride) : false; 502 503 if( !bEarlySkip ) … … 514 515 return iSSE; 515 516 } 516 #if def LGE_VSO_EARLY_SKIP_A0093517 #if H_3D_VSO_EARLY_SKIP 517 518 template <BlenMod iBM, Bool bBitInc> Void 518 519 TRenSingleModelC<iBM,bBitInc>::setDepth( Int iViewPos, Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData, Pel* piOrgData, Int iOrgStride ) … … 522 523 #endif 523 524 { 524 #ifdef LGE_VSO_EARLY_SKIP_A0093525 #ifdef H_3D_VSO_EARLY_SKIP 525 526 Bool bEarlySkip; 526 527 #endif … … 528 529 { 529 530 case 0: 530 #if def LGE_VSO_EARLY_SKIP_A0093531 #if H_3D_VSO_EARLY_SKIP 531 532 bEarlySkip = m_bEarlySkip ? xDetectEarlySkipL(iStartPosX, iStartPosY, iWidth, iHeight, iStride, piNewData, piOrgData,iOrgStride) : false; 532 533 if( !bEarlySkip ) … … 539 540 break; 540 541 case 1: 541 #if def LGE_VSO_EARLY_SKIP_A0093542 #if H_3D_VSO_EARLY_SKIP 542 543 bEarlySkip = m_bEarlySkip ? xDetectEarlySkipR(iStartPosX, iStartPosY, iWidth, iHeight, iStride, piNewData, piOrgData,iOrgStride) : false; 543 544 if( !bEarlySkip ) … … 560 561 AOT( pcPicYuv->getHeight() < m_iUsedHeight + m_iHorOffset ); 561 562 562 #if H HI_VSO_COLOR_PLANES563 #if H_3D_VSO_COLOR_PLANES 563 564 Pel RenModelOutPels::* piText[3] = { NULL, NULL, NULL }; 564 565 xGetSampleStrTextPtrs(iViewPos, piText[0], piText[1], piText[2]); … … 581 582 xGetSampleStrTextPtrs(iViewPos, piY); 582 583 xCopyFromSampleStruct( m_pcOutputSamples, m_iOutputSamplesStride, piY, pcPicYuv->getLumaAddr() + m_iHorOffset * pcPicYuv->getStride(), pcPicYuv->getStride(), m_iWidth, m_iUsedHeight ); 583 pcPicYuv->setChromaTo( 1 28 << g_uiBitIncrement);584 pcPicYuv->setChromaTo( 1 << (g_bitDepthC - 1) ); 584 585 #endif 585 586 } … … 595 596 xGetSampleStrDepthPtrs(iViewPos, piD); 596 597 xCopyFromSampleStruct( m_pcOutputSamples, m_iOutputSamplesStride, piD, pcPicYuv->getLumaAddr() + pcPicYuv->getStride() * m_iHorOffset, pcPicYuv->getStride(), m_iWidth, m_iUsedHeight ); 597 pcPicYuv->setChromaTo( 1 28 << g_uiBitIncrement);598 pcPicYuv->setChromaTo( 1 << (g_bitDepthC - 1) ); 598 599 } 599 600 … … 605 606 AOT( pcPicYuv->getHeight() < m_iUsedHeight + m_iHorOffset); 606 607 607 #if H HI_VSO_COLOR_PLANES608 #if H_3D_VSO_COLOR_PLANES 608 609 Pel RenModelOutPels::* piText[3]; 609 610 piText[0] = &RenModelOutPels::iYRef; … … 627 628 #else 628 629 xCopyFromSampleStruct( m_pcOutputSamples, m_iOutputSamplesStride, &RenModelOutPels::iYRef, pcPicYuv->getLumaAddr() * pcPicYuv->getStride() + m_iHorOffset, pcPicYuv->getStride(), m_iWidth, m_iUsedHeight ); 629 pcPicYuv->setChromaTo( 1 28 << g_uiBitIncrement);630 pcPicYuv->setChromaTo( 1 << ( g_bitDepthC - 1 ) ); 630 631 #endif 631 632 } … … 662 663 m_pcOutputSamplesRow += m_iOutputSamplesStride; 663 664 } 664 #if LGE_VSO_EARLY_SKIP_A0093665 #if H_3D_VSO_EARLY_SKIP 665 666 template <BlenMod iBM, Bool bBitInc> template<Bool bSet> __inline RMDist 666 667 TRenSingleModelC<iBM,bBitInc>::xRenderL( Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData, Bool bFast) … … 695 696 for (Int iPosY = iStartPosY; iPosY < iStartPosY + iHeight; iPosY++ ) 696 697 { 697 #if def LGE_VSO_EARLY_SKIP_A0093698 #if H_3D_VSO_EARLY_SKIP 698 699 if( m_bEarlySkip && bFast ) 699 700 { … … 721 722 xExtrapolateMarginL<bSet> ( iCurSPos, iEndChangePos, iError ); 722 723 723 iMinChangedSPos = Min( iMinChangedSPos, (iEndChangePos << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( Max(m_pcInputSamplesRow[iCurViewPos][iEndChangePos].iD, m_piNewDepthData[iPosXinNewData] )) ]);724 iMinChangedSPos = std::min( iMinChangedSPos, (iEndChangePos << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( std::max(m_pcInputSamplesRow[iCurViewPos][iEndChangePos].iD, m_piNewDepthData[iPosXinNewData] )) ]); 724 725 iLastSPos = iCurSPos; 725 726 m_iLastDepth = m_iCurDepth; … … 746 747 // Get minimal changed sample position 747 748 748 iMinChangedSPos = Min( iMinChangedSPos, (iCurPosX << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( Max(m_pcInputSamplesRow[iCurViewPos][iCurPosX].iD, m_piNewDepthData[iPosXinNewData] )) ]);749 iMinChangedSPos = std::min( iMinChangedSPos, (iCurPosX << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( std::max(m_pcInputSamplesRow[iCurViewPos][iCurPosX].iD, m_piNewDepthData[iPosXinNewData] )) ]); 749 750 Int iCurSPos = xShiftNewData(iCurPosX,iPosXinNewData); 750 751 m_iCurDepth = m_piNewDepthData[iPosXinNewData]; … … 786 787 } 787 788 788 #ifdef LGE_VSO_EARLY_SKIP_A0093789 #ifdef H_3D_VSO_EARLY_SKIP 789 790 template <BlenMod iBM, Bool bBitInc> template<Bool bSet> __inline RMDist 790 791 TRenSingleModelC<iBM,bBitInc>::xRenderR( Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData , Bool bFast) … … 820 821 for (Int iPosY = iStartPosY; iPosY < iStartPosY + iHeight; iPosY++ ) 821 822 { 822 #if def LGE_VSO_EARLY_SKIP_A0093823 #if H_3D_VSO_EARLY_SKIP 823 824 if( m_bEarlySkip && bFast ) 824 825 { … … 846 847 xExtrapolateMarginR<bSet> ( iCurSPos, iStartChangePos, iError ); 847 848 848 iMaxChangedSPos = Max( iMaxChangedSPos, (iStartChangePos << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( Max(m_pcInputSamplesRow[iCurViewPos][iStartChangePos].iD, m_piNewDepthData[iPosXinNewData] )) ]);849 iMaxChangedSPos = std::max( iMaxChangedSPos, (iStartChangePos << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( std::max(m_pcInputSamplesRow[iCurViewPos][iStartChangePos].iD, m_piNewDepthData[iPosXinNewData] )) ]); 849 850 iLastSPos = iCurSPos; 850 851 m_iLastDepth = m_iCurDepth; … … 872 873 // Get minimal changed sample position 873 874 874 iMaxChangedSPos = Max( iMaxChangedSPos, (iCurPosX << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( Max(m_pcInputSamplesRow[iCurViewPos][iCurPosX].iD, m_piNewDepthData[iPosXinNewData] )) ]);875 iMaxChangedSPos = std::max( iMaxChangedSPos, (iCurPosX << m_iShiftPrec) - m_ppiCurLUT[0][ RenModRemoveBitInc( std::max(m_pcInputSamplesRow[iCurViewPos][iCurPosX].iD, m_piNewDepthData[iPosXinNewData] )) ]); 875 876 Int iCurSPos = xShiftNewData(iCurPosX,iPosXinNewData); 876 877 m_iCurDepth = m_piNewDepthData[iPosXinNewData]; … … 1002 1003 1003 1004 m_iThisDepth = m_iCurDepth; 1004 for (Int iFillSPos = Max(0, xRangeLeftL(iCurSPos) ); iFillSPos <= min(xRangeRightL( iLastSPos ) ,m_iLastOccludedSPosFP-1); iFillSPos++ )1005 for (Int iFillSPos = std::max(0, xRangeLeftL(iCurSPos) ); iFillSPos <= min(xRangeRightL( iLastSPos ) ,m_iLastOccludedSPosFP-1); iFillSPos++ ) 1005 1006 { 1006 1007 Int iDeltaCurSPos = (iFillSPos << m_iShiftPrec) - iCurSPos; … … 1189 1190 1190 1191 m_iThisDepth = m_iLastDepth; 1191 for (Int iFillSPos = Max(iStartFillSPosFP+1,0); iFillSPos <= min(xRangeRightL( iLastSPos ), m_iLastOccludedSPosFP-1 ); iFillSPos++ )1192 for (Int iFillSPos = std::max(iStartFillSPosFP+1,0); iFillSPos <= min(xRangeRightL( iLastSPos ), m_iLastOccludedSPosFP-1 ); iFillSPos++ ) 1192 1193 { 1193 1194 xSetShiftedPelL<bSet>( iLastPos, 0, iFillSPos, REN_IS_HOLE, riError ); … … 1233 1234 // return; 1234 1235 1235 Int iSPosFullPel = Max(0,xRangeLeftL(iCurSPos));1236 Int iSPosFullPel = std::max(0,xRangeLeftL(iCurSPos)); 1236 1237 1237 1238 m_iThisDepth = m_iCurDepth; … … 1253 1254 // return; 1254 1255 1255 Int iSPosFullPel = Min(m_iWidth-1,xRangeRightR(iCurSPos));1256 Int iSPosFullPel = std::min(m_iWidth-1,xRangeRightR(iCurSPos)); 1256 1257 1257 1258 m_iThisDepth = m_iCurDepth; … … 1413 1414 // Yuv 1414 1415 pcOutSample->iYLeft = pcInSample->aiY[iSubSourcePos]; 1415 #if H HI_VSO_COLOR_PLANES1416 #if H_3D_VSO_COLOR_PLANES 1416 1417 pcOutSample->iULeft = pcInSample->aiU[iSubSourcePos]; 1417 1418 pcOutSample->iVLeft = pcInSample->aiV[iSubSourcePos]; … … 1428 1429 else 1429 1430 { 1430 #if H HI_VSO_COLOR_PLANES1431 #if H_3D_VSO_COLOR_PLANES 1431 1432 riError += xGetDist( pcInSample->aiY[iSubSourcePos] - pcOutSample->iYRef, 1432 1433 pcInSample->aiU[iSubSourcePos] - pcOutSample->iURef, … … 1445 1446 { 1446 1447 Pel piBlendedValueY; 1447 #if H HI_VSO_COLOR_PLANES1448 #if H_3D_VSO_COLOR_PLANES 1448 1449 Pel piBlendedValueU; 1449 1450 Pel piBlendedValueV; … … 1453 1454 pcInSample ->aiY[iSubSourcePos], 1454 1455 pcOutSample->iYRight, 1455 #if H HI_VSO_COLOR_PLANES1456 #if H_3D_VSO_COLOR_PLANES 1456 1457 pcInSample ->aiU[iSubSourcePos], 1457 1458 pcOutSample->iURight, … … 1464 1465 pcOutSample->iFilledRight , 1465 1466 piBlendedValueY 1466 #if H HI_VSO_COLOR_PLANES1467 #if H_3D_VSO_COLOR_PLANES 1467 1468 , piBlendedValueU, 1468 1469 piBlendedValueV … … 1476 1477 pcOutSample->iYLeft = pcInSample ->aiY[iSubSourcePos]; 1477 1478 pcOutSample->iYBlended = piBlendedValueY; 1478 #if H HI_VSO_COLOR_PLANES1479 #if H_3D_VSO_COLOR_PLANES 1479 1480 pcOutSample->iULeft = pcInSample ->aiU[iSubSourcePos]; 1480 1481 pcOutSample->iUBlended = piBlendedValueU; … … 1486 1487 // Get Error 1487 1488 Int iDiffY = pcOutSample->iYRef - piBlendedValueY; 1488 #if H HI_VSO_COLOR_PLANES1489 #if H_3D_VSO_COLOR_PLANES 1489 1490 Int iDiffU = pcOutSample->iURef - piBlendedValueU; 1490 1491 Int iDiffV = pcOutSample->iVRef - piBlendedValueV; … … 1497 1498 { 1498 1499 Int iDiffY = pcOutSample->iYRef - piBlendedValueY; 1499 #if H HI_VSO_COLOR_PLANES1500 #if H_3D_VSO_COLOR_PLANES 1500 1501 Int iDiffU = pcOutSample->iURef - piBlendedValueU; 1501 1502 Int iDiffV = pcOutSample->iVRef - piBlendedValueV; … … 1543 1544 // Yuv 1544 1545 pcOutSample->iYRight = pcInSample->aiY[iSubSourcePos]; 1545 #if H HI_VSO_COLOR_PLANES1546 #if H_3D_VSO_COLOR_PLANES 1546 1547 pcOutSample->iURight = pcInSample->aiU[iSubSourcePos]; 1547 1548 pcOutSample->iVRight = pcInSample->aiV[iSubSourcePos]; … … 1559 1560 else 1560 1561 { 1561 #if H HI_VSO_COLOR_PLANES1562 #if H_3D_VSO_COLOR_PLANES 1562 1563 riError += xGetDist( pcInSample->aiY[iSubSourcePos] - pcOutSample->iYRef, 1563 1564 pcInSample->aiU[iSubSourcePos] - pcOutSample->iURef, … … 1576 1577 { 1577 1578 Pel piBlendedValueY; 1578 #if H HI_VSO_COLOR_PLANES1579 #if H_3D_VSO_COLOR_PLANES 1579 1580 Pel piBlendedValueU; 1580 1581 Pel piBlendedValueV; … … 1584 1585 pcOutSample->iYLeft, 1585 1586 pcInSample ->aiY[iSubSourcePos], 1586 #if H HI_VSO_COLOR_PLANES1587 #if H_3D_VSO_COLOR_PLANES 1587 1588 pcOutSample->iULeft, 1588 1589 pcInSample ->aiU[iSubSourcePos], … … 1595 1596 iFilled, 1596 1597 piBlendedValueY 1597 #if H HI_VSO_COLOR_PLANES1598 #if H_3D_VSO_COLOR_PLANES 1598 1599 , piBlendedValueU, 1599 1600 piBlendedValueV … … 1607 1608 pcOutSample->iYRight = pcInSample ->aiY[iSubSourcePos]; 1608 1609 pcOutSample->iYBlended = piBlendedValueY; 1609 #if H HI_VSO_COLOR_PLANES1610 #if H_3D_VSO_COLOR_PLANES 1610 1611 pcOutSample->iURight = pcInSample ->aiU[iSubSourcePos]; 1611 1612 pcOutSample->iUBlended = piBlendedValueU; … … 1617 1618 // Get Error 1618 1619 Int iDiffY = pcOutSample->iYRef - piBlendedValueY; 1619 #if H HI_VSO_COLOR_PLANES1620 #if H_3D_VSO_COLOR_PLANES 1620 1621 Int iDiffU = pcOutSample->iURef - piBlendedValueU; 1621 1622 Int iDiffV = pcOutSample->iVRef - piBlendedValueV; … … 1628 1629 { 1629 1630 Int iDiffY = pcOutSample->iYRef - piBlendedValueY; 1630 #if H HI_VSO_COLOR_PLANES1631 #if H_3D_VSO_COLOR_PLANES 1631 1632 Int iDiffU = pcOutSample->iURef - piBlendedValueU; 1632 1633 Int iDiffV = pcOutSample->iVRef - piBlendedValueV; … … 1680 1681 1681 1682 1682 #if H HI_VSO_COLOR_PLANES1683 #if H_3D_VSO_COLOR_PLANES 1683 1684 template <BlenMod iBM, Bool bBitInc> __inline Void 1684 1685 TRenSingleModelC<iBM,bBitInc>::xGetBlendedValue( Pel iYL, Pel iYR, Pel iUL, Pel iUR, Pel iVL, Pel iVR, Pel iDepthL, Pel iDepthR, Int iFilledL, Int iFilledR, Pel& riY, Pel& riU, Pel&riV ) … … 1695 1696 if (iBM == BLEND_LEFT ) 1696 1697 { 1697 #if H HI_VSO_COLOR_PLANES1698 #if H_3D_VSO_COLOR_PLANES 1698 1699 xGetBlendedValueBM1( iYL, iYR, iUL, iUR, iVL, iVR, iDepthL, iDepthR, iFilledL, iFilledR, riY, riU, riV ); 1699 1700 #else … … 1703 1704 else 1704 1705 { 1705 #if H HI_VSO_COLOR_PLANES1706 #if H_3D_VSO_COLOR_PLANES 1706 1707 xGetBlendedValueBM2( iYL, iYR, iUL, iUR, iVL, iVR, iDepthL, iDepthR, iFilledL, iFilledR, riY, riU, riV ); 1707 1708 #else … … 1721 1722 { 1722 1723 riY = xBlend( iYL, iYR, iFilledR >> 1 ); 1723 #if H HI_VSO_COLOR_PLANES1724 #if H_3D_VSO_COLOR_PLANES 1724 1725 riU = xBlend( iUL, iUR, iFilledR >> 1 ); 1725 1726 riV = xBlend( iVL, iVR, iFilledR >> 1 ); … … 1730 1731 { 1731 1732 riY = xBlend( iYR, iYL, (iFilledL >> 1) ); 1732 #if H HI_VSO_COLOR_PLANES1733 #if H_3D_VSO_COLOR_PLANES 1733 1734 riU = xBlend( iUR, iUL, (iFilledL >> 1) ); 1734 1735 riV = xBlend( iVR, iVL, (iFilledL >> 1) ); … … 1738 1739 { 1739 1740 riY = xBlend( iYL, iYR, m_iBlendDistWeight ); 1740 #if H HI_VSO_COLOR_PLANES1741 #if H_3D_VSO_COLOR_PLANES 1741 1742 riU = xBlend( iUL, iUR, m_iBlendDistWeight ); 1742 1743 riV = xBlend( iVL, iVR, m_iBlendDistWeight ); … … 1747 1748 { 1748 1749 riY = iYL; 1749 #if H HI_VSO_COLOR_PLANES1750 #if H_3D_VSO_COLOR_PLANES 1750 1751 riU = iUL; 1751 1752 riV = iVL; … … 1755 1756 { 1756 1757 riY = iYR; 1757 #if H HI_VSO_COLOR_PLANES1758 #if H_3D_VSO_COLOR_PLANES 1758 1759 riU = iUR; 1759 1760 riV = iVR; … … 1766 1767 { 1767 1768 riY = iYR; 1768 #if H HI_VSO_COLOR_PLANES1769 #if H_3D_VSO_COLOR_PLANES 1769 1770 riU = iUR; 1770 1771 riV = iVR; … … 1774 1775 { 1775 1776 riY = iYL; 1776 #if H HI_VSO_COLOR_PLANES1777 #if H_3D_VSO_COLOR_PLANES 1777 1778 riU = iUL; 1778 1779 riV = iVL; … … 1785 1786 { 1786 1787 riY = iYL; 1787 #if H HI_VSO_COLOR_PLANES1788 #if H_3D_VSO_COLOR_PLANES 1788 1789 riU = iUL; 1789 1790 riV = iVL; … … 1793 1794 { 1794 1795 riY = iYR; 1795 #if H HI_VSO_COLOR_PLANES1796 #if H_3D_VSO_COLOR_PLANES 1796 1797 riU = iUR; 1797 1798 riV = iVR; … … 1802 1803 1803 1804 template <BlenMod iBM, Bool bBitInc> __inline Void 1804 #if H HI_VSO_COLOR_PLANES1805 #if H_3D_VSO_COLOR_PLANES 1805 1806 TRenSingleModelC<iBM,bBitInc>::xGetBlendedValueBM1( Pel iYL, Pel iYR, Pel iUL, Pel iUR, Pel iVL, Pel iVR, Pel iDepthL, Pel iDepthR, Int iFilledL, Int iFilledR, Pel& riY, Pel& riU, Pel&riV ) 1806 1807 #else … … 1811 1812 { 1812 1813 riY = iYL; 1813 #if H HI_VSO_COLOR_PLANES1814 #if H_3D_VSO_COLOR_PLANES 1814 1815 riU = iUL; 1815 1816 riV = iVL; … … 1819 1820 { 1820 1821 riY = iYR; 1821 #if H HI_VSO_COLOR_PLANES1822 #if H_3D_VSO_COLOR_PLANES 1822 1823 riU = iUR; 1823 1824 riV = iVR; … … 1827 1828 { 1828 1829 riY = xBlend( iYR, iYL, iFilledL ); 1829 #if H HI_VSO_COLOR_PLANES1830 #if H_3D_VSO_COLOR_PLANES 1830 1831 riU = xBlend( iUR, iUL, iFilledL ); 1831 1832 riV = xBlend( iVR, iUL, iFilledL ); … … 1835 1836 1836 1837 template <BlenMod iBM, Bool bBitInc> __inline Void 1837 #if H HI_VSO_COLOR_PLANES1838 #if H_3D_VSO_COLOR_PLANES 1838 1839 TRenSingleModelC<iBM,bBitInc>::xGetBlendedValueBM2( Pel iYL, Pel iYR, Pel iUL, Pel iUR, Pel iVL, Pel iVR, Pel iDepthL, Pel iDepthR, Int iFilledL, Int iFilledR, Pel& riY, Pel& riU, Pel&riV ) 1839 1840 #else … … 1844 1845 { 1845 1846 riY = iYR; 1846 #if H HI_VSO_COLOR_PLANES1847 #if H_3D_VSO_COLOR_PLANES 1847 1848 riU = iUR; 1848 1849 riV = iVR; … … 1852 1853 { 1853 1854 riY = iYL; 1854 #if H HI_VSO_COLOR_PLANES1855 #if H_3D_VSO_COLOR_PLANES 1855 1856 riU = iUL; 1856 1857 riV = iVL; … … 1860 1861 { 1861 1862 riY = xBlend( iYL, iYR, iFilledR ); 1862 #if H HI_VSO_COLOR_PLANES1863 #if H_3D_VSO_COLOR_PLANES 1863 1864 riU = xBlend( iUL, iUR, iFilledR ); 1864 1865 riV = xBlend( iVL, iUR, iFilledR ); … … 1891 1892 template class TRenSingleModelC<BLEND_RIGHT,false>; 1892 1893 1893 #if def LGE_VSO_EARLY_SKIP_A00931894 #if H_3D_VSO_EARLY_SKIP 1894 1895 template <BlenMod iBM, Bool bBitInc> 1895 1896 __inline Bool … … 1957 1958 } 1958 1959 #endif 1959 #endif 1960 1960 #endif // H_3D 1961
Note: See TracChangeset for help on using the changeset viewer.