• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  * Copyright 2013 Rockchip Electronics Co., LTD.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /*
19  * @file        Rockchip_OSAL_ETC.h
20  * @brief
21  * @author      csy(csy@rock-chips.com)
22  * @version     1.0.0
23  * @history
24  *   2013.11.26 : Create
25  */
26 
27 #ifndef Rockchip_OSAL_ETC
28 #define Rockchip_OSAL_ETC
29 
30 #include "OMX_Types.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 OMX_S32 Rockchip_OSAL_Strcpy(OMX_PTR dest, OMX_PTR src);
37 OMX_S32 Rockchip_OSAL_Strncmp(OMX_PTR str1, OMX_PTR str2, size_t num);
38 OMX_S32 Rockchip_OSAL_Strcmp(OMX_PTR str1, OMX_PTR str2);
39 OMX_S32 Rockchip_OSAL_Strcat(OMX_PTR dest, OMX_PTR src);
40 size_t Rockchip_OSAL_Strlen(const char *str);
41 ssize_t getline(char **ppLine, size_t *pLen, FILE *pStream);
42 
43 /* perf */
44 typedef enum _PERF_ID_TYPE {
45     PERF_ID_CSC = 0,
46     PERF_ID_DEC,
47     PERF_ID_ENC,
48     PERF_ID_USER,
49     PERF_ID_MAX,
50 } PERF_ID_TYPE;
51 
52 void Rockchip_OSAL_PerfInit(PERF_ID_TYPE id);
53 void Rockchip_OSAL_PerfStart(PERF_ID_TYPE id);
54 void Rockchip_OSAL_PerfStop(PERF_ID_TYPE id);
55 OMX_U32 Rockchip_OSAL_PerfFrame(PERF_ID_TYPE id);
56 OMX_U32 Rockchip_OSAL_PerfTotal(PERF_ID_TYPE id);
57 OMX_U32 Rockchip_OSAL_PerfFrameCount(PERF_ID_TYPE id);
58 int Rockchip_OSAL_PerfOver30ms(PERF_ID_TYPE id);
59 void Rockchip_OSAL_PerfPrint(OMX_STRING prefix, PERF_ID_TYPE id);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif
66