📄 codingparameter.h
字号:
delete[] m_ppuiPdsInitialDelayMinus2L0Anc;
delete[] m_ppuiPdsInitialDelayMinus2L1Anc;
delete[] m_ppuiPdsInitialDelayMinus2L0NonAnc;
delete[] m_ppuiPdsInitialDelayMinus2L1NonAnc;
m_ppuiPdsInitialDelayMinus2L0Anc = NULL;
m_ppuiPdsInitialDelayMinus2L1Anc = NULL;
m_ppuiPdsInitialDelayMinus2L0NonAnc = NULL;
m_ppuiPdsInitialDelayMinus2L1NonAnc = NULL;
}
//~JVT-W080
}
public:
const MotionVectorSearchParams& getMotionVectorSearchParams () const {return m_cMotionVectorSearchParams; }
const LoopFilterParams& getLoopFilterParams () const {return m_cLoopFilterParams; }
MotionVectorSearchParams& getMotionVectorSearchParams () {return m_cMotionVectorSearchParams; }
LoopFilterParams& getLoopFilterParams () {return m_cLoopFilterParams; }
const LayerParameters& getLayerParameters ( UInt n ) const { return m_acLayerParameters[n]; }
LayerParameters& getLayerParameters ( UInt n ) { return m_acLayerParameters[n]; }
//TMM_WP
SampleWeightingParams& getSampleWeightingParams(UInt uiLayerId) {return m_cSampleWeightingParams[uiLayerId];}
//TMM_WP
//JVT-W080
ErrVal savePDSParameters( UInt uiNumView
, UInt* num_refs_list0_anc
, UInt* num_refs_list1_anc
, UInt* num_refs_list0_nonanc
, UInt* num_refs_list1_nonanc
, UInt** PDIInitialDelayMinus2L0Anc
, UInt** PDIInitialDelayMinus2L1Anc
, UInt** PDIInitialDelayMinus2L0NonAnc
, UInt** PDIInitialDelayMinus2L1NonAnc
);
//~JVT-W080
const std::string& getInputFile () const { return m_cInputFile; }
Double getMaximumFrameRate () const { return m_dMaximumFrameRate; }
Double getMaximumDelay () const { return m_dMaximumDelay; }
UInt getTotalFrames () const { return m_uiTotalFrames; }
UInt getGOPSize () const { return m_uiGOPSize; }
UInt getDecompositionStages () const { return m_uiDecompositionStages; }
UInt getIntraPeriod () const { return m_uiIntraPeriod; }
UInt getIntraPeriodLowPass () const { return m_uiIntraPeriodLowPass; }
UInt getNumRefFrames () const { return m_uiNumRefFrames; }
UInt getBaseLayerMode () const { return m_uiBaseLayerMode; }
UInt getNumberOfLayers () const { return m_uiNumberOfLayers; }
Bool getExtendedPriorityId () const { return m_bExtendedPriorityId; }
UInt getNumSimplePris () const { return m_uiNumSimplePris; }
/* Void getSimplePriorityMap ( UInt uiSimplePri, UInt& uiTemporalLevel, UInt& uiLayer, UInt& uiQualityLevel )
{ uiTemporalLevel = m_uiTemporalLevelList[uiSimplePri];
uiLayer = m_uiDependencyIdList [uiSimplePri];
uiQualityLevel = m_uiQualityLevelList [uiSimplePri];
}
JVT-S036 */
//TMM_WP
UInt getIPMode() const { return m_uiIPMode; }
UInt getBMode() const { return m_uiBMode; }
//TMM_WP
UInt getMVCmode () const { return m_uiMVCmode; }
UInt getInterPredPicsFirst () const { return m_uiInterPredPicsFirst; } // JVT-V043 enc
#if JMVM_ONLY // JVT-U052
UInt getICmode () const { return m_uiICmode; }
UInt getMotionSkipMode () const { return m_uiMotionSkipMode; } // // JVT-W081
UInt getSLDMode () const { return m_uiSLDMode; } // JVT-Y042
#endif
UInt getFrameWidth () const { return m_uiFrameWidth; }
UInt getFrameHeight () const { return m_uiFrameHeight; }
UInt getSymbolMode () const { return m_uiSymbolMode; }
UInt get8x8Mode () const { return m_ui8x8Mode; }
Double getBasisQp () const { return m_dBasisQp; }
UInt getDPBSize () const { return m_uiDPBSize; }
UInt getNumDPBRefFrames () const { return m_uiNumDPBRefFrames; }
UInt getLog2MaxFrameNum () const { return m_uiLog2MaxFrameNum; }
UInt getLog2MaxPocLsb () const { return m_uiLog2MaxPocLsb; }
std::string getSequenceFormatString () const { return m_cSequenceFormatString; }
Double getDeltaQpLayer ( UInt ui ) const { return m_adDeltaQpLayer[ui]; }
UInt getMaxRefIdxActiveBL0 () const { return m_uiMaxRefIdxActiveBL0; }
UInt getMaxRefIdxActiveBL1 () const { return m_uiMaxRefIdxActiveBL1; }
UInt getMaxRefIdxActiveP () const { return m_uiMaxRefIdxActiveP; }
//JVT-W080
UInt getPdsEnable () const { return m_uiPdsEnable; }
UInt getPdsInitialDelayAnc () const { return m_uiPdsInitialDelayAnc; }
UInt getPdsInitialDelayNonAnc() const { return m_uiPdsInitialDelayNonAnc; }
UInt** getPdsInitialDelayMinus2L0Anc() const { return m_ppuiPdsInitialDelayMinus2L0Anc; }
UInt** getPdsInitialDelayMinus2L1Anc() const { return m_ppuiPdsInitialDelayMinus2L1Anc; }
UInt** getPdsInitialDelayMinus2L0NonAnc() const { return m_ppuiPdsInitialDelayMinus2L0NonAnc; }
UInt** getPdsInitialDelayMinus2L1NonAnc() const { return m_ppuiPdsInitialDelayMinus2L1NonAnc; }
UInt getPdsBlockSize () const { return m_uiPdsBlockSize; }
Void setPdsEnable ( UInt n ) { m_uiPdsEnable = n; }
//~JVT-W080
UInt getMultiviewSceneInfoEnable () const { return m_uiMultiviewSceneInfoSEIEnable; } // SEI JVT-W060
UInt getMaxDisparity () const { return m_uiMaxDisparity;} // SEI JVT-W060
UInt getMultiviewAcquisitionInfoEnable () const { return m_uiMultiviewAcquisitionInfoSEIEnable; } // SEI JVT-W060
Void setInputFile ( Char* p ) { m_cInputFile = p; }
UInt getLARDOEnable () const { return m_uiLARDOEnable;} //JVT-R057 LA-RDO
UInt getSuffixUnitEnable () const { return m_uiSuffixUnitEnable;} //JVT-S036
UInt getMMCOBaseEnable () const { return m_uiMMCOBaseEnable; } //JVT-S036
//SEI {
UInt getNestingSEIEnable () const { return m_uiNestingSEIEnable; }
UInt getSnapshotEnable () const { return m_uiSnapShotEnable; }
UInt getActiveViewSEIEnable () const { return m_uiActiveViewSEIEnable; }
UInt getViewScalInfoSEIEnable() const { return m_uiViewScalInfoSEIEnable; }
//SEI }
UInt getMultiviewSceneInfoSEIEnable () const { return m_uiMultiviewSceneInfoSEIEnable; } // SEI JVT-W060
UInt getMultiviewAcquisitionInfoSEIEnable () const { return m_uiMultiviewAcquisitionInfoSEIEnable; } // SEI JVT-W060
Void setMaximumFrameRate ( Double d ) { m_dMaximumFrameRate = d; }
Void setMaximumDelay ( Double d ) { m_dMaximumDelay = d; }
Void setTotalFrames ( UInt n ) { m_uiTotalFrames = n; }
Void setGOPSize ( UInt n ) { m_uiGOPSize = n; }
Void setDecompositionStages ( UInt n ) { m_uiDecompositionStages = n; }
Void setIntraPeriod ( UInt n ) { m_uiIntraPeriod = n; }
Void setIntraPeriodLowPass ( UInt n ) { m_uiIntraPeriodLowPass = n; }
Void setNumRefFrames ( UInt n ) { m_uiNumRefFrames = n; }
Void setBaseLayerMode ( UInt n ) { m_uiBaseLayerMode = n; }
Void setNumberOfLayers ( UInt n ) { m_uiNumberOfLayers = n; }
Void setExtendedPriorityId ( Bool b ) { m_bExtendedPriorityId = b; }
Void setNumSimplePris ( UInt n ) { m_uiNumSimplePris = n; }
/* Void setSimplePriorityMap ( UInt uiSimplePri, UInt uiTemporalLevel, UInt uiLayer, UInt uiQualityLevel )
{ m_uiTemporalLevelList[uiSimplePri] = uiTemporalLevel;
m_uiDependencyIdList [uiSimplePri] = uiLayer;
m_uiQualityLevelList [uiSimplePri] = uiQualityLevel;
}
JVT-S036 */
Void setMVCmode ( UInt p ) { m_uiMVCmode = p; }
#if JMVM_ONLY // JVT-U052
Void setICmode ( UInt p ) { m_uiICmode = p; }
#endif
Void setInterPredPicsFirst ( UInt p) { m_uiInterPredPicsFirst = p; } // JVT-V043 enc
Void setFrameWidth ( UInt p ) { m_uiFrameWidth = p; }
Void setFrameHeight ( UInt p ) { m_uiFrameHeight = p; }
Void setSymbolMode ( UInt p ) { m_uiSymbolMode = p; }
Void set8x8Mode ( UInt p ) { m_ui8x8Mode = p; }
Void setBasisQp ( Double p ) { m_dBasisQp = p; }
Void setDPBSize ( UInt p ) { m_uiDPBSize = p; }
Void setNumDPBRefFrames ( UInt p ) { m_uiNumDPBRefFrames = p; }
Void setLog2MaxFrameNum ( UInt p ) { m_uiLog2MaxFrameNum = p; }
Void setLog2MaxPocLsb ( UInt p ) { m_uiLog2MaxPocLsb = p; }
Void setSequenceFormatString ( Char* p ) { m_cSequenceFormatString = p; }
Void setDeltaQpLayer ( UInt n,
Double p ) { m_adDeltaQpLayer[n] = p; }
Void setMaxRefIdxActiveBL0 ( UInt p ) { m_uiMaxRefIdxActiveBL0 = p; }
Void setMaxRefIdxActiveBL1 ( UInt p ) { m_uiMaxRefIdxActiveBL1 = p; }
Void setMaxRefIdxActiveP ( UInt p ) { m_uiMaxRefIdxActiveP = p; }
ErrVal check ();
// TMM_ESS
ResizeParameters* getResizeParameters ( UInt n ) { return m_acLayerParameters[n].getResizeParameters(); }
Void setLowPassEnhRef ( Double d )
{
m_dLowPassEnhRef = ( d < 0.0 ) ? 0.0 : ( ( d > 1.0 ) ? 1.0 : d );
}
Double getLowPassEnhRef () { return m_dLowPassEnhRef; }
Void setAdaptiveRefFGSWeights( UInt uiBlock, UInt uiCoeff )
{
// do not allow 1, to store it in 5-bit fixed-length
AOT( uiBlock > AR_FGS_MAX_BASE_WEIGHT );
m_uiBaseWeightZeroBaseBlock = (uiBlock <= 1) ? 0 : uiBlock;
AOT( uiCoeff > AR_FGS_MAX_BASE_WEIGHT );
m_uiBaseWeightZeroBaseCoeff = (uiCoeff <= 1) ? 0 : uiCoeff;
}
Void getAdaptiveRefFGSWeights( UInt& uiBlock, UInt& uiCoeff )
{
uiBlock = m_uiBaseWeightZeroBaseBlock;
uiCoeff = m_uiBaseWeightZeroBaseCoeff;
}
Void setFgsEncStructureFlag( UInt flag )
{
m_uiFgsEncStructureFlag = flag;
}
UInt getFgsEncStructureFlag( )
{
return m_uiFgsEncStructureFlag;
}
Void setLowPassFgsMcFilter ( UInt ui ) { m_uiLowPassFgsMcFilter = ui; }
UInt getLowPassFgsMcFilter () { return m_uiLowPassFgsMcFilter; }
UInt getVFramePeriod() const {return m_vFramePeriod;}
unsigned int getCurentViewId() const {return m_CurrentViewId;}
Bool getAVCFlag() const {return m_bAVCFlag;}
Bool getSvcMvcFlag() const { return m_SvcMvcFlag;}
SpsMvcExtension * getSpsMVC() {return &SpsMVC;} //
SpsMvcExtension SpsMVC;
Int getNonRequiredEnable () { return m_bNonRequiredEnable; } //NonRequired JVT-Q066 (06-04-08)
//JVT-T054{
UInt getCGSSNRRefinement () const { return m_uiCGSSNRRefinementFlag;}
UInt getMaxLayerCGSSNR () const { return m_uiMaxLayerCGSSNR;}
UInt getMaxQualityLevelCGSSNR () const { return m_uiMaxQualityLevelCGSSNR;}
Void setCGSSNRRefinement ( UInt b ) { m_uiCGSSNRRefinementFlag = b; }
Void setMaxLayerCGSSNR ( UInt ui ) { m_uiMaxLayerCGSSNR = ui; }
Void setMaxQualityLevelCGSSNR( UInt ui ) { m_uiMaxQualityLevelCGSSNR= ui; }
//JVT-T054}
public: //
UInt getLogFactor ( Double r0,
Double r1 );
/** SEI JVT-W060 **/
void initialize_memory(UInt num_of_views)
{
UInt i,j;
m_bSignFocalLengthX = new Bool[num_of_views];
m_bSignFocalLengthY = new Bool[num_of_views];
m_bSignPrincipalPointX = new Bool[num_of_views];
m_bSignPrincipalPointY = new Bool[num_of_views];
m_bSignRadialDistortion = new Bool[num_of_views];
m_uiExponentFocalLengthX = new UInt[num_of_views];
m_uiExponentFocalLengthY = new UInt[num_of_views];
m_uiExponentPrincipalPointX = new UInt[num_of_views];
m_uiExponentPrincipalPointY = new UInt[num_of_views];
m_uiExponentRadialDistortion = new UInt[num_of_views];
m_uiMantissaFocalLengthX = new UInt[num_of_views];
m_uiMantissaFocalLengthY = new UInt[num_of_views];
m_uiMantissaPrincipalPointX = new UInt[num_of_views];
m_uiMantissaPrincipalPointY = new UInt[num_of_views];
m_uiMantissaRadialDistortion = new UInt[num_of_views];
m_bSignRotationParam = new Bool**[num_of_views];
for (i=0;i<num_of_views;i++) {
m_bSignRotationParam[i] = new Bool*[3];
for (j=0;j<3;j++)
m_bSignRotationParam[i][j]= new Bool[3];
}
m_bSignTranslationParam= new Bool*[num_of_views];
for (i=0;i<num_of_views;i++)
m_bSignTranslationParam[i] = new Bool[3];
m_uiExponentRotationParam = new UInt**[num_of_views];
for (i=0;i<num_of_views;i++) {
m_uiExponentRotationParam[i] = new UInt*[3];
for (j=0;j<3;j++)
m_uiExponentRotationParam[i][j]= new UInt[3];
}
m_uiExponentTranslationParam= new UInt*[num_of_views];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -