• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef SAMPLE_LCD_H
17 #define SAMPLE_LCD_H
18 
19 #include <stdint.h>
20 #include "sample_comm.h"
21 
22 #ifdef __cplusplus
23 #if __cplusplus
24 extern "C" {
25 #endif
26 #endif /* End of #ifdef __cplusplus */
27 
28 #ifndef SAMPLE_PRT
29 #define SAMPLE_PRT(fmt...) \
30     do { \
31         printf("[%s]-%d: ", __FUNCTION__, __LINE__); \
32         printf(fmt); \
33     } while (0)
34 #endif
35 
36 typedef SAMPLE_VI_CONFIG_S ViCfg;
37 
38 typedef struct SampleStoreInfo {
39     SIZE_S stSize[2];
40     VENC_GOP_MODE_E enGopMode;
41     VENC_GOP_ATTR_S stGopAttr;
42     SAMPLE_RC_E     enRcMode;
43     ViCfg viCfg;
44 } SampleStoreInfo;
45 
46 int SAMPLE_VENC_H265_H264(void);
47 
48 #ifdef __cplusplus
49 #if __cplusplus
50 }
51 #endif
52 #endif /* End of #ifdef __cplusplus */
53 
54 #endif /* End of #ifndef SAMPLE_STORE_H */
55