Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/ContextModel.cpp


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/ContextModel.cpp

    r1179 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    6565}
    6666
    67 const UChar ContextModel::m_aucNextStateMPS[ 128 ] =
     67const UChar ContextModel::m_aucNextStateMPS[ ContextModel::m_totalStates ] =
    6868{
    6969  2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
     
    7777};
    7878
    79 const UChar ContextModel::m_aucNextStateLPS[ 128 ] =
     79const UChar ContextModel::m_aucNextStateLPS[ ContextModel::m_totalStates ] =
    8080{
    8181  1, 0, 0, 1, 2, 3, 4, 5, 4, 5, 8, 9, 8, 9, 10, 11,
     
    9090
    9191#if FAST_BIT_EST
    92 UChar ContextModel::m_nextState[128][2];
     92UChar ContextModel::m_nextState[ ContextModel::m_totalStates ][2 /*MPS = [0|1]*/];
    9393
    9494Void ContextModel::buildNextStateTable()
    9595{
    96   for (Int i = 0; i < 128; i++)
     96  for (Int i = 0; i < ContextModel::m_totalStates; i++)
    9797  {
    9898    for (Int j = 0; j < 2; j++)
     
    104104#endif
    105105
    106 const Int ContextModel::m_entropyBits[128] =
     106const Int ContextModel::m_entropyBits[ ContextModel::m_totalStates ] =
    107107{
    108108#if FAST_BIT_EST
Note: See TracChangeset for help on using the changeset viewer.