diff options
| author | Thierry Strudel <thierry.strudel@intel.com> | 2014-11-10 14:17:11 -0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-11-19 15:14:41 -0800 |
| commit | 9cfd42b1c84f88bac7dd539e18fa8a99a91c984c (patch) | |
| tree | b1cca577ea21e6fcc6b3285235a846bcee78231e | |
| parent | 5246619dfe1807934867669347b846166a18977e (diff) | |
| download | android_hardware_intel_common_omx-components-9cfd42b1c84f88bac7dd539e18fa8a99a91c984c.tar.gz android_hardware_intel_common_omx-components-9cfd42b1c84f88bac7dd539e18fa8a99a91c984c.tar.bz2 android_hardware_intel_common_omx-components-9cfd42b1c84f88bac7dd539e18fa8a99a91c984c.zip | |
use system headers rather than framework ones
Bug: 18313857
Change-Id: I35e5b413c65f585023c0e528169b849e612ff9c0
Signed-off-by: Thierry Strudel <thierry.strudel@intel.com>
| -rw-r--r-- | videocodec/Android.mk | 66 | ||||
| -rw-r--r-- | videocodec/OMXVideoDecoderBase.cpp | 5 | ||||
| -rw-r--r-- | videocodec/OMXVideoDecoderVP9HWR.cpp | 2 |
3 files changed, 43 insertions, 30 deletions
diff --git a/videocodec/Android.mk b/videocodec/Android.mk index d63b83b..8820eac 100644 --- a/videocodec/Android.mk +++ b/videocodec/Android.mk @@ -26,7 +26,8 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) PLATFORM_USE_GEN_HW := \ baytrail \ @@ -37,9 +38,10 @@ LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo endif LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderAVC.cpp + LOCAL_CFLAGS += -Werror LOCAL_MODULE_TAGS := optional LOCAL_MODULE := libOMXVideoDecoderAVC @@ -94,12 +96,14 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderVP8.cpp + LOCAL_CFLAGS += -Werror LOCAL_MODULE_TAGS := optional LOCAL_MODULE := libOMXVideoDecoderVP8 @@ -141,7 +145,6 @@ LOCAL_CFLAGS += -DTARGET_HAS_VPP endif LOCAL_SHARED_LIBRARIES := \ - libui \ libwrs_omxil_common \ libva_videodecoder \ liblog \ @@ -161,15 +164,16 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_codec \ $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_ports \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) ifeq ($(TARGET_BOARD_PLATFORM),baytrail) LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo endif LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderVP9HWR.cpp LOCAL_CFLAGS += -Werror @@ -196,7 +200,6 @@ ifeq ($(TARGET_HAS_VPP),true) LOCAL_CFLAGS += -DTARGET_HAS_VPP endif LOCAL_SHARED_LIBRARIES := \ - libui \ libwrs_omxil_common \ liblog \ libva_videodecoder \ @@ -208,15 +211,16 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) ifeq ($(TARGET_BOARD_PLATFORM),baytrail) LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo endif LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderVP9Hybrid.cpp LOCAL_CFLAGS += -Werror @@ -255,7 +259,8 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) PLATFORM_USE_GEN_HW := \ baytrail \ @@ -266,9 +271,10 @@ LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo endif LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderMPEG4.cpp + LOCAL_CFLAGS += -Werror LOCAL_MODULE_TAGS := optional LOCAL_MODULE := libOMXVideoDecoderMPEG4 @@ -310,7 +316,8 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) PLATFORM_USE_GEN_HW := \ baytrail \ @@ -321,9 +328,10 @@ LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo endif LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderH263.cpp + LOCAL_CFLAGS += -Werror LOCAL_MODULE_TAGS := optional LOCAL_MODULE := libOMXVideoDecoderH263 @@ -365,7 +373,8 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) PLATFORM_USE_GEN_HW := \ baytrail \ @@ -376,9 +385,10 @@ LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo endif LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderWMV.cpp + LOCAL_CFLAGS += -Werror LOCAL_MODULE_TAGS := optional LOCAL_MODULE := libOMXVideoDecoderWMV @@ -430,9 +440,10 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libdrm \ $(call include-path-for, frameworks-native)/media/hardware \ $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ + OMXComponentCodecBase.cpp \ OMXVideoDecoderBase.cpp ifeq ($(TARGET_BOARD_PLATFORM),moorefield) @@ -590,11 +601,12 @@ LOCAL_C_INCLUDES := \ $(TARGET_OUT_HEADERS)/libmix_videodecoder \ $(TARGET_OUT_HEADERS)/libva \ $(call include-path-for, frameworks-native)/media/hardware \ - $(call include-path-for, frameworks-native)/media/openmax + $(call include-path-for, frameworks-native)/media/openmax \ + $(call include-path-for, libhardware) LOCAL_SRC_FILES := \ - OMXComponentCodecBase.cpp\ - OMXVideoDecoderBase.cpp\ + OMXComponentCodecBase.cpp \ + OMXVideoDecoderBase.cpp \ OMXVideoDecoderPAVC.cpp LOCAL_CFLAGS += -Werror diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp index 7087cd4..e363b45 100644 --- a/videocodec/OMXVideoDecoderBase.cpp +++ b/videocodec/OMXVideoDecoderBase.cpp @@ -17,9 +17,12 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "OMXVideoDecoder" #include <wrs_omxil_core/log.h> -#include "OMXVideoDecoderBase.h" + +#include <hardware/gralloc.h> #include <va/va_android.h> +#include "OMXVideoDecoderBase.h" + static const char* VA_RAW_MIME_TYPE = "video/x-raw-va"; static const uint32_t VA_COLOR_FORMAT = 0x7FA00E00; diff --git a/videocodec/OMXVideoDecoderVP9HWR.cpp b/videocodec/OMXVideoDecoderVP9HWR.cpp index 8566913..2170fd0 100644 --- a/videocodec/OMXVideoDecoderVP9HWR.cpp +++ b/videocodec/OMXVideoDecoderVP9HWR.cpp @@ -21,8 +21,6 @@ #include "OMXVideoDecoderVP9HWR.h" #include <system/window.h> -#include <ui/GraphicBufferMapper.h> -#include <ui/Rect.h> #include <HardwareAPI.h> #include <hardware/hardware.h> #include <hardware/gralloc.h> |
