ref: 91736e85e8fc4a0606a506c3475c2cbc83a47dd7
parent: 8fb4048241690ce25bdc79c6d20bbbf65bac9ca5
author: Zaheer Abbas Merali <zaheermerali@gmail.com>
date: Fri Dec 12 05:10:19 EST 2014
Fix comments to be up to date with current API.
--- a/codec/api/svc/codec_api.h
+++ b/codec/api/svc/codec_api.h
@@ -168,7 +168,6 @@
* param.iPicWidth = width;
* param.iPicHeight = height;
* param.iTargetBitrate = 5000000;
- * param.iInputCsp = videoFormatI420;
* encoder_->Initialize (¶m);
* @endcode
*
@@ -175,6 +174,8 @@
* Step3:set option, set option during encoding process
* @code
* encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &g_LevelSetting);
+ * int videoFormat = videoFormatI420;
+ * encoder_->SetOption (ENCODER_OPTION_DATAFORMAT, &videoFormat);
* @endcode
*
* Step4: encode and store ouput bistream
@@ -231,7 +232,6 @@
* param.iPicWidth = width;
* param.iPicHeight = height;
* param.iTargetBitrate = 5000000;
- * param.iInputCsp = videoFormatI420;
* param.bEnableDenoise = denoise;
* param.iSpatialLayerNum = layers;
* //SM_DYN_SLICE don't support multi-thread now
@@ -252,6 +252,8 @@
* }
* param.iTargetBitrate *= param.iSpatialLayerNum;
* encoder_->InitializeExt (¶m);
+ * int videoFormat = videoFormatI420;
+ * encoder_->SetOption (ENCODER_OPTION_DATAFORMAT, &videoFormat);
*
* @endcode
*/