Changeset 397 in 3DVCSoftware for branches/HTM-6.2-dev3-RWTH/source/Lib/TLibEncoder
- Timestamp:
- 12 May 2013, 16:24:39 (12 years ago)
- Location:
- branches/HTM-6.2-dev3-RWTH/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.2-dev3-RWTH/source/Lib/TLibEncoder/TEncSbac.cpp
r382 r397 122 122 , m_cDmmDeltaFlagModel ( 1, 1, DMM_DELTA_NUM_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 123 123 #endif 124 #if RWTH_SDC_CTX_SIMPL_D0032 125 , m_cSDCResidualFlagSCModel ( 1, 1, SDC_NUM_RESIDUAL_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 126 , m_cSDCResidualSCModel ( 1, 1, SDC_NUM_RESIDUAL_CTX , m_contextModels + m_numContextModels, m_numContextModels) 127 , m_cSDCPredModeSCModel ( 1, 3, SDC_NUM_PRED_MODE_CTX , m_contextModels + m_numContextModels, m_numContextModels) 128 #else 124 129 , m_cSDCResidualFlagSCModel ( 1, 2, SDC_NUM_RESIDUAL_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 125 130 , m_cSDCResidualSignFlagSCModel ( 1, 2, SDC_NUM_SIGN_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 126 131 , m_cSDCResidualSCModel ( 1, 2, SDC_NUM_RESIDUAL_CTX , m_contextModels + m_numContextModels, m_numContextModels) 127 132 , m_cSDCPredModeSCModel ( 1, 3, SDC_NUM_PRED_MODE_CTX , m_contextModels + m_numContextModels, m_numContextModels) 133 #endif 128 134 #endif 129 135 { … … 215 221 m_cSDCResidualFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_RESIDUAL_FLAG ); 216 222 m_cSDCResidualSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_RESIDUAL ); 223 #if !RWTH_SDC_CTX_SIMPL_D0032 217 224 m_cSDCResidualSignFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_SIGN_FLAG ); 225 #endif 218 226 m_cSDCPredModeSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_PRED_MODE ); 219 227 #endif … … 369 377 m_cSDCResidualFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_RESIDUAL_FLAG ); 370 378 m_cSDCResidualSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_RESIDUAL ); 379 #if !RWTH_SDC_CTX_SIMPL_D0032 371 380 m_cSDCResidualSignFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_SIGN_FLAG ); 381 #endif 372 382 m_cSDCPredModeSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_SDC_PRED_MODE ); 373 383 #endif … … 2645 2655 2646 2656 // residual flag 2657 #if RWTH_SDC_CTX_SIMPL_D0032 2658 m_pcBinIf->encodeBin( uiResidual, m_cSDCResidualFlagSCModel.get( 0, 0, 0 ) ); 2659 #else 2647 2660 m_pcBinIf->encodeBin( uiResidual, m_cSDCResidualFlagSCModel.get( 0, uiSegment, 0 ) ); //TODO depthmap: more sophisticated context selection 2661 #endif 2648 2662 2649 2663 if (uiResidual) 2650 2664 { 2651 2665 // encode sign bit of residual 2666 #if RWTH_SDC_CTX_SIMPL_D0032 2667 m_pcBinIf->encodeBinEP( uiSign ); 2668 #else 2652 2669 m_pcBinIf->encodeBin( uiSign, m_cSDCResidualSignFlagSCModel.get( 0, uiSegment, 0 ) ); //TODO depthmap: more sophisticated context selection 2670 #endif 2653 2671 2654 2672 assert(uiAbsIdx < GetNumDepthValues()); … … 2660 2678 uiBit = (uiAbsIdx & (1<<i))>>i; 2661 2679 2680 #if RWTH_SDC_CTX_SIMPL_D0032 2681 m_pcBinIf->encodeBin( uiBit, m_cSDCResidualSCModel.get( 0, 0, i ) ); 2682 #else 2662 2683 m_pcBinIf->encodeBin( uiBit, m_cSDCResidualSCModel.get( 0, uiSegment, i ) ); //TODO depthmap: more sophisticated context selection 2684 #endif 2663 2685 } 2664 2686 -
branches/HTM-6.2-dev3-RWTH/source/Lib/TLibEncoder/TEncSbac.h
r382 r397 336 336 337 337 ContextModel3DBuffer m_cSDCResidualFlagSCModel; 338 #if !RWTH_SDC_CTX_SIMPL_D0032 338 339 ContextModel3DBuffer m_cSDCResidualSignFlagSCModel; 340 #endif 339 341 ContextModel3DBuffer m_cSDCResidualSCModel; 340 342
Note: See TracChangeset for help on using the changeset viewer.