BOARD_USE_ANB := true
+# Set to false to use Android's OMX header files
+BOARD_USE_KHRONOS_OMX_HEADER := false
+
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), false)
+ANDROID_MEDIA_INC := $(TOP)/frameworks/native/include/media
+endif
+
EXYNOS_OMX_TOP := $(LOCAL_PATH)
EXYNOS_OMX_INC := $(EXYNOS_OMX_TOP)/include
LOCAL_STATIC_LIBRARIES := libsrpapi
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(EXYNOS_OMX_COMPONENT)/audio/dec \
$(EXYNOS_AUDIO_CODEC)/alp/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_STATIC_LIBRARY)
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \
libExynosOMX_Resourcemanager
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(EXYNOS_OMX_COMPONENT)/audio/dec \
$(EXYNOS_AUDIO_CODEC)/alp/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
LOCAL_STATIC_LIBRARIES := libExynosOMX_OSAL
LOCAL_SHARED_LIBRARIES := libcutils libutils
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_STATIC_LIBRARIES := libExynosOMX_OSAL
LOCAL_SHARED_LIBRARIES := libcutils libutils
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
LOCAL_ARM_MODE := arm
LOCAL_MODULE_TAGS := optional
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
LOCAL_STATIC_LIBRARIES := libExynosVideoApi
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
ifeq ($(BOARD_USE_ANB), true)
LOCAL_STATIC_LIBRARIES += libExynosOMX_OSAL libcsc_helper
LOCAL_CFLAGS += -DUSE_ANB
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \
libExynosOMX_Resourcemanager libcsc libexynosv4l2 libion_exynos libexynosgscaler
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(TOP)/hardware/samsung_slsi/exynos/libcsc \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \
libExynosOMX_Resourcemanager libcsc libexynosv4l2 libion_exynos libexynosgscaler
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(TOP)/hardware/samsung_slsi/exynos/libcsc \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \
libExynosOMX_Resourcemanager libcsc libexynosv4l2 libion_exynos libexynosgscaler
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(TOP)/hardware/samsung_slsi/exynos/libcsc \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
-
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
include $(BUILD_SHARED_LIBRARY)
LOCAL_ARM_MODE := arm
LOCAL_MODULE_TAGS := optional
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(TOP)/hardware/samsung_slsi/exynos/libcsc \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
+ifeq ($(BOARD_USE_ANB), true)
+LOCAL_CFLAGS += -DUSE_ANB
+endif
+
ifeq ($(BOARD_USE_METADATABUFFERTYPE), true)
LOCAL_CFLAGS += -DUSE_METADATABUFFERTYPE
endif
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \
libExynosOMX_Resourcemanager libcsc libexynosv4l2 libion_exynos
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(TOP)/hardware/samsung_slsi/exynos/libcsc \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \
libExynosOMX_Resourcemanager libcsc libexynosv4l2 libion_exynos
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/core \
$(TOP)/hardware/samsung_slsi/exynos/libcsc \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils \
libExynosOMX_Resourcemanager
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_TOP)/component/common
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_SHARED_LIBRARY)
/* to copy a encoded data for drm component using gsc or fimc */
OMX_SEC_COLOR_FormatEncodedData = OMX_COLOR_FormatYCbYCr,
+#ifdef USE_KHRONOS_OMX_HEADER
/* for Android SurfaceMediaSource*/
OMX_COLOR_FormatAndroidOpaque = 0x7F000789
+#endif
}EXYNOS_OMX_COLOR_FORMATTYPE;
typedef enum _EXYNOS_OMX_SUPPORTFORMAT_TYPE
OMX_S32 level;
} EXYNOS_OMX_VIDEO_PROFILELEVEL;
+#ifdef USE_KHRONOS_OMX_HEADER
#define OMX_VIDEO_CodingVPX 0x09 /**< Google VPX, formerly known as On2 VP8 */
+#endif
#ifndef __OMX_EXPORTS
#define __OMX_EXPORTS
LOCAL_STATIC_LIBRARIES := liblog libcutils libExynosVideoApi
-LOCAL_C_INCLUDES := $(EXYNOS_OMX_INC)/khronos \
+LOCAL_C_INCLUDES := \
$(EXYNOS_OMX_INC)/exynos \
$(EXYNOS_OMX_TOP)/osal \
$(EXYNOS_OMX_COMPONENT)/common \
$(EXYNOS_OMX_COMPONENT)/video/enc \
$(EXYNOS_VIDEO_CODEC)/v4l2/include \
$(TOP)/hardware/samsung_slsi/exynos/include \
- frameworks/native/include/media/hardware \
- frameworks/native/include/media/openmax \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include
+ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
+LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
+LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
+else
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/hardware
+LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
+endif
+
include $(BUILD_STATIC_LIBRARY)