- Timestamp:
- 16 Nov 2013, 03:01:57 (11 years ago)
- Location:
- branches/SHM-4.0-dev/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r475 r486 2448 2448 printf("QP adaptation : %d (range=%d)\n", m_bUseAdaptiveQP, (m_bUseAdaptiveQP ? m_iQPAdaptationRange : 0) ); 2449 2449 printf("GOP size : %d\n", m_iGOPSize ); 2450 #if O0194_DIFFERENT_BITDEPTH_EL_BL 2451 printf("Input bit depth Layer0 : (Y:%d, C:%d)\n", m_acLayerCfg[0].m_inputBitDepthY , m_acLayerCfg[0].m_inputBitDepthC ); 2452 printf("Input bit depth Layer1 : (Y:%d, C:%d)\n", m_acLayerCfg[1].m_internalBitDepthY, m_acLayerCfg[1].m_internalBitDepthC ); 2453 printf("Internal bit depth Layer0 : (Y:%d, C:%d)\n", m_acLayerCfg[0].m_internalBitDepthY, m_acLayerCfg[0].m_internalBitDepthC ); 2454 printf("Internal bit depth Layer1 : (Y:%d, C:%d)\n", m_acLayerCfg[1].m_internalBitDepthY, m_acLayerCfg[1].m_internalBitDepthC ); 2455 #else 2450 #if !O0194_DIFFERENT_BITDEPTH_EL_BL 2456 2451 printf("Internal bit depth : (Y:%d, C:%d)\n", m_internalBitDepthY, m_internalBitDepthC ); 2457 #endif2458 2452 printf("PCM sample bit depth : (Y:%d, C:%d)\n", g_uiPCMBitDepthLuma, g_uiPCMBitDepthChroma ); 2453 #endif 2459 2454 #if O0215_PHASE_ALIGNMENT 2460 2455 printf("cross-layer sample alignment : %d\n", m_phaseAlignFlag); … … 2485 2480 2486 2481 printf("TOOL CFG: "); 2487 #if O0194_DIFFERENT_BITDEPTH_EL_BL 2488 printf("IBD0:%d ", g_bitDepthY > m_acLayerCfg[0].m_inputBitDepthY || g_bitDepthC > m_acLayerCfg[0].m_inputBitDepthC); 2489 printf("IBD1:%d ", g_bitDepthY > m_acLayerCfg[1].m_inputBitDepthY || g_bitDepthC > m_acLayerCfg[1].m_inputBitDepthC); 2490 #else 2482 #if !O0194_DIFFERENT_BITDEPTH_EL_BL 2491 2483 printf("IBD:%d ", g_bitDepthY > m_inputBitDepthY || g_bitDepthC > m_inputBitDepthC); 2492 2484 #endif -
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncCfg.h
r475 r486 404 404 UInt getInternalBitDepthY(Int iLayer) {return m_acLayerCfg[iLayer].m_internalBitDepthY; } 405 405 UInt getInternalBitDepthC(Int iLayer) {return m_acLayerCfg[iLayer].m_internalBitDepthC; } 406 Bool getPCMInputBitDepthFlag() {return m_bPCMInputBitDepthFlag; } 406 407 #else 407 408 UInt getInternalBitDepthY() {return m_internalBitDepthY; } -
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r475 r486 167 167 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_confLeft - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate ); 168 168 printf("Internal Format : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate ); 169 #if O0194_DIFFERENT_BITDEPTH_EL_BL 170 printf("Input bit depth : (Y:%d, C:%d)\n", m_inputBitDepthY , m_inputBitDepthC ); 171 printf("Internal bit depth : (Y:%d, C:%d)\n", m_internalBitDepthY, m_internalBitDepthC ); 172 printf("PCM sample bit depth : (Y:%d, C:%d)\n", m_cAppEncCfg->getPCMInputBitDepthFlag() ? m_inputBitDepthY : m_internalBitDepthY, m_cAppEncCfg->getPCMInputBitDepthFlag() ? m_inputBitDepthC : m_internalBitDepthC ); 173 #endif 169 174 #if LAYER_CTB 170 175 printf("CU size / depth : %d / %d\n", m_uiMaxCUWidth, m_uiMaxCUDepth ); -
branches/SHM-4.0-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp
r473 r486 258 258 refDC <<= (g_bitDepthYLayer[1]-g_bitDepthYLayer[0]); 259 259 #endif 260 260 } 261 261 #endif 262 262 … … 266 266 Int offset = (Int)( ((currDC<<log2Denom) - ((Int64)weight * refDC) + (Int64)realOffset) >> realLog2Denom ); 267 267 #if O0194_WEIGHTED_PREDICTION_CGS 268 if (slice->getRefPic(eRefPicList, refIdxTemp)->isILR(slice->getLayerId())){ 269 } 270 else{ 268 if (slice->getRefPic(eRefPicList, refIdxTemp)->isILR(slice->getLayerId())) 269 { 270 } 271 else 272 { 271 273 dWeight = 1; 272 274 offset = 0; … … 295 297 #if O0194_WEIGHTED_PREDICTION_CGS 296 298 // make sure the reference frames other than ILR are not using weighted prediction 297 if (!(slice->getRefPic(eRefPicList, refIdxTemp)->isILR(slice->getLayerId()))){ 299 if (!(slice->getRefPic(eRefPicList, refIdxTemp)->isILR(slice->getLayerId()))) 300 { 298 301 continue; 299 302 }
Note: See TracChangeset for help on using the changeset viewer.