Changeset 415 in 3DVCSoftware for branches/HTM-6.2-dev3-RWTH-Fix/source/Lib/TLibDecoder
- Timestamp:
- 17 May 2013, 14:26:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.2-dev3-RWTH-Fix/source/Lib/TLibDecoder/TDecSbac.cpp
r414 r415 37 37 38 38 #include "TDecSbac.h" 39 40 #if RWTH_SDC_DLT_B003641 #define GetNumDepthValues() (pcCU->getSlice()->getSPS()->getNumDepthValues())42 #define GetBitsPerDepthValue() (pcCU->getSlice()->getSPS()->getBitsPerDepthValue())43 #if LGE_CONCATENATE_D014144 #define PrefixThreshold ( ((GetNumDepthValues() * 3) >> 2) )45 #define BitsPerSuffix ( (UInt)ceil( Log2(GetNumDepthValues() - PrefixThreshold) ) )46 #endif47 #endif48 39 49 40 //! \ingroup TLibDecoder … … 2658 2649 Int iIdx = 0; 2659 2650 2660 UInt uiMaxResidualBits = GetBitsPerDepthValue();2651 UInt uiMaxResidualBits = pcCU->getSlice()->getSPS()->getBitsPerDepthValue(); 2661 2652 assert( uiMaxResidualBits <= g_uiBitDepth ); 2662 2653 … … 2680 2671 //prefix part 2681 2672 UInt uiCount = 0; 2682 for ( UInt ui = 0; ui < PrefixThreshold; ui++) 2673 UInt uiNumDepthValues = pcCU->getSlice()->getSPS()->getNumDepthValues(); 2674 UInt uiPrefixThreshold = ((uiNumDepthValues * 3) >> 2); 2675 for ( UInt ui = 0; ui < uiPrefixThreshold; ui++) 2683 2676 { 2684 2677 m_pcTDecBinIf->decodeBin( uiBit, m_cSDCResidualSCModel.get(0, 0, 0) ); … … 2689 2682 } 2690 2683 //suffix part 2691 if ( uiCount == PrefixThreshold )2692 { 2693 for ( UInt ui = 0; ui < BitsPerSuffix; ui++ )2684 if ( uiCount == uiPrefixThreshold ) 2685 { 2686 for ( UInt ui = 0; ui < ( (UInt)ceil( Log2(uiNumDepthValues - uiPrefixThreshold) ) ); ui++ ) 2694 2687 { 2695 2688 m_pcTDecBinIf->decodeBinEP( uiBit );
Note: See TracChangeset for help on using the changeset viewer.