Changeset 1275 in 3DVCSoftware
- Timestamp:
- 15 Jul 2015, 12:46:07 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev2/source/Lib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComDataCU.cpp
r1274 r1275 3631 3631 if ( ivMvPredFlag && cDisInfo.m_aVIdxCan!=-1) 3632 3632 { 3633 #if H_3D_IC3633 #if NH_3D_IC 3634 3634 getInterViewMergeCands(uiPUIdx, ivCandRefIdx, ivCandMv, &cDisInfo, ivCandDir , bIsDepth, pcMvFieldSP, puhInterDirSP, bICFlag ); 3635 3635 #else -
branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComRom.cpp
r1274 r1275 564 564 Bool g_disableNumbering = false; 565 565 Bool g_disableHLSTrace = false; 566 UInt64 g_stopAtCounter = 0;566 UInt64 g_stopAtCounter = 4660; 567 567 Bool g_traceCopyBack = false; 568 568 Bool g_decTraceDispDer = false; … … 704 704 } 705 705 Bool stopFlag = false; 706 if ( g_stopAtPos && poc == 0 && layerId == 2)706 if ( g_stopAtPos && poc == 16 && layerId == 1 ) 707 707 { 708 708 Bool stopAtCU = true; 709 709 if ( stopAtCU ) // Stop at CU with specific size 710 710 { 711 stopFlag = ( cuPelX == 0 ) && ( cuPelY == 0 ) && ( cuWidth == 8 ) && ( cuHeight == 8);711 stopFlag = ( cuPelX == 0 ) && ( cuPelY == 0 ) && ( cuWidth == 32 ) && ( cuHeight == 32 ); 712 712 } 713 713 else … … 729 729 if ( ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) && doIt ) 730 730 { 731 if ( g_stopAtCounter == g_nSymbolCounter ) 732 { 733 std::cout << "Break point here." << std::endl; 734 } 731 incSymbolCounter(); 735 732 if ( !g_disableNumbering ) 736 733 { 737 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ++);734 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 738 735 } 739 736 fprintf( g_hTrace, "%-50s : %d\n", symbolName, val ); 740 fflush ( g_hTrace ); 741 g_nSymbolCounter++; 742 } 737 fflush ( g_hTrace ); 738 } 739 } 740 Int incSymbolCounter( ) 741 { 742 g_nSymbolCounter++; 743 if ( g_stopAtCounter == g_nSymbolCounter ) 744 { 745 std::cout << "Break point here." << std::endl; 746 } 747 return g_nSymbolCounter; 743 748 } 744 749 Void writeToTraceFile( const Char* symbolName, Bool doIt ) … … 746 751 if ( ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) && doIt ) 747 752 { 753 incSymbolCounter(); 748 754 fprintf( g_hTrace, "%s", symbolName ); 749 fflush ( g_hTrace ); 750 g_nSymbolCounter++; 755 fflush ( g_hTrace ); 751 756 } 752 757 } -
branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComRom.h
r1200 r1275 201 201 Void writeToTraceFile( const Char* symbolName, Int val, Bool doIt ); 202 202 Void writeToTraceFile( const Char* symbolName, Bool doIt ); 203 Int incSymbolCounter(); 203 204 Void stopAtPos ( Int poc, Int layerId, Int cuPelX, Int cuPelY, Int cuWidth, Int cuHeight ); 204 205 #endif -
branches/HTM-14.1-update-dev2/source/Lib/TLibDecoder/SyntaxElementParser.cpp
r1200 r1275 63 63 if ( !g_disableNumbering ) 64 64 { 65 #endif 66 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 67 #if H_MV_ENC_DEC_TRAC 68 } 65 incSymbolCounter(); 66 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 67 } 68 #else 69 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 69 70 #endif 70 71 if (length < 10) … … 93 94 if ( !g_disableNumbering ) 94 95 { 95 #endif 96 incSymbolCounter(); 97 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 98 } 99 #else 96 100 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 97 #if H_MV_ENC_DEC_TRAC98 }99 101 #endif 100 102 fprintf( g_hTrace, "%-50s ue(v) : %u\n", pSymbolName, rValue ); … … 115 117 } 116 118 if ( !g_disableNumbering ) 117 { 118 #endif 119 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 120 #if H_MV_ENC_DEC_TRAC 121 } 119 { 120 incSymbolCounter(); 121 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 122 } 123 #else 124 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 122 125 #endif 123 126 fprintf( g_hTrace, "%-50s se(v) : %d\n", pSymbolName, rValue ); … … 139 142 if ( !g_disableNumbering ) 140 143 { 141 #endif 144 incSymbolCounter(); 145 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 146 } 147 #else 142 148 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 143 #if H_MV_ENC_DEC_TRAC144 }145 149 #endif 146 150 fprintf( g_hTrace, "%-50s u(1) : %d\n", pSymbolName, rValue ); -
branches/HTM-14.1-update-dev2/source/Lib/TLibDecoder/TDecEntropy.cpp
r1274 r1275 261 261 } 262 262 Int numValidMergeCand = 0; 263 #if !NH_3D264 263 Bool hasMergedCandList = false; 265 #else266 Bool isMerged = false;267 #endif268 264 269 265 pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_0 ); … … 309 305 decodeARPW ( pcCU, uiAbsPartIdx, uiDepth ); 310 306 #endif 311 #if H_3D_IC307 #if NH_3D_IC 312 308 decodeICFlag( pcCU, uiAbsPartIdx, uiDepth ); 313 309 #endif … … 319 315 { 320 316 UInt uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx); 317 #if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST 318 if (bDebugPredEnabled) 319 { 320 std::cout << "Coded merge flag, CU absPartIdx: " << uiAbsPartIdx << " PU(" << uiPartIdx << ") absPartIdx: " << uiSubPartIdx; 321 std::cout << " merge index: " << (UInt)pcCU->getMergeIndex(uiSubPartIdx) << std::endl; 322 } 323 #endif 324 321 325 #if NH_3D_DBBP 322 326 if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 && pcCU->getDBBPFlag(uiAbsPartIdx) == false ) … … 325 329 #endif 326 330 { 327 pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); 328 if ( !isMerged ) 329 { 331 if ( !hasMergedCandList ) 332 { 333 pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); // temporarily set. 334 335 #if NH_3D_MLC 330 336 #if NH_3D_VSP 331 337 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 332 338 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 333 #if H_3D_SPIVMP 339 #endif 340 #if NH_3D_SPIVMP 334 341 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 335 342 #endif 336 343 pcSubCU->initAvailableFlags(); 337 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand); 344 #endif 345 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 346 #if NH_3D_MLC 338 347 pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours 339 348 #if NH_3D_SPIVMP … … 341 350 #endif 342 351 , numValidMergeCand ); 343 pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours, vspFlag 352 pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours 353 #if NH_3D_VSP 354 , vspFlag 355 #endif 344 356 #if NH_3D_SPIVMP 345 357 , bSPIVMPFlag 346 358 #endif 347 359 , numValidMergeCand ); 360 #if NH_3D_VSP 348 361 pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 349 #else 350 #if H_3D 351 pcSubCU->initAvailableFlags(); 352 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand); 353 pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 354 355 #else 356 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 357 #endif 358 #endif 359 isMerged = true; 360 } 361 pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth ); 362 #endif 363 #endif 364 pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth ); // restore. 365 hasMergedCandList = true; 366 } 362 367 } 363 368 else 364 369 { 365 uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx); 370 #if NH_3D_MLC 366 371 #if NH_3D_VSP 367 372 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 368 373 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 369 #if H_3D_SPIVMP 374 #endif 375 #if NH_3D_SPIVMP 370 376 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 371 377 #endif 372 378 pcSubCU->initAvailableFlags(); 379 #endif 373 380 pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex ); 381 #if NH_3D_MLC 374 382 pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours 375 383 #if NH_3D_SPIVMP … … 377 385 #endif 378 386 ,numValidMergeCand, uiMergeIndex ); 379 pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours, vspFlag 387 pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours 388 #if NH_3D_VSP 389 , vspFlag 390 #endif 380 391 #if NH_3D_SPIVMP 381 392 , bSPIVMPFlag 382 393 #endif 383 394 ,numValidMergeCand ); 395 #if NH_3D_VSP 384 396 pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 385 #else386 #if H_3D387 pcSubCU->initAvailableFlags();388 pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );389 pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );390 #else391 pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );392 397 #endif 393 398 #endif … … 397 402 TComMv cTmpMv( 0, 0 ); 398 403 for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ ) 399 { 404 { 400 405 if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 ) 401 406 { … … 424 429 } 425 430 } 426 #if H_3D_SPIVMP431 #if NH_3D_SPIVMP 427 432 pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 428 433 if (bSPIVMPFlag[uiMergeIndex] != 0) … … 455 460 { 456 461 decodeMvsAMVP ( pcSubCU, uiSubPartIdx-uiAbsPartIdx, uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) ); 462 #if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST 463 if (bDebugPredEnabled) 464 { 465 std::cout << "refListIdx: " << uiRefListIdx << std::endl; 466 std::cout << "MVD horizontal: " << pcCU->getCUMvField(RefPicList(uiRefListIdx))->getMvd( uiAbsPartIdx ).getHor() << std::endl; 467 std::cout << "MVD vertical: " << pcCU->getCUMvField(RefPicList(uiRefListIdx))->getMvd( uiAbsPartIdx ).getVer() << std::endl; 468 std::cout << "MVPIdxPU: " << pcCU->getMVPIdx(RefPicList( uiRefListIdx ), uiSubPartIdx) << std::endl; 469 std::cout << "InterDir: " << (UInt)pcCU->getInterDir(uiSubPartIdx) << std::endl; 470 } 471 #endif 457 472 } 458 473 } -
branches/HTM-14.1-update-dev2/source/Lib/TLibDecoder/TDecSlice.cpp
r1200 r1275 90 90 g_bJustDoIt = g_bEncDecTraceEnable; 91 91 #endif 92 #if H_MV_ENC_DEC_TRAC 93 incSymbolCounter(); 94 DTRACE_CABAC_VL( g_nSymbolCounter ); 95 #else 92 96 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 97 #endif 93 98 DTRACE_CABAC_T( "\tPOC: " ); 94 99 DTRACE_CABAC_V( pcPic->getPOC() ); -
branches/HTM-14.1-update-dev2/source/Lib/TLibEncoder/SyntaxElementWriter.cpp
r1200 r1275 52 52 if ( !g_disableNumbering ) 53 53 { 54 #endif 54 incSymbolCounter(); 55 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 56 } 57 #else 55 58 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 56 #if H_MV_ENC_DEC_TRAC57 }58 59 #endif 59 60 … … 77 78 if ( !g_disableNumbering ) 78 79 { 79 #endif 80 incSymbolCounter(); 81 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 82 } 83 #else 80 84 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 81 #if H_MV_ENC_DEC_TRAC82 }83 85 #endif 84 86 … … 95 97 if ( !g_disableNumbering ) 96 98 { 97 #endif 99 incSymbolCounter(); 100 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 101 } 102 #else 98 103 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 99 #if H_MV_ENC_DEC_TRAC100 }101 104 #endif 102 105 … … 113 116 if ( !g_disableNumbering ) 114 117 { 118 incSymbolCounter(); 119 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter ); 120 } 121 #else 122 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 115 123 #endif 116 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 117 #if H_MV_ENC_DEC_TRAC 118 } 119 #endif 124 120 125 fprintf( g_hTrace, "%-50s u(1) : %d\n", pSymbolName, value ); 121 126 } -
branches/HTM-14.1-update-dev2/source/Lib/TLibEncoder/TEncCu.cpp
r1274 r1275 1908 1908 #if NH_3D_ARP 1909 1909 Int nARPWMax = rpcTempCU->getSlice()->getARPStepNum() - 1; 1910 #if H_3D_IC1910 #if NH_3D_IC 1911 1911 if( nARPWMax < 0 || bICFlag ) 1912 1912 #else … … 2256 2256 Bool bFirstTime = true; 2257 2257 Int nARPWMax = rpcTempCU->getSlice()->getARPStepNum() - 1; 2258 #if H_3D_IC2258 #if NH_3D_IC 2259 2259 if( nARPWMax < 0 || ePartSize != SIZE_2Nx2N || rpcTempCU->getICFlag(0) ) 2260 2260 #else -
branches/HTM-14.1-update-dev2/source/Lib/TLibEncoder/TEncSlice.cpp
r1274 r1275 1121 1121 g_bJustDoIt = g_bEncDecTraceEnable; 1122 1122 #endif 1123 #if H_MV_ENC_DEC_TRAC 1124 incSymbolCounter(); 1125 DTRACE_CABAC_VL( g_nSymbolCounter ); 1126 #else 1123 1127 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 1128 #endif 1124 1129 DTRACE_CABAC_T( "\tPOC: " ); 1125 1130 DTRACE_CABAC_V( pcPic->getPOC() );
Note: See TracChangeset for help on using the changeset viewer.