Changeset 1258 in 3DVCSoftware for branches/HTM-14.1-update-dev1-MediaTek/source/Lib/TLibDecoder/TDecSbac.cpp
- Timestamp:
- 16 Jun 2015, 04:13:09 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1-MediaTek/source/Lib/TLibDecoder/TDecSbac.cpp
r1239 r1258 67 67 , m_cCUSplitFlagSCModel ( 1, 1, NUM_SPLIT_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 68 68 , m_cCUSkipFlagSCModel ( 1, 1, NUM_SKIP_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 69 #if H_3D70 , m_cCUDISFlagSCModel ( 1, 1, NUM_DIS_FLAG_CTX, m_contextModels + m_numContextModels, m_numContextModels)71 , m_cCUDISTypeSCModel ( 1, 1, NUM_DIS_TYPE_CTX, m_contextModels + m_numContextModels, m_numContextModels)69 #if NH_3D_DIS 70 , m_cCUDISFlagSCModel ( 1, 1, NUM_DIS_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 71 , m_cCUDISTypeSCModel ( 1, 1, NUM_DIS_TYPE_CTX , m_contextModels + m_numContextModels, m_numContextModels) 72 72 #endif 73 73 , m_cCUMergeFlagExtSCModel ( 1, 1, NUM_MERGE_FLAG_EXT_CTX , m_contextModels + m_numContextModels, m_numContextModels) … … 159 159 m_cCUSplitFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_SPLIT_FLAG ); 160 160 m_cCUSkipFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_SKIP_FLAG ); 161 #if H_3D162 m_cCUDISFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DIS_FLAG );163 m_cCUDISTypeSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DIS_TYPE );161 #if NH_3D_DIS 162 m_cCUDISFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DIS_FLAG ); 163 m_cCUDISTypeSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DIS_TYPE ); 164 164 #endif 165 165 m_cCUMergeFlagExtSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_MERGE_FLAG_EXT ); … … 238 238 } 239 239 240 #if H_3D241 m_cCUDISFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_DIS_FLAG );242 m_cCUDISTypeSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_DIS_TYPE );243 #endif244 240 #if H_3D_ARP 245 241 m_cCUPUARPWSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_ARPW ); … … 525 521 526 522 } 527 #if H_3D523 #if NH_3D_DIS 528 524 Void TDecSbac::parseDIS( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) 529 525 { 530 526 pcCU->setDISFlagSubParts( false, uiAbsPartIdx, uiDepth ); 531 527 UInt uiSymbol = 0; 532 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUDISFlagSCModel.get( 0, 0, 0 ) );528 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUDISFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SKIP_FLAG) ); 533 529 if( uiSymbol ) 534 530 { … … 538 534 pcCU->setPredModeSubParts( MODE_INTRA, uiAbsPartIdx, uiDepth ); 539 535 pcCU->setPartSizeSubParts( SIZE_2Nx2N, uiAbsPartIdx, uiDepth ); 540 pcCU->set LumaIntraDirSubParts (DC_IDX, uiAbsPartIdx, uiDepth );541 pcCU->setSizeSubParts( g_uiMaxCUWidth>>uiDepth, g_uiMaxCUHeight>>uiDepth, uiAbsPartIdx, uiDepth );536 pcCU->setIntraDirSubParts(CHANNEL_TYPE_LUMA, DC_IDX, uiAbsPartIdx, uiDepth ); 537 pcCU->setSizeSubParts( pcCU->getSlice()->getSPS()->getMaxCUWidth()>>uiDepth, pcCU->getSlice()->getSPS()->getMaxCUHeight()>>uiDepth, uiAbsPartIdx, uiDepth ); 542 538 pcCU->setMergeFlagSubParts( false , uiAbsPartIdx, 0, uiDepth ); 543 539 pcCU->setTrIdxSubParts(0, uiAbsPartIdx, uiDepth); 544 pcCU->setCbfSubParts(0, 1, 1, uiAbsPartIdx, uiDepth);540 pcCU->setCbfSubParts(0, COMPONENT_Y, uiAbsPartIdx, uiDepth); 545 541 546 542 UInt uiUnaryIdx = 0; … … 554 550 if ( uiUnaryIdx==0 ) 555 551 { 556 m_pcTDecBinIf->decodeBin( uiSymbol2, m_cCUDISTypeSCModel.get( 0, 0, 0 ) );552 m_pcTDecBinIf->decodeBin( uiSymbol2, m_cCUDISTypeSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SKIP_FLAG) ); 557 553 } 558 554 else 559 555 { 560 m_pcTDecBinIf->decodeBinEP( uiSymbol2 );556 m_pcTDecBinIf->decodeBinEP( uiSymbol2 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SKIP_FLAG)); 561 557 } 562 558 if( uiSymbol2 == 0 ) … … 566 562 } 567 563 } 568 pcCU->setDISTypeSubParts( uiUnaryIdx, uiAbsPartIdx, 0, uiDepth);564 pcCU->setDISTypeSubParts((UChar)uiUnaryIdx, uiAbsPartIdx, uiDepth); 569 565 } 570 566 }
Note: See TracChangeset for help on using the changeset viewer.