mirror of
https://github.com/Evolution-X-Devices/hardware_samsung_slsi-linaro_openmax
synced 2026-01-27 15:45:39 +00:00
openmax: convert to bp
Change-Id: I07f7be75a276d14aa4b9238ded16fb6a07ccf633
This commit is contained in:
72
openmax/component/video/enc/Android.bp
Normal file
72
openmax/component/video/enc/Android.bp
Normal file
@@ -0,0 +1,72 @@
|
||||
cc_library_static {
|
||||
name: "libExynosOMX_Venc",
|
||||
vendor: true,
|
||||
|
||||
cflags: [
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "TUNNELING_SUPPORT"), {
|
||||
"true": ["-DTUNNELING_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_HW_CSC_GRALLOC_SOURCE"), {
|
||||
"true": ["-DUSE_HW_CSC_GRALLOC_SOURCE"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_FIMC_RGB_ENCODER"), {
|
||||
"true": [
|
||||
"-DUSE_HW_CSC_GRALLOC_SOURCE",
|
||||
"-DUSE_FIMC_CSC",
|
||||
],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_VIDEO_EXT_FOR_WFD_HDCP"), {
|
||||
"true": ["-DUSE_VIDEO_EXT_FOR_WFD_HDCP"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SMALL_SECURE_MEMORY"), {
|
||||
"true": ["-DUSE_SMALL_SECURE_MEMORY"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_VencControl.c",
|
||||
"Exynos_OMX_Venc.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libcsc",
|
||||
],
|
||||
|
||||
static_libs: [
|
||||
"libVendorVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_VencControl.c \
|
||||
Exynos_OMX_Venc.c
|
||||
|
||||
LOCAL_MODULE := libExynosOMX_Venc
|
||||
LOCAL_ARM_MODE := arm
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
ifeq ($(EXYNOS_OMX_SUPPORT_TUNNELING), true)
|
||||
LOCAL_CFLAGS += -DTUNNELING_SUPPORT
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_GSC_RGB_ENCODER), true)
|
||||
LOCAL_CFLAGS += -DUSE_HW_CSC_GRALLOC_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_FIMC_RGB_ENCODER), true)
|
||||
LOCAL_CFLAGS += -DUSE_HW_CSC_GRALLOC_SOURCE
|
||||
LOCAL_CFLAGS += -DUSE_FIMC_CSC
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CSC_HW), true)
|
||||
LOCAL_CFLAGS += -DUSE_CSC_HW
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_VIDEO_EXT_FOR_WFD_HDCP), true)
|
||||
LOCAL_CFLAGS += -DUSE_VIDEO_EXT_FOR_WFD_HDCP
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SMALL_SECURE_MEMORY), true)
|
||||
LOCAL_CFLAGS += -DUSE_SMALL_SECURE_MEMORY
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libVendorVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := liblog libcsc
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
80
openmax/component/video/enc/h264/Android.bp
Normal file
80
openmax/component/video/enc/h264/Android.bp
Normal file
@@ -0,0 +1,80 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.AVC.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
|
||||
cflags: [
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SMALL_SECURE_MEMORY"), {
|
||||
"true": ["-DUSE_SMALL_SECURE_MEMORY"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_H264enc.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_H264enc.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.AVC.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS :=
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CSC_HW), true)
|
||||
LOCAL_CFLAGS += -DUSE_CSC_HW
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libExynosOMX_Venc libVendorVideoApi libExynosOMX_OSAL libExynosOMX_Basecomponent \
|
||||
libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_SKYPE_HD), true)
|
||||
LOCAL_CFLAGS += -DUSE_SKYPE_HD
|
||||
LOCAL_CFLAGS += -DBUILD_ENC
|
||||
LOCAL_STATIC_LIBRARIES += libExynosOMX_SkypeHD_Enc
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SMALL_SECURE_MEMORY), true)
|
||||
LOCAL_CFLAGS += -DUSE_SMALL_SECURE_MEMORY
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
86
openmax/component/video/enc/h264wfd/Android.bp
Normal file
86
openmax/component/video/enc/h264wfd/Android.bp
Normal file
@@ -0,0 +1,86 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.AVC.WFD.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
enabled: select(soong_config_variable("openmax", "USE_WFDENC_SUPPORT"), {
|
||||
"true": true,
|
||||
default: false,
|
||||
}),
|
||||
|
||||
cflags: [
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-unused-function",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SMALL_SECURE_MEMORY"), {
|
||||
"true": ["-DUSE_SMALL_SECURE_MEMORY"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_H264enc_wfd.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_H264enc_wfd.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.AVC.WFD.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS :=
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libVendorVideoApi libExynosOMX_OSAL libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-unused-parameter -Wno-unused-function
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
88
openmax/component/video/enc/hevc/Android.bp
Normal file
88
openmax/component/video/enc/hevc/Android.bp
Normal file
@@ -0,0 +1,88 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.HEVC.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
enabled: select(soong_config_variable("openmax", "USE_HEVCENC_SUPPORT"), {
|
||||
"true": true,
|
||||
default: false,
|
||||
}),
|
||||
|
||||
cflags: [
|
||||
"-DUSE_HEVC_SUPPORT",
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_FULL_ST2094_40"), {
|
||||
"true": ["-DUSE_FULL_ST2094_40"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SMALL_SECURE_MEMORY"), {
|
||||
"true": ["-DUSE_SMALL_SECURE_MEMORY"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_HEVCenc.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_HEVCenc.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.HEVC.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS :=
|
||||
LOCAL_CFLAGS += -DUSE_HEVC_SUPPORT
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CSC_HW), true)
|
||||
LOCAL_CFLAGS += -DUSE_CSC_HW
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_FULL_ST2094_40), true)
|
||||
LOCAL_CFALGS += -DUSE_FULL_ST2094_40
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libExynosOMX_Venc libVendorVideoApi libExynosOMX_OSAL libExynosOMX_Basecomponent \
|
||||
libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SMALL_SECURE_MEMORY), true)
|
||||
LOCAL_CFLAGS += -DUSE_SMALL_SECURE_MEMORY
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
83
openmax/component/video/enc/hevcwfd/Android.bp
Normal file
83
openmax/component/video/enc/hevcwfd/Android.bp
Normal file
@@ -0,0 +1,83 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.HEVC.WFD.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
enabled: select(soong_config_variable("openmax", "USE_WFDENC_SUPPORT"), {
|
||||
"true": true,
|
||||
default: false,
|
||||
}),
|
||||
|
||||
cflags: [
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-unused-function",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_HEVCenc_wfd.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_HEVCenc_wfd.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.HEVC.WFD.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS :=
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libVendorVideoApi libExynosOMX_OSAL libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-unused-parameter -Wno-unused-function
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
78
openmax/component/video/enc/mpeg4/Android.bp
Normal file
78
openmax/component/video/enc/mpeg4/Android.bp
Normal file
@@ -0,0 +1,78 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.MPEG4.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
|
||||
cflags: [
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-Wno-unused-function",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_Mpeg4enc.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_Mpeg4enc.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.MPEG4.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS :=
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CSC_HW), true)
|
||||
LOCAL_CFLAGS += -DUSE_CSC_HW
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libExynosOMX_Venc libVendorVideoApi libExynosOMX_OSAL libExynosOMX_Basecomponent \
|
||||
libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-unused-function
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
79
openmax/component/video/enc/vp8/Android.bp
Normal file
79
openmax/component/video/enc/vp8/Android.bp
Normal file
@@ -0,0 +1,79 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.VP8.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
|
||||
cflags: [
|
||||
"-DUSE_VP8_SUPPORT",
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-Wno-unused-function",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_Vp8enc.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_Vp8enc.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.VP8.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS :=
|
||||
LOCAL_CFLAGS += -DUSE_VP8_SUPPORT
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CSC_HW), true)
|
||||
LOCAL_CFLAGS += -DUSE_CSC_HW
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libExynosOMX_Venc libVendorVideoApi libExynosOMX_OSAL libExynosOMX_Basecomponent \
|
||||
libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-unused-function
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
83
openmax/component/video/enc/vp9/Android.bp
Normal file
83
openmax/component/video/enc/vp9/Android.bp
Normal file
@@ -0,0 +1,83 @@
|
||||
cc_library_shared {
|
||||
name: "libOMX.Exynos.VP9.Encoder",
|
||||
relative_install_path: "omx",
|
||||
vendor: true,
|
||||
enabled: select(soong_config_variable("openmax", "USE_VP9ENC_SUPPORT"), {
|
||||
"true": true,
|
||||
default: false,
|
||||
}),
|
||||
|
||||
cflags: [
|
||||
"-DUSE_VP9_SUPPORT",
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-unused-label",
|
||||
"-Wno-unused-function",
|
||||
"-DUSE_ANDROID",
|
||||
] + select(soong_config_variable("openmax", "USE_DMA_BUF"), {
|
||||
"true": ["-DUSE_DMA_BUF"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CSC_HW"), {
|
||||
"true": ["-DUSE_CSC_HW"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_CUSTOM_COMPONENT_SUPPORT"), {
|
||||
"true": ["-DUSE_CUSTOM_COMPONENT_SUPPORT"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("openmax", "USE_SINGLE_PLANE_IN_DRM"), {
|
||||
"true": ["-DUSE_SINGLE_PLANE_IN_DRM"],
|
||||
default: [],
|
||||
}) + select(soong_config_variable("arm_gralloc", "exynos_s10b_format_align"), {
|
||||
any @ flag_val: ["-DS10B_FORMAT_8B_ALIGNMENT=" + flag_val],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
srcs: [
|
||||
"Exynos_OMX_Vp9enc.c",
|
||||
"library_register.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libc",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libui",
|
||||
"libexynosgraphicbuffer",
|
||||
"libstagefright_foundation",
|
||||
"libexynosv4l2",
|
||||
"libion_exynos",
|
||||
"libcsc",
|
||||
"libExynosOMX_Resourcemanager",
|
||||
] + select(soong_config_variable("openmax", "OMX_USES_EPIC"), {
|
||||
"true": ["libepicoperator"],
|
||||
default: [],
|
||||
}),
|
||||
|
||||
static_libs: [
|
||||
"libExynosOMX_Venc",
|
||||
"libVendorVideoApi",
|
||||
"libExynosOMX_OSAL",
|
||||
"libExynosOMX_Basecomponent",
|
||||
"libExynosVideoApi",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"device_kernel_headers",
|
||||
"media_plugin_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/core",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/include/exynos",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/osal",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/common",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/dec",
|
||||
"hardware/samsung_slsi-linaro/openmax/openmax/component/video/enc",
|
||||
"hardware/samsung_slsi-linaro/openmax/videocodec/include",
|
||||
"hardware/samsung_slsi-linaro/exynos/include",
|
||||
"hardware/samsung_slsi-linaro/graphics/base/libion/include",
|
||||
"system/core/libsystem/include",
|
||||
],
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Exynos_OMX_Vp9enc.c \
|
||||
library_register.c
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE := libOMX.Exynos.VP9.Encoder
|
||||
LOCAL_MODULE_RELATIVE_PATH := omx
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
|
||||
LOCAL_CFLAGS := -DUSE_VP9_SUPPORT
|
||||
|
||||
ifeq ($(BOARD_USE_DMA_BUF), true)
|
||||
LOCAL_CFLAGS += -DUSE_DMA_BUF
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CSC_HW), true)
|
||||
LOCAL_CFLAGS += -DUSE_CSC_HW
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_SINGLE_PLANE_IN_DRM), true)
|
||||
LOCAL_CFLAGS += -DUSE_SINGLE_PLANE_IN_DRM
|
||||
endif
|
||||
|
||||
ifdef BOARD_EXYNOS_S10B_FORMAT_ALIGN
|
||||
LOCAL_CFLAGS += -DS10B_FORMAT_8B_ALIGNMENT=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
|
||||
endif
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libExynosOMX_Venc libVendorVideoApi libExynosOMX_OSAL libExynosOMX_Basecomponent \
|
||||
libExynosVideoApi
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libc \
|
||||
libcutils \
|
||||
libutils \
|
||||
libdl \
|
||||
liblog \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libui \
|
||||
libexynosgraphicbuffer \
|
||||
libstagefright_foundation \
|
||||
libexynosv4l2 \
|
||||
libion_exynos \
|
||||
libcsc \
|
||||
libExynosOMX_Resourcemanager
|
||||
|
||||
ifeq ($(BOARD_OMX_USES_EPIC), true)
|
||||
LOCAL_SHARED_LIBRARIES += \
|
||||
libepicoperator
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(EXYNOS_OMX_INC)/exynos \
|
||||
$(EXYNOS_OMX_TOP)/osal \
|
||||
$(EXYNOS_OMX_TOP)/core \
|
||||
$(EXYNOS_OMX_COMPONENT)/common \
|
||||
$(EXYNOS_OMX_COMPONENT)/video/enc \
|
||||
$(EXYNOS_VIDEO_CODEC)/include \
|
||||
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
|
||||
|
||||
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
|
||||
LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
|
||||
LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
|
||||
else
|
||||
ifeq ($(BOARD_USE_ANDROID), true)
|
||||
LOCAL_HEADER_LIBRARIES := media_plugin_headers
|
||||
LOCAL_CFLAGS += -DUSE_ANDROID
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USE_CUSTOM_COMPONENT_SUPPORT), true)
|
||||
LOCAL_CFLAGS += -DUSE_CUSTOM_COMPONENT_SUPPORT
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-unused-function
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
Reference in New Issue
Block a user