Ignore:
Timestamp:
28 Oct 2015, 17:46:00 (9 years ago)
Author:
tech
Message:

Update to HM-16.7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1356 r1360  
    378378    m_cTEncTop.setLambdaModifier                                  ( uiLoop, m_adLambdaModifier[ uiLoop ] );
    379379  }
     380  m_cTEncTop.setIntraLambdaModifier                               ( m_adIntraLambdaModifier );
     381  m_cTEncTop.setIntraQpFactor                                     ( m_dIntraQpFactor );
     382
    380383#if NH_MV
    381384  m_cTEncTop.setQP                                                ( m_iQP[layerIdInVps] );
     
    385388
    386389  m_cTEncTop.setPad                                               ( m_aiPad );
    387 
     390  m_cTEncTop.setAccessUnitDelimiter                               ( m_AccessUnitDelimiter );
    388391#if NH_MV
    389392  m_cTEncTop.setMaxTempLayer                                      ( m_maxTempLayerMvc[layerIdInVps] );
     
    408411  //====== Motion search ========
    409412  m_cTEncTop.setDisableIntraPUsInInterSlices                      ( m_bDisableIntraPUsInInterSlices );
    410   m_cTEncTop.setFastSearch                                        ( m_iFastSearch  );
     413  m_cTEncTop.setMotionEstimationSearchMethod                      ( m_motionEstimationSearchMethod  );
    411414  m_cTEncTop.setSearchRange                                       ( m_iSearchRange );
    412415  m_cTEncTop.setBipredSearchRange                                 ( m_bipredSearchRange );
    413416  m_cTEncTop.setClipForBiPredMeEnabled                            ( m_bClipForBiPredMeEnabled );
    414417  m_cTEncTop.setFastMEAssumingSmootherMVEnabled                   ( m_bFastMEAssumingSmootherMVEnabled );
     418  m_cTEncTop.setMinSearchWindow                                   ( m_minSearchWindow );
     419  m_cTEncTop.setRestrictMESampling                                ( m_bRestrictMESampling );
    415420
    416421#if NH_MV
     
    439444  m_cTEncTop.setExtendedPrecisionProcessingFlag                   ( m_extendedPrecisionProcessingFlag );
    440445  m_cTEncTop.setHighPrecisionOffsetsEnabledFlag                   ( m_highPrecisionOffsetsEnabledFlag );
     446
     447  m_cTEncTop.setWeightedPredictionMethod( m_weightedPredictionMethod );
     448
    441449  //====== Tool list ========
    442450  m_cTEncTop.setDeltaQpRD                                         ( m_uiDeltaQpRD  );
     
    463471  m_cTEncTop.setQuadtreeTUMaxDepthInter                           ( m_uiQuadtreeTUMaxDepthInter );
    464472  m_cTEncTop.setQuadtreeTUMaxDepthIntra                           ( m_uiQuadtreeTUMaxDepthIntra );
    465   m_cTEncTop.setUseFastEnc                                        ( m_bUseFastEnc );
     473  m_cTEncTop.setFastInterSearchMode                               ( m_fastInterSearchMode );
    466474  m_cTEncTop.setUseEarlyCU                                        ( m_bUseEarlyCU  );
    467475  m_cTEncTop.setUseFastDecisionForMerge                           ( m_useFastDecisionForMerge  );
     
    513521
    514522  //====== Slice ========
    515   m_cTEncTop.setSliceMode                                         ( (SliceConstraint) m_sliceMode );
     523  m_cTEncTop.setSliceMode                                         ( m_sliceMode );
    516524  m_cTEncTop.setSliceArgument                                     ( m_sliceArgument            );
    517525
    518526  //====== Dependent Slice ========
    519   m_cTEncTop.setSliceSegmentMode                                  (  (SliceConstraint) m_sliceSegmentMode );
     527  m_cTEncTop.setSliceSegmentMode                                  ( m_sliceSegmentMode );
    520528  m_cTEncTop.setSliceSegmentArgument                              ( m_sliceSegmentArgument     );
    521529
     
    540548
    541549  m_cTEncTop.setIntraSmoothingDisabledFlag                        (!m_enableIntraReferenceSmoothing );
    542   m_cTEncTop.setDecodedPictureHashSEIEnabled                      ( m_decodedPictureHashSEIEnabled );
     550  m_cTEncTop.setDecodedPictureHashSEIType                         ( m_decodedPictureHashSEIType );
    543551  m_cTEncTop.setRecoveryPointSEIEnabled                           ( m_recoveryPointSEIEnabled );
    544552  m_cTEncTop.setBufferingPeriodSEIEnabled                         ( m_bufferingPeriodSEIEnabled );
     
    571579  m_cTEncTop.setTMISEINominalWhiteLevelLumaCodeValue              ( m_nominalWhiteLevelLumaCodeValue );
    572580  m_cTEncTop.setTMISEIExtendedWhiteLevelLumaCodeValue             ( m_extendedWhiteLevelLumaCodeValue );
    573   m_cTEncTop.setChromaSamplingFilterHintEnabled                   ( m_chromaSamplingFilterSEIenabled );
    574   m_cTEncTop.setChromaSamplingHorFilterIdc                        ( m_chromaSamplingHorFilterIdc );
    575   m_cTEncTop.setChromaSamplingVerFilterIdc                        ( m_chromaSamplingVerFilterIdc );
     581  m_cTEncTop.setChromaResamplingFilterHintEnabled                 ( m_chromaResamplingFilterSEIenabled );
     582  m_cTEncTop.setChromaResamplingHorFilterIdc                      ( m_chromaResamplingHorFilterIdc );
     583  m_cTEncTop.setChromaResamplingVerFilterIdc                      ( m_chromaResamplingVerFilterIdc );
    576584  m_cTEncTop.setFramePackingArrangementSEIEnabled                 ( m_framePackingSEIEnabled );
    577585  m_cTEncTop.setFramePackingArrangementSEIType                    ( m_framePackingSEIType );
     
    623631  m_cTEncTop.setKneeSEIInputKneePoint                             ( m_kneeSEIInputKneePoint );
    624632  m_cTEncTop.setKneeSEIOutputKneePoint                            ( m_kneeSEIOutputKneePoint );
     633  m_cTEncTop.setColourRemapInfoSEIFileRoot                        ( m_colourRemapSEIFileRoot );
    625634  m_cTEncTop.setMasteringDisplaySEI                               ( m_masteringDisplay );
    626635
     
    644653  }
    645654  m_cTEncTop.setLFCrossTileBoundaryFlag                           ( m_bLFCrossTileBoundaryFlag );
    646   m_cTEncTop.setWaveFrontSynchro                                  ( m_iWaveFrontSynchro );
     655  m_cTEncTop.setEntropyCodingSyncEnabledFlag                      ( m_entropyCodingSyncEnabledFlag );
    647656  m_cTEncTop.setTMVPModeId                                        ( m_TMVPModeId );
    648657  m_cTEncTop.setUseScalingListId                                  ( m_useScalingListId  );
    649   m_cTEncTop.setScalingListFile                                   ( m_scalingListFile  );
     658  m_cTEncTop.setScalingListFileName                               ( m_scalingListFileName );
    650659  m_cTEncTop.setSignHideFlag                                      ( m_signHideFlag);
    651660#if KWU_RC_VIEWRC_E0227 || KWU_RC_MADPRED_E0227
     
    669678  m_cTEncTop.setInitialQP                                         ( m_RCInitialQP );
    670679  m_cTEncTop.setForceIntraQP                                      ( m_RCForceIntraQP );
     680#if U0132_TARGET_BITS_SATURATION
     681  m_cTEncTop.setCpbSaturationEnabled                              ( m_RCCpbSaturationEnabled );
     682  m_cTEncTop.setCpbSize                                           ( m_RCCpbSize );
     683  m_cTEncTop.setInitialCpbFullness                                ( m_RCInitialCpbFullness );
     684#endif
     685
    671686#if KWU_RC_MADPRED_E0227
    672687  if(m_cTEncTop.getUseRateCtrl() && !m_cTEncTop.getIsDepth())
     
    843858#else
    844859  // Video I/O
    845   m_cTVideoIOYuvInputFile.open( m_pchInputFile,     false, m_inputBitDepth, m_MSBExtendedBitDepth, m_internalBitDepth );  // read  mode
     860  m_cTVideoIOYuvInputFile.open( m_inputFileName,     false, m_inputBitDepth, m_MSBExtendedBitDepth, m_internalBitDepth );  // read  mode
    846861  m_cTVideoIOYuvInputFile.skipFrames(m_FrameSkip, m_iSourceWidth - m_aiPad[0], m_iSourceHeight - m_aiPad[1], m_InputChromaFormatIDC);
    847862
    848   if (m_pchReconFile)
    849   {
    850     m_cTVideoIOYuvReconFile.open(m_pchReconFile, true, m_outputBitDepth, m_outputBitDepth, m_internalBitDepth);  // write mode
     863  if (!m_reconFileName.empty())
     864  {
     865    m_cTVideoIOYuvReconFile.open(m_reconFileName, true, m_outputBitDepth, m_outputBitDepth, m_internalBitDepth);  // write mode
    851866  }
    852867
     
    917932Void TAppEncTop::encode()
    918933{
    919   fstream bitstreamFile(m_pchBitstreamFile, fstream::binary | fstream::out);
     934  fstream bitstreamFile(m_bitstreamFileName.c_str(), fstream::binary | fstream::out);
    920935  if (!bitstreamFile)
    921936  {
    922     fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_pchBitstreamFile);
     937    fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_bitstreamFileName.c_str());
    923938    exit(EXIT_FAILURE);
    924939  }
     
    12951310  }
    12961311#else
    1297       if (m_pchReconFile)
     1312      if (!m_reconFileName.empty())
    12981313      {
    12991314        m_cTVideoIOYuvReconFile.write( pcPicYuvRecTop, pcPicYuvRecBottom, ipCSC, m_confWinLeft, m_confWinRight, m_confWinTop, m_confWinBottom, NUM_CHROMA_FORMAT, m_isTopFieldFirst );
     
    13521367  }
    13531368#else
    1354       if (m_pchReconFile)
     1369      if (!m_reconFileName.empty())
    13551370      {
    13561371        m_cTVideoIOYuvReconFile.write( pcPicYuvRec, ipCSC, m_confWinLeft, m_confWinRight, m_confWinTop, m_confWinBottom,
Note: See TracChangeset for help on using the changeset viewer.