ref: d940a204ebc11de6f0542e978ae2b2405cee4d56
parent: a86c1b048b02906b9255989e969d78effc9cd26d
parent: e392932ad2623f35fc9181cba1469ad2c47bd3ca
author: Ethan Hugg <ethanhugg@gmail.com>
date: Mon Mar 3 03:20:36 EST 2014
Merge pull request #388 from mstorsjo/initialize-default Initialize sSpatialLayers[0] in SEncParamExt for GetDefaultParams
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -192,6 +192,16 @@
param.iMaxQp = 51;
param.iMinQp = 0;
param.iUsageType = 0;
+
+ param.sSpatialLayers[0].iDLayerQp = SVC_QUALITY_BASE_QP;
+ param.sSpatialLayers[0].fFrameRate = param.fMaxFrameRate;
+ param.sSpatialLayers[0].sSliceCfg.uiSliceMode = 0;
+ param.sSpatialLayers[0].sSliceCfg.sSliceArgument.uiSliceSizeConstraint = 1500;
+ param.sSpatialLayers[0].sSliceCfg.sSliceArgument.uiSliceNum = 1;
+
+ const int32_t kiLesserSliceNum = ((MAX_SLICES_NUM < MAX_SLICES_NUM_TMP) ? MAX_SLICES_NUM : MAX_SLICES_NUM_TMP);
+ for (int32_t idx = 0; idx < kiLesserSliceNum; idx++)
+ param.sSpatialLayers[0].sSliceCfg.sSliceArgument.uiSliceMbNum[idx] = 960;
}
void FillDefault (const bool kbEnableRc) {