Ignore:
Timestamp:
26 May 2013, 16:22:23 (12 years ago)
Author:
tech
Message:

Added missing parts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.2-dev/source/Lib/TLibRenderer/TRenSingleModel.cpp

    r438 r446  
    3636#include "TRenSingleModel.h"
    3737
    38 #if !QC_MVHEVC_B0046
     38#if H_3D_VSO
     39
    3940////////////// TRENSINGLE MODEL ///////////////
    4041template <BlenMod iBM, Bool bBitInc>
    4142TRenSingleModelC<iBM,bBitInc>::TRenSingleModelC()
    42 :  m_iDistShift ( g_uiBitIncrement << 1 )
     43:  m_iDistShift ( ( g_bitDepthY - 8) << 1 )
    4344{
    4445  m_iWidth  = -1;
     
    8485  }
    8586
    86 #ifdef LGE_VSO_EARLY_SKIP_A0093
     87#if H_3D_VSO_EARLY_SKIP
    8788  m_pbHorSkip = NULL;
    8889#endif
     
    9293TRenSingleModelC<iBM,bBitInc>::~TRenSingleModelC()
    9394{
    94 #ifdef LGE_VSO_EARLY_SKIP_A0093
     95#if H_3D_VSO_EARLY_SKIP
    9596  if ( m_pbHorSkip )
    9697  {
     
    114115
    115116template <BlenMod iBM, Bool bBitInc> Void
    116 #if LGE_VSO_EARLY_SKIP_A0093
     117#if H_3D_VSO_EARLY_SKIP
    117118TRenSingleModelC<iBM,bBitInc>::create( Int iMode, Int iWidth, Int iHeight, Int iShiftPrec, Int*** aaaiSubPelShiftTable, Int iHoleMargin, Bool bUseOrgRef, Int iBlendMode, Bool bEarlySkip )
    118119#else
     
    121122
    122123{
    123 #if LGE_VSO_EARLY_SKIP_A0093
     124#if H_3D_VSO_EARLY_SKIP
    124125  m_pbHorSkip     = new Bool [MAX_CU_SIZE];
    125126  m_bEarlySkip    = bEarlySkip;
     
    182183  Pel* piDRow = piCurDepthPel;
    183184  Pel* piYRow = apiCurVideoPel[0];
    184 #if HHI_VSO_COLOR_PLANES
     185#if H_3D_VSO_COLOR_PLANES
    185186  Pel* piURow = apiCurVideoPel[1];
    186187  Pel* piVRow = apiCurVideoPel[2];
     
    196197      Int iSubPosX = (1 << m_iShiftPrec);
    197198      pcCurInputSampleRow[0].aiY[iSubPosX] = piYRow[0];
    198 #if HHI_VSO_COLOR_PLANES
     199#if H_3D_VSO_COLOR_PLANES
    199200      pcCurInputSampleRow[0].aiU[iSubPosX] = piURow[0];
    200201      pcCurInputSampleRow[0].aiV[iSubPosX] = piVRow[0];
     
    210211        Int iShift = (iPosX << m_iShiftPrec) + iSubPosX;
    211212        pcCurInputSampleRow[iPosX+iOffsetX].aiY[iSubPosX] = piYRow[iShift];
    212 #if HHI_VSO_COLOR_PLANES
     213#if H_3D_VSO_COLOR_PLANES
    213214        pcCurInputSampleRow[iPosX+iOffsetX].aiU[iSubPosX] = piURow[iShift];
    214215        pcCurInputSampleRow[iPosX+iOffsetX].aiV[iSubPosX] = piVRow[iShift];
     
    221222    piDRow += iCurDepthStride;
    222223    piYRow += aiCurVideoStride[0];
    223 #if HHI_VSO_COLOR_PLANES
     224#if H_3D_VSO_COLOR_PLANES
    224225    piURow += aiCurVideoStride[1];
    225226    piVRow += aiCurVideoStride[2];
     
    270271  { 
    271272  case 0:   
    272 #if LGE_VSO_EARLY_SKIP_A0093
     273#if H_3D_VSO_EARLY_SKIP
    273274    xRenderL<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[0], m_apiBaseDepthPel[0],false );
    274275#else
     
    277278    break;
    278279  case 1:   
    279 #ifdef LGE_VSO_EARLY_SKIP_A0093
     280#if H_3D_VSO_EARLY_SKIP
    280281    xRenderR<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[1], m_apiBaseDepthPel[1],false);
    281282#else
     
    285286  case 2:
    286287    TRenFilter::setupZLUT( true, 30, iDistToLeft, ppiBaseShiftLutLeft, ppiBaseShiftLutRight, m_iBlendZThres, m_iBlendDistWeight, m_piInvZLUTLeft, m_piInvZLUTRight );
    287 #ifdef LGE_VSO_EARLY_SKIP_A0093
     288#if H_3D_VSO_EARLY_SKIP
    288289    xRenderL<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[0], m_apiBaseDepthPel[0],false);
    289290    xRenderR<true>( 0, 0, m_iWidth, m_iUsedHeight, m_aiBaseDepthStrides[1], m_apiBaseDepthPel[1],false);
     
    306307
    307308template <BlenMod iBM, Bool bBitInc> Void
    308 #if HHI_VSO_COLOR_PLANES
     309#if H_3D_VSO_COLOR_PLANES
    309310TRenSingleModelC<iBM,bBitInc>::xGetSampleStrTextPtrs( Int iViewNum, Pel RenModelOutPels::*& rpiSrcY, Pel RenModelOutPels::*& rpiSrcU, Pel RenModelOutPels::*& rpiSrcV )
    310311#else
     
    316317  case 0:
    317318    rpiSrcY = &RenModelOutPels::iYLeft;
    318 #if HHI_VSO_COLOR_PLANES 
     319#if H_3D_VSO_COLOR_PLANES 
    319320    rpiSrcU = &RenModelOutPels::iULeft;
    320321    rpiSrcV = &RenModelOutPels::iVLeft;
     
    323324  case 1:
    324325    rpiSrcY = &RenModelOutPels::iYRight;
    325 #if HHI_VSO_COLOR_PLANES 
     326#if H_3D_VSO_COLOR_PLANES 
    326327    rpiSrcU = &RenModelOutPels::iURight;
    327328    rpiSrcV = &RenModelOutPels::iVRight;
     
    330331  case 2:
    331332    rpiSrcY = &RenModelOutPels::iYBlended;
    332 #if HHI_VSO_COLOR_PLANES 
     333#if H_3D_VSO_COLOR_PLANES 
    333334    rpiSrcU = &RenModelOutPels::iUBlended;
    334335    rpiSrcV = &RenModelOutPels::iVBlended;
     
    353354 
    354355  Pel* piYRow = m_aapiRefVideoPel[0];
    355 #if HHI_VSO_COLOR_PLANES
     356#if H_3D_VSO_COLOR_PLANES
    356357  Pel* piURow = m_aapiRefVideoPel[1];
    357358  Pel* piVRow = m_aapiRefVideoPel[2];
     
    363364    {     
    364365      pcCurOutSampleRow[iPosX].iYRef = piYRow[iPosX];
    365 #if HHI_VSO_COLOR_PLANES
     366#if H_3D_VSO_COLOR_PLANES
    366367      pcCurOutSampleRow[iPosX].iURef = piURow[iPosX];
    367368      pcCurOutSampleRow[iPosX].iVRef = piVRow[iPosX];
     
    372373   
    373374    piYRow += m_aiRefVideoStrides[0];
    374 #if HHI_VSO_COLOR_PLANES
     375#if H_3D_VSO_COLOR_PLANES
    375376    piURow += m_aiRefVideoStrides[1];
    376377    piVRow += m_aiRefVideoStrides[2];
     
    403404  Pel RenModelOutPels::* piSrcY = NULL;
    404405
    405 #if HHI_VSO_COLOR_PLANES 
     406#if H_3D_VSO_COLOR_PLANES 
    406407  Pel RenModelOutPels::* piSrcU = NULL;
    407408  Pel RenModelOutPels::* piSrcV = NULL;
     
    416417    {     
    417418      pcCurOutSampleRow[iPosX].iYRef = pcCurOutSampleRow[iPosX].*piSrcY;
    418 #if HHI_VSO_COLOR_PLANES
     419#if H_3D_VSO_COLOR_PLANES
    419420      pcCurOutSampleRow[iPosX].iURef = pcCurOutSampleRow[iPosX].*piSrcU;
    420421      pcCurOutSampleRow[iPosX].iVRef = pcCurOutSampleRow[iPosX].*piSrcV;
     
    449450      pcOutSampleRow[iPosX].iYRight       = 0;
    450451      pcOutSampleRow[iPosX].iYBlended     = 0;
    451 #if HHI_VSO_COLOR_PLANES             
     452#if H_3D_VSO_COLOR_PLANES             
    452453      // U Planes                   
    453       pcOutSampleRow[iPosX].iULeft        = 128 << g_uiBitIncrement;
    454       pcOutSampleRow[iPosX].iURight       = 128 << g_uiBitIncrement;
    455       pcOutSampleRow[iPosX].iUBlended     = 128 << 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);
    456457                                     
    457458      // V Planes                   
    458       pcOutSampleRow[iPosX].iVLeft        = 128 << g_uiBitIncrement;
    459       pcOutSampleRow[iPosX].iVRight       = 128 << g_uiBitIncrement;
    460       pcOutSampleRow[iPosX].iVBlended     = 128 << 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);
    461462#endif
    462463      //// Input Samples
     
    472473
    473474
    474 #ifdef LGE_VSO_EARLY_SKIP_A0093
     475#if H_3D_VSO_EARLY_SKIP
    475476template <BlenMod iBM, Bool bBitInc> RMDist
    476477TRenSingleModelC<iBM,bBitInc>::getDistDepth( Int iViewPos, Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData , Pel * piOrgData, Int iOrgStride )
     
    481482{
    482483  RMDist iSSE = 0;
    483 #ifdef LGE_VSO_EARLY_SKIP_A0093
     484#if H_3D_VSO_EARLY_SKIP
    484485  Bool   bEarlySkip;
    485486#endif
     
    487488  {
    488489  case 0:
    489 #ifdef LGE_VSO_EARLY_SKIP_A0093
     490#if H_3D_VSO_EARLY_SKIP
    490491    bEarlySkip = m_bEarlySkip ? xDetectEarlySkipL(iStartPosX,   iStartPosY,   iWidth,   iHeight,   iStride, piNewData, piOrgData, iOrgStride) : false;
    491492    if( !bEarlySkip )
     
    498499    break;
    499500  case 1:
    500 #ifdef LGE_VSO_EARLY_SKIP_A0093
     501#if H_3D_VSO_EARLY_SKIP
    501502    bEarlySkip = m_bEarlySkip ? xDetectEarlySkipR(iStartPosX,   iStartPosY,   iWidth,   iHeight,   iStride, piNewData, piOrgData, iOrgStride) : false;
    502503    if( !bEarlySkip )
     
    514515  return iSSE;
    515516}
    516 #ifdef LGE_VSO_EARLY_SKIP_A0093
     517#if H_3D_VSO_EARLY_SKIP
    517518template <BlenMod iBM, Bool bBitInc> Void
    518519TRenSingleModelC<iBM,bBitInc>::setDepth( Int iViewPos, Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData, Pel* piOrgData, Int iOrgStride )
     
    522523#endif
    523524{
    524 #ifdef  LGE_VSO_EARLY_SKIP_A0093
     525#ifdef  H_3D_VSO_EARLY_SKIP
    525526  Bool bEarlySkip;
    526527#endif
     
    528529  {
    529530  case 0:
    530 #ifdef LGE_VSO_EARLY_SKIP_A0093
     531#if H_3D_VSO_EARLY_SKIP
    531532    bEarlySkip = m_bEarlySkip ? xDetectEarlySkipL(iStartPosX,   iStartPosY,   iWidth,   iHeight,   iStride, piNewData, piOrgData,iOrgStride) : false;
    532533    if( !bEarlySkip )
     
    539540    break;
    540541  case 1:
    541 #ifdef LGE_VSO_EARLY_SKIP_A0093
     542#if H_3D_VSO_EARLY_SKIP
    542543    bEarlySkip = m_bEarlySkip ? xDetectEarlySkipR(iStartPosX,   iStartPosY,   iWidth,   iHeight,   iStride, piNewData, piOrgData,iOrgStride) : false;
    543544    if( !bEarlySkip )
     
    560561  AOT( pcPicYuv->getHeight() < m_iUsedHeight + m_iHorOffset );
    561562
    562 #if HHI_VSO_COLOR_PLANES
     563#if H_3D_VSO_COLOR_PLANES
    563564  Pel RenModelOutPels::* piText[3] = { NULL, NULL, NULL };
    564565  xGetSampleStrTextPtrs(iViewPos, piText[0], piText[1], piText[2]);
     
    581582  xGetSampleStrTextPtrs(iViewPos, piY);
    582583  xCopyFromSampleStruct( m_pcOutputSamples, m_iOutputSamplesStride, piY, pcPicYuv->getLumaAddr() + m_iHorOffset * pcPicYuv->getStride(), pcPicYuv->getStride(), m_iWidth, m_iUsedHeight );
    583   pcPicYuv->setChromaTo( 128 << g_uiBitIncrement );   
     584  pcPicYuv->setChromaTo( 1 << (g_bitDepthC - 1) );   
    584585#endif 
    585586}
     
    595596  xGetSampleStrDepthPtrs(iViewPos, piD);
    596597  xCopyFromSampleStruct( m_pcOutputSamples, m_iOutputSamplesStride, piD, pcPicYuv->getLumaAddr() + pcPicYuv->getStride() * m_iHorOffset, pcPicYuv->getStride(), m_iWidth, m_iUsedHeight );
    597   pcPicYuv->setChromaTo( 128 << g_uiBitIncrement );   
     598  pcPicYuv->setChromaTo( 1 << (g_bitDepthC - 1) );   
    598599}
    599600
     
    605606  AOT( pcPicYuv->getHeight() <  m_iUsedHeight + m_iHorOffset);
    606607
    607 #if HHI_VSO_COLOR_PLANES
     608#if H_3D_VSO_COLOR_PLANES
    608609  Pel RenModelOutPels::* piText[3];
    609610  piText[0] = &RenModelOutPels::iYRef;
     
    627628#else
    628629  xCopyFromSampleStruct( m_pcOutputSamples, m_iOutputSamplesStride, &RenModelOutPels::iYRef, pcPicYuv->getLumaAddr() *  pcPicYuv->getStride() + m_iHorOffset, pcPicYuv->getStride(), m_iWidth, m_iUsedHeight );
    629   pcPicYuv->setChromaTo( 128 << g_uiBitIncrement );   
     630  pcPicYuv->setChromaTo( 1 << ( g_bitDepthC - 1 ) );   
    630631#endif 
    631632}
     
    662663  m_pcOutputSamplesRow   += m_iOutputSamplesStride; 
    663664}
    664 #if LGE_VSO_EARLY_SKIP_A0093
     665#if H_3D_VSO_EARLY_SKIP
    665666template <BlenMod iBM, Bool bBitInc> template<Bool bSet> __inline RMDist
    666667TRenSingleModelC<iBM,bBitInc>::xRenderL( Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData, Bool bFast)
     
    695696  for (Int iPosY = iStartPosY; iPosY < iStartPosY + iHeight; iPosY++ )
    696697  {
    697 #ifdef LGE_VSO_EARLY_SKIP_A0093
     698#if H_3D_VSO_EARLY_SKIP
    698699    if( m_bEarlySkip && bFast )
    699700    {
     
    721722      xExtrapolateMarginL<bSet>  ( iCurSPos, iEndChangePos, iError );
    722723
    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] )) ]);
    724725      iLastSPos             = iCurSPos;
    725726      m_iLastDepth          = m_iCurDepth;
     
    746747      // Get minimal changed sample position
    747748
    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] )) ]);
    749750      Int iCurSPos    = xShiftNewData(iCurPosX,iPosXinNewData);
    750751      m_iCurDepth     = m_piNewDepthData[iPosXinNewData];
     
    786787}
    787788
    788 #ifdef  LGE_VSO_EARLY_SKIP_A0093
     789#ifdef  H_3D_VSO_EARLY_SKIP
    789790template <BlenMod iBM, Bool bBitInc> template<Bool bSet> __inline RMDist
    790791TRenSingleModelC<iBM,bBitInc>::xRenderR( Int iStartPosX, Int iStartPosY, Int iWidth, Int iHeight, Int iStride, Pel* piNewData , Bool bFast)
     
    820821  for (Int iPosY = iStartPosY; iPosY < iStartPosY + iHeight; iPosY++ )
    821822  {
    822 #ifdef LGE_VSO_EARLY_SKIP_A0093
     823#if H_3D_VSO_EARLY_SKIP
    823824    if( m_bEarlySkip && bFast )
    824825    {
     
    846847      xExtrapolateMarginR<bSet>     ( iCurSPos, iStartChangePos, iError );
    847848
    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] )) ]);
    849850      iLastSPos             = iCurSPos;
    850851      m_iLastDepth          = m_iCurDepth;
     
    872873      // Get minimal changed sample position
    873874
    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] )) ]);
    875876      Int iCurSPos    = xShiftNewData(iCurPosX,iPosXinNewData);
    876877      m_iCurDepth     = m_piNewDepthData[iPosXinNewData];
     
    10021003
    10031004    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++ )
    10051006    {
    10061007      Int iDeltaCurSPos  = (iFillSPos << m_iShiftPrec) - iCurSPos;
     
    11891190
    11901191  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++ )
    11921193  {
    11931194    xSetShiftedPelL<bSet>( iLastPos, 0,  iFillSPos, REN_IS_HOLE, riError );
     
    12331234//    return;
    12341235
    1235   Int iSPosFullPel = Max(0,xRangeLeftL(iCurSPos));
     1236  Int iSPosFullPel = std::max(0,xRangeLeftL(iCurSPos));
    12361237
    12371238  m_iThisDepth = m_iCurDepth;
     
    12531254  //    return;
    12541255
    1255   Int iSPosFullPel = Min(m_iWidth-1,xRangeRightR(iCurSPos));
     1256  Int iSPosFullPel = std::min(m_iWidth-1,xRangeRightR(iCurSPos));
    12561257
    12571258  m_iThisDepth = m_iCurDepth;
     
    14131414    // Yuv
    14141415    pcOutSample->iYLeft  = pcInSample->aiY[iSubSourcePos];
    1415 #if HHI_VSO_COLOR_PLANES
     1416#if H_3D_VSO_COLOR_PLANES
    14161417    pcOutSample->iULeft  = pcInSample->aiU[iSubSourcePos];
    14171418    pcOutSample->iVLeft  = pcInSample->aiV[iSubSourcePos];
     
    14281429  else
    14291430  {
    1430 #if HHI_VSO_COLOR_PLANES
     1431#if H_3D_VSO_COLOR_PLANES
    14311432    riError += xGetDist( pcInSample->aiY[iSubSourcePos] - pcOutSample->iYRef,
    14321433                         pcInSample->aiU[iSubSourcePos] - pcOutSample->iURef,
     
    14451446{
    14461447  Pel piBlendedValueY;
    1447 #if HHI_VSO_COLOR_PLANES
     1448#if H_3D_VSO_COLOR_PLANES
    14481449  Pel piBlendedValueU;
    14491450  Pel piBlendedValueV;
     
    14531454    pcInSample ->aiY[iSubSourcePos],
    14541455    pcOutSample->iYRight,   
    1455 #if HHI_VSO_COLOR_PLANES
     1456#if H_3D_VSO_COLOR_PLANES
    14561457    pcInSample ->aiU[iSubSourcePos],
    14571458    pcOutSample->iURight,   
     
    14641465    pcOutSample->iFilledRight  ,
    14651466    piBlendedValueY
    1466 #if HHI_VSO_COLOR_PLANES
     1467#if H_3D_VSO_COLOR_PLANES
    14671468    , piBlendedValueU,
    14681469    piBlendedValueV
     
    14761477    pcOutSample->iYLeft      = pcInSample ->aiY[iSubSourcePos];
    14771478    pcOutSample->iYBlended   = piBlendedValueY;   
    1478 #if HHI_VSO_COLOR_PLANES 
     1479#if H_3D_VSO_COLOR_PLANES 
    14791480    pcOutSample->iULeft      = pcInSample ->aiU[iSubSourcePos];
    14801481    pcOutSample->iUBlended   = piBlendedValueU;   
     
    14861487    // Get Error
    14871488    Int iDiffY = pcOutSample->iYRef - piBlendedValueY;
    1488 #if HHI_VSO_COLOR_PLANES
     1489#if H_3D_VSO_COLOR_PLANES
    14891490    Int iDiffU = pcOutSample->iURef - piBlendedValueU;
    14901491    Int iDiffV = pcOutSample->iVRef - piBlendedValueV;
     
    14971498  {
    14981499    Int iDiffY = pcOutSample->iYRef - piBlendedValueY;
    1499 #if HHI_VSO_COLOR_PLANES
     1500#if H_3D_VSO_COLOR_PLANES
    15001501    Int iDiffU = pcOutSample->iURef - piBlendedValueU;
    15011502    Int iDiffV = pcOutSample->iVRef - piBlendedValueV;
     
    15431544    // Yuv
    15441545    pcOutSample->iYRight  = pcInSample->aiY[iSubSourcePos];
    1545 #if HHI_VSO_COLOR_PLANES
     1546#if H_3D_VSO_COLOR_PLANES
    15461547    pcOutSample->iURight  = pcInSample->aiU[iSubSourcePos];
    15471548    pcOutSample->iVRight  = pcInSample->aiV[iSubSourcePos];
     
    15591560  else
    15601561  {
    1561 #if HHI_VSO_COLOR_PLANES
     1562#if H_3D_VSO_COLOR_PLANES
    15621563    riError += xGetDist( pcInSample->aiY[iSubSourcePos] - pcOutSample->iYRef,
    15631564      pcInSample->aiU[iSubSourcePos] - pcOutSample->iURef,
     
    15761577{
    15771578  Pel piBlendedValueY;
    1578 #if HHI_VSO_COLOR_PLANES
     1579#if H_3D_VSO_COLOR_PLANES
    15791580  Pel piBlendedValueU;
    15801581  Pel piBlendedValueV;
     
    15841585    pcOutSample->iYLeft,
    15851586    pcInSample ->aiY[iSubSourcePos],       
    1586 #if HHI_VSO_COLOR_PLANES
     1587#if H_3D_VSO_COLOR_PLANES
    15871588    pcOutSample->iULeft,   
    15881589    pcInSample ->aiU[iSubSourcePos],
     
    15951596    iFilled,
    15961597    piBlendedValueY
    1597 #if HHI_VSO_COLOR_PLANES
     1598#if H_3D_VSO_COLOR_PLANES
    15981599    , piBlendedValueU,
    15991600    piBlendedValueV
     
    16071608    pcOutSample->iYRight     = pcInSample ->aiY[iSubSourcePos];
    16081609    pcOutSample->iYBlended   = piBlendedValueY;   
    1609 #if HHI_VSO_COLOR_PLANES 
     1610#if H_3D_VSO_COLOR_PLANES 
    16101611    pcOutSample->iURight     = pcInSample ->aiU[iSubSourcePos];
    16111612    pcOutSample->iUBlended   = piBlendedValueU;   
     
    16171618    // Get Error
    16181619    Int iDiffY = pcOutSample->iYRef - piBlendedValueY;
    1619 #if HHI_VSO_COLOR_PLANES
     1620#if H_3D_VSO_COLOR_PLANES
    16201621    Int iDiffU = pcOutSample->iURef - piBlendedValueU;
    16211622    Int iDiffV = pcOutSample->iVRef - piBlendedValueV;
     
    16281629  {
    16291630    Int iDiffY = pcOutSample->iYRef - piBlendedValueY;
    1630 #if HHI_VSO_COLOR_PLANES
     1631#if H_3D_VSO_COLOR_PLANES
    16311632    Int iDiffU = pcOutSample->iURef - piBlendedValueU;
    16321633    Int iDiffV = pcOutSample->iVRef - piBlendedValueV;
     
    16801681
    16811682
    1682 #if HHI_VSO_COLOR_PLANES
     1683#if H_3D_VSO_COLOR_PLANES
    16831684template <BlenMod iBM, Bool bBitInc>  __inline Void
    16841685TRenSingleModelC<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 )
     
    16951696    if (iBM == BLEND_LEFT )
    16961697    {
    1697 #if HHI_VSO_COLOR_PLANES
     1698#if H_3D_VSO_COLOR_PLANES
    16981699      xGetBlendedValueBM1(  iYL,  iYR,  iUL,  iUR,  iVL,  iVR,  iDepthL,  iDepthR,  iFilledL,  iFilledR,  riY,  riU, riV );
    16991700#else
     
    17031704    else
    17041705    {
    1705 #if HHI_VSO_COLOR_PLANES
     1706#if H_3D_VSO_COLOR_PLANES
    17061707      xGetBlendedValueBM2(  iYL,  iYR,  iUL,  iUR,  iVL,  iVR,  iDepthL,  iDepthR,  iFilledL,  iFilledR,  riY,  riU, riV );
    17071708#else
     
    17211722      {
    17221723        riY = xBlend( iYL, iYR, iFilledR >> 1 );
    1723 #if HHI_VSO_COLOR_PLANES
     1724#if H_3D_VSO_COLOR_PLANES
    17241725        riU = xBlend( iUL, iUR, iFilledR >> 1 );
    17251726        riV = xBlend( iVL, iVR, iFilledR >> 1 );
     
    17301731      {
    17311732        riY = xBlend( iYR, iYL, (iFilledL >> 1) );
    1732 #if HHI_VSO_COLOR_PLANES
     1733#if H_3D_VSO_COLOR_PLANES
    17331734        riU = xBlend( iUR, iUL, (iFilledL >> 1) );
    17341735        riV = xBlend( iVR, iVL, (iFilledL >> 1) );
     
    17381739      {
    17391740        riY = xBlend( iYL, iYR, m_iBlendDistWeight );
    1740 #if HHI_VSO_COLOR_PLANES   
     1741#if H_3D_VSO_COLOR_PLANES   
    17411742        riU = xBlend( iUL, iUR, m_iBlendDistWeight );
    17421743        riV = xBlend( iVL, iVR, m_iBlendDistWeight );
     
    17471748    {
    17481749      riY = iYL;
    1749 #if HHI_VSO_COLOR_PLANES
     1750#if H_3D_VSO_COLOR_PLANES
    17501751      riU = iUL;
    17511752      riV = iVL;
     
    17551756    {
    17561757      riY = iYR;
    1757 #if HHI_VSO_COLOR_PLANES
     1758#if H_3D_VSO_COLOR_PLANES
    17581759      riU = iUR;
    17591760      riV = iVR;
     
    17661767    {
    17671768        riY =  iYR;
    1768 #if HHI_VSO_COLOR_PLANES
     1769#if H_3D_VSO_COLOR_PLANES
    17691770        riU =  iUR;
    17701771        riV =  iVR;
     
    17741775    {
    17751776        riY =  iYL;
    1776 #if HHI_VSO_COLOR_PLANES
     1777#if H_3D_VSO_COLOR_PLANES
    17771778        riU =  iUL;
    17781779        riV =  iVL;
     
    17851786    {
    17861787        riY = iYL;
    1787 #if HHI_VSO_COLOR_PLANES
     1788#if H_3D_VSO_COLOR_PLANES
    17881789        riU = iUL;
    17891790        riV = iVL;
     
    17931794    {
    17941795      riY = iYR;
    1795 #if HHI_VSO_COLOR_PLANES
     1796#if H_3D_VSO_COLOR_PLANES
    17961797      riU = iUR;
    17971798      riV = iVR;
     
    18021803
    18031804template <BlenMod iBM, Bool bBitInc> __inline Void
    1804 #if HHI_VSO_COLOR_PLANES
     1805#if H_3D_VSO_COLOR_PLANES
    18051806TRenSingleModelC<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 )
    18061807#else
     
    18111812  {
    18121813    riY = iYL;
    1813 #if HHI_VSO_COLOR_PLANES
     1814#if H_3D_VSO_COLOR_PLANES
    18141815    riU = iUL;
    18151816    riV = iVL;
     
    18191820  {
    18201821    riY = iYR;
    1821 #if HHI_VSO_COLOR_PLANES
     1822#if H_3D_VSO_COLOR_PLANES
    18221823    riU = iUR;
    18231824    riV = iVR;
     
    18271828  {
    18281829    riY = xBlend( iYR, iYL, iFilledL );
    1829 #if HHI_VSO_COLOR_PLANES
     1830#if H_3D_VSO_COLOR_PLANES
    18301831    riU = xBlend( iUR, iUL, iFilledL );
    18311832    riV = xBlend( iVR, iUL, iFilledL );
     
    18351836
    18361837template <BlenMod iBM, Bool bBitInc> __inline Void
    1837 #if HHI_VSO_COLOR_PLANES
     1838#if H_3D_VSO_COLOR_PLANES
    18381839TRenSingleModelC<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 )
    18391840#else
     
    18441845  {
    18451846    riY = iYR;
    1846 #if HHI_VSO_COLOR_PLANES
     1847#if H_3D_VSO_COLOR_PLANES
    18471848    riU = iUR;
    18481849    riV = iVR;
     
    18521853  {
    18531854    riY = iYL;
    1854 #if HHI_VSO_COLOR_PLANES
     1855#if H_3D_VSO_COLOR_PLANES
    18551856    riU = iUL;
    18561857    riV = iVL;
     
    18601861  {
    18611862    riY = xBlend( iYL, iYR, iFilledR );
    1862 #if HHI_VSO_COLOR_PLANES
     1863#if H_3D_VSO_COLOR_PLANES
    18631864    riU = xBlend( iUL, iUR, iFilledR );
    18641865    riV = xBlend( iVL, iUR, iFilledR );
     
    18911892template class TRenSingleModelC<BLEND_RIGHT,false>;
    18921893
    1893 #ifdef LGE_VSO_EARLY_SKIP_A0093
     1894#if H_3D_VSO_EARLY_SKIP
    18941895template <BlenMod iBM, Bool bBitInc>
    18951896__inline Bool
     
    19571958}
    19581959#endif
    1959 #endif
    1960 
     1960#endif // H_3D
     1961
Note: See TracChangeset for help on using the changeset viewer.