Changeset 486 in SHVCSoftware for branches


Ignore:
Timestamp:
16 Nov 2013, 03:01:57 (11 years ago)
Author:
seregin
Message:

update bit depth output

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  
    24482448  printf("QP adaptation                : %d (range=%d)\n", m_bUseAdaptiveQP, (m_bUseAdaptiveQP ? m_iQPAdaptationRange : 0) );
    24492449  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
    24562451  printf("Internal bit depth           : (Y:%d, C:%d)\n", m_internalBitDepthY, m_internalBitDepthC );
    2457 #endif
    24582452  printf("PCM sample bit depth         : (Y:%d, C:%d)\n", g_uiPCMBitDepthLuma, g_uiPCMBitDepthChroma );
     2453#endif
    24592454#if O0215_PHASE_ALIGNMENT
    24602455  printf("cross-layer sample alignment : %d\n", m_phaseAlignFlag);
     
    24852480 
    24862481  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
    24912483  printf("IBD:%d ", g_bitDepthY > m_inputBitDepthY || g_bitDepthC > m_inputBitDepthC);
    24922484#endif
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncCfg.h

    r475 r486  
    404404  UInt getInternalBitDepthY(Int iLayer)      {return m_acLayerCfg[iLayer].m_internalBitDepthY; }
    405405  UInt getInternalBitDepthC(Int iLayer)      {return m_acLayerCfg[iLayer].m_internalBitDepthC; }
     406  Bool getPCMInputBitDepthFlag()             {return m_bPCMInputBitDepthFlag;                  }
    406407#else
    407408  UInt getInternalBitDepthY()      {return m_internalBitDepthY; }
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r475 r486  
    167167  printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - m_confLeft - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate );
    168168  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
    169174#if LAYER_CTB
    170175  printf("CU size / depth               : %d / %d\n", m_uiMaxCUWidth, m_uiMaxCUDepth );
  • branches/SHM-4.0-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp

    r473 r486  
    258258          refDC <<= (g_bitDepthYLayer[1]-g_bitDepthYLayer[0]);
    259259#endif
    260          }
     260        }
    261261#endif
    262262
     
    266266        Int offset = (Int)( ((currDC<<log2Denom) - ((Int64)weight * refDC) + (Int64)realOffset) >> realLog2Denom );
    267267#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        {
    271273          dWeight = 1;
    272274          offset  = 0;
     
    295297#if O0194_WEIGHTED_PREDICTION_CGS
    296298        // 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        {
    298301          continue;
    299302        }
Note: See TracChangeset for help on using the changeset viewer.