Changeset 1451 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 14 Aug 2015, 18:19:50 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r1442 r1451 21 21 //! \ingroup TAppEncoder 22 22 //! \{ 23 24 25 #if AUXILIARY_PICTURES26 static inline ChromaFormat numberToChromaFormat(const Int val)27 {28 switch (val)29 {30 case 400: return CHROMA_400; break;31 case 420: return CHROMA_420; break;32 case 422: return CHROMA_422; break;33 case 444: return CHROMA_444; break;34 default: return NUM_CHROMA_FORMAT;35 }36 }37 #endif38 23 39 24 // ==================================================================================================================== … … 102 87 } 103 88 104 Void TAppEncLayerCfg::create()105 {106 }107 108 Void TAppEncLayerCfg::destroy()109 {110 }111 112 89 #endif //SVC_EXTENSION 113 90 -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1448 r1451 28 28 protected: 29 29 // file I/O0 30 string m_inputFileName; 31 string m_reconFileName; 30 string m_inputFileName; ///< source file name 31 string m_reconFileName; ///< output reconstruction file 32 32 Int m_layerId; ///< layer Id 33 33 Int m_iFrameRate; ///< source frame-rates (Hz) … … 84 84 85 85 #if RC_SHVC_HARMONIZATION 86 Bool m_RCEnableRateControl; ///< enable rate control or not87 Int m_RCTargetBitrate; ///< target bitrate when rate control is enabled88 Bool m_RCKeepHierarchicalBit; ///< whether keeping hierarchical bit allocation structure or not89 Bool m_RCLCULevelRC; ///< true: LCU level rate control; false: picture level rate control90 Bool m_RCUseLCUSeparateModel; ///< use separate R-lambda model at LCU level91 Int m_RCInitialQP; ///< inital QP for rate control92 Bool m_RCForceIntraQP; ///< force all intra picture to use initial QP or not86 Bool m_RCEnableRateControl; ///< enable rate control or not 87 Int m_RCTargetBitrate; ///< target bitrate when rate control is enabled 88 Bool m_RCKeepHierarchicalBit; ///< whether keeping hierarchical bit allocation structure or not 89 Bool m_RCLCULevelRC; ///< true: LCU level rate control; false: picture level rate control 90 Bool m_RCUseLCUSeparateModel; ///< use separate R-lambda model at LCU level 91 Int m_RCInitialQP; ///< inital QP for rate control 92 Bool m_RCForceIntraQP; ///< force all intra picture to use initial QP or not 93 93 #if U0132_TARGET_BITS_SATURATION 94 Bool m_RCCpbSaturationEnabled; ///< enable target bits saturation to avoid CPB overflow and underflow95 UInt m_RCCpbSize; ///< CPB size96 Double m_RCInitialCpbFullness; ///< initial CPB fullness94 Bool m_RCCpbSaturationEnabled; ///< enable target bits saturation to avoid CPB overflow and underflow 95 UInt m_RCCpbSize; ///< CPB size 96 Double m_RCInitialCpbFullness; ///< initial CPB fullness 97 97 #endif 98 98 #endif … … 104 104 105 105 Int m_maxTidIlRefPicsPlus1; 106 Int m_waveFrontSynchro; ///< 0: no WPP. >= 1: WPP is enabled, the "Top right" from which inheritance occurs is this LCU offset in the line above the current.107 Int m_waveFrontFlush; ///< enable(1)/disable(0) the CABAC flush at the end of each line of LCUs.106 Int m_waveFrontSynchro; ///< 0: no WPP. >= 1: WPP is enabled, the "Top right" from which inheritance occurs is this LCU offset in the line above the current. 107 Int m_waveFrontFlush; ///< enable(1)/disable(0) the CABAC flush at the end of each line of LCUs. 108 108 109 109 Int m_iQP; ///< QP value of key-picture (integer) … … 127 127 Int m_phaseHorChroma[MAX_LAYERS]; 128 128 Int m_phaseVerChroma[MAX_LAYERS]; 129 Bool m_resamplePhaseSetPresentFlag 129 Bool m_resamplePhaseSetPresentFlag[MAX_LAYERS]; 130 130 131 131 Int m_inputBitDepth[MAX_NUM_CHANNEL_TYPE]; ///< bit-depth of input file … … 169 169 170 170 public: 171 Void create (); ///< create option handling class 172 Void destroy (); ///< destroy option handling class 173 174 Void setAppEncCfg(TAppEncCfg* p) {m_cAppEncCfg = p; } 175 176 string& getInputFileName() {return m_inputFileName; } 177 string& getReconFileName() {return m_reconFileName; } 178 Double getFloatQP() {return m_fQP; } 179 Int getConfWinLeft() {return m_confWinLeft; } 180 Int getConfWinRight() {return m_confWinRight; } 181 Int getConfWinTop() {return m_confWinTop; } 182 Int getConfWinBottom() {return m_confWinBottom; } 183 184 Int getNumSamplePredRefLayers() {return m_numSamplePredRefLayers; } 185 Int* getSamplePredRefLayerIds() {return m_samplePredRefLayerIds; } 186 Int getSamplePredRefLayerId(Int i) {return m_samplePredRefLayerIds[i]; } 187 Int getNumMotionPredRefLayers() {return m_numMotionPredRefLayers; } 188 Int* getMotionPredRefLayerIds() {return m_motionPredRefLayerIds; } 189 Int getMotionPredRefLayerId(Int i) {return m_motionPredRefLayerIds[i]; } 190 191 Int getNumActiveRefLayers() {return m_numActiveRefLayers;} 192 Int* getPredLayerIds() {return m_predLayerIds; } 193 Int getPredLayerIdx(Int i) {return m_predLayerIds[i]; } 194 195 Int getRepFormatIdx() { return m_repFormatIdx; } 196 Void setRepFormatIdx(Int x) { m_repFormatIdx = x; } 197 Void setSourceWidth(Int x) { m_iSourceWidth = x; } 198 Void setSourceHeight(Int x) { m_iSourceHeight = x; } 199 Int getMaxTidIlRefPicsPlus1() { return m_maxTidIlRefPicsPlus1; } 171 Void setAppEncCfg(TAppEncCfg* p) { m_cAppEncCfg = p; } 172 173 string& getInputFileName() { return m_inputFileName; } 174 string& getReconFileName() { return m_reconFileName; } 175 Double getFloatQP() const { return m_fQP; } 176 Int getConfWinLeft() const { return m_confWinLeft; } 177 Int getConfWinRight() const { return m_confWinRight; } 178 Int getConfWinTop() const { return m_confWinTop; } 179 Int getConfWinBottom() const { return m_confWinBottom; } 180 181 Int getNumSamplePredRefLayers() const { return m_numSamplePredRefLayers; } 182 Int* getSamplePredRefLayerIds() const { return m_samplePredRefLayerIds; } 183 Int getSamplePredRefLayerId(Int i) const { return m_samplePredRefLayerIds[i]; } 184 Int getNumMotionPredRefLayers() const { return m_numMotionPredRefLayers; } 185 Int* getMotionPredRefLayerIds() const { return m_motionPredRefLayerIds; } 186 Int getMotionPredRefLayerId(Int i) const { return m_motionPredRefLayerIds[i]; } 187 188 Int getNumActiveRefLayers() const { return m_numActiveRefLayers; } 189 Int* getPredLayerIds() const { return m_predLayerIds; } 190 Int getPredLayerIdx(Int i) const { return m_predLayerIds[i]; } 191 192 Int getRepFormatIdx() const { return m_repFormatIdx; } 193 Void setRepFormatIdx(Int x) { m_repFormatIdx = x; } 194 Void setSourceWidth(Int x) { m_iSourceWidth = x; } 195 Void setSourceHeight(Int x) { m_iSourceHeight = x; } 196 Int getMaxTidIlRefPicsPlus1() const { return m_maxTidIlRefPicsPlus1; } 200 197 #if LAYER_CTB 201 UInt getMaxCUWidth() {return m_uiMaxCUWidth;}202 UInt getMaxCUHeight() {return m_uiMaxCUHeight;}203 UInt getMaxCUDepth() {return m_uiMaxCUDepth;}198 UInt getMaxCUWidth() const { return m_uiMaxCUWidth; } 199 UInt getMaxCUHeight() const { return m_uiMaxCUHeight; } 200 UInt getMaxCUDepth() const { return m_uiMaxCUDepth; } 204 201 #endif 205 202 }; // END CLASS DEFINITION TAppEncLayerCfg
Note: See TracChangeset for help on using the changeset viewer.