Changeset 1169 in 3DVCSoftware for branches/HTM-13.1-dev0/source/Lib/TLibCommon
- Timestamp:
- 5 Apr 2015, 22:37:43 (10 years ago)
- 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 2446 2446 Void TComDataCU::setCbfSubParts( UInt uiCbfY, UInt uiCbfU, UInt uiCbfV, UInt uiAbsPartIdx, UInt uiDepth ) 2447 2447 { 2448 #if H_3D_DISABLE_CHROMA 2449 if( this->getSlice()->getIsDepth() ) 2450 { 2451 uiCbfU = 0; 2452 uiCbfV = 0; 2453 } 2454 #endif 2448 2455 UInt uiCurrPartNumb = m_pcPic->getNumPartInCU() >> (uiDepth << 1); 2449 2456 memset( m_puhCbf[0] + uiAbsPartIdx, uiCbfY, sizeof( UChar ) * uiCurrPartNumb ); … … 2454 2461 Void TComDataCU::setCbfSubParts( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiDepth ) 2455 2462 { 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 2456 2471 UInt uiCurrPartNumb = m_pcPic->getNumPartInCU() >> (uiDepth << 1); 2457 2472 memset( m_puhCbf[g_aucConvertTxtTypeToIdx[eTType]] + uiAbsPartIdx, uiCbf, sizeof( UChar ) * uiCurrPartNumb ); … … 2468 2483 Void TComDataCU::setCbfSubParts ( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ) 2469 2484 { 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 2470 2492 setSubPart<UChar>( uiCbf, m_puhCbf[g_aucConvertTxtTypeToIdx[eTType]], uiAbsPartIdx, uiDepth, uiPartIdx ); 2471 2493 } -
branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComDataCU.h
r1164 r1169 313 313 TComPic* getPic () { return m_pcPic; } 314 314 TComSlice* getSlice () { return m_pcSlice; } 315 #if H_3D_DISABLE_CHROMA 316 Void setSlice ( TComSlice* pcSlice) { m_pcSlice = pcSlice; } 317 #endif 315 318 UInt& getAddr () { return m_uiCUAddr; } 316 319 UInt& getZorderIdxInCU () { return m_uiAbsIdxInLCU; } … … 433 436 Pel*& getPCMSampleCr () { return m_pcIPCMSampleCr; } 434 437 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 435 442 UChar getCbf ( UInt uiIdx, TextType eType ) { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx]; } 436 443 UChar* getCbf ( TextType eType ) { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]]; } 444 #endif 437 445 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 438 449 Void setCbf ( UInt uiIdx, TextType eType, UChar uh ) { m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx] = uh; } 450 #endif 439 451 Void clearCbf ( UInt uiIdx, TextType eType, UInt uiNumParts ); 440 452 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 391 391 Bool g_tracePU = false; 392 392 Bool g_traceTU = false; 393 Bool g_disableNumbering = true; 393 394 Bool g_disableHLSTrace = false; 394 395 UInt64 g_stopAtCounter = 0; … … 633 634 std::cout << "Break point here." << std::endl; 634 635 } 635 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 636 if ( !g_disableNumbering ) 637 { 638 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 639 } 636 640 fprintf( g_hTrace, "%-50s : %d\n", symbolName, val ); 637 641 fflush ( g_hTrace ); … … 770 774 771 775 #if SHARP_DMM_CLEAN_K0042 772 posEnd = racWedgeList.size();776 posEnd = (Int) racWedgeList.size(); 773 777 if (uiOri == 0 || uiOri == 4) 774 778 { -
branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComRom.h
r1084 r1169 257 257 extern Bool g_traceTU; 258 258 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 259 260 extern UInt64 g_stopAtCounter; // Counter to set breakpoint. 260 261 extern Bool g_traceCopyBack; // Output samples on copy back -
branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComSlice.h
r1163 r1169 1772 1772 Void setChromaFormatIdc (Int i) { m_chromaFormatIdc = i; } 1773 1773 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 1774 1778 static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc]; } 1775 1779 static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc]; } 1780 #endif 1776 1781 1777 1782 // structure -
branches/HTM-13.1-dev0/source/Lib/TLibCommon/TypeDef.h
r1167 r1169 67 67 #if H_MV 68 68 #define SONY_MV_V_CONST_C0078 1 // Control disparity vector search range via configuration file 69 #define H_MV_FIX_CONF_WINDOW 1 69 70 #endif 70 71 … … 80 81 81 82 #if H_MV 82 #define H_MV_ENC_DEC_TRAC 1//< CU/PU level tracking83 #define H_MV_ENC_DEC_TRAC 0 //< CU/PU level tracking 83 84 #endif 84 85 … … 326 327 327 328 #define FIX_TICKET_95 1 // pps_scaling_list_ref_layer_id parsing 329 #define H_3D_DISABLE_CHROMA 1 328 330 329 331 #if H_3D
Note: See TracChangeset for help on using the changeset viewer.