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/ContextModel3DBuffer.h

    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 *
     
    3636*/
    3737
    38 #ifndef _HM_CONTEXT_MODEL_3DBUFFER_H_
    39 #define _HM_CONTEXT_MODEL_3DBUFFER_H_
     38#ifndef __CONTEXTMODEL3DBUFFER__
     39#define __CONTEXTMODEL3DBUFFER__
    4040
    4141#include <stdio.h>
    42 #include <assert.h>
    4342#include <memory.h>
    4443
     
    6160  const UInt    m_sizeXY;       ///< X times Y size of 3D buffer
    6261  const UInt    m_sizeXYZ;      ///< total size of 3D buffer
    63  
     62
    6463public:
    6564  ContextModel3DBuffer  ( UInt uiSizeZ, UInt uiSizeY, UInt uiSizeX, ContextModel *basePtr, Int &count );
    6665  ~ContextModel3DBuffer () {}
    67  
     66
    6867  // access functions
    6968  ContextModel& get( UInt uiZ, UInt uiY, UInt uiX )
     
    7978    return &m_contextModel[ uiZ * m_sizeXY ];
    8079  }
    81  
     80
    8281  // initialization & copy functions
    8382  Void initBuffer( SliceType eSliceType, Int iQp, UChar* ctxModel );          ///< initialize 3D buffer by slice type & QP
    84  
     83
    8584  UInt calcCost( SliceType sliceType, Int qp, UChar* ctxModel );      ///< determine cost of choosing a probability table based on current probabilities
    8685  /** copy from another buffer
    8786   * \param src buffer to copy from
    8887   */
    89   Void copyFrom( ContextModel3DBuffer* src )
     88  Void copyFrom( const ContextModel3DBuffer* src )
    9089  {
    9190    assert( m_sizeXYZ == src->m_sizeXYZ );
Note: See TracChangeset for help on using the changeset viewer.