Changeset 1317 in 3DVCSoftware for branches/HTM-15.0-dev0/source/Lib/TLibEncoder/TEncCu.cpp
- Timestamp:
- 4 Sep 2015, 21:28:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.0-dev0/source/Lib/TLibEncoder/TEncCu.cpp
r1313 r1317 764 764 if( rpcBestCU->getSlice()->getDepthIntraSkipFlag() ) 765 765 { 766 xCheckRDCostDIS( rpcBestCU, rpcTempCU, SIZE_2Nx2N );766 xCheckRDCostDIS( rpcBestCU, rpcTempCU, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug) ); 767 767 rpcTempCU->initEstData( uiDepth, iMinQP, isAddLowestQP ); 768 768 } … … 795 795 { 796 796 #if NH_3D_FAST_TEXTURE_ENCODING 797 xCheckRDCostInter( rpcBestCU, rpcTempCU DEBUG_STRING_PASS_INTO(sDebug), SIZE_NxN, bFMD );797 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_NxN DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 798 798 #else 799 799 … … 1096 1096 1097 1097 if((rpcBestCU->getSlice()->getSliceType() == I_SLICE) || 1098 ((!m_pcEncCfg->getDisableIntraPUsInInterSlices()) && ( // avoid very complex intra if it is unlikely1098 ((!m_pcEncCfg->getDisableIntraPUsInInterSlices()) && ( 1099 1099 (rpcBestCU->getCbf( 0, COMPONENT_Y ) != 0) || 1100 1100 ((rpcBestCU->getCbf( 0, COMPONENT_Cb ) != 0) && (numberValidComponents > COMPONENT_Cb)) || 1101 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr)) 1101 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr)) // avoid very complex intra if it is unlikely 1102 1102 #if NH_3D_ENC_DEPTH 1103 1103 || rpcBestCU->getSlice()->getIsDepth() … … 1785 1785 } 1786 1786 1787 #if NH_MV 1787 1788 D_PRINT_INC_INDENT( g_traceModeCheck, "xCheckRDCostMerge2Nx2N" ); 1789 #endif 1788 1790 1789 1791 #if NH_3D_MLC … … 1970 1972 for( UInt uiNoResidual = 0; uiNoResidual < iteration; ++uiNoResidual ) 1971 1973 { 1974 #if NH_MV 1972 1975 D_PRINT_INC_INDENT ( g_traceModeCheck, "uiNoResidual: " + n2s( uiNoResidual) ); 1976 #endif 1973 1977 1974 1978 for( UInt uiMergeCand = 0; uiMergeCand < numValidMergeCand; ++uiMergeCand ) … … 1983 1987 } 1984 1988 #endif 1989 #if NH_MV 1985 1990 D_PRINT_INC_INDENT ( g_traceModeCheck, "uiMergeCand: "+ n2s(uiMergeCand) ); 1991 #endif 1986 1992 1987 1993 if(!(uiNoResidual==1 && mergeCandBuffer[uiMergeCand]==1)) … … 2173 2179 2174 2180 xCheckDQP( rpcTempCU ); 2175 xCheckBestMode( rpcBestCU, rpcTempCU, uhDepth );2181 xCheckBestMode( rpcBestCU, rpcTempCU, uhDepth DEBUG_STRING_PASS_INTO(bestStr) DEBUG_STRING_PASS_INTO(tmpStr) ); 2176 2182 } 2177 2183 } … … 2197 2203 } 2198 2204 } 2205 #if NH_MV 2199 2206 D_DEC_INDENT( g_traceModeCheck ); 2207 #endif 2200 2208 } 2201 2209 … … 2229 2237 } 2230 2238 } 2239 #if NH_MV 2231 2240 D_DEC_INDENT( g_traceModeCheck ); 2241 #endif 2232 2242 } 2233 2243 DEBUG_STRING_APPEND(sDebug, bestStr) … … 2239 2249 delete[] puhInterDirSP; 2240 2250 #endif 2251 #if NH_MV 2241 2252 D_DEC_INDENT( g_traceModeCheck ); 2253 #endif 2242 2254 } 2243 2255 … … 2265 2277 } 2266 2278 2279 #if NH_MV 2267 2280 D_PRINT_INC_INDENT(g_traceModeCheck, "xCheckRDCostInter; ePartSize:" + n2s( ePartSize) ); 2281 #endif 2268 2282 2269 2283 … … 2354 2368 { 2355 2369 #if NH_3D_ARP 2356 if( nARPWMax ) 2357 { 2358 continue; 2359 } 2360 else 2361 #endif 2362 { 2363 D_DEC_INDENT( g_traceModeCheck ); 2364 return; 2365 } 2370 if( nARPWMax ) 2371 { 2372 continue; 2373 } 2374 else 2375 #endif 2376 { 2377 #if NH_MV 2378 D_DEC_INDENT( g_traceModeCheck ); 2379 #endif 2380 return; 2381 } 2366 2382 } 2367 2383 #endif … … 2468 2484 2469 2485 xCheckDQP( rpcTempCU ); 2470 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth );2486 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth DEBUG_STRING_PASS_INTO(sDebug) DEBUG_STRING_PASS_INTO(sTest)); 2471 2487 } 2472 2488 … … 2479 2495 } 2480 2496 #endif 2497 #if NH_MV 2481 2498 D_DEC_INDENT( g_traceModeCheck ); 2499 #endif 2482 2500 } 2483 2501 … … 2683 2701 #endif 2684 2702 #if NH_3D_DIS 2685 Void TEncCu::xCheckRDCostDIS( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize eSize )2703 Void TEncCu::xCheckRDCostDIS( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize eSize DEBUG_STRING_FN_DECLARE(sDebug) ) 2686 2704 { 2705 DEBUG_STRING_NEW(sTest) 2687 2706 UInt uiDepth = rpcTempCU->getDepth( 0 ); 2688 2707 if( !rpcBestCU->getSlice()->getIsDepth() || (eSize != SIZE_2Nx2N)) … … 2691 2710 } 2692 2711 2712 #if NH_MV 2693 2713 D_PRINT_INC_INDENT(g_traceModeCheck, "xCheckRDCostDIS" ); 2714 #endif 2694 2715 2695 2716 #if NH_3D_VSO // M5 … … 2753 2774 xCheckDQP( rpcTempCU ); 2754 2775 xCheckBestMode(rpcBestCU, rpcTempCU, uiDepth DEBUG_STRING_PASS_INTO(sDebug) DEBUG_STRING_PASS_INTO(sTest) ); 2776 #if NH_MV 2755 2777 D_DEC_INDENT( g_traceModeCheck ); 2778 #endif 2756 2779 } 2757 2780 #endif … … 2777 2800 } 2778 2801 } 2802 #if NH_MV 2779 2803 D_PRINT_INC_INDENT (g_traceModeCheck, "xCheckRDCostIntra; eSize: " + n2s(eSize) ); 2780 2804 #endif 2805 2781 2806 UInt uiDepth = rpcTempCU->getDepth( 0 ); 2782 2807 #if NH_3D_VSO // M5 … … 2830 2855 m_pcEntropyCoder->encodeCUTransquantBypassFlag( rpcTempCU, 0, true ); 2831 2856 } 2832 #if NH_3D_DIS && !NH_3D_DIS_FIX 2857 m_pcEntropyCoder->encodeSkipFlag ( rpcTempCU, 0, true ); 2858 #if NH_3D_DIS 2833 2859 m_pcEntropyCoder->encodeDIS( rpcTempCU, 0, true ); 2834 2860 if(!rpcTempCU->getDISFlag(0)) 2835 2861 { 2836 2862 #endif 2837 m_pcEntropyCoder->encodeSkipFlag ( rpcTempCU, 0, true ); 2838 #if NH_3D_DIS_FIX 2839 m_pcEntropyCoder->encodeDIS( rpcTempCU, 0, true ); 2840 if(!rpcTempCU->getDISFlag(0)) 2841 { 2842 #endif 2843 m_pcEntropyCoder->encodePredMode( rpcTempCU, 0, true ); 2844 m_pcEntropyCoder->encodePartSize( rpcTempCU, 0, uiDepth, true ); 2845 m_pcEntropyCoder->encodePredInfo( rpcTempCU, 0 ); 2846 m_pcEntropyCoder->encodeIPCMInfo(rpcTempCU, 0, true ); 2863 m_pcEntropyCoder->encodePredMode( rpcTempCU, 0, true ); 2864 m_pcEntropyCoder->encodePartSize( rpcTempCU, 0, uiDepth, true ); 2865 m_pcEntropyCoder->encodePredInfo( rpcTempCU, 0 ); 2866 m_pcEntropyCoder->encodeIPCMInfo(rpcTempCU, 0, true ); 2847 2867 #if NH_3D_SDC_INTRA 2848 2868 m_pcEntropyCoder->encodeSDCFlag( rpcTempCU, 0, true ); 2849 2869 #endif 2850 2870 2851 // Encode Coefficients2852 Bool bCodeDQP = getdQPFlag();2853 Bool codeChromaQpAdjFlag = getCodeChromaQpAdjFlag();2854 m_pcEntropyCoder->encodeCoeff( rpcTempCU, 0, uiDepth, bCodeDQP, codeChromaQpAdjFlag );2855 setCodeChromaQpAdjFlag( codeChromaQpAdjFlag );2856 setdQPFlag( bCodeDQP );2871 // Encode Coefficients 2872 Bool bCodeDQP = getdQPFlag(); 2873 Bool codeChromaQpAdjFlag = getCodeChromaQpAdjFlag(); 2874 m_pcEntropyCoder->encodeCoeff( rpcTempCU, 0, uiDepth, bCodeDQP, codeChromaQpAdjFlag ); 2875 setCodeChromaQpAdjFlag( codeChromaQpAdjFlag ); 2876 setdQPFlag( bCodeDQP ); 2857 2877 #if NH_3D_DIS 2858 2878 } … … 2877 2897 xCheckBestMode(rpcBestCU, rpcTempCU, uiDepth DEBUG_STRING_PASS_INTO(sDebug) DEBUG_STRING_PASS_INTO(sTest)); 2878 2898 2899 #if NH_MV 2879 2900 D_DEC_INDENT( g_traceModeCheck ); 2880 } 2901 #endif 2902 } 2881 2903 2882 2904 … … 2912 2934 } 2913 2935 #endif 2914 2915 2936 rpcTempCU->setSkipFlagSubParts( false, 0, uiDepth ); 2916 2937 #if NH_3D_DIS
Note: See TracChangeset for help on using the changeset viewer.