Changeset 1335 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 22 Jul 2015, 02:37:09 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/NALwrite.h
r1259 r1335 39 39 #include <ostream> 40 40 41 #include "TLibCommon/ TypeDef.h"41 #include "TLibCommon/CommonDef.h" 42 42 #include "TLibCommon/TComBitStream.h" 43 43 #include "TLibCommon/NAL.h" -
branches/SHM-dev/source/Lib/TLibEncoder/TEncBinCoderCABAC.cpp
r1259 r1335 196 196 //} 197 197 198 #if defDEBUG_CABAC_BINS198 #if DEBUG_CABAC_BINS 199 199 const UInt startingRange = m_uiRange; 200 200 #endif … … 228 228 } 229 229 230 #if defDEBUG_CABAC_BINS230 #if DEBUG_CABAC_BINS 231 231 if ((g_debugCounter + debugCabacBinWindow) >= debugCabacBinTargetLine) 232 232 { -
branches/SHM-dev/source/Lib/TLibEncoder/TEncBinCoderCABACCounter.cpp
r1307 r1335 74 74 Void TEncBinCABACCounter::encodeBin( UInt binValue, ContextModel &rcCtxModel ) 75 75 { 76 #if defDEBUG_ENCODER_SEARCH_BINS76 #if DEBUG_ENCODER_SEARCH_BINS 77 77 const UInt64 startingFracBits = m_fracBits; 78 78 #endif … … 82 82 rcCtxModel.update( binValue ); 83 83 84 #if defDEBUG_ENCODER_SEARCH_BINS84 #if DEBUG_ENCODER_SEARCH_BINS 85 85 if ((g_debugCounter + debugEncoderSearchBinWindow) >= debugEncoderSearchBinTargetLine) 86 86 { -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCu.cpp
r1316 r1335 1376 1376 (uiNoResidual != 0) DEBUG_STRING_PASS_INTO(tmpStr) ); 1377 1377 1378 #if defDEBUG_STRING1378 #if DEBUG_STRING 1379 1379 DebugInterPredResiReco(tmpStr, *(m_ppcPredYuvTemp[uhDepth]), *(m_ppcResiYuvBest[uhDepth]), *(m_ppcRecoYuvTemp[uhDepth]), DebugStringGetPredModeMask(rpcTempCU->getPredictionMode(0))); 1380 1380 #endif … … 1486 1486 rpcTempCU->getTotalCost() = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() ); 1487 1487 1488 #if defDEBUG_STRING1488 #if DEBUG_STRING 1489 1489 DebugInterPredResiReco(sTest, *(m_ppcPredYuvTemp[uhDepth]), *(m_ppcResiYuvBest[uhDepth]), *(m_ppcRecoYuvTemp[uhDepth]), DebugStringGetPredModeMask(rpcTempCU->getPredictionMode(0))); 1490 1490 #endif … … 1635 1635 1636 1636 1637 #if defDEBUG_STRING1637 #if DEBUG_STRING 1638 1638 DEBUG_STRING_SWAP(sParent, sTest) 1639 1639 const PredMode predMode=rpcBestCU->getPredictionMode(0); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncEntropy.cpp
r1307 r1335 37 37 38 38 #include "TEncEntropy.h" 39 #include "TLibCommon/ TypeDef.h"39 #include "TLibCommon/CommonDef.h" 40 40 #include "TLibCommon/TComSampleAdaptiveOffset.h" 41 41 #include "TLibCommon/TComTU.h" -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1328 r1335 36 36 */ 37 37 38 #include "TLibCommon/ TypeDef.h"38 #include "TLibCommon/CommonDef.h" 39 39 #include "TLibCommon/TComRom.h" 40 40 #include "TLibCommon/TComMotionInfo.h" … … 1153 1153 Pel *const lumaResidualForEstimate = bUseReconstructedResidualForEstimate ? reconstructedLumaResidual : encoderLumaResidual; 1154 1154 1155 #if defDEBUG_STRING1155 #if DEBUG_STRING 1156 1156 const Int debugPredModeMask=DebugStringGetPredModeMask(MODE_INTRA); 1157 1157 #endif … … 1163 1163 DEBUG_STRING_NEW(sTemp) 1164 1164 1165 #if ndefDEBUG_STRING1165 #if !DEBUG_STRING 1166 1166 if( default0Save1Load2 != 2 ) 1167 1167 #endif … … 1190 1190 } 1191 1191 } 1192 #if ndefDEBUG_STRING1192 #if !DEBUG_STRING 1193 1193 else 1194 1194 { … … 1273 1273 //--- inverse transform --- 1274 1274 1275 #if defDEBUG_STRING1275 #if DEBUG_STRING 1276 1276 if ( (uiAbsSum > 0) || (DebugOptionList::DebugString_InvTran.getInt()&debugPredModeMask) ) 1277 1277 #else … … 1313 1313 } 1314 1314 1315 #if defDEBUG_STRING1315 #if DEBUG_STRING 1316 1316 std::stringstream ss(stringstream::out); 1317 1317 const Bool bDebugPred=((DebugOptionList::DebugString_Pred.getInt()&debugPredModeMask) && DEBUG_STRING_CHANNEL_CONDITION(compID)); … … 2331 2331 Double cost = (Double)uiSad + (Double)iModeBits * sqrtLambdaForFirstPass; 2332 2332 2333 #if defDEBUG_INTRA_SEARCH_COSTS2333 #if DEBUG_INTRA_SEARCH_COSTS 2334 2334 std::cout << "1st pass mode " << uiMode << " SAD = " << uiSad << ", mode bits = " << iModeBits << ", cost = " << cost << "\n"; 2335 2335 #endif … … 2412 2412 #endif 2413 2413 2414 #if defDEBUG_INTRA_SEARCH_COSTS2414 #if DEBUG_INTRA_SEARCH_COSTS 2415 2415 std::cout << "2nd pass [luma,chroma] mode [" << Int(pcCU->getIntraDir(CHANNEL_TYPE_LUMA, uiPartOffset)) << "," << Int(pcCU->getIntraDir(CHANNEL_TYPE_CHROMA, uiPartOffset)) << "] cost = " << dPUCost << "\n"; 2416 2416 #endif … … 4550 4550 m_pcRDGoOnSbacCoder->store(m_pppcRDSbacCoder[pcCU->getDepth(0)][CI_TEMP_BEST]); 4551 4551 4552 #if defDEBUG_STRING4552 #if DEBUG_STRING 4553 4553 pcYuvResiBest->clear(); // Clear the residual image, if we didn't code it. 4554 4554 for(UInt i=0; i<MAX_NUM_COMPONENT+1; i++) … … 4598 4598 static const UInt useTS[MAX_NUM_COMPONENT]={0,0,0}; 4599 4599 pcCU->setTransformSkipSubParts ( useTS, 0, pcCU->getDepth(0) ); 4600 #if defDEBUG_STRING4600 #if DEBUG_STRING 4601 4601 sDebug.clear(); 4602 4602 for(UInt i=0; i<MAX_NUM_COMPONENT+1; i++) … … 4674 4674 4675 4675 UInt SplitFlag = ((pcCU->getSlice()->getSPS()->getQuadtreeTUMaxDepthInter() == 1) && pcCU->isInter(uiAbsPartIdx) && ( pcCU->getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N )); 4676 #if defDEBUG_STRING4676 #if DEBUG_STRING 4677 4677 const Int debugPredModeMask = DebugStringGetPredModeMask(pcCU->getPredictionMode(uiAbsPartIdx)); 4678 4678 #endif … … 5002 5002 } 5003 5003 5004 #if defDEBUG_STRING5004 #if DEBUG_STRING 5005 5005 if (currAbsSum > 0) 5006 5006 { … … 5167 5167 DEBUG_STRING_NEW(childString) 5168 5168 xEstimateInterResidualQT( pcResi, dSubdivCost, uiSubdivBits, uiSubdivDist, bCheckFull ? NULL : puiZeroDist, tuRecurseChild DEBUG_STRING_PASS_INTO(childString)); 5169 #if defDEBUG_STRING5169 #if DEBUG_STRING 5170 5170 // split the string by component and append to the relevant output (because decoder decodes in channel order, whereas this search searches by TU-order) 5171 5171 std::size_t lastPos=0; … … 5223 5223 ruiBits += uiSubdivBits; 5224 5224 ruiDist += uiSubdivDist; 5225 #if defDEBUG_STRING5225 #if DEBUG_STRING 5226 5226 for(UInt ch = 0; ch < numValidComp; ch++) 5227 5227 { … … 5283 5283 ruiBits += uiSingleBits; 5284 5284 ruiDist += uiSingleDist; 5285 #if defDEBUG_STRING5285 #if DEBUG_STRING 5286 5286 for(UInt ch = 0; ch < numValidComp; ch++) 5287 5287 { -
branches/SHM-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp
r1316 r1335 36 36 */ 37 37 38 #include "../TLibCommon/ TypeDef.h"38 #include "../TLibCommon/CommonDef.h" 39 39 #include "../TLibCommon/TComSlice.h" 40 40 #include "../TLibCommon/TComPic.h" -
branches/SHM-dev/source/Lib/TLibEncoder/WeightPredAnalysis.h
r1259 r1335 38 38 #define __WEIGHTPREDANALYSIS__ 39 39 40 #include "../TLibCommon/ TypeDef.h"40 #include "../TLibCommon/CommonDef.h" 41 41 #include "../TLibCommon/TComSlice.h" 42 42 #include "TEncCavlc.h" … … 46 46 private: 47 47 48 // member variables 48 // member variables 49 49 WPScalingParam m_wp[NUM_REF_PIC_LIST_01][MAX_NUM_REF][MAX_NUM_COMPONENT]; 50 50
Note: See TracChangeset for help on using the changeset viewer.