Merge pull request #301 from ruil2/temporal_num
use temporal layer num and remove gop size in external configure-- review request #94
This commit is contained in:
commit
24359dcde1
@ -224,7 +224,6 @@ typedef struct TagEncParamExt:SEncParamBase
|
||||
SSpatialLayerConfig sSpatialLayers[MAX_SPATIAL_LAYER_NUM];
|
||||
int iNumRefFrame; // number of reference frame used
|
||||
unsigned int uiFrameToBeCoded; // frame to be encoded (at input frame rate)
|
||||
unsigned int uiGopSize;
|
||||
bool bEnableRc;
|
||||
short iMultipleThreadIdc; // 1 # 0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads;
|
||||
short iCountThreadsNum; // # derived from disable_multiple_slice_idc (=0 or >1) means;
|
||||
|
@ -122,8 +122,8 @@ int ParseConfig (CReadConfig& cRdCfg, SEncParamExt& pSvcParam, SFilesSet& sFileS
|
||||
pSvcParam.uiFrameToBeCoded = atoi (strTag[1].c_str());
|
||||
} else if (strTag[0].compare ("SourceSequenceInRGB24") == 0) {
|
||||
pSvcParam.iInputCsp = atoi (strTag[1].c_str()) == 0 ? videoFormatI420 : videoFormatRGB;
|
||||
} else if (strTag[0].compare ("GOPSize") == 0) {
|
||||
pSvcParam.uiGopSize = atoi (strTag[1].c_str());
|
||||
} else if (strTag[0].compare ("TemporalLayerNum") == 0) {
|
||||
pSvcParam.iTemporalLayerNum = atoi (strTag[1].c_str());
|
||||
} else if (strTag[0].compare ("IntraPeriod") == 0) {
|
||||
pSvcParam.uiIntraPeriod = atoi (strTag[1].c_str());
|
||||
} else if (strTag[0].compare ("EnableSpsPpsIDAddition") == 0) {
|
||||
@ -428,8 +428,8 @@ int ParseCommandLine (int argc, char** argv, SEncParamExt& pSvcParam, SFilesSet&
|
||||
else if (!strcmp (pCommand, "-frms") && (n < argc))
|
||||
pSvcParam.uiFrameToBeCoded = atoi (argv[n++]);
|
||||
|
||||
else if (!strcmp (pCommand, "-gop") && (n < argc))
|
||||
pSvcParam.uiGopSize = atoi (argv[n++]);
|
||||
else if (!strcmp (pCommand, "-numtl") && (n < argc))
|
||||
pSvcParam.iTemporalLayerNum = atoi (argv[n++]);
|
||||
|
||||
else if (!strcmp (pCommand, "-iper") && (n < argc))
|
||||
pSvcParam.uiIntraPeriod = atoi (argv[n++]);
|
||||
|
@ -1838,7 +1838,7 @@ int32_t InitSliceSettings (SWelsSvcCodingParam* pCodingParam, const int32_t kiCp
|
||||
pSlcArg->uiSliceNum; // uiSliceNum per input has been validated at ParamValidationExt()
|
||||
#endif//DYNAMIC_SLICE_ASSIGN
|
||||
#else//!MT_ENABLED
|
||||
int16_t iSliceNum = pSlcArg->iSliceNum; // uiSliceNum per input has been validated at ParamValidationExt()
|
||||
int16_t iSliceNum = pSlcArg->uiSliceNum; // uiSliceNum per input has been validated at ParamValidationExt()
|
||||
#endif//MT_ENABLED
|
||||
|
||||
// NOTE: Per design, in case MT/DYNAMIC_SLICE_ASSIGN enabled, for SM_FIXEDSLCNUM_SLICE mode,
|
||||
|
@ -5,7 +5,7 @@ OutputFile test.264 # Bitstream file
|
||||
MaxFrameRate 30 # Maximum frame rate [Hz]
|
||||
FramesToBeEncoded -1 # Number of frames (at input frame rate)
|
||||
|
||||
GOPSize 4 # GOP Size (at maximum frame rate), 16
|
||||
TemporalLayerNum 3 # temporal layer number(1--4)
|
||||
IntraPeriod 0 # Intra Period ( multipler of GoP size or -1)
|
||||
EnableSpsPpsIDAddition 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user