a0c21fbd8d1b20e5f4b5e6d5562f428d3544fe5c
[GitHub/LineageOS/android_hardware_samsung_slsi_openmax.git] / osal / Exynos_OSAL_Android.h
1 /*
2 * Copyright 2012 Samsung Electronics S.LSI Co. LTD
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * @file Exynos_OSAL_Android.h
19 * @brief
20 * @author Seungbeom Kim (sbcrux.kim@samsung.com)
21 * @author Hyeyeon Chung (hyeon.chung@samsung.com)
22 * @author Yunji Kim (yunji.kim@samsung.com)
23 * @author Jinsung Yang (jsgood.yang@samsung.com)
24 * @version 2.0.0
25 * @history
26 * 2012.02.20 : Create
27 */
28
29 #ifndef Exynos_OSAL_ANDROID
30 #define Exynos_OSAL_ANDROID
31
32 #include "OMX_Types.h"
33 #include "OMX_Core.h"
34 #include "OMX_Index.h"
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 OMX_ERRORTYPE Exynos_OSAL_GetANBParameter(OMX_IN OMX_HANDLETYPE hComponent,
41 OMX_IN OMX_INDEXTYPE nIndex,
42 OMX_INOUT OMX_PTR ComponentParameterStructure);
43
44 OMX_ERRORTYPE Exynos_OSAL_SetANBParameter(OMX_IN OMX_HANDLETYPE hComponent,
45 OMX_IN OMX_INDEXTYPE nIndex,
46 OMX_IN OMX_PTR ComponentParameterStructure);
47
48 OMX_COLOR_FORMATTYPE Exynos_OSAL_GetANBColorFormat(OMX_IN OMX_U32 handle);
49
50 OMX_ERRORTYPE Exynos_OSAL_LockANB(OMX_IN OMX_PTR pBuffer,
51 OMX_IN OMX_U32 width,
52 OMX_IN OMX_U32 height,
53 OMX_IN OMX_COLOR_FORMATTYPE format,
54 OMX_OUT OMX_U32 *pStride,
55 OMX_OUT OMX_PTR planes);
56
57 OMX_ERRORTYPE Exynos_OSAL_UnlockANB(OMX_IN OMX_PTR pBuffer);
58
59 OMX_ERRORTYPE Exynos_OSAL_LockANBHandle(OMX_IN OMX_U32 pBuffer,
60 OMX_IN OMX_U32 width,
61 OMX_IN OMX_U32 height,
62 OMX_IN OMX_COLOR_FORMATTYPE format,
63 OMX_OUT OMX_PTR planes);
64
65 OMX_ERRORTYPE Exynos_OSAL_UnlockANBHandle(OMX_IN OMX_U32 pBuffer);
66
67 OMX_ERRORTYPE Exynos_OSAL_GetInfoFromMetaData(OMX_IN OMX_BYTE pBuffer,
68 OMX_OUT OMX_PTR *pOutBuffer);
69
70 OMX_ERRORTYPE Exynos_OSAL_CheckANB(OMX_IN EXYNOS_OMX_DATA *pBuffer,
71 OMX_OUT OMX_BOOL *bIsANBEnabled);
72
73 OMX_ERRORTYPE Exynos_OSAL_SetPrependSPSPPSToIDR(OMX_PTR pComponentParameterStructure,
74 OMX_PTR pbPrependSpsPpsToIdr);
75
76 OMX_COLOR_FORMATTYPE Exynos_OSAL_Hal2OMXPixelFormat(unsigned int hal_format);
77
78 unsigned int Exynos_OSAL_OMX2HalPixelFormat(OMX_COLOR_FORMATTYPE omx_format);
79
80 #ifdef __cplusplus
81 }
82 #endif
83
84 #endif