Ticket #1270: bug1270.patch
File bug1270.patch, 2.5 KB (added by jackh, 10 years ago) |
---|
-
source/Lib/TLibCommon/TComDataCU.h
100 100 Char* m_phQP; ///< array of QP values 101 101 #if RExt__O0044_CU_ADAPTIVE_CHROMA_QP_OFFSET 102 102 UChar* m_ChromaQpAdj; ///< array of chroma QP adjustments (indexed) 103 UInt m_codedChromaQpAdj; 103 104 #endif 104 105 UChar* m_puhTrIdx; ///< array of transform indices 105 106 UChar* m_puhTransformSkip[MAX_NUM_COMPONENT];///< array of transform skipping flags … … 274 275 UChar getChromaQpAdj (Int idx) const { return m_ChromaQpAdj[idx]; } 275 276 Void setChromaQpAdj (Int idx, UChar val) { m_ChromaQpAdj[idx] = val; } 276 277 Void setChromaQpAdjSubParts( UChar val, Int absPartIdx, Int depth ); 278 Void setCodedChromaQpAdj ( Char qp ) { m_codedChromaQpAdj = qp; } 279 Char getCodedChromaQpAdj () { return m_codedChromaQpAdj; } 277 280 #endif 278 281 279 282 Bool isLosslessCoded ( UInt absPartIdx ); -
source/Lib/TLibDecoder/TDecCu.cpp
401 401 { 402 402 pcCU->setQPSubParts( getdQPFlag()?pcCU->getRefQP(uiAbsPartIdx):pcCU->getCodedQP(), uiAbsPartIdx, uiDepth ); // set QP 403 403 } 404 404 #if RExt__O0044_CU_ADAPTIVE_CHROMA_QP_OFFSET 405 if (pcCU->getSlice()->getUseChromaQpAdj() && !getIsChromaQpAdjCoded()) { 406 pcCU->setChromaQpAdjSubParts( pcCU->getCodedChromaQpAdj(), uiAbsPartIdx, uiDepth ); // set QP 407 } 408 #endif 405 409 ruiIsLast = xDecodeSliceEnd( pcCU, uiAbsPartIdx, uiDepth); 406 410 } 407 411 -
source/Lib/TLibDecoder/TDecSbac.cpp
1096 1096 xReadUnaryMaxSymbol( symbol, &m_ChromaQpAdjIdcSCModel.get( 0, 0, 0 ), 0, tableSize - 1 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) ); 1097 1097 symbol++; 1098 1098 } 1099 1099 1100 1100 /* NB, symbol = 0 if outer flag is not set, 1101 1101 * 1 if outer flag is set and there is no inner flag 1102 1102 * 1+ otherwise */ 1103 1103 cu->setChromaQpAdjSubParts( symbol, absPartIdx, depth ); 1104 cu->setCodedChromaQpAdj(symbol); 1104 1105 } 1105 1106 #endif 1106 1107