Changeset 1169 in 3DVCSoftware for branches/HTM-13.1-dev0/source/Lib/TLibCommon


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

Disabled chroma for depth.

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

Legend:

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

    r1164 r1169  
    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
    24482455  UInt uiCurrPartNumb = m_pcPic->getNumPartInCU() >> (uiDepth << 1);
    24492456  memset( m_puhCbf[0] + uiAbsPartIdx, uiCbfY, sizeof( UChar ) * uiCurrPartNumb );
     
    24542461Void TComDataCU::setCbfSubParts( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiDepth )
    24552462{
     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
     2470
    24562471  UInt uiCurrPartNumb = m_pcPic->getNumPartInCU() >> (uiDepth << 1);
    24572472  memset( m_puhCbf[g_aucConvertTxtTypeToIdx[eTType]] + uiAbsPartIdx, uiCbf, sizeof( UChar ) * uiCurrPartNumb );
     
    24682483Void TComDataCU::setCbfSubParts ( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    24692484{
     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
    24702492  setSubPart<UChar>( uiCbf, m_puhCbf[g_aucConvertTxtTypeToIdx[eTType]], uiAbsPartIdx, uiDepth, uiPartIdx );
    24712493}
  • 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 ); }
  • branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComRom.cpp

    r1164 r1169  
    391391Bool g_tracePU = false;
    392392Bool g_traceTU = false;
     393Bool g_disableNumbering = true;
    393394Bool g_disableHLSTrace = false;
    394395UInt64 g_stopAtCounter       = 0;
     
    633634      std::cout << "Break point here." << std::endl;
    634635    }
    635     fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     636    if ( !g_disableNumbering )
     637    { 
     638      fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     639    }
    636640    fprintf( g_hTrace, "%-50s       : %d\n", symbolName, val );     
    637641    fflush ( g_hTrace );
     
    770774
    771775#if SHARP_DMM_CLEAN_K0042
    772     posEnd = racWedgeList.size();
     776    posEnd = (Int) racWedgeList.size();
    773777    if (uiOri == 0 || uiOri == 4)
    774778    {
  • branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComRom.h

    r1084 r1169  
    257257 extern Bool   g_traceTU;
    258258 extern Bool   g_disableHLSTrace;       // USE g_HLSTraceEnable to toggle HLS trace. Not this one!
     259 extern Bool   g_disableNumbering;      // Don't print numbers to trace file
    259260 extern UInt64 g_stopAtCounter;         // Counter to set breakpoint.
    260261 extern Bool   g_traceCopyBack;         // Output samples on copy back 
  • branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComSlice.h

    r1163 r1169  
    17721772  Void setChromaFormatIdc (Int i)    { m_chromaFormatIdc = i;          }
    17731773
     1774#if H_3D_DISABLE_CHROMA
     1775  static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc];      }
     1776  static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc];      }
     1777#else
    17741778  static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc];      }
    17751779  static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc];      }
     1780#endif
    17761781 
    17771782  // structure
  • branches/HTM-13.1-dev0/source/Lib/TLibCommon/TypeDef.h

    r1167 r1169  
    6767#if H_MV
    6868#define SONY_MV_V_CONST_C0078            1   // Control disparity vector search range via configuration file
     69#define H_MV_FIX_CONF_WINDOW             1   
    6970#endif
    7071
     
    8081
    8182#if H_MV
    82 #define H_MV_ENC_DEC_TRAC                 1  //< CU/PU level tracking
     83#define H_MV_ENC_DEC_TRAC                 0  //< CU/PU level tracking
    8384#endif
    8485
     
    326327
    327328#define FIX_TICKET_95                          1   // pps_scaling_list_ref_layer_id parsing
     329#define H_3D_DISABLE_CHROMA                    1
    328330
    329331#if H_3D
Note: See TracChangeset for help on using the changeset viewer.