Skip to content
Snippets Groups Projects
EncAppCfg.cpp 347 KiB
Newer Older
  • Learn to ignore specific revisions
  •   if( m_MIP ) msg(VERBOSE, "FastMIP:%d ", m_useFastMIP);
    
      msg( VERBOSE, "TTFastSkip:%d ", m_ttFastSkip);
      msg( VERBOSE, "TTFastSkipThr:%.3f ", m_ttFastSkipThr);
    
      msg( VERBOSE, "FastLocalDualTree:%d ", m_fastLocalDualTreeMode );
    
        msg( VERBOSE, "RPR:(%1.2lfx, %1.2lfx)|%d ", m_scalingRatioHor, m_scalingRatioVer, m_switchPocPeriod );
    
      msg(VERBOSE, "TemporalFilter:%d/%d ", m_gopBasedTemporalFilterPastRefs, m_gopBasedTemporalFilterFutureRefs);
    
      msg(VERBOSE, "SEI CTI:%d ", m_ctiSEIEnabled);
    
      msg(VERBOSE, "BIM:%d ", m_bimEnabled);
    
    #if EXTENSION_360_VIDEO
      m_ext360.outputConfigurationSummary();
    #endif
    
    
      if( m_constrainedRaslEncoding )
      {
        msg(VERBOSE, "\n\nWarning: with SEIConstrainedRASL enabled, LMChroma estimation is skipped in RASL frames" );
    
        if( m_wrapAround )
        {
          msg(VERBOSE,   "\n         and wrap-around motion compensation is disabled in RASL frames" );
        }
    
    bool EncAppCfg::xHasNonZeroTemporalID ()
    {
      for (unsigned int i = 0; i < m_iGOPSize; i++)
      {
        if ( m_GOPList[i].m_temporalId != 0 )
        {
          return true;
        }
      }
      return false;
    }
    
    bool EncAppCfg::xHasLeadingPicture ()
    {
      for (unsigned int i = 0; i < m_iGOPSize; i++)
      {
        for ( unsigned int j = 0; j < m_GOPList[i].m_numRefPics0; j++)
        {
          if ( m_GOPList[i].m_deltaRefPics0[j] < 0 )
          {
            return true;
          }
        }
        for ( unsigned int j = 0; j < m_GOPList[i].m_numRefPics1; j++)
        {
          if ( m_GOPList[i].m_deltaRefPics1[j] < 0 )
          {
            return true;
          }
        }
      }
      return false;
    }
    
    
    
    bool confirmPara(bool bflag, const char* message)
    {
      if (!bflag)
      {
        return false;
      }
    
      msg( ERROR, "Error: %s\n",message);
      return true;
    }