Ignore:
Timestamp:
17 Jul 2015, 05:43:37 (9 years ago)
Author:
seregin
Message:

port rev 4322 (g_bitDepth)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp

    r1263 r1287  
    499499  if  ( pcCU->getQtRootCbf( 0) )
    500500  {
    501     m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ) );
     501#if SVC_EXTENSION
     502    m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ), pcCU->getSlice()->getBitDepths() );
     503#else
     504    m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ), pcCU->getSlice()->getSPS()->getBitDepths() );
     505#endif
    502506  }
    503507  else
     
    642646#endif
    643647
     648#if SVC_EXTENSION
     649  const Int clipbd = pcCU->getSlice()->getBitDepth(toChannelType(compID));
     650#else
     651  const Int clipbd = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID));
     652#endif
    644653#if O0043_BEST_EFFORT_DECODING
    645   const Int bitDepthDelta = g_bitDepthInStream[toChannelType(compID)] - g_bitDepth[toChannelType(compID)];
    646 #endif
    647   const Int clipbd = g_bitDepth[toChannelType(compID)];
     654  const Int bitDepthDelta = pcCU->getSlice()->getSPS()->getStreamBitDepth(toChannelType(compID)) - clipbd;
     655#endif
    648656
    649657  if( useCrossComponentPrediction )
     
    825833        Pel* piPicReco         = pcCU->getPic()->getPicYuvRec()->getAddr(compID, pcCU->getCtuRsAddr(), pcCU->getZorderIdxInCtu()+uiPartIdx);
    826834  const UInt uiPicStride       = pcCU->getPic()->getPicYuvRec()->getStride(compID);
    827   const UInt uiPcmLeftShiftBit = g_bitDepth[toChannelType(compID)] - pcCU->getSlice()->getSPS()->getPCMBitDepth(toChannelType(compID));
     835#if SVC_EXTENSION
     836  const UInt uiPcmLeftShiftBit = pcCU->getSlice()->getBitDepth(toChannelType(compID)) - pcCU->getSlice()->getSPS()->getPCMBitDepth(toChannelType(compID));
     837#else
     838  const UInt uiPcmLeftShiftBit = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)) - pcCU->getSlice()->getSPS()->getPCMBitDepth(toChannelType(compID));
     839#endif
    828840
    829841  for(UInt uiY = 0; uiY < uiHeight; uiY++ )
Note: See TracChangeset for help on using the changeset viewer.