Changeset 102 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/TEncSlice.cpp


Ignore:
Timestamp:
11 Aug 2012, 14:39:19 (12 years ago)
Author:
tech
Message:

SAIT_VSO_EST_A0033 code improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncSlice.cpp

    r101 r102  
    4242#endif
    4343#include <math.h>
    44 #if SAIT_VSO_EST_A0033
    45 extern Double g_dDispCoeff;
    46 #endif
    4744
    4845//! \ingroup TLibEncoder
     
    376373#endif
    377374
     375#if SAIT_VSO_EST_A0033
     376  m_pcRdCost->setDisparityCoeff( m_pcCfg->getDispCoeff() );
     377#endif
     378
    378379#if RDOQ_CHROMA_LAMBDA
    379380// for RDOQ
     
    727728 if( m_pcCfg->getUseVSO() )
    728729 {
    729    m_pcRdCost->setDisparityCoeff( g_dDispCoeff );  // Temp. code!!!
    730    //printf( "Disp Coeff : %3.4f \n", m_pcRdCost->getDisparityCoeff() );
    731730
    732731   Int frameWidth = m_pcCfg->getSourceWidth();
     
    739738   for( Int y = 0 ; y < m_pcCfg->getSourceHeight() ; y++ )
    740739   {
    741      pVideoRec[-4] = pVideoRec[-3] = pVideoRec[-2] = pVideoRec[-1] = pVideoRec[0];
    742      pVideoRec[frameWidth+3] = pVideoRec[frameWidth+2] = pVideoRec[frameWidth+1] = pVideoRec[frameWidth] = pVideoRec[frameWidth-1];
    743      pDepthOrg[-4] = pDepthOrg[-3] = pDepthOrg[-2] = pDepthOrg[-1] = pDepthOrg[0];
    744      pDepthOrg[frameWidth+3] = pDepthOrg[frameWidth+2] = pDepthOrg[frameWidth+1] = pDepthOrg[frameWidth] = pDepthOrg[frameWidth-1];
     740     pVideoRec[-1] = pVideoRec[0];
     741     pVideoRec[frameWidth] = pVideoRec[frameWidth-1];
     742     pDepthOrg[-1] = pDepthOrg[0];
     743     pDepthOrg[frameWidth] = pDepthOrg[frameWidth-1];
    745744
    746745     pVideoRec += iVideoRecStride;
     
    749748 }
    750749#endif
     750
    751751  TEncTop* pcEncTop = (TEncTop*) m_pcCfg;
    752752  TEncSbac**** ppppcRDSbacCoders    = pcEncTop->getRDSbacCoders();
Note: See TracChangeset for help on using the changeset viewer.