Changeset 1169 in 3DVCSoftware for branches/HTM-13.1-dev0/source/Lib/TLibDecoder
- Timestamp:
- 5 Apr 2015, 22:37:43 (10 years ago)
- Location:
- branches/HTM-13.1-dev0/source/Lib/TLibDecoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-13.1-dev0/source/Lib/TLibDecoder/SyntaxElementParser.cpp
r872 r1169 54 54 return; 55 55 } 56 #endif 57 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 56 if ( !g_disableNumbering ) 57 { 58 #endif 59 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 60 #if H_MV_ENC_DEC_TRAC 61 } 62 #endif 63 58 64 if (length < 10) 59 65 { … … 75 81 return; 76 82 } 77 #endif 78 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 83 if ( !g_disableNumbering ) 84 { 85 #endif 86 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 87 #if H_MV_ENC_DEC_TRAC 88 } 89 #endif 79 90 fprintf( g_hTrace, "%-50s ue(v) : %u\n", pSymbolName, rValue ); 80 91 fflush ( g_hTrace ); … … 89 100 return; 90 101 } 91 #endif 92 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 102 if ( !g_disableNumbering ) 103 { 104 #endif 105 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 106 #if H_MV_ENC_DEC_TRAC 107 } 108 #endif 109 93 110 fprintf( g_hTrace, "%-50s se(v) : %d\n", pSymbolName, rValue ); 94 111 fflush ( g_hTrace ); … … 103 120 return; 104 121 } 105 #endif 106 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 122 if ( !g_disableNumbering ) 123 { 124 #endif 125 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 126 #if H_MV_ENC_DEC_TRAC 127 } 128 #endif 107 129 fprintf( g_hTrace, "%-50s u(1) : %d\n", pSymbolName, rValue ); 108 130 fflush ( g_hTrace ); -
branches/HTM-13.1-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1167 r1169 777 777 assert(uiCode <= 3); 778 778 // in the first version we only support chroma_format_idc equal to 1 (4:2:0), so separate_colour_plane_flag cannot appear in the bitstream 779 #if !H_3D_DISABLE_CHROMA 779 780 assert (uiCode == 1); 781 #endif 780 782 if( uiCode == 3 ) 781 783 { … … 1477 1479 for( Int i = pcVPS->getVpsBaseLayerInternalFlag() ? 1 : 0; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1478 1480 { 1479 1481 READ_CODE( pcVPS->getVpsRepFormatIdxLen(), uiCode, "vps_rep_format_idx[i]" ); pcVPS->setVpsRepFormatIdx( i, uiCode ); 1480 1482 } 1481 1483 } … … 2119 2121 } 2120 2122 // in the first version chroma_format_idc is equal to one, thus colour_plane_id will not be present 2123 2124 #if H_3D_DISABLE_CHROMA 2125 assert (sps->getChromaFormatIdc() == 1 || rpcSlice->getIsDepth() ); 2126 assert (sps->getChromaFormatIdc() == 0 || !rpcSlice->getIsDepth() ); 2127 #else 2121 2128 assert (sps->getChromaFormatIdc() == 1 ); 2129 #endif 2122 2130 // if( separate_colour_plane_flag == 1 ) 2123 2131 // colour_plane_id u(2) … … 2420 2428 { 2421 2429 READ_FLAG(uiCode, "slice_sao_luma_flag"); rpcSlice->setSaoEnabledFlag((Bool)uiCode); 2430 #if H_3D_DISABLE_CHROMA 2431 if( !rpcSlice->getIsDepth() ) 2432 { 2422 2433 READ_FLAG(uiCode, "slice_sao_chroma_flag"); rpcSlice->setSaoEnabledFlagChroma((Bool)uiCode); 2434 } 2435 else 2436 { 2437 rpcSlice->setSaoEnabledFlagChroma( false ); 2438 } 2439 2440 #else 2441 READ_FLAG(uiCode, "slice_sao_chroma_flag"); rpcSlice->setSaoEnabledFlagChroma((Bool)uiCode); 2442 #endif 2423 2443 } 2424 2444 … … 3165 3185 { 3166 3186 wpScalingParam *wp; 3187 #if H_3D_DISABLE_CHROMA 3188 Bool bChroma = !pcSlice->getIsDepth(); 3189 #else 3167 3190 Bool bChroma = true; // color always present in HEVC ? 3191 #endif 3168 3192 SliceType eSliceType = pcSlice->getSliceType(); 3169 3193 Int iNbRef = (eSliceType == B_SLICE ) ? (2) : (1); 3170 3194 UInt uiLog2WeightDenomLuma, uiLog2WeightDenomChroma; 3171 3195 UInt uiTotalSignalledWeightFlags = 0; 3172 3196 3173 3197 Int iDeltaDenom; 3174 3198 // decode delta_luma_log2_weight_denom : … … 3182 3206 uiLog2WeightDenomChroma = (UInt)(iDeltaDenom + uiLog2WeightDenomLuma); 3183 3207 } 3208 else 3209 #if H_3D_DISABLE_CHROMA 3210 { 3211 uiLog2WeightDenomChroma = 0; 3212 } 3213 #endif 3214 3184 3215 3185 3216 for ( Int iNumRef=0 ; iNumRef<iNbRef ; iNumRef++ ) -
branches/HTM-13.1-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp
r1163 r1169 176 176 decodeIntraDirModeLuma ( pcCU, uiAbsPartIdx, uiDepth ); 177 177 #if H_3D_DIM_SDC 178 #if H_3D_DISABLE_CHROMA 179 if(!pcCU->getSDCFlag(uiAbsPartIdx) && !pcCU->getSlice()->getIsDepth() ) 180 #else 178 181 if(!pcCU->getSDCFlag(uiAbsPartIdx)) 182 #endif 179 183 #endif 180 184 decodeIntraDirModeChroma( pcCU, uiAbsPartIdx, uiDepth ); … … 541 545 Void TDecEntropy::xDecodeTransform( TComDataCU* pcCU, UInt offsetLuma, UInt offsetChroma, UInt uiAbsPartIdx, UInt uiDepth, UInt width, UInt height, UInt uiTrIdx, Bool& bCodeDQP, Int quadtreeTULog2MinSizeInCU) 542 546 { 547 548 #if H_MV_ENC_DEC_TRAC 549 UInt uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; 550 UInt uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ]; 551 552 DTRACE_TU_S("=========== transform_tree ===========\n") 553 DTRACE_TU("x0", uiLPelX) 554 DTRACE_TU("x1", uiTPelY) 555 DTRACE_TU("log2TrafoSize", g_uiMaxCUWidth>>uiDepth) 556 DTRACE_TU("trafoDepth" , uiDepth) 557 #endif 558 543 559 UInt uiSubdiv; 544 560 const UInt uiLog2TrafoSize = g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()]+2 - uiDepth; … … 593 609 if( bFirstCbfOfCU || uiLog2TrafoSize > 2 ) 594 610 { 611 #if H_3D_DISABLE_CHROMA 612 if (!pcCU->getSlice()->getIsDepth() ) 613 { 595 614 if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) ) 596 615 { … … 601 620 m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth ); 602 621 } 622 } 623 else 624 { 625 if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) ) 626 { 627 pcCU->setCbfSubParts( 0, TEXT_CHROMA_U, uiAbsPartIdx, uiTrDepth - 1 ); 628 } 629 if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) ) 630 { 631 pcCU->setCbfSubParts( 0, TEXT_CHROMA_V, uiAbsPartIdx, uiTrDepth - 1 ); 632 } 633 } 634 #else 635 if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) ) 636 { 637 m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth, uiDepth ); 638 } 639 if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) ) 640 { 641 m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth ); 642 } 643 #endif 603 644 } 604 645 else … … 762 803 assert( pcCU->getTransformIdx(uiAbsPartIdx) == 0 ); 763 804 assert( pcCU->getCbf(uiAbsPartIdx, TEXT_LUMA) == 1 ); 805 #if H_3D_DISABLE_CHROMA 806 if (!pcCU->getSlice()->getIsDepth() ) 807 { 808 assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 ); 809 assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 ); 810 } 811 #else 764 812 assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 ); 765 813 assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 ); 814 #endif 766 815 } 767 816 -
branches/HTM-13.1-dev0/source/Lib/TLibDecoder/TDecSbac.cpp
r1163 r1169 501 501 } 502 502 503 504 #if H_3D_DISABLE_CHROMA 505 if( !pcCU->getSlice()->getIsDepth() ) 506 { 507 #endif 503 508 piPCMSample = pcCU->getPCMSampleCb() + uiChromaOffset; 504 509 uiWidth = pcCU->getWidth(uiAbsPartIdx)/2; … … 532 537 piPCMSample += uiWidth; 533 538 } 539 #if H_3D_DISABLE_CHROMA 540 } 541 #endif 542 534 543 535 544 m_pcTDecBinIf->start(); … … 1366 1375 DTRACE_CABAC_V( uiLog2TransformBlockSize ) 1367 1376 DTRACE_CABAC_T( "\n" ) 1377 #else 1378 DTRACE_TU("split_transform_flag", ruiSubdivFlag ) 1368 1379 #endif 1369 1380 } … … 1444 1455 DTRACE_CABAC_V( uiAbsPartIdx ) 1445 1456 DTRACE_CABAC_T( "\n" ) 1457 #else 1458 if ( eType == TEXT_CHROMA_U ) 1459 { 1460 DTRACE_TU("cbf_cb", uiSymbol ) 1461 } 1462 else if ( eType == TEXT_CHROMA_V ) 1463 { 1464 DTRACE_TU("cbf_cr", uiSymbol ) 1465 } 1466 else 1467 { 1468 DTRACE_TU("cbf_luma", uiSymbol ) 1469 } 1446 1470 #endif 1447 1471
Note: See TracChangeset for help on using the changeset viewer.