1 /*
2 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 /*
17 * 该文件为存储示例主函数文件,该示例将sensor获得的视频流通过编码成.h264文件并保存下来
18 *
19 * This file is the main function file of the storage example,
20 * which encodes the video stream obtained by the sensor into a .h264 file and saves it
21 */
22
23 #include "sample_store.h"
24 #include "sdk.h"
25
26 #ifdef __cplusplus
27 #if __cplusplus
28 extern "C" {
29 #endif
30 #endif /* End of #ifdef __cplusplus */
31
32 /*
33 * 函数:main()
34 * function: main()
35 */
main(void)36 int main(void)
37 {
38 int ret;
39 sdk_init();
40 ret = SAMPLE_VENC_H265_H264();
41 sdk_exit();
42 SAMPLE_PRT("\nsdk exit success\n");
43 return ret;
44 }
45
46 #ifdef __cplusplus
47 #if __cplusplus
48 }
49 #endif
50 #endif /* End of #ifdef __cplusplus */
51