Changeset 1460 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder
- Timestamp:
- 20 Aug 2015, 20:54:17 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1459 r1460 774 774 Int* cfg_maxTidIlRefPicsPlus1[MAX_LAYERS]; 775 775 #if Q0074_COLOUR_REMAPPING_SEI 776 string* cfg_colourRemapSEIFile Name[MAX_LAYERS];776 string* cfg_colourRemapSEIFileRoot[MAX_LAYERS]; 777 777 #endif 778 778 Bool* cfg_entropyCodingSyncEnabledFlag[MAX_LAYERS]; … … 793 793 cfg_fQP[layer] = &m_apcLayerCfg[layer]->m_fQP; 794 794 #if Q0074_COLOUR_REMAPPING_SEI 795 cfg_colourRemapSEIFile Name[layer] = &m_apcLayerCfg[layer]->m_colourRemapSEIFileName;795 cfg_colourRemapSEIFileRoot[layer] = &m_apcLayerCfg[layer]->m_colourRemapSEIFileRoot; 796 796 #endif 797 797 cfg_repFormatIdx[layer] = &m_apcLayerCfg[layer]->m_repFormatIdx; … … 1073 1073 ("PhaseVerChroma%d", cfg_phaseVerChromaPtr, string(""), m_numLayers, "chroma shift in the vertical direction used in resampling proces") 1074 1074 #if Q0074_COLOUR_REMAPPING_SEI 1075 ("SEIColourRemappingInfoFileRoot%d ", cfg_colourRemapSEIFileName, string(""), m_numLayers, "Colour Remapping Information SEI parameters file name for layer %d")1075 ("SEIColourRemappingInfoFileRoot%d,-cri", cfg_colourRemapSEIFileRoot, string(""), m_numLayers, "Colour Remapping Information SEI parameters root file name (wo num ext)") 1076 1076 #endif 1077 1077 ("InputBitDepth%d", cfg_InputBitDepth[CHANNEL_TYPE_LUMA], 8, m_numLayers, "Bit-depth of input file for layer %d") … … 1141 1141 #if !SVC_EXTENSION 1142 1142 ("FrameRate,-fr", m_iFrameRate, 0, "Frame rate") 1143 #if Q0074_COLOUR_REMAPPING_SEI 1144 ("SEIColourRemappingInfoFileRoot", m_colourRemapSEIFileName, string(""), "Colour Remapping Information SEI parameters file name") 1145 #endif 1146 #endif //SVC_EXTENSION 1143 #endif 1147 1144 ("FrameSkip,-fs", m_FrameSkip, 0u, "Number of frames to skip at start of input YUV") 1148 1145 ("FramesToBeEncoded,f", m_framesToBeEncoded, 0, "Number of frames to be encoded (default=all)") … … 1462 1459 ("Log2MaxMvLengthHorizontal", m_log2MaxMvLengthHorizontal, 15, "Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units") 1463 1460 ("Log2MaxMvLengthVertical", m_log2MaxMvLengthVertical, 15, "Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units") 1461 #if !SVC_EXTENSION 1462 #if Q0074_COLOUR_REMAPPING_SEI 1463 ("SEIColourRemappingInfoFileRoot,-cri", m_colourRemapSEIFileRoot, string(""), "Colour Remapping Information SEI parameters root file name (wo num ext)") 1464 #endif 1465 #endif 1464 1466 ("SEIRecoveryPoint", m_recoveryPointSEIEnabled, false, "Control generation of recovery point SEI messages") 1465 1467 ("SEIBufferingPeriod", m_bufferingPeriodSEIEnabled, false, "Control generation of buffering period SEI messages") … … 1566 1568 ("SEIMasteringDisplayPrimaries", cfg_DisplayPrimariesCode, cfg_DisplayPrimariesCode, "Mastering display primaries for all three colour planes in CIE xy coordinates in increments of 1/50000 (results in the ranges 0 to 50000 inclusive)") 1567 1569 ("SEIMasteringDisplayWhitePoint", cfg_DisplayWhitePointCode, cfg_DisplayWhitePointCode, "Mastering display white point CIE xy coordinates in normalised increments of 1/50000 (e.g. 0.333 = 16667)") 1568 1570 1569 1571 #if LAYERS_NOT_PRESENT_SEI 1570 1572 ("SEILayersNotPresent", m_layersNotPresentSEIEnabled, 0, "Control generation of layers not present SEI message") -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1459 r1460 457 457 Int m_log2MaxMvLengthHorizontal; ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units 458 458 Int m_log2MaxMvLengthVertical; ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units 459 #if !SVC_EXTENSION 460 #if Q0074_COLOUR_REMAPPING_SEI 461 std::string m_colourRemapSEIFileRoot; 462 #endif 463 #endif 459 464 460 465 std::string m_summaryOutFilename; ///< filename to use for producing summary output file. … … 486 491 Bool m_elRapSliceBEnabled; 487 492 #endif 488 #if Q0074_COLOUR_REMAPPING_SEI 489 #if !SVC_EXTENSION 490 string m_colourRemapSEIFileName; 491 #endif 492 #endif 493 493 494 // internal member functions 494 495 #if SVC_EXTENSION -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r1451 r1460 31 31 , m_repFormatIdx(-1) 32 32 { 33 #if Q0074_COLOUR_REMAPPING_SEI34 memset( m_colourRemapSEIPreLutCodedValue, 0, sizeof(m_colourRemapSEIPreLutCodedValue) );35 memset( m_colourRemapSEIPreLutTargetValue, 0, sizeof(m_colourRemapSEIPreLutTargetValue) );36 memset( m_colourRemapSEIPostLutCodedValue, 0, sizeof(m_colourRemapSEIPostLutCodedValue) );37 memset( m_colourRemapSEIPostLutTargetValue, 0, sizeof(m_colourRemapSEIPostLutTargetValue) );38 #endif39 33 m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0; 40 34 m_aiPad[1] = m_aiPad[0] = 0; … … 64 58 delete[] m_aidQP; 65 59 } 66 #if Q0074_COLOUR_REMAPPING_SEI67 for( Int c=0 ; c<3 ; c++)68 {69 if ( m_colourRemapSEIPreLutCodedValue[c] )70 {71 delete[] m_colourRemapSEIPreLutCodedValue[c];72 }73 if ( m_colourRemapSEIPreLutTargetValue[c] )74 {75 delete[] m_colourRemapSEIPreLutTargetValue[c];76 }77 if ( m_colourRemapSEIPostLutCodedValue[c] )78 {79 delete[] m_colourRemapSEIPostLutCodedValue[c];80 }81 if ( m_colourRemapSEIPostLutTargetValue[c] )82 {83 delete[] m_colourRemapSEIPostLutTargetValue[c];84 }85 }86 #endif87 60 } 88 61 -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1459 r1460 135 135 Int m_repFormatIdx; 136 136 #if Q0074_COLOUR_REMAPPING_SEI 137 string m_colourRemapSEIFileName; ///< Colour Remapping Information SEI message parameters file 138 Int m_colourRemapSEIId; 139 Bool m_colourRemapSEICancelFlag; 140 Bool m_colourRemapSEIPersistenceFlag; 141 Bool m_colourRemapSEIVideoSignalInfoPresentFlag; 142 Bool m_colourRemapSEIFullRangeFlag; 143 Int m_colourRemapSEIPrimaries; 144 Int m_colourRemapSEITransferFunction; 145 Int m_colourRemapSEIMatrixCoefficients; 146 Int m_colourRemapSEIInputBitDepth; 147 Int m_colourRemapSEIBitDepth; 148 Int m_colourRemapSEIPreLutNumValMinus1[3]; 149 Int* m_colourRemapSEIPreLutCodedValue[3]; 150 Int* m_colourRemapSEIPreLutTargetValue[3]; 151 Bool m_colourRemapSEIMatrixPresentFlag; 152 Int m_colourRemapSEILog2MatrixDenom; 153 Int m_colourRemapSEICoeffs[3][3]; 154 Int m_colourRemapSEIPostLutNumValMinus1[3]; 155 Int* m_colourRemapSEIPostLutCodedValue[3]; 156 Int* m_colourRemapSEIPostLutTargetValue[3]; 137 string m_colourRemapSEIFileRoot; 157 138 #endif 158 139 -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1459 r1460 505 505 Bool& m_bUseSAO = m_apcLayerCfg[layer]->m_bUseSAO; 506 506 507 string& m_colourRemapSEIFileName = m_apcLayerCfg[layer]->m_colourRemapSEIFileName;508 509 507 GOPEntry* m_GOPList = m_apcLayerCfg[layer]->m_GOPList; 510 508 Int& m_extraRPSs = m_apcLayerCfg[layer]->m_extraRPSs; 511 509 Int& m_maxTempLayer = m_apcLayerCfg[layer]->m_maxTempLayer; 510 511 #if Q0074_COLOUR_REMAPPING_SEI 512 string& m_colourRemapSEIFileRoot = m_apcLayerCfg[layer]->m_colourRemapSEIFileRoot; 513 #endif 512 514 #endif 513 515 … … 542 544 m_cTEncTop.setGopList ( m_GOPList ); 543 545 m_cTEncTop.setExtraRPSs ( m_extraRPSs ); 544 545 546 for(Int i = 0; i < MAX_TLAYER; i++) 546 547 { … … 765 766 m_cTEncTop.setKneeSEIInputKneePoint ( m_kneeSEIInputKneePoint ); 766 767 m_cTEncTop.setKneeSEIOutputKneePoint ( m_kneeSEIOutputKneePoint ); 768 #if Q0074_COLOUR_REMAPPING_SEI 769 m_cTEncTop.setColourRemapInfoSEIFileRoot ( m_colourRemapSEIFileRoot ); 770 #endif 767 771 m_cTEncTop.setMasteringDisplaySEI ( m_masteringDisplay ); 768 772 … … 842 846 m_cTEncTop.setSummaryVerboseness ( m_summaryVerboseness ); 843 847 844 #if Q0074_COLOUR_REMAPPING_SEI845 m_cTEncTop.xSetCRISEIFileRoot ( m_colourRemapSEIFileName );846 #endif847 848 #if LAYERS_NOT_PRESENT_SEI 848 849 m_cTEncTop.setLayersNotPresentSEIEnabled ( m_layersNotPresentSEIEnabled );
Note: See TracChangeset for help on using the changeset viewer.