diff --git a/mfx_omx_defs.mk b/mfx_omx_defs.mk index ebffab1..dbbcb43 100644 --- a/mfx_omx_defs.mk +++ b/mfx_omx_defs.mk @@ -15,6 +15,9 @@ MFX_OMX_CFLAGS := -DANDROID # Android version preference: +ifneq ($(filter 13 13.% T% ,$(PLATFORM_VERSION)),) + MFX_ANDROID_VERSION:= MFX_T +endif ifneq ($(filter 12 12.% S ,$(PLATFORM_VERSION)),) MFX_ANDROID_VERSION:= MFX_S endif @@ -61,7 +64,7 @@ MFX_OMX_CFLAGS += \ ifeq ($(BOARD_USES_GRALLOC1),true) MFX_OMX_CFLAGS += -DMFX_OMX_USE_GRALLOC_1 - ifneq ($(filter MFX_P MFX_Q MFX_R MFX_S,$(MFX_ANDROID_VERSION)),) + ifneq ($(filter MFX_P MFX_Q MFX_R MFX_S MFX_T,$(MFX_ANDROID_VERSION)),) # plugins should use PRIME buffer descriptor since Android P MFX_OMX_CFLAGS += -DMFX_OMX_USE_PRIME endif @@ -94,7 +97,7 @@ ifneq ($(filter $(MFX_ANDROID_VERSION), MFX_O),) MFX_OMX_CFLAGS_LIBVA += -DANDROID_O endif -ifneq ($(filter $(MFX_ANDROID_VERSION), MFX_Q MFX_R MFX_S),) +ifneq ($(filter $(MFX_ANDROID_VERSION), MFX_Q MFX_R MFX_S MFX_T),) # HDR10 support on Android Q MFX_OMX_CFLAGS += -DHEVC10HDR_SUPPORT MFX_OMX_CFLAGS += -DENABLE_READ_SEI @@ -113,7 +116,7 @@ MFX_OMX_INCLUDES_LIBVA := $(TARGET_OUT_HEADERS)/libva MFX_OMX_HEADER_LIBRARIES := libmfx_headers # Setting usual imported headers -ifneq ($(filter MFX_O_MR1 MFX_P MFX_Q MFX_R MFX_S,$(MFX_ANDROID_VERSION)),) +ifneq ($(filter MFX_O_MR1 MFX_P MFX_Q MFX_R MFX_S MFX_T,$(MFX_ANDROID_VERSION)),) MFX_OMX_HEADER_LIBRARIES += \ media_plugin_headers \ libnativebase_headers \ @@ -121,7 +124,7 @@ ifneq ($(filter MFX_O_MR1 MFX_P MFX_Q MFX_R MFX_S,$(MFX_ANDROID_VERSION)),) libhardware_headers endif -ifneq ($(filter MFX_P MFX_Q MFX_R MFX_S,$(MFX_ANDROID_VERSION)),) +ifneq ($(filter MFX_P MFX_Q MFX_R MFX_S MFX_T,$(MFX_ANDROID_VERSION)),) MFX_OMX_HEADER_LIBRARIES += \ libbase_headers endif