Changeset 1178 in 3DVCSoftware for branches/HTM-13.1-dev0/source


Ignore:
Timestamp:
7 Apr 2015, 16:54:07 (10 years ago)
Author:
tech
Message:

Further fixes related to disabling chroma components for depth.

Location:
branches/HTM-13.1-dev0/source/Lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComDataCU.cpp

    r1177 r1178  
    24462446Void TComDataCU::setCbfSubParts( UInt uiCbfY, UInt uiCbfU, UInt uiCbfV, UInt uiAbsPartIdx, UInt uiDepth )
    24472447{
    2448 #if H_3D_DISABLE_CHROMA
    2449   if( this->getSlice()->getIsDepth() )
    2450   {
    2451     uiCbfU = 0;
    2452     uiCbfV = 0;
    2453   }
    2454 #endif
    24552448  UInt uiCurrPartNumb = m_pcPic->getNumPartInCU() >> (uiDepth << 1);
    24562449  memset( m_puhCbf[0] + uiAbsPartIdx, uiCbfY, sizeof( UChar ) * uiCurrPartNumb );
     
    24612454Void TComDataCU::setCbfSubParts( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiDepth )
    24622455{
    2463 #if H_3D_DISABLE_CHROMA
    2464   assert( getSlice() != NULL );
    2465   if( this->getSlice()->getIsDepth() && g_aucConvertTxtTypeToIdx[eTType] > 0  )
    2466   {
    2467     uiCbf = 0;   
    2468   }
    2469 #endif
    24702456
    24712457  UInt uiCurrPartNumb = m_pcPic->getNumPartInCU() >> (uiDepth << 1);
     
    24832469Void TComDataCU::setCbfSubParts ( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    24842470{
    2485 #if H_3D_DISABLE_CHROMA
    2486   assert( getSlice() != NULL );
    2487   if( this->getSlice()->getIsDepth() && g_aucConvertTxtTypeToIdx[eTType] > 0  )
    2488   {
    2489     uiCbf = 0;   
    2490   }
    2491 #endif
    24922471  setSubPart<UChar>( uiCbf, m_puhCbf[g_aucConvertTxtTypeToIdx[eTType]], uiAbsPartIdx, uiDepth, uiPartIdx );
    24932472}
  • branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComDataCU.h

    r1175 r1178  
    436436  Pel*&         getPCMSampleCr        ()                        { return m_pcIPCMSampleCr;    }
    437437
    438 #if H_3D_DISABLE_CHROMA
    439   UChar         getCbf    ( UInt uiIdx, TextType eType )                  { assert( getSlice() != NULL ); assert(  g_aucConvertTxtTypeToIdx[eType] == 0 || !getSlice()->getIsDepth() || m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx] == 0 );  return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx];  }
    440   UChar*        getCbf    ( TextType eType )                              { assert( getSlice() != NULL ); assert(  g_aucConvertTxtTypeToIdx[eType] == 0 || !getSlice()->getIsDepth() || m_puhCbf[g_aucConvertTxtTypeToIdx[eType]] );              return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]];         } 
    441 #else
    442438  UChar         getCbf    ( UInt uiIdx, TextType eType )                  { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx];  }
    443439  UChar*        getCbf    ( TextType eType )                              { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]];         }
    444 #endif
     440
    445441  UChar         getCbf    ( UInt uiIdx, TextType eType, UInt uiTrDepth )  { return ( ( getCbf( uiIdx, eType ) >> uiTrDepth ) & 0x1 ); }
    446 #if H_3D_DISABLE_CHROMA
    447   Void          setCbf    ( UInt uiIdx, TextType eType, UChar uh )        { assert( getSlice() != NULL ); m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx] = ( g_aucConvertTxtTypeToIdx[eType] > 0 && getSlice()->getIsDepth() ) ? 0 : uh ;    }
    448 #else
    449442  Void          setCbf    ( UInt uiIdx, TextType eType, UChar uh )        { m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx] = uh;    }
    450 #endif
     443
    451444  Void          clearCbf  ( UInt uiIdx, TextType eType, UInt uiNumParts );
    452445  UChar         getQtRootCbf          ( UInt uiIdx )                      { return getCbf( uiIdx, TEXT_LUMA, 0 ) || getCbf( uiIdx, TEXT_CHROMA_U, 0 ) || getCbf( uiIdx, TEXT_CHROMA_V, 0 ); }
  • branches/HTM-13.1-dev0/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1176 r1178  
    581581#if H_3D_DIM_SDC
    582582#if H_3D_DISABLE_CHROMA
    583     if(!pcCU->getSDCFlag(uiAbsPartIdx) && ( !pcCU->getSlice()->getIsDepth() || bRD ) )
     583    if(!pcCU->getSDCFlag(uiAbsPartIdx) && ( pcCU->getSlice()->getSPS()->getChromaFormatIdc() != 0 || bRD ) )
    584584#else
    585585    if(!pcCU->getSDCFlag(uiAbsPartIdx))
  • branches/HTM-13.1-dev0/source/Lib/TLibEncoder/TEncSbac.cpp

    r1175 r1178  
    15181518
    15191519#if H_3D_DISABLE_CHROMA
    1520     if( !pcCU->getSlice()->getIsDepth() )
     1520    if( pcCU->getSlice()->getSPS()->getChromaFormatIdc() != 0 )
    15211521    {   
    15221522#endif
Note: See TracChangeset for help on using the changeset viewer.