提交 924e947c 编写于 作者: O openharmony_ci 提交者: Gitee

!40 代码编程规范整改

Merge pull request !40 from 杨帅/master
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <stdio.h> #include <cstdio>
#include <common/screen.h> #include <common/screen.h>
#include <components/ui_label.h> #include <components/ui_label.h>
#include <components/ui_label_button.h> #include <components/ui_label_button.h>
......
...@@ -85,10 +85,7 @@ Recorder *SampleCreateRecorder() ...@@ -85,10 +85,7 @@ Recorder *SampleCreateRecorder()
int32_t audioSourceId = 0; int32_t audioSourceId = 0;
int32_t width = 1920; int32_t width = 1920;
int32_t height = 1080; int32_t height = 1080;
VideoCodecFormat encoder; VideoCodecFormat encoder = HEVC;
encoder = HEVC;
width = 1920;
height = 1080;
Recorder *recorder = new Recorder(); Recorder *recorder = new Recorder();
if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) { if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) {
cout << "SetVideoSource failed." << ret << endl; cout << "SetVideoSource failed." << ret << endl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册