Changeset 1360 in 3DVCSoftware for branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 28 Oct 2015, 17:46:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1356 r1360 378 378 m_cTEncTop.setLambdaModifier ( uiLoop, m_adLambdaModifier[ uiLoop ] ); 379 379 } 380 m_cTEncTop.setIntraLambdaModifier ( m_adIntraLambdaModifier ); 381 m_cTEncTop.setIntraQpFactor ( m_dIntraQpFactor ); 382 380 383 #if NH_MV 381 384 m_cTEncTop.setQP ( m_iQP[layerIdInVps] ); … … 385 388 386 389 m_cTEncTop.setPad ( m_aiPad ); 387 390 m_cTEncTop.setAccessUnitDelimiter ( m_AccessUnitDelimiter ); 388 391 #if NH_MV 389 392 m_cTEncTop.setMaxTempLayer ( m_maxTempLayerMvc[layerIdInVps] ); … … 408 411 //====== Motion search ======== 409 412 m_cTEncTop.setDisableIntraPUsInInterSlices ( m_bDisableIntraPUsInInterSlices ); 410 m_cTEncTop.set FastSearch ( m_iFastSearch);413 m_cTEncTop.setMotionEstimationSearchMethod ( m_motionEstimationSearchMethod ); 411 414 m_cTEncTop.setSearchRange ( m_iSearchRange ); 412 415 m_cTEncTop.setBipredSearchRange ( m_bipredSearchRange ); 413 416 m_cTEncTop.setClipForBiPredMeEnabled ( m_bClipForBiPredMeEnabled ); 414 417 m_cTEncTop.setFastMEAssumingSmootherMVEnabled ( m_bFastMEAssumingSmootherMVEnabled ); 418 m_cTEncTop.setMinSearchWindow ( m_minSearchWindow ); 419 m_cTEncTop.setRestrictMESampling ( m_bRestrictMESampling ); 415 420 416 421 #if NH_MV … … 439 444 m_cTEncTop.setExtendedPrecisionProcessingFlag ( m_extendedPrecisionProcessingFlag ); 440 445 m_cTEncTop.setHighPrecisionOffsetsEnabledFlag ( m_highPrecisionOffsetsEnabledFlag ); 446 447 m_cTEncTop.setWeightedPredictionMethod( m_weightedPredictionMethod ); 448 441 449 //====== Tool list ======== 442 450 m_cTEncTop.setDeltaQpRD ( m_uiDeltaQpRD ); … … 463 471 m_cTEncTop.setQuadtreeTUMaxDepthInter ( m_uiQuadtreeTUMaxDepthInter ); 464 472 m_cTEncTop.setQuadtreeTUMaxDepthIntra ( m_uiQuadtreeTUMaxDepthIntra ); 465 m_cTEncTop.set UseFastEnc ( m_bUseFastEnc);473 m_cTEncTop.setFastInterSearchMode ( m_fastInterSearchMode ); 466 474 m_cTEncTop.setUseEarlyCU ( m_bUseEarlyCU ); 467 475 m_cTEncTop.setUseFastDecisionForMerge ( m_useFastDecisionForMerge ); … … 513 521 514 522 //====== Slice ======== 515 m_cTEncTop.setSliceMode ( (SliceConstraint)m_sliceMode );523 m_cTEncTop.setSliceMode ( m_sliceMode ); 516 524 m_cTEncTop.setSliceArgument ( m_sliceArgument ); 517 525 518 526 //====== Dependent Slice ======== 519 m_cTEncTop.setSliceSegmentMode ( (SliceConstraint)m_sliceSegmentMode );527 m_cTEncTop.setSliceSegmentMode ( m_sliceSegmentMode ); 520 528 m_cTEncTop.setSliceSegmentArgument ( m_sliceSegmentArgument ); 521 529 … … 540 548 541 549 m_cTEncTop.setIntraSmoothingDisabledFlag (!m_enableIntraReferenceSmoothing ); 542 m_cTEncTop.setDecodedPictureHashSEI Enabled ( m_decodedPictureHashSEIEnabled);550 m_cTEncTop.setDecodedPictureHashSEIType ( m_decodedPictureHashSEIType ); 543 551 m_cTEncTop.setRecoveryPointSEIEnabled ( m_recoveryPointSEIEnabled ); 544 552 m_cTEncTop.setBufferingPeriodSEIEnabled ( m_bufferingPeriodSEIEnabled ); … … 571 579 m_cTEncTop.setTMISEINominalWhiteLevelLumaCodeValue ( m_nominalWhiteLevelLumaCodeValue ); 572 580 m_cTEncTop.setTMISEIExtendedWhiteLevelLumaCodeValue ( m_extendedWhiteLevelLumaCodeValue ); 573 m_cTEncTop.setChroma SamplingFilterHintEnabled ( m_chromaSamplingFilterSEIenabled );574 m_cTEncTop.setChroma SamplingHorFilterIdc ( m_chromaSamplingHorFilterIdc );575 m_cTEncTop.setChroma SamplingVerFilterIdc ( m_chromaSamplingVerFilterIdc );581 m_cTEncTop.setChromaResamplingFilterHintEnabled ( m_chromaResamplingFilterSEIenabled ); 582 m_cTEncTop.setChromaResamplingHorFilterIdc ( m_chromaResamplingHorFilterIdc ); 583 m_cTEncTop.setChromaResamplingVerFilterIdc ( m_chromaResamplingVerFilterIdc ); 576 584 m_cTEncTop.setFramePackingArrangementSEIEnabled ( m_framePackingSEIEnabled ); 577 585 m_cTEncTop.setFramePackingArrangementSEIType ( m_framePackingSEIType ); … … 623 631 m_cTEncTop.setKneeSEIInputKneePoint ( m_kneeSEIInputKneePoint ); 624 632 m_cTEncTop.setKneeSEIOutputKneePoint ( m_kneeSEIOutputKneePoint ); 633 m_cTEncTop.setColourRemapInfoSEIFileRoot ( m_colourRemapSEIFileRoot ); 625 634 m_cTEncTop.setMasteringDisplaySEI ( m_masteringDisplay ); 626 635 … … 644 653 } 645 654 m_cTEncTop.setLFCrossTileBoundaryFlag ( m_bLFCrossTileBoundaryFlag ); 646 m_cTEncTop.set WaveFrontSynchro ( m_iWaveFrontSynchro);655 m_cTEncTop.setEntropyCodingSyncEnabledFlag ( m_entropyCodingSyncEnabledFlag ); 647 656 m_cTEncTop.setTMVPModeId ( m_TMVPModeId ); 648 657 m_cTEncTop.setUseScalingListId ( m_useScalingListId ); 649 m_cTEncTop.setScalingListFile ( m_scalingListFile);658 m_cTEncTop.setScalingListFileName ( m_scalingListFileName ); 650 659 m_cTEncTop.setSignHideFlag ( m_signHideFlag); 651 660 #if KWU_RC_VIEWRC_E0227 || KWU_RC_MADPRED_E0227 … … 669 678 m_cTEncTop.setInitialQP ( m_RCInitialQP ); 670 679 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 671 686 #if KWU_RC_MADPRED_E0227 672 687 if(m_cTEncTop.getUseRateCtrl() && !m_cTEncTop.getIsDepth()) … … 843 858 #else 844 859 // Video I/O 845 m_cTVideoIOYuvInputFile.open( m_ pchInputFile, false, m_inputBitDepth, m_MSBExtendedBitDepth, m_internalBitDepth ); // read mode860 m_cTVideoIOYuvInputFile.open( m_inputFileName, false, m_inputBitDepth, m_MSBExtendedBitDepth, m_internalBitDepth ); // read mode 846 861 m_cTVideoIOYuvInputFile.skipFrames(m_FrameSkip, m_iSourceWidth - m_aiPad[0], m_iSourceHeight - m_aiPad[1], m_InputChromaFormatIDC); 847 862 848 if ( m_pchReconFile)849 { 850 m_cTVideoIOYuvReconFile.open(m_ pchReconFile, true, m_outputBitDepth, m_outputBitDepth, m_internalBitDepth); // write mode863 if (!m_reconFileName.empty()) 864 { 865 m_cTVideoIOYuvReconFile.open(m_reconFileName, true, m_outputBitDepth, m_outputBitDepth, m_internalBitDepth); // write mode 851 866 } 852 867 … … 917 932 Void TAppEncTop::encode() 918 933 { 919 fstream bitstreamFile(m_ pchBitstreamFile, fstream::binary | fstream::out);934 fstream bitstreamFile(m_bitstreamFileName.c_str(), fstream::binary | fstream::out); 920 935 if (!bitstreamFile) 921 936 { 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()); 923 938 exit(EXIT_FAILURE); 924 939 } … … 1295 1310 } 1296 1311 #else 1297 if ( m_pchReconFile)1312 if (!m_reconFileName.empty()) 1298 1313 { 1299 1314 m_cTVideoIOYuvReconFile.write( pcPicYuvRecTop, pcPicYuvRecBottom, ipCSC, m_confWinLeft, m_confWinRight, m_confWinTop, m_confWinBottom, NUM_CHROMA_FORMAT, m_isTopFieldFirst ); … … 1352 1367 } 1353 1368 #else 1354 if ( m_pchReconFile)1369 if (!m_reconFileName.empty()) 1355 1370 { 1356 1371 m_cTVideoIOYuvReconFile.write( pcPicYuvRec, ipCSC, m_confWinLeft, m_confWinRight, m_confWinTop, m_confWinBottom,
Note: See TracChangeset for help on using the changeset viewer.