2 * Copyright 2012 Samsung Electronics S.LSI Co. LTD
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file Exynos_OSAL_Platform_Specific.h
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)
29 #ifndef Exynos_OSAL_PLATFORM_SPECIFIC
30 #define Exynos_OSAL_PLATFORM_SPECIFIC
32 #include "OMX_Types.h"
34 #include "OMX_Index.h"
40 typedef struct GstOmxDecOutputBuffer GstOmxDecOutputBuffer;
41 typedef struct EnableGemBuffersParams EnableGemBuffersParams;
43 struct GstOmxDecOutputBuffer {
50 struct EnableGemBuffersParams
53 OMX_VERSIONTYPE nVersion;
58 OMX_ERRORTYPE Exynos_OSAL_GetPBParameter(OMX_IN OMX_HANDLETYPE hComponent,
59 OMX_IN OMX_INDEXTYPE nIndex,
60 OMX_INOUT OMX_PTR ComponentParameterStructure);
62 OMX_ERRORTYPE Exynos_OSAL_SetPBParameter(OMX_IN OMX_HANDLETYPE hComponent,
63 OMX_IN OMX_INDEXTYPE nIndex,
64 OMX_IN OMX_PTR ComponentParameterStructure);
66 OMX_ERRORTYPE Exynos_OSAL_LockPB(OMX_IN OMX_PTR pBuffer,
68 OMX_IN OMX_U32 height,
69 OMX_IN OMX_COLOR_FORMATTYPE format,
70 OMX_OUT OMX_U32 *pStride,
71 OMX_OUT OMX_PTR planes);
73 #ifdef TIZEN_FEATURE_E3250
74 OMX_ERRORTYPE Exynos_OSAL_UnlockPB(OMX_IN OMX_PTR pBuffer, OMX_IN EXYNOS_OMX_DATA *pData, EXYNOS_OMX_BASEPORT *pExynosPort, EXYNOS_OMX_BASEPORT *pExynosInPort);
76 OMX_ERRORTYPE Exynos_OSAL_UnlockPB(OMX_IN OMX_PTR pBuffer, OMX_IN EXYNOS_OMX_DATA *pData);
80 OMX_ERRORTYPE Exynos_OSAL_LockPBHandle(OMX_IN OMX_U32 pBuffer,
82 OMX_IN OMX_U32 height,
83 OMX_IN OMX_COLOR_FORMATTYPE format,
84 OMX_OUT OMX_PTR planes);
86 OMX_ERRORTYPE Exynos_OSAL_UnlockPBHandle(OMX_IN OMX_U32 pBuffer);
88 OMX_ERRORTYPE Exynos_OSAL_GetInfoFromMetaData(OMX_IN OMX_BYTE pBuffer,
89 OMX_OUT OMX_PTR *pOutBuffer);
91 #if 0 /* TIZEN_FEATURE_E3250 */
92 OMX_ERRORTYPE Exynos_OSAL_CheckPB(OMX_IN EXYNOS_OMX_DATA *pBuffer,
93 OMX_OUT OMX_BOOL *bIsPBEnabled);