Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibCommon/TComPattern.h
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibCommon/TComPattern.h
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 52 52 class TComTU; 53 53 54 /// neighbouring pixel access class for one component55 class TComPattern Param54 /// neighbouring pixel access class for all components 55 class TComPattern 56 56 { 57 57 private: 58 58 Pel* m_piROIOrigin; 59 Int m_roiWidth; 60 Int m_roiHeight; 61 Int m_patternStride; 62 Int m_bitDepth; 63 64 #if MCTS_ENC_CHECK 65 Int m_roiPosX; 66 Int m_roiPosY; 67 Int m_tileLeftTopPelPosX; 68 Int m_tileLeftTopPelPosY; 69 Int m_tileRightBottomPelPosX; 70 Int m_tileRightBottomPelPosY; 71 #endif 59 72 60 73 public: 61 Int m_iROIWidth; 62 Int m_iROIHeight; 63 Int m_iPatternStride; 64 Int m_bitDepth; 74 // ROI & pattern information, (ROI = &pattern[AboveOffset][LeftOffset]) 75 Int getROIYWidth() const { return m_roiWidth; } 76 Int getROIYHeight() const { return m_roiHeight; } 77 Int getPatternLStride() const { return m_patternStride; } 78 Int getBitDepthY() const { return m_bitDepth; } 79 #if MCTS_ENC_CHECK 80 Int getROIYPosX() const { return m_roiPosX; } 81 Int getROIYPosY() const { return m_roiPosY; } 65 82 66 /// return starting position of ROI (ROI = &pattern[AboveOffset][LeftOffset]) 67 __inline Pel* getROIOrigin() 83 Int getTileLeftTopPelPosX() const { return m_tileLeftTopPelPosX; } 84 Int getTileLeftTopPelPosY() const { return m_tileLeftTopPelPosY; } 85 Int getTileRightBottomPelPosX() const { return m_tileRightBottomPelPosX; } 86 Int getTileRightBottomPelPosY() const { return m_tileRightBottomPelPosY; } 87 #endif 88 89 __inline Pel* getROIY() 68 90 { 69 91 return m_piROIOrigin; 70 92 } 71 __inline const Pel* getROI Origin() const93 __inline const Pel* getROIY() const 72 94 { 73 95 return m_piROIOrigin; 74 96 } 75 97 76 /// set parameters from Pel buffer for accessing neighbouring pixels 77 Void setPatternParamPel( Pel* piTexture, Int iRoiWidth, Int iRoiHeight, Int iStride, Int bitDepth );78 };98 #if NH_3D 99 Bool m_bICFlag; 100 Bool m_bSDCMRSADFlag; 79 101 80 /// neighbouring pixel access class for all components 81 class TComPattern 82 { 83 private: 84 TComPatternParam m_cPatternY; 85 // TComPatternParam m_cPatternCb; 86 //TComPatternParam m_cPatternCr; 87 #if NH_3D_IC 88 Bool m_bICFlag; 89 #endif 90 #if NH_3D_SDC_INTER 91 Bool m_bSDCMRSADFlag; 102 Bool getICFlag() const { return m_bICFlag; } 103 Void setICFlag( Bool bICFlag ) { m_bICFlag = bICFlag; } 104 Bool getSDCMRSADFlag() const { return m_bSDCMRSADFlag; } 105 Void setSDCMRSADFlag( Bool bSDCMRSADFlag ) { m_bSDCMRSADFlag = bSDCMRSADFlag; } 92 106 #endif 93 107 94 108 95 public: 109 TComPattern() 110 : m_piROIOrigin(NULL) 111 , m_roiWidth(0) 112 , m_roiHeight(0) 113 , m_patternStride(0) 114 , m_bitDepth(0) 115 #if MCTS_ENC_CHECK 116 , m_roiPosX(0) 117 , m_roiPosY(0) 118 , m_tileLeftTopPelPosX(0) 119 , m_tileLeftTopPelPosY(0) 120 , m_tileRightBottomPelPosX(0) 121 , m_tileRightBottomPelPosY(0) 122 #endif 123 {}; 96 124 97 // ROI & pattern information, (ROI = &pattern[AboveOffset][LeftOffset])98 Pel* getROIY() { return m_cPatternY.getROIOrigin(); }99 const Pel* getROIY() const { return m_cPatternY.getROIOrigin(); }100 Int getROIYWidth() const { return m_cPatternY.m_iROIWidth; }101 Int getROIYHeight() const { return m_cPatternY.m_iROIHeight; }102 Int getPatternLStride() const { return m_cPatternY.m_iPatternStride; }103 Int getBitDepthY() const { return m_cPatternY.m_bitDepth; }104 105 #if NH_3D_IC106 Bool getICFlag() const { return m_bICFlag; }107 Void setICFlag( Bool bICFlag ) { m_bICFlag = bICFlag; }108 #endif109 #if NH_3D_SDC_INTER110 Bool getSDCMRSADFlag() const { return m_bSDCMRSADFlag; }111 Void setSDCMRSADFlag( Bool bSDCMRSADFlag ) { m_bSDCMRSADFlag = bSDCMRSADFlag; }112 #endif113 125 114 126 // ------------------------------------------------------------------------------------------------------------------- … … 117 129 118 130 /// set parameters from Pel buffers for accessing neighbouring pixels 119 Void initPattern( Pel* piY, Int iRoiWidth, Int iRoiHeight, Int iStride, Int bitDepthLuma ); 131 #if MCTS_ENC_CHECK 132 Void initPattern(Pel* piY, Int roiWidth, Int roiHeight, Int stride, Int bitDepthLuma, Int roiPosX, Int roiPosY); 133 Void setTileBorders(Int tileLeftTopPelPosX, Int tileLeftTopPelPosY, Int tileRightBottomPelPosX, Int tileRightBottomPelPosY); 134 #else 135 Void initPattern(Pel* piY, Int roiWidth, Int roiHeight, Int stride, Int bitDepthLuma); 136 #endif 120 137 }; 121 138
Note: See TracChangeset for help on using the changeset viewer.