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/TLibCommon/TComPattern.cpp

    r1260 r1287  
    7979                                           Int iRoiWidth,
    8080                                           Int iRoiHeight,
    81                                            Int iStride
     81                                           Int iStride,
     82                                           Int bitDepth
    8283                                           )
    8384{
    8485  m_piROIOrigin    = piTexture;
    85   m_iROIWidth       = iRoiWidth;
    86   m_iROIHeight      = iRoiHeight;
    87   m_iPatternStride  = iStride;
     86  m_iROIWidth      = iRoiWidth;
     87  m_iROIHeight     = iRoiHeight;
     88  m_iPatternStride = iStride;
     89  m_bitDepth       = bitDepth;
    8890}
    8991
     
    9597                               Int iRoiWidth,
    9698                               Int iRoiHeight,
    97                                Int iStride)
    98 {
    99   m_cPatternY. setPatternParamPel( piY,  iRoiWidth, iRoiHeight, iStride);
     99                               Int iStride,
     100                               Int bitDepthLuma)
     101{
     102  m_cPatternY. setPatternParamPel( piY,  iRoiWidth, iRoiHeight, iStride, bitDepthLuma);
    100103}
    101104
     
    120123  const Int  iAboveUnits      = iTUWidthInUnits  << 1;
    121124  const Int  iLeftUnits       = iTUHeightInUnits << 1;
     125#if SVC_EXTENSION
     126  const Int  bitDepthForChannel = pcCU->getSlice()->getBitDepth(chType);
     127#else
     128  const Int  bitDepthForChannel = pcCU->getSlice()->getSPS()->getBitDepth(chType);
     129#endif
    122130
    123131  assert(iTUHeightInUnits > 0 && iTUWidthInUnits > 0);
     
    156164    Pel *piRoiOrigin = pcCU->getPic()->getPicYuvRec()->getAddr(compID, pcCU->getCtuRsAddr(), pcCU->getZorderIdxInCtu()+uiZorderIdxInPart);
    157165#if O0043_BEST_EFFORT_DECODING
    158     fillReferenceSamples (g_bitDepthInStream[chType], g_bitDepthInStream[chType] - g_bitDepth[chType], pcCU, piRoiOrigin, piAdiTemp, bNeighborFlags, iNumIntraNeighbor,  iUnitWidth, iUnitHeight, iAboveUnits, iLeftUnits,
    159 #else
    160     fillReferenceSamples (g_bitDepth[chType], pcCU, piRoiOrigin, piAdiTemp, bNeighborFlags, iNumIntraNeighbor,  iUnitWidth, iUnitHeight, iAboveUnits, iLeftUnits,
     166    const Int  bitDepthForChannelInStream = pcCU->getSlice()->getSPS()->getStreamBitDepth(chType);
     167    fillReferenceSamples (bitDepthForChannelInStream, bitDepthForChannelInStream - bitDepthForChannel, pcCU, piRoiOrigin, piAdiTemp, bNeighborFlags, iNumIntraNeighbor,  iUnitWidth, iUnitHeight, iAboveUnits, iLeftUnits,
     168#else
     169    fillReferenceSamples (bitDepthForChannel, pcCU, piRoiOrigin, piAdiTemp, bNeighborFlags, iNumIntraNeighbor,  iUnitWidth, iUnitHeight, iAboveUnits, iLeftUnits,
    161170#endif
    162171                          uiTuWidth, uiTuHeight, uiROIWidth, uiROIHeight, iPicStride, toChannelType(compID), chFmt);
     
    202211      {
    203212#if O0043_BEST_EFFORT_DECODING
    204         const Int  threshold     = 1 << (g_bitDepthInStream[chType] - 5);
    205 #else
    206         const Int  threshold     = 1 << (g_bitDepth[chType] - 5);
     213        const Int  threshold     = 1 << (bitDepthForChannelInStream - 5);
     214#else
     215        const Int  threshold     = 1 << (bitDepthForChannel - 5);
    207216#endif
    208217        const Bool bilinearLeft  = abs((bottomLeft + topLeft ) - (2 * piAdiTemp[stride * uiTuHeight])) < threshold; //difference between the
Note: See TracChangeset for help on using the changeset viewer.