Ignore:
Timestamp:
5 Apr 2015, 22:37:43 (9 years ago)
Author:
tech
Message:

Disabled chroma for depth.

File:
1 edited

Legend:

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

    r1164 r1169  
    313313  TComPic*      getPic                ()                        { return m_pcPic;           }
    314314  TComSlice*    getSlice              ()                        { return m_pcSlice;         }
     315#if H_3D_DISABLE_CHROMA
     316  Void         setSlice              ( TComSlice* pcSlice)     { m_pcSlice = pcSlice;       }
     317#endif
    315318  UInt&         getAddr               ()                        { return m_uiCUAddr;        }
    316319  UInt&         getZorderIdxInCU      ()                        { return m_uiAbsIdxInLCU; }
     
    433436  Pel*&         getPCMSampleCr        ()                        { return m_pcIPCMSampleCr;    }
    434437
     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
    435442  UChar         getCbf    ( UInt uiIdx, TextType eType )                  { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx];  }
    436443  UChar*        getCbf    ( TextType eType )                              { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]];         }
     444#endif
    437445  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
    438449  Void          setCbf    ( UInt uiIdx, TextType eType, UChar uh )        { m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx] = uh;    }
     450#endif
    439451  Void          clearCbf  ( UInt uiIdx, TextType eType, UInt uiNumParts );
    440452  UChar         getQtRootCbf          ( UInt uiIdx )                      { return getCbf( uiIdx, TEXT_LUMA, 0 ) || getCbf( uiIdx, TEXT_CHROMA_U, 0 ) || getCbf( uiIdx, TEXT_CHROMA_V, 0 ); }
Note: See TracChangeset for help on using the changeset viewer.