summaryrefslogtreecommitdiffstats
path: root/exynos4/multimedia/openmax/sec_omx/osal/SEC_OSAL_ETC.h
blob: 2275abb81e4ba3b0b75b1688f3104ee67d2c24b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 *
 * Copyright 2010 Samsung Electronics S.LSI Co. LTD
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * @file        SEC_OSAL_ETC.h
 * @brief
 * @author      SeungBeom Kim (sbcrux.kim@samsung.com)
 * @version     1.1.0
 * @history
 *   2010.7.15 : Create
 */

#ifndef SEC_OSAL_ETC
#define SEC_OSAL_ETC

#include "OMX_Types.h"


#ifdef __cplusplus
extern "C" {
#endif

OMX_PTR SEC_OSAL_Strcpy(OMX_PTR dest, OMX_PTR src);
OMX_S32 SEC_OSAL_Strncmp(OMX_PTR str1, OMX_PTR str2, size_t num);
OMX_S32 SEC_OSAL_Strcmp(OMX_PTR str1, OMX_PTR str2);
OMX_PTR SEC_OSAL_Strcat(OMX_PTR dest, OMX_PTR src);
size_t SEC_OSAL_Strlen(const char *str);
ssize_t getline(char **ppLine, size_t *len, FILE *stream);

/* perf */
typedef enum _PERF_ID_TYPE {
    PERF_ID_CSC = 0,
    PERF_ID_DEC,
    PERF_ID_ENC,
    PERF_ID_USER,
    PERF_ID_MAX,
} PERF_ID_TYPE;

void SEC_OSAL_PerfInit(PERF_ID_TYPE id);
void SEC_OSAL_PerfStart(PERF_ID_TYPE id);
void SEC_OSAL_PerfStop(PERF_ID_TYPE id);
OMX_U32 SEC_OSAL_PerfFrame(PERF_ID_TYPE id);
OMX_U32 SEC_OSAL_PerfTotal(PERF_ID_TYPE id);
OMX_U32 SEC_OSAL_PerfFrameCount(PERF_ID_TYPE id);
int SEC_OSAL_PerfOver30ms(PERF_ID_TYPE id);
void SEC_OSAL_PerfPrint(OMX_STRING prefix, PERF_ID_TYPE id);

#ifdef __cplusplus
}
#endif

#endif