Changeset 1029 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
- Timestamp:
- 26 Feb 2015, 00:21:54 (10 years ago)
- Location:
- branches/SHM-dev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev
- Property svn:mergeinfo changed
-
branches/SHM-dev/source
- Property svn:mergeinfo changed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r925 r1029 192 192 m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str()); 193 193 #if AUXILIARY_PICTURES 194 m_InputChromaFormat = numberToChromaFormat(tmpInputChromaFormat);195 m_chromaFormatIDC = ((tmpChromaFormat == 0) ? (m_InputChromaFormat ) : (numberToChromaFormat(tmpChromaFormat)));194 m_InputChromaFormatIDC = numberToChromaFormat(tmpInputChromaFormat); 195 m_chromaFormatIDC = ((tmpChromaFormat == 0) ? (m_InputChromaFormatIDC) : (numberToChromaFormat(tmpChromaFormat))); 196 196 #endif 197 197 #if Q0074_COLOUR_REMAPPING_SEI … … 300 300 Void TAppEncLayerCfg::xPrintParameter() 301 301 { 302 printf("Input File : %s\n", m_cInputFile.c_str() );303 printf("Reconstruction File : %s\n", m_cReconFile.c_str() );302 printf("Input File : %s\n", m_cInputFile.c_str() ); 303 printf("Reconstruction File : %s\n", m_cReconFile.c_str() ); 304 304 #if REPN_FORMAT_IN_VPS 305 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - ( m_confWinLeft + m_confWinRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confWinTop + m_confWinBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate );305 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - ( m_confWinLeft + m_confWinRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confWinTop + m_confWinBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate ); 306 306 #else 307 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_confWinLeft - m_confWinRight, m_iSourceHeight - m_confWinTop - m_confWinBottom, m_iFrameRate ); 308 #endif 309 printf("Internal Format : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate ); 307 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_confWinLeft - m_confWinRight, m_iSourceHeight - m_confWinTop - m_confWinBottom, m_iFrameRate ); 308 #endif 309 printf("Internal Format : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate ); 310 #if MULTIPLE_PTL_SUPPORT 311 printf("PTL index : %d\n", m_layerPTLIdx ); 312 #endif 310 313 #if O0194_DIFFERENT_BITDEPTH_EL_BL 311 printf("Input bit depth : (Y:%d, C:%d)\n", m_inputBitDepthY , m_inputBitDepthC ); 312 printf("Internal bit depth : (Y:%d, C:%d)\n", m_internalBitDepthY, m_internalBitDepthC ); 313 printf("PCM sample bit depth : (Y:%d, C:%d)\n", m_cAppEncCfg->getPCMInputBitDepthFlag() ? m_inputBitDepthY : m_internalBitDepthY, m_cAppEncCfg->getPCMInputBitDepthFlag() ? m_inputBitDepthC : m_internalBitDepthC ); 314 #endif 314 printf("Input bit depth : (Y:%d, C:%d)\n", m_inputBitDepth[CHANNEL_TYPE_LUMA], m_inputBitDepth[CHANNEL_TYPE_CHROMA] ); 315 printf("Internal bit depth : (Y:%d, C:%d)\n", m_internalBitDepth[CHANNEL_TYPE_LUMA], m_internalBitDepth[CHANNEL_TYPE_CHROMA] ); 316 printf("PCM sample bit depth : (Y:%d, C:%d)\n", m_cAppEncCfg->getPCMInputBitDepthFlag() ? m_inputBitDepth[CHANNEL_TYPE_LUMA] : m_internalBitDepth[CHANNEL_TYPE_LUMA], m_cAppEncCfg->getPCMInputBitDepthFlag() ? m_inputBitDepth[CHANNEL_TYPE_CHROMA] : m_internalBitDepth[CHANNEL_TYPE_CHROMA] ); 317 #endif 318 std::cout << "Input ChromaFormatIDC :"; 319 320 switch (m_InputChromaFormatIDC) 321 { 322 case CHROMA_400: std::cout << " 4:0:0"; break; 323 case CHROMA_420: std::cout << " 4:2:0"; break; 324 case CHROMA_422: std::cout << " 4:2:2"; break; 325 case CHROMA_444: std::cout << " 4:4:4"; break; 326 default: 327 std::cerr << "Invalid"; 328 exit(1); 329 } 330 std::cout << std::endl; 331 332 std::cout << "Output (internal) ChromaFormatIDC :"; 333 switch (m_chromaFormatIDC) 334 { 335 case CHROMA_400: std::cout << " 4:0:0"; break; 336 case CHROMA_420: std::cout << " 4:2:0"; break; 337 case CHROMA_422: std::cout << " 4:2:2"; break; 338 case CHROMA_444: std::cout << " 4:4:4"; break; 339 default: 340 std::cerr << "Invalid"; 341 exit(1); 342 } 343 printf("\n"); 315 344 #if LAYER_CTB 316 printf("CU size / depth : %d / %d\n", m_uiMaxCUWidth, m_uiMaxCUDepth );317 printf("RQT trans. size (min / max) : %d / %d\n", 1 << m_uiQuadtreeTULog2MinSize, 1 << m_uiQuadtreeTULog2MaxSize );318 printf("Max RQT depth inter : %d\n", m_uiQuadtreeTUMaxDepthInter);319 printf("Max RQT depth intra : %d\n", m_uiQuadtreeTUMaxDepthIntra);320 #endif 321 printf("QP : %5.2f\n", m_fQP );322 printf("Intra period : %d\n", m_iIntraPeriod );323 #if RC_SHVC_HARMONIZATION 324 printf("RateControl : %d\n", m_RCEnableRateControl );345 printf("CU size / depth : %d / %d\n", m_uiMaxCUWidth, m_uiMaxCUDepth ); 346 printf("RQT trans. size (min / max) : %d / %d\n", 1 << m_uiQuadtreeTULog2MinSize, 1 << m_uiQuadtreeTULog2MaxSize ); 347 printf("Max RQT depth inter : %d\n", m_uiQuadtreeTUMaxDepthInter); 348 printf("Max RQT depth intra : %d\n", m_uiQuadtreeTUMaxDepthIntra); 349 #endif 350 printf("QP : %5.2f\n", m_fQP ); 351 printf("Intra period : %d\n", m_iIntraPeriod ); 352 #if RC_SHVC_HARMONIZATION 353 printf("RateControl : %d\n", m_RCEnableRateControl ); 325 354 if(m_RCEnableRateControl) 326 355 { 327 printf("TargetBitrate : %d\n", m_RCTargetBitrate ); 328 printf("KeepHierarchicalBit : %d\n", m_RCKeepHierarchicalBit ); 329 printf("LCULevelRC : %d\n", m_RCLCULevelRC ); 330 printf("UseLCUSeparateModel : %d\n", m_RCUseLCUSeparateModel ); 331 printf("InitialQP : %d\n", m_RCInitialQP ); 332 printf("ForceIntraQP : %d\n", m_RCForceIntraQP ); 333 } 334 #endif 335 printf("WaveFrontSynchro:%d WaveFrontSubstreams:%d", m_waveFrontSynchro, m_iWaveFrontSubstreams); 356 printf("TargetBitrate : %d\n", m_RCTargetBitrate ); 357 printf("KeepHierarchicalBit : %d\n", m_RCKeepHierarchicalBit ); 358 printf("LCULevelRC : %d\n", m_RCLCULevelRC ); 359 printf("UseLCUSeparateModel : %d\n", m_RCUseLCUSeparateModel ); 360 printf("InitialQP : %d\n", m_RCInitialQP ); 361 printf("ForceIntraQP : %d\n", m_RCForceIntraQP ); 362 } 363 #endif 364 printf("WaveFrontSynchro : %d\n", m_waveFrontSynchro); 365 printf("WaveFrontSubstreams : %d\n", m_iWaveFrontSubstreams); 336 366 #if LAYER_CTB 337 printf("PCM :%d ", (m_cAppEncCfg->getUsePCM() && (1<<m_cAppEncCfg->getPCMLog2MinSize()) <= m_uiMaxCUWidth)? 1 : 0);367 printf("PCM : %d ", (m_cAppEncCfg->getUsePCM() && (1<<m_cAppEncCfg->getPCMLog2MinSize()) <= m_uiMaxCUWidth)? 1 : 0); 338 368 #endif 339 369 } … … 363 393 fprintf(stderr, "Warning: Automatic padding enabled, but padding parameters are also set\n"); 364 394 } 395 365 396 // automatic padding to minimum CU size 366 397 #if LAYER_CTB … … 399 430 fprintf(stderr, "Warning: Automatic padding enabled, but cropping parameters are set. Undesired size possible.\n"); 400 431 } 432 401 433 //padding 402 434 m_iSourceWidth += m_aiPad[0]; … … 470 502 471 503 #if O0194_DIFFERENT_BITDEPTH_EL_BL 472 for(UInt layer = 0; layer < MAX_LAYERS; layer++) 473 { 474 xConfirmPara( m_iQP < -6 * ((Int)m_cAppEncCfg->getInternalBitDepthY(layer) - 8) || m_iQP > 51, "QP exceeds supported range (-QpBDOffsety to 51)" ); 475 } 504 xConfirmPara( m_iQP < -6 * (m_internalBitDepth[CHANNEL_TYPE_LUMA] - 8) || m_iQP > 51, "QP exceeds supported range (-QpBDOffsety to 51)" ); 476 505 #else 477 506 xConfirmPara( m_iQP < -6 * ((Int)m_cAppEncCfg->getInternalBitDepthY() - 8) || m_iQP > 51, "QP exceeds supported range (-QpBDOffsety to 51)" );
Note: See TracChangeset for help on using the changeset viewer.