Ticket #1421: ticket_1421.patch
File ticket_1421.patch, 4.0 KB (added by Vadim, 8 years ago) |
---|
-
Lib/TLibCommon/TypeDef.h
45 45 #include <vector> 46 46 #include <cstdlib> 47 47 48 #define FIX_DELTA_QP_SIGN 1 49 48 50 //! \ingroup TLibCommon 49 51 //! \{ 50 52 … … 176 178 #define SCM_T0056_IBC_VALIDATE_TILES 1 ///< Print at decoder when IBC reaches outside of current tile 177 179 #define SCM_GET_DERIVED_BV_BUGFIX 1 ///< Bug fix in related to block vector derivation 178 180 #define SCM_IBC_MVP_ENC_ONLY_BUGFIX 1 ///< Encoder only bug fix for IBC block vector predictor derivation 179 #define SCM_S0043_PLT_DELTA_QP 0///< JCTVC-S0043: delta qp signalling for palette mode181 #define SCM_S0043_PLT_DELTA_QP 1 ///< JCTVC-S0043: delta qp signalling for palette mode 180 182 #define SCM_U0090_REMOVE_LAST_RUN_TYPE_CTX 1 ///< JCTVC-U0090, last_palette_run_type_flag use the same CABAC context that is used for palette_run_type_flag 181 183 #define SCM_U0104_CURR_PIC_IN_LIST1 1 ///< JCTVC-U0104: put current picture in both L0 and L1 when IBC is enabled 182 184 #define SCM_FIX_TICKET_1401 1 ///< Fix for Ticket #1401 related to CIP process -
Lib/TLibDecoder/TDecEntropy.cpp
74 74 Void TDecEntropy::decodePLTModeInfo( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool& bCodeDQP, Bool& isChromaQpAdjCoded ) 75 75 { 76 76 // Note: the condition is log2CbSize < MaxTbLog2SizeY in 7.3.8.5 of JCTVC-T1005-v2 77 #if FIX_DELTA_QP_SIGN 78 if( pcCU->getSlice()->getSPS()->getSpsScreenExtension().getUsePLTMode() && pcCU->isIntra( uiAbsPartIdx ) && (pcCU->getSlice()->getSPS()->getMaxCUWidth() >> uiDepth) < 64 ) 79 #else 77 80 if( pcCU->isIntra( uiAbsPartIdx ) && pcCU->getSlice()->getSPS()->getMaxCUWidth()>>uiDepth < 64 && !pcCU->isIntraBC( uiAbsPartIdx ) ) 81 #endif 78 82 { 79 83 m_pcEntropyDecoderIf->parsePLTModeFlag( pcCU, uiAbsPartIdx, uiDepth ); 80 84 if ( pcCU->getPLTModeFlag( uiAbsPartIdx ) ) -
Lib/TLibDecoder/TDecSbac.cpp
892 892 codeChromaQpAdj = false; 893 893 } 894 894 895 #if !FIX_DELTA_QP_SIGN 895 896 for (Int comp = compBegin; comp < compBegin + uiNumComp; comp++) 896 897 { 897 898 uiMaxVal[comp] = pcCU->xCalcMaxVals(pcCU, ComponentID(comp)); 898 899 } 900 #endif 899 901 } 900 902 #endif 901 903 -
Lib/TLibEncoder/TEncEntropy.cpp
99 99 } 100 100 101 101 // Note: the condition is log2CbSize < MaxTbLog2SizeY in 7.3.8.5 of JCTVC-T1005-v2 102 #if FIX_DELTA_QP_SIGN 103 if( !pcCU->isIntra( uiAbsPartIdx ) || pcCU->getWidth(uiAbsPartIdx) == 64 ) 104 #else 102 105 if( !pcCU->isIntra( uiAbsPartIdx ) || pcCU->getWidth(uiAbsPartIdx) == 64 || pcCU->isIntraBC( uiAbsPartIdx ) ) 106 #endif 103 107 { 104 108 return; 105 109 } … … 199 203 200 204 if ( pcCU->getSlice()->isIntra() ) 201 205 { 206 #if !FIX_DELTA_QP_SIGN 202 207 if ( pcCU->isIntra( uiAbsPartIdx ) ) 203 208 { 204 209 encodePLTModeInfo( pcCU, uiAbsPartIdx ); … … 210 215 } 211 216 } 212 217 } 218 #endif 213 219 214 220 return; 215 221 } -
Lib/TLibEncoder/TEncSbac.cpp
825 825 *codeChromaQpAdj = false; 826 826 } 827 827 828 #if !FIX_DELTA_QP_SIGN 828 829 for (Int comp = compBegin; comp < compBegin + uiNumComp; comp++) 829 830 { 830 831 uiMaxVal[comp] = pcCU->xCalcMaxVals(pcCU, ComponentID(comp)); 831 832 } 833 #endif 832 834 } 833 835 #endif 834 836