Changeset 917 in SHVCSoftware for branches/SHM-upgrade/source/App/TAppEncoder


Ignore:
Timestamp:
12 Nov 2014, 19:17:13 (10 years ago)
Author:
seregin
Message:

fix printing summary and remove REP_FORMAT_FIX, WPP_FIX, and P0050_KNEE_FUNCTION_SEI

Location:
branches/SHM-upgrade/source/App/TAppEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/App/TAppEncoder/TAppEncCfg.cpp

    r916 r917  
    45404540  printf("\n");
    45414541#if SVC_EXTENSION 
    4542   printf("Total number of layers        : %d\n", m_numLayers       );
    4543   printf("Multiview                     : %d\n", m_scalabilityMask[VIEW_ORDER_INDEX] );
    4544   printf("Scalable                      : %d\n", m_scalabilityMask[SCALABILITY_ID] );
     4542  printf("Total number of layers            : %d\n", m_numLayers       );
     4543  printf("Multiview                         : %d\n", m_scalabilityMask[VIEW_ORDER_INDEX] );
     4544  printf("Scalable                          : %d\n", m_scalabilityMask[SCALABILITY_ID] );
    45454545#if AVC_BASE
    45464546#if VPS_AVC_BL_FLAG_REMOVAL
    4547   printf("Base layer                    : %s\n", m_nonHEVCBaseLayerFlag ? "Non-HEVC" : "HEVC");
    4548 #else
    4549   printf("Base layer                    : %s\n", m_avcBaseLayerFlag ? "AVC" : "HEVC");
     4547  printf("Base layer                        : %s\n", m_nonHEVCBaseLayerFlag ? "Non-HEVC" : "HEVC");
     4548#else
     4549  printf("Base layer                        : %s\n", m_avcBaseLayerFlag ? "AVC" : "HEVC");
    45504550#endif
    45514551#endif
    45524552#if AUXILIARY_PICTURES
    4553   printf("Auxiliary pictures            : %d\n", m_scalabilityMask[AUX_ID] );
     4553  printf("Auxiliary pictures                : %d\n", m_scalabilityMask[AUX_ID] );
    45544554#endif
    45554555#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    4556   printf("Adaptive Resolution Change    : %d\n", m_adaptiveResolutionChange );
     4556  printf("Adaptive Resolution Change        : %d\n", m_adaptiveResolutionChange );
    45574557#endif
    45584558#if HIGHER_LAYER_IRAP_SKIP_FLAG
    4559   printf("Skip picture at ARC switch    : %d\n", m_skipPictureAtArcSwitch );
     4559  printf("Skip picture at ARC switch        : %d\n", m_skipPictureAtArcSwitch );
    45604560#endif
    45614561#if O0223_PICTURE_TYPES_ALIGN_FLAG
    4562   printf("Align picture type            : %d\n", m_crossLayerPictureTypeAlignFlag );
    4563 #endif
    4564   printf("Cross layer IRAP alignment    : %d\n", m_crossLayerIrapAlignFlag );
     4562  printf("Align picture type                : %d\n", m_crossLayerPictureTypeAlignFlag );
     4563#endif
     4564  printf("Cross layer IRAP alignment        : %d\n", m_crossLayerIrapAlignFlag );
    45654565#if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
    4566   printf("IDR only for IRAP             : %d\n", m_crossLayerAlignedIdrOnlyFlag );
     4566  printf("IDR only for IRAP                 : %d\n", m_crossLayerAlignedIdrOnlyFlag );
    45674567#endif
    45684568#if O0194_WEIGHTED_PREDICTION_CGS
    4569   printf("InterLayerWeightedPred        : %d\n", m_useInterLayerWeightedPred );
    4570 #endif
    4571 #if O0215_PHASE_ALIGNMENT
    4572   printf("Cross-layer sample alignment : %d\n", m_phaseAlignFlag);
    4573 #endif
     4569  printf("InterLayerWeightedPred            : %d\n", m_useInterLayerWeightedPred );
     4570#endif
     4571#if O0215_PHASE_ALIGNMENT 
     4572  printf("Cross-layer sample alignment      : %d\n", m_phaseAlignFlag);
     4573#endif
     4574  printf("\n");
    45744575  for(UInt layer=0; layer<m_numLayers; layer++)
    45754576  {
     
    45794580  }
    45804581  printf("=== Common configuration settings === \n");
    4581   printf("Bitstream      File          : %s\n", m_pBitstreamFile      );
     4582  printf("Bitstream      File               : %s\n", m_pBitstreamFile      );
    45824583#else //SVC_EXTENSION
    45834584  printf("Input          File               : %s\n", m_pchInputFile          );
  • branches/SHM-upgrade/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r916 r917  
    300300Void TAppEncLayerCfg::xPrintParameter()
    301301{
    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()  );
    304304#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 );
    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 );
     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#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 );
    310310#if O0194_DIFFERENT_BITDEPTH_EL_BL
    311   printf("Input bit depth               : (Y:%d, C:%d)\n", m_inputBitDepth[CHANNEL_TYPE_LUMA], m_inputBitDepth[CHANNEL_TYPE_CHROMA] );
    312   printf("Internal bit depth            : (Y:%d, C:%d)\n", m_internalBitDepth[CHANNEL_TYPE_LUMA], m_internalBitDepth[CHANNEL_TYPE_CHROMA] );
    313   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] );
    314 #endif
     311  printf("Input bit depth                   : (Y:%d, C:%d)\n", m_inputBitDepth[CHANNEL_TYPE_LUMA], m_inputBitDepth[CHANNEL_TYPE_CHROMA] );
     312  printf("Internal bit depth                : (Y:%d, C:%d)\n", m_internalBitDepth[CHANNEL_TYPE_LUMA], m_internalBitDepth[CHANNEL_TYPE_CHROMA] );
     313  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] );
     314#endif
     315#if SVC_EXTENSION
     316  std::cout << "Input ChromaFormatIDC             :";
     317#else
    315318  std::cout << std::setw(43) << "Input ChromaFormatIDC = ";
     319#endif
    316320  switch (m_InputChromaFormatIDC)
    317321  {
     
    326330  std::cout << std::endl;
    327331
     332#if SVC_EXTENSION
     333  std::cout << "Output (internal) ChromaFormatIDC :";
     334#else
    328335  std::cout << std::setw(43) << "Output (internal) ChromaFormatIDC = ";
     336#endif
    329337  switch (m_chromaFormatIDC)
    330338  {
     
    339347  std::cout << "\n" << std::endl;
    340348#if LAYER_CTB
    341   printf("CU size / depth               : %d / %d\n", m_uiMaxCUWidth, m_uiMaxCUDepth );
    342   printf("RQT trans. size (min / max)   : %d / %d\n", 1 << m_uiQuadtreeTULog2MinSize, 1 << m_uiQuadtreeTULog2MaxSize );
    343   printf("Max RQT depth inter           : %d\n", m_uiQuadtreeTUMaxDepthInter);
    344   printf("Max RQT depth intra           : %d\n", m_uiQuadtreeTUMaxDepthIntra);
    345 #endif
    346   printf("QP                            : %5.2f\n", m_fQP );
    347   printf("Intra period                  : %d\n", m_iIntraPeriod );
    348 #if RC_SHVC_HARMONIZATION
    349   printf("RateControl                   : %d\n", m_RCEnableRateControl );
     349  printf("CU size / depth                   : %d / %d\n", m_uiMaxCUWidth, m_uiMaxCUDepth );
     350  printf("RQT trans. size (min / max)       : %d / %d\n", 1 << m_uiQuadtreeTULog2MinSize, 1 << m_uiQuadtreeTULog2MaxSize );
     351  printf("Max RQT depth inter               : %d\n", m_uiQuadtreeTUMaxDepthInter);
     352  printf("Max RQT depth intra               : %d\n", m_uiQuadtreeTUMaxDepthIntra);
     353#endif
     354  printf("QP                                : %5.2f\n", m_fQP );
     355  printf("Intra period                      : %d\n", m_iIntraPeriod );
     356#if RC_SHVC_HARMONIZATION                   
     357  printf("RateControl                       : %d\n", m_RCEnableRateControl );
    350358  if(m_RCEnableRateControl)
    351359  {
    352     printf("TargetBitrate                 : %d\n", m_RCTargetBitrate );
    353     printf("KeepHierarchicalBit           : %d\n", m_RCKeepHierarchicalBit );
    354     printf("LCULevelRC                    : %d\n", m_RCLCULevelRC );
    355     printf("UseLCUSeparateModel           : %d\n", m_RCUseLCUSeparateModel );
    356     printf("InitialQP                     : %d\n", m_RCInitialQP );
    357     printf("ForceIntraQP                  : %d\n", m_RCForceIntraQP );
    358   }
    359 #endif
    360   printf("WaveFrontSynchro:%d WaveFrontSubstreams:%d", m_waveFrontSynchro, m_iWaveFrontSubstreams);
     360    printf("TargetBitrate                     : %d\n", m_RCTargetBitrate );
     361    printf("KeepHierarchicalBit               : %d\n", m_RCKeepHierarchicalBit );
     362    printf("LCULevelRC                        : %d\n", m_RCLCULevelRC );
     363    printf("UseLCUSeparateModel               : %d\n", m_RCUseLCUSeparateModel );
     364    printf("InitialQP                         : %d\n", m_RCInitialQP );
     365    printf("ForceIntraQP                      : %d\n", m_RCForceIntraQP );
     366  }
     367#endif
     368  printf("WaveFrontSynchro                  : %d\n", m_waveFrontSynchro);
     369  printf("WaveFrontSubstreams               : %d\n", m_iWaveFrontSubstreams);
    361370#if LAYER_CTB
    362   printf("PCM:%d ", (m_cAppEncCfg->getUsePCM() && (1<<m_cAppEncCfg->getPCMLog2MinSize()) <= m_uiMaxCUWidth)? 1 : 0);
     371  printf("PCM                               : %d ", (m_cAppEncCfg->getUsePCM() && (1<<m_cAppEncCfg->getPCMLog2MinSize()) <= m_uiMaxCUWidth)? 1 : 0);
    363372#endif
    364373}
  • branches/SHM-upgrade/source/App/TAppEncoder/TAppEncTop.cpp

    r916 r917  
    23212321  //-- all
    23222322  printf( "\n\nSUMMARY --------------------------------------------------------\n" );
    2323   printf( "\tTotal Frames |  "   "Bitrate    "  "Y-PSNR    "  "U-PSNR    "  "V-PSNR \n" );
    23242323  for(layer = 0; layer < m_numLayers; layer++)
    23252324  {
     
    23282327
    23292328  printf( "\n\nI Slices--------------------------------------------------------\n" );
    2330   printf( "\tTotal Frames |  "   "Bitrate    "  "Y-PSNR    "  "U-PSNR    "  "V-PSNR \n" );
    23312329  for(layer = 0; layer < m_numLayers; layer++)
    23322330  {
     
    23352333
    23362334  printf( "\n\nP Slices--------------------------------------------------------\n" );
    2337   printf( "\tTotal Frames |  "   "Bitrate    "  "Y-PSNR    "  "U-PSNR    "  "V-PSNR \n" );
    23382335  for(layer = 0; layer < m_numLayers; layer++)
    23392336  {
     
    23422339
    23432340  printf( "\n\nB Slices--------------------------------------------------------\n" );
    2344   printf( "\tTotal Frames |  "   "Bitrate    "  "Y-PSNR    "  "U-PSNR    "  "V-PSNR \n" );
    23452341  for(layer = 0; layer < m_numLayers; layer++)
    23462342  {
     
    23652361    }
    23662362  }
     2363
     2364  printf("\n");
     2365  //printf("\nRVM: %.3lf\n" , xCalculateRVM());
    23672366}
    23682367
Note: See TracChangeset for help on using the changeset viewer.