Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/ContextModel.cpp
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/ContextModel.cpp
r1179 r1313 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 65 65 } 66 66 67 const UChar ContextModel::m_aucNextStateMPS[ 128] =67 const UChar ContextModel::m_aucNextStateMPS[ ContextModel::m_totalStates ] = 68 68 { 69 69 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, … … 77 77 }; 78 78 79 const UChar ContextModel::m_aucNextStateLPS[ 128] =79 const UChar ContextModel::m_aucNextStateLPS[ ContextModel::m_totalStates ] = 80 80 { 81 81 1, 0, 0, 1, 2, 3, 4, 5, 4, 5, 8, 9, 8, 9, 10, 11, … … 90 90 91 91 #if FAST_BIT_EST 92 UChar ContextModel::m_nextState[ 128][2];92 UChar ContextModel::m_nextState[ ContextModel::m_totalStates ][2 /*MPS = [0|1]*/]; 93 93 94 94 Void ContextModel::buildNextStateTable() 95 95 { 96 for (Int i = 0; i < 128; i++)96 for (Int i = 0; i < ContextModel::m_totalStates; i++) 97 97 { 98 98 for (Int j = 0; j < 2; j++) … … 104 104 #endif 105 105 106 const Int ContextModel::m_entropyBits[ 128] =106 const Int ContextModel::m_entropyBits[ ContextModel::m_totalStates ] = 107 107 { 108 108 #if FAST_BIT_EST
Note: See TracChangeset for help on using the changeset viewer.