Changeset 1511 in SHVCSoftware


Ignore:
Timestamp:
15 Dec 2015, 18:34:17 (9 years ago)
Author:
seregin
Message:

add chroma format IDC output

Location:
branches/SHM-dev/source
Files:
3 edited

Legend:

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

    r1509 r1511  
    255255  {"scalable-main10",      Profile::SCALABLEMAIN10     },
    256256#if SCALABLE_REXT
    257   {"scalable-Rext",        Profile::SCALABLEREXT     },
     257  {"scalable-RExt",        Profile::SCALABLEREXT     },
    258258#endif
    259259#endif
     
    43084308                                                                    m_bPCMInputBitDepthFlag ? m_MSBExtendedBitDepth[CHANNEL_TYPE_CHROMA] : m_internalBitDepth[CHANNEL_TYPE_CHROMA] );
    43094309#if SVC_EXTENSION
     4310  printChromaFormat( m_apcLayerCfg[layerIdx]->m_InputChromaFormatIDC, m_apcLayerCfg[layerIdx]->m_chromaFormatIDC );
    43104311    }
    43114312
     
    45034504
    45044505#if SVC_EXTENSION
     4506Void TAppEncCfg::printChromaFormat( const ChromaFormat inputChromaFormatIDC, const ChromaFormat chromaFormatIDC )
     4507{
     4508  std::cout << "Input ChromaFormatIDC                  : ";
     4509  switch (inputChromaFormatIDC)
     4510  {
     4511  case CHROMA_400:  std::cout << "4:0:0"; break;
     4512  case CHROMA_420:  std::cout << "4:2:0"; break;
     4513  case CHROMA_422:  std::cout << "4:2:2"; break;
     4514  case CHROMA_444:  std::cout << "4:4:4"; break;
     4515  default:
     4516    std::cerr << "Invalid";
     4517    exit(1);
     4518  }
     4519  std::cout << std::endl;
     4520
     4521  std::cout << "Output (internal) ChromaFormatIDC      : ";
     4522  switch (chromaFormatIDC)
     4523  {
     4524  case CHROMA_400:  std::cout << "4:0:0"; break;
     4525  case CHROMA_420:  std::cout << "4:2:0"; break;
     4526  case CHROMA_422:  std::cout << "4:2:2"; break;
     4527  case CHROMA_444:  std::cout << "4:4:4"; break;
     4528  default:
     4529    std::cerr << "Invalid";
     4530    exit(1);
     4531  }
     4532  std::cout << "\n" << std::endl;
     4533}
     4534
    45054535Void TAppEncCfg::cfgStringToArray(Int **arr, string const cfgString, Int const numEntries, const char* logString)
    45064536{
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1487 r1511  
    637637  Bool scanStringToArrayNumEntries(string const cfgString, Int &numEntries, const char* logString, std::vector<Int> &  returnVector);
    638638  Void cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString);
     639  Void printChromaFormat( const ChromaFormat inputChromaFormatIDC, const ChromaFormat chromaFormatIDC );
    639640
    640641#if SCALABLE_REXT
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h

    r1489 r1511  
    227227        else
    228228        {
     229#if SVC_EXTENSION
     230          if( layerId == 0 )
     231          {
     232#endif
    229233          printf( "\tTotal Frames |   "   "Bitrate     "  "Y-PSNR" );
    230234
     
    240244          //printf( "\t------------ "  " ----------"   " -------- "  " -------- "  " --------\n" );
    241245#if SVC_EXTENSION
     246          }
     247
    242248          printf( "  L%d \t %8d    %c "          "%12.4lf  "    "%8.4lf",
    243249                 layerId,
Note: See TracChangeset for help on using the changeset viewer.