Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/ContextModel3DBuffer.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/ContextModel3DBuffer.h
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 * … … 36 36 */ 37 37 38 #ifndef _ HM_CONTEXT_MODEL_3DBUFFER_H_39 #define _ HM_CONTEXT_MODEL_3DBUFFER_H_38 #ifndef __CONTEXTMODEL3DBUFFER__ 39 #define __CONTEXTMODEL3DBUFFER__ 40 40 41 41 #include <stdio.h> 42 #include <assert.h>43 42 #include <memory.h> 44 43 … … 61 60 const UInt m_sizeXY; ///< X times Y size of 3D buffer 62 61 const UInt m_sizeXYZ; ///< total size of 3D buffer 63 62 64 63 public: 65 64 ContextModel3DBuffer ( UInt uiSizeZ, UInt uiSizeY, UInt uiSizeX, ContextModel *basePtr, Int &count ); 66 65 ~ContextModel3DBuffer () {} 67 66 68 67 // access functions 69 68 ContextModel& get( UInt uiZ, UInt uiY, UInt uiX ) … … 79 78 return &m_contextModel[ uiZ * m_sizeXY ]; 80 79 } 81 80 82 81 // initialization & copy functions 83 82 Void initBuffer( SliceType eSliceType, Int iQp, UChar* ctxModel ); ///< initialize 3D buffer by slice type & QP 84 83 85 84 UInt calcCost( SliceType sliceType, Int qp, UChar* ctxModel ); ///< determine cost of choosing a probability table based on current probabilities 86 85 /** copy from another buffer 87 86 * \param src buffer to copy from 88 87 */ 89 Void copyFrom( ContextModel3DBuffer* src )88 Void copyFrom( const ContextModel3DBuffer* src ) 90 89 { 91 90 assert( m_sizeXYZ == src->m_sizeXYZ );
Note: See TracChangeset for help on using the changeset viewer.