forked from sailfishos/droidmedia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android8] Initial Android 8 support. Fixes MER#1923
Change-Id: I05ea2cfe8947c9dcf7cb4f79df0de0e882890835
- Loading branch information
Showing
10 changed files
with
531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,11 @@ LOCAL_SHARED_LIBRARIES := libc \ | |
libstagefright \ | ||
libstagefright_foundation \ | ||
libmedia | ||
|
||
ifeq ($(strip $(ANDROID_MAJOR)),8) | ||
LOCAL_SHARED_LIBRARIES += liblog | ||
endif | ||
|
||
LOCAL_CPPFLAGS=-DANDROID_MAJOR=$(ANDROID_MAJOR) -DANDROID_MINOR=$(ANDROID_MINOR) -DANDROID_MICRO=$(ANDROID_MICRO) $(FORCE_HAL_PARAM) | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE := libdroidmedia | ||
|
@@ -65,6 +70,12 @@ endif | |
ifeq ($(strip $(ANDROID_MAJOR)),7) | ||
LOCAL_C_INCLUDES := frameworks/native/include/media/openmax \ | ||
frameworks/native/include/media/hardware | ||
else ifeq ($(strip $(ANDROID_MAJOR)),8) | ||
LOCAL_C_INCLUDES := frameworks/native/include/media/openmax \ | ||
frameworks/native/include/media/hardware \ | ||
frameworks/native/libs/nativewindow/include \ | ||
frameworks/av/media/libstagefright/omx/include \ | ||
frameworks/av/media/libstagefright/xmlparser/include | ||
else | ||
LOCAL_C_INCLUDES := frameworks/native/include/media/openmax | ||
endif | ||
|
@@ -85,6 +96,18 @@ LOCAL_SHARED_LIBRARIES := libcameraservice \ | |
libgui \ | ||
libcutils \ | ||
libui | ||
|
||
ifeq ($(strip $(ANDROID_MAJOR)),8) | ||
LOCAL_C_INCLUDES += frameworks/native/libs/sensor/include \ | ||
frameworks/av/media/libstagefright/omx/include | ||
LOCAL_SHARED_LIBRARIES += liblog \ | ||
libhidlbase \ | ||
libhidltransport \ | ||
libsensor \ | ||
[email protected] \ | ||
[email protected] | ||
endif | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_CPPFLAGS=-DANDROID_MAJOR=$(ANDROID_MAJOR) -DANDROID_MINOR=$(ANDROID_MINOR) -DANDROID_MICRO=$(ANDROID_MICRO) | ||
LOCAL_MODULE := minimediaservice | ||
|
@@ -101,6 +124,18 @@ LOCAL_SHARED_LIBRARIES := libutils \ | |
libgui \ | ||
libcutils \ | ||
libui | ||
|
||
ifeq ($(strip $(ANDROID_MAJOR)),8) | ||
LOCAL_C_INCLUDES := frameworks/native/libs/sensor/include \ | ||
frameworks/native/include | ||
LOCAL_SHARED_LIBRARIES += liblog \ | ||
libhidlbase \ | ||
libhidltransport \ | ||
libsensor \ | ||
[email protected] \ | ||
[email protected] | ||
endif | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_CPPFLAGS := -DANDROID_MAJOR=$(ANDROID_MAJOR) -DANDROID_MINOR=$(ANDROID_MINOR) -DANDROID_MICRO=$(ANDROID_MICRO) | ||
ifneq ($(CM_BUILD),) | ||
|
@@ -131,6 +166,16 @@ endif | |
ifneq ($(shell cat frameworks/native/services/surfaceflinger/SurfaceFlinger.h |grep getDisplayInfoEx),) | ||
LOCAL_CPPFLAGS += -DUSE_SERVICES_VENDOR_EXTENSION | ||
endif | ||
ifeq ($(strip $(ANDROID_MAJOR)),8) | ||
LOCAL_SHARED_LIBRARIES += liblog \ | ||
libcamera_client \ | ||
libhidlbase \ | ||
libhidltransport \ | ||
libsensor \ | ||
[email protected] \ | ||
[email protected] | ||
endif | ||
|
||
LOCAL_MODULE := libminisf | ||
ifeq ($(strip $(DROIDMEDIA_32)), true) | ||
LOCAL_MODULE_TARGET_ARCH := arm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
* Authored by: Mohammed Hassan <[email protected]> | ||
*/ | ||
|
||
#if ANDROID_MAJOR < 8 | ||
#include "allocator.h" | ||
#include <ui/GraphicBuffer.h> | ||
|
||
|
@@ -67,3 +68,4 @@ void DroidMediaAllocator::setGraphicBufferSize(int size) | |
{ | ||
m_size = size; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,11 @@ | |
* Authored by: Mohammed Hassan <[email protected]> | ||
*/ | ||
|
||
#if ANDROID_MAJOR >= 8 | ||
#include <media/stagefright/omx/OMX.h> | ||
#else | ||
#include <media/stagefright/OMXClient.h> | ||
#endif | ||
|
||
// MediaCodecSource should be used instead of OMXCodec from Android 5 | ||
#if ANDROID_MAJOR >= 5 | ||
|
@@ -43,7 +47,9 @@ | |
#include <media/stagefright/MediaDefs.h> | ||
#include <gui/BufferQueue.h> | ||
#include "droidmediacodec.h" | ||
#if ANDROID_MAJOR < 8 | ||
#include "allocator.h" | ||
#endif | ||
#include "private.h" | ||
#include "droidmediabuffer.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.