Changeset 601 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibCommon
- Timestamp:
- 6 Feb 2014, 06:02:59 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp
r593 r601 44 44 //! \ingroup TLibCommon 45 45 //! \{ 46 #if !SVC_EXTENSION 46 47 UInt g_saoMaxOffsetQVal[NUM_SAO_COMPONENTS]; 48 #endif 47 49 48 50 SAOOffset::SAOOffset() … … 160 162 Int bitDepthSample = (compIdx == SAO_Y)?g_bitDepthY:g_bitDepthC; 161 163 m_offsetStepLog2 [compIdx] = max(bitDepthSample - MAX_SAO_TRUNCATED_BITDEPTH, 0); 164 #if SVC_EXTENSION 165 m_saoMaxOffsetQVal[compIdx] = (1<<(min(bitDepthSample,MAX_SAO_TRUNCATED_BITDEPTH)-5))-1; //Table 9-32, inclusive 166 #else 162 167 g_saoMaxOffsetQVal[compIdx] = (1<<(min(bitDepthSample,MAX_SAO_TRUNCATED_BITDEPTH)-5))-1; //Table 9-32, inclusive 168 #endif 163 169 } 164 170 … … 168 174 Int bitDepthSample = (compIdx == SAO_Y)?g_bitDepthY:g_bitDepthC; //exclusive 169 175 Int maxSampleValue = (1<< bitDepthSample); //exclusive 176 #if SVC_EXTENSION 177 Int maxOffsetValue = (m_saoMaxOffsetQVal[compIdx] << m_offsetStepLog2[compIdx]); 178 #else 170 179 Int maxOffsetValue = (g_saoMaxOffsetQVal[compIdx] << m_offsetStepLog2[compIdx]); 180 #endif 171 181 172 182 m_offsetClipTable[compIdx] = new Int[(maxSampleValue + maxOffsetValue -1)+ (maxOffsetValue)+1 ]; //positive & negative range plus 0 -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.h
r593 r601 53 53 // Class definition 54 54 // ==================================================================================================================== 55 #if !SVC_EXTENSION 55 56 extern UInt g_saoMaxOffsetQVal[NUM_SAO_COMPONENTS]; 57 #endif 56 58 57 59 class TComSampleAdaptiveOffset … … 69 71 Void reconstructBlkSAOParams(TComPic* pic, SAOBlkParam* saoBlkParams); 70 72 Void PCMLFDisableProcess (TComPic* pcPic); 73 #if SVC_EXTENSION 74 UInt* getSaoMaxOffsetQVal() { return m_saoMaxOffsetQVal; } 75 #endif 71 76 protected: 72 77 Void offsetBlock(Int compIdx, Int typeIdx, Int* offset, Pel* srcBlk, Pel* resBlk, Int srcStride, Int resStride, Int width, Int height … … 101 106 Int* m_offsetClipTable[NUM_SAO_COMPONENTS]; 102 107 Short* m_signTable; 103 108 #if SVC_EXTENSION 109 UInt m_saoMaxOffsetQVal[NUM_SAO_COMPONENTS]; 110 #endif 104 111 }; 105 112
Note: See TracChangeset for help on using the changeset viewer.