Ignore:
Timestamp:
11 Dec 2015, 00:05:48 (8 years ago)
Author:
seregin
Message:

infer parameters in SPS after activation, fixing chroma scaling for non 4:2:0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComLoopFilter.cpp

    r1465 r1502  
    185185      UInt uiLPelX   = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsZorderIdx] ];
    186186      UInt uiTPelY   = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsZorderIdx] ];
    187 #if SVC_EXTENSION
    188       if( ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) )
    189 #else
    190187      if( ( uiLPelX < sps.getPicWidthInLumaSamples() ) && ( uiTPelY < sps.getPicHeightInLumaSamples() ) )
    191 #endif
    192188      {
    193189        xDeblockCU( pcCU, uiAbsZorderIdx, uiDepth+1, edgeDir );
     
    566562  const TComSPS    &sps                           = *(pcCU->getSlice()->getSPS());
    567563  const Bool        ppsTransquantBypassEnableFlag = pcCU->getSlice()->getPPS()->getTransquantBypassEnableFlag();
    568 
    569 #if SVC_EXTENSION
    570   const Int bitDepthLuma                          = pcCU->getSlice()->getBitDepth(CHANNEL_TYPE_LUMA);
    571 #else
    572564  const Int         bitDepthLuma                  = sps.getBitDepth(CHANNEL_TYPE_LUMA);
    573 #endif
    574 
    575565  const Bool        lfCrossSliceBoundaryFlag      = pcCU->getSlice()->getLFCrossSliceBoundaryFlag();
    576566
     
    691681        Pel        *piSrcCr        = pcPicYuvRec->getAddr( COMPONENT_Cr, pcCU->getCtuRsAddr(), uiAbsZorderIdx );
    692682  const TComSPS    &sps            = *(pcCU->getSlice()->getSPS());
    693 #if SVC_EXTENSION
    694   const Int         bitDepthChroma = pcCU->getSlice()->getBitDepth(CHANNEL_TYPE_CHROMA);
    695 #else 
    696683  const Int         bitDepthChroma = sps.getBitDepth(CHANNEL_TYPE_CHROMA);
    697 #endif
    698684
    699685  const UInt  uiPelsInPartChromaH = sps.getMaxCUWidth() >> (sps.getMaxTotalCUDepth()+pcPicYuvRec->getComponentScaleX(COMPONENT_Cb));
     
    757743  }
    758744
    759 #if SVC_EXTENSION
    760   const Int iBitdepthScale = 1 << (pcCU->getSlice()->getBitDepth(CHANNEL_TYPE_CHROMA)-8);
    761 #else
    762745  const Int iBitdepthScale = 1 << (pcCU->getSlice()->getSPS()->getBitDepth(CHANNEL_TYPE_CHROMA)-8);
    763 #endif
    764746
    765747  for ( UInt iIdx = 0; iIdx < uiNumParts; iIdx++ )
Note: See TracChangeset for help on using the changeset viewer.