Changeset 294 in 3DVCSoftware for branches/HTM-5.1-dev0/source/Lib/TLibCommon/TComTrQuant.h
- Timestamp:
- 19 Feb 2013, 20:33:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibCommon/TComTrQuant.h
r56 r294 89 89 Int m_iBits; 90 90 91 #if H0736_AVC_STYLE_QP_RANGE92 91 Void setQpParam( Int qpScaled, Bool bLowpass, SliceType eSliceType ) 93 92 { … … 97 96 m_iBits = QP_BITS + m_iPer; 98 97 } 99 #else100 Void setQpParam( Int iQP, Bool bLowpass, SliceType eSliceType )101 {102 assert ( iQP >= MIN_QP && iQP <= MAX_QP );103 m_iQP = iQP;104 105 m_iPer = (iQP + 6*g_uiBitIncrement)/6;106 #if FULL_NBIT107 m_iPer += g_uiBitDepth - 8;108 #endif109 m_iRem = iQP % 6;110 111 m_iBits = QP_BITS + m_iPer;112 }113 #endif114 98 115 99 Void clear() … … 165 149 166 150 // Misc functions 167 #if H0736_AVC_STYLE_QP_RANGE168 151 Void setQPforQuant( Int qpy, Bool bLowpass, SliceType eSliceType, TextType eTxtType, Int qpBdOffset, Int chromaQPOffset); 169 #else170 Void setQPforQuant( Int iQP, Bool bLowpass, SliceType eSliceType, TextType eTxtType, Int Shift);171 #endif172 152 173 153 #if RDOQ_CHROMA_LAMBDA … … 192 172 const UInt uiCGPosX, 193 173 const UInt uiCGPosY, 194 #if MULTILEVEL_SIGMAP_EXT195 174 const UInt scanIdx, 196 #endif197 175 Int width, Int height); 198 #if !REMOVE_INFER_SIGGRP199 static Bool bothCGNeighboursOne ( const UInt* uiSigCoeffGroupFlag,200 const UInt uiCGPosX,201 const UInt uiCGPosY,202 #if MULTILEVEL_SIGMAP_EXT203 const UInt scanIdx,204 #endif205 Int width, Int height);206 #endif207 176 Void initScalingList (); 208 177 Void destroyScalingList (); … … 259 228 Void xT ( UInt uiMode,Pel* pResidual, UInt uiStride, Int* plCoeff, Int iWidth, Int iHeight ); 260 229 261 #if MULTIBITS_DATA_HIDING262 230 Void signBitHidingHDQ( TComDataCU* pcCU, TCoeff* pQCoef, TCoeff* pCoef, UInt const *scan, Int* deltaU, Int width, Int height ); 263 #endif264 231 265 232 // quantization … … 298 265 UShort ui16CtxNumAbs, 299 266 UShort ui16AbsGoRice, 300 #if RESTRICT_GR1GR2FLAG_NUMBER301 267 UInt c1Idx, 302 268 UInt c2Idx, 303 #endif304 269 Int iQBits, 305 270 Double dTemp, … … 309 274 UShort ui16CtxNumAbs, 310 275 UShort ui16AbsGoRice 311 #if RESTRICT_GR1GR2FLAG_NUMBER312 276 , UInt c1Idx, 313 277 UInt c2Idx 314 #endif315 278 ) const; 316 #if MULTIBITS_DATA_HIDING317 279 __inline Int xGetICRate ( UInt uiAbsLevel, 318 280 UShort ui16CtxNumOne, 319 281 UShort ui16CtxNumAbs, 320 282 UShort ui16AbsGoRice 321 #if RESTRICT_GR1GR2FLAG_NUMBER322 283 , UInt c1Idx, 323 284 UInt c2Idx 324 #endif325 285 ) const; 326 #endif327 286 __inline Double xGetRateLast ( const UInt uiPosX, 328 287 const UInt uiPosY,
Note: See TracChangeset for help on using the changeset viewer.