Changeset 1247 in 3DVCSoftware
- Timestamp:
- 2 Jun 2015, 15:08:23 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev1-RWTH/source/Lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibCommon/TComRom.cpp
r1223 r1247 253 253 } 254 254 } 255 256 255 #if NH_3D_DMM 257 256 if( !g_dmmWedgeLists.empty() ) … … 526 525 { //2x2 4x4 8x8 16x16 32x32 64x64 527 526 0, 7, 10, 9, 9, 13 }; 528 529 527 Bool g_wedgePattern[32*32]; 530 528 extern std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; … … 539 537 const Bool g_bEncDecTraceEnable = true; 540 538 const Bool g_bEncDecTraceDisable = false; 541 Bool g_HLSTraceEnable = false;539 Bool g_HLSTraceEnable = true; 542 540 Bool g_bJustDoIt = false; 543 541 UInt64 g_nSymbolCounter = 0; … … 740 738 std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; 741 739 std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; 742 743 740 Void initWedgeLists( Bool initNodeList ) 744 741 { … … 751 748 createWedgeList( uiWedgeBlockSize, uiWedgeBlockSize, acWedgeList, acWedgeRefList, g_dmmWedgeResolution[ui] ); 752 749 g_dmmWedgeLists.push_back( acWedgeList ); 753 754 750 if( initNodeList ) 755 751 { … … 811 807 } 812 808 } 813 814 809 Void createWedgeList( UInt uiWidth, UInt uiHeight, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList, WedgeResolution eWedgeRes ) 815 810 { … … 852 847 } 853 848 } 854 855 849 Void addWedgeletToList( TComWedgelet cWedgelet, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList ) 856 850 { -
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibCommon/TComRom.h
r1223 r1247 91 91 extern const UChar g_aucIntraModeNumFast_NotUseMPM[MAX_CU_DEPTH]; 92 92 extern const UChar g_chroma422IntraAngleMappingTable[NUM_INTRA_MODE]; 93 94 93 // ==================================================================================================================== 95 94 // Depth coding modes … … 101 100 extern std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; 102 101 extern std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; 103 104 102 Void initWedgeLists( Bool initNodeList = false ); 105 103 Void createWedgeList( UInt uiWidth, UInt uiHeight, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList, WedgeResolution eWedgeRes ); 106 104 Void addWedgeletToList( TComWedgelet cWedgelet, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList ); 107 108 105 WedgeList* getWedgeListScaled ( UInt blkSize ); 109 106 WedgeNodeList* getWedgeNodeListScaled( UInt blkSize ); 110 111 107 __inline Void mapDmmToIntraDir( UInt& intraMode ) { if( isDmmMode( intraMode ) ) intraMode = DC_IDX; } 112 108 __inline Void mapDmmToIntraDir( Int& intraMode ) { if( isDmmMode( intraMode ) ) intraMode = DC_IDX; } -
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibCommon/TypeDef.h
r1243 r1247 65 65 ///////////////////////////////////////////////////////////////////////////////////////// 66 66 #if NH_MV 67 #define H_MV_ENC_DEC_TRAC 0//< CU/PU level tracking67 #define H_MV_ENC_DEC_TRAC 1 //< CU/PU level tracking 68 68 69 69 #if NH_3D -
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1243 r1247 501 501 TComDLT* pcDLT = pcPPS->getDLT(); 502 502 503 READ_FLAG(uiCode, "dlt _present_flag");503 READ_FLAG(uiCode, "dlts_present_flag"); 504 504 pcDLT->setDltPresentFlag( (uiCode == 1) ? true : false ); 505 505 … … 509 509 pcDLT->setNumDepthViews( uiCode+1 ); 510 510 511 READ_CODE(4, uiCode, "pps_bit_depth_for_depth_ views_minus8");511 READ_CODE(4, uiCode, "pps_bit_depth_for_depth_layers_minus8"); 512 512 pcDLT->setDepthViewBitDepth( (uiCode+8) ); 513 513 … … 526 526 UInt uiCodeLength = 0; 527 527 528 READ_FLAG(uiCode, " inter_view_dlt_pred_enable_flag[ i]");528 READ_FLAG(uiCode, "dlt_pred_flag[i]"); 529 529 530 530 if( uiCode ) … … 536 536 if ( pcDLT->getInterViewDltPredEnableFlag( layerId ) == false ) 537 537 { 538 READ_FLAG(uiCode, "dlt_ bit_map_rep_flag[ layerId]");538 READ_FLAG(uiCode, "dlt_val_flags_present_flag[i]"); 539 539 bDltBitMapRepFlag = (uiCode == 1) ? true : false; 540 540 } … … 552 552 for (UInt d=0; d<256; d++) 553 553 { 554 READ_FLAG(uiCode, "dlt_ bit_map_flag[ layerId ][ j]");554 READ_FLAG(uiCode, "dlt_value_flag[i][j]"); 555 555 if (uiCode == 1) 556 556 { … … 563 563 else 564 564 { 565 READ_CODE(8, uiNumDepthValues, "num_ depth_values_in_dlt[i]"); // num_entry565 READ_CODE(8, uiNumDepthValues, "num_val_delta_dlt"); // num_entry 566 566 567 567 { … … 570 570 if (uiNumDepthValues > 1) 571 571 { 572 READ_CODE(8, uiCode, "max_diff [ layerId ]");572 READ_CODE(8, uiCode, "max_diff"); 573 573 uiMaxDiff = uiCode; 574 574 } … … 581 581 { 582 582 uiCodeLength = (UInt) gCeilLog2(uiMaxDiff + 1); 583 READ_CODE(uiCodeLength, uiCode, "min_diff_minus1 [ layerId ]");583 READ_CODE(uiCodeLength, uiCode, "min_diff_minus1"); 584 584 uiMinDiff = uiCode + 1; 585 585 } … … 589 589 } 590 590 591 READ_CODE(8, uiCode, "d lt_depth_value0[layerId]"); // entry0591 READ_CODE(8, uiCode, "delta_dlt_val0"); // entry0 592 592 aiIdx2DepthValue[0] = uiCode; 593 593 … … 604 604 for (UInt d=1; d<uiNumDepthValues; d++) 605 605 { 606 READ_CODE(uiCodeLength, uiCode, "d lt_depth_value_diff_minus_min[ layerId ][ j]");606 READ_CODE(uiCodeLength, uiCode, "delta_val_diff_minus_min[k]"); 607 607 aiIdx2DepthValue[d] = aiIdx2DepthValue[d-1] + uiMinDiff + uiCode; 608 608 } … … 648 648 { 649 649 READ_CODE(16, uiCode, "sar_width"); pcVUI->setSarWidth(uiCode); 650 READ_CODE(16, uiCode, "sar_height"); pcVUI->setSarHeight(uiCode);650 READ_CODE(16, uiCode, "sar_height"); pcVUI->setSarHeight(uiCode); 651 651 } 652 652 } -
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibEncoder/TEncCavlc.cpp
r1243 r1247 373 373 { 374 374 #if NH_3D_DLT 375 WRITE_FLAG( pcPPS->getDLT()->getDltPresentFlag() ? 1 : 0, "dlt _present_flag" );375 WRITE_FLAG( pcPPS->getDLT()->getDltPresentFlag() ? 1 : 0, "dlts_present_flag" ); 376 376 377 377 if ( pcPPS->getDLT()->getDltPresentFlag() ) 378 378 { 379 379 WRITE_CODE(pcPPS->getDLT()->getNumDepthViews() - 1, 6, "pps_depth_layers_minus1"); 380 WRITE_CODE((pcPPS->getDLT()->getDepthViewBitDepth() - 8), 4, "pps_bit_depth_for_depth_ views_minus8");380 WRITE_CODE((pcPPS->getDLT()->getDepthViewBitDepth() - 8), 4, "pps_bit_depth_for_depth_layers_minus8"); 381 381 382 382 for( Int i = 0; i <= pcPPS->getDLT()->getNumDepthViews(); i++ ) … … 384 384 Int layerId = pcPPS->getDLT()->getDepthIdxToLayerId(i); 385 385 386 WRITE_FLAG( pcPPS->getDLT()->getUseDLTFlag( layerId ) ? 1 : 0, "dlt_flag[ layerId]" );386 WRITE_FLAG( pcPPS->getDLT()->getUseDLTFlag( layerId ) ? 1 : 0, "dlt_flag[i]" ); 387 387 388 388 if ( pcPPS->getDLT()->getUseDLTFlag( layerId ) ) … … 392 392 393 393 // ----------------------------- Actual coding ----------------------------- 394 WRITE_FLAG( pcPPS->getDLT()->getInterViewDltPredEnableFlag( layerId ) ? 1 : 0, " inter_view_dlt_pred_enable_flag[ layerId]");394 WRITE_FLAG( pcPPS->getDLT()->getInterViewDltPredEnableFlag( layerId ) ? 1 : 0, "dlt_pred_flag[i]"); 395 395 if ( pcPPS->getDLT()->getInterViewDltPredEnableFlag( layerId ) == false ) 396 396 { 397 WRITE_FLAG( pcPPS->getDLT()->getUseBitmapRep( layerId ) ? 1 : 0, "dlt_ bit_map_rep_flag[ layerId]" );397 WRITE_FLAG( pcPPS->getDLT()->getUseBitmapRep( layerId ) ? 1 : 0, "dlt_val_flags_present_flag[i]" ); 398 398 399 399 for( UInt ui = 0; ui<uiNumDepthValues_coded; ui++ ) … … 419 419 if ( d == aiIdx2DepthValue_coded[uiDltArrayIndex] ) 420 420 { 421 WRITE_FLAG(1, "dlt_ bit_map_flag[ layerId ][ j]");421 WRITE_FLAG(1, "dlt_value_flag[i][j]"); 422 422 uiDltArrayIndex++; 423 423 } 424 424 else 425 425 { 426 WRITE_FLAG(0, "dlt_ bit_map_flag[ layerId ][ j]");426 WRITE_FLAG(0, "dlt_value_flag[i][j]"); 427 427 } 428 428 } … … 462 462 } 463 463 464 WRITE_CODE(uiNumDepthValues_coded, 8, "num_ depth_values_in_dlt[layerId]"); // num_entry464 WRITE_CODE(uiNumDepthValues_coded, 8, "num_val_delta_dlt"); // num_entry 465 465 { 466 466 // The condition if( uiNumDepthValues_coded > 0 ) is always true since for Single-view Diff Coding, there is at least one depth value in depth component. 467 467 if ( uiNumDepthValues_coded > 1 ) 468 468 { 469 WRITE_CODE(uiMaxDiff, 8, "max_diff [ layerId ]"); // max_diff469 WRITE_CODE(uiMaxDiff, 8, "max_diff"); // max_diff 470 470 } 471 471 472 472 if ( uiNumDepthValues_coded > 2 ) 473 473 { 474 WRITE_CODE((uiMinDiff - 1), uiLengthMinDiff, "min_diff_minus1 [ layerId ]"); // min_diff_minus1474 WRITE_CODE((uiMinDiff - 1), uiLengthMinDiff, "min_diff_minus1"); // min_diff_minus1 475 475 } 476 476 477 WRITE_CODE(aiIdx2DepthValue_coded[0], 8, "d lt_depth_value0[layerId]"); // entry0477 WRITE_CODE(aiIdx2DepthValue_coded[0], 8, "delta_dlt_val0"); // entry0 478 478 479 479 if (uiMaxDiff > uiMinDiff) … … 481 481 for (UInt d=1; d < uiNumDepthValues_coded; d++) 482 482 { 483 WRITE_CODE( (puiDltDiffValues[d] - uiMinDiff), uiLengthDltDiffMinusMin, "d lt_depth_value_diff_minus_min[ layerId ][ j]"); // entry_value_diff_minus_min[ k ]483 WRITE_CODE( (puiDltDiffValues[d] - uiMinDiff), uiLengthDltDiffMinusMin, "delta_val_diff_minus_min[k]"); // entry_value_diff_minus_min[ k ] 484 484 } 485 485 } -
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibEncoder/TEncSearch.cpp
r1243 r1247 3198 3198 Bool zeroResiTest = (pcCU->getSlice()->getIsDepth() && !pcCU->getSlice()->isIRAP()); 3199 3199 #if NH_3D_SDC_INTRA 3200 zeroResiTest |=pcCU->getSDCFlag(uiPartOffset);3200 zeroResiTest = zeroResiTest || pcCU->getSDCFlag(uiPartOffset); 3201 3201 if( uiSDC != 0 && iSDCDeltaResi != 0 ) 3202 3202 { … … 3204 3204 } 3205 3205 #endif 3206 for( UInt zeroResi = 0; zeroResi <= zeroResiTest?1:0; zeroResi++ )3206 for( UInt zeroResi = 0; zeroResi <= ( zeroResiTest ? 1 : 0 ); zeroResi++ ) 3207 3207 { 3208 3208 #endif
Note: See TracChangeset for help on using the changeset viewer.