ref: d87663b9131eb40a062bab73da0c59714a3e3007
parent: 8fb4048241690ce25bdc79c6d20bbbf65bac9ca5
parent: 91736e85e8fc4a0606a506c3475c2cbc83a47dd7
author: ruil2 <[email protected]>
date: Tue Dec 16 04:09:44 EST 2014
Merge pull request #1630 from zaheerm/fixcomments 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
*/