Skip to content

Commit

Permalink
Upgrade mediasdk_opensource to intel-mediasdk-23.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Shao-Feng committed Feb 28, 2023
1 parent 00c8eb8 commit 3df9715
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
24 changes: 20 additions & 4 deletions _studio/mfx_lib/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ MFX_LOCAL_SRC_FILES_HW += \
mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_roi.cpp \
mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_task.cpp \
mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_weighted_prediction.cpp \
mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon_info.cpp \
mfx_lib/encode_hw/hevc/agnostic/g12/hevcehw_g12_caps.cpp \
mfx_lib/encode_hw/hevc/agnostic/g12/hevcehw_g12_rext.cpp \
mfx_lib/encode_hw/hevc/agnostic/g12/hevcehw_g12_scc.cpp \
Expand All @@ -76,10 +77,12 @@ MFX_LOCAL_SRC_FILES_HW += \
mfx_lib/encode_hw/hevc/linux/base/hevcehw_base_weighted_prediction_lin.cpp \
mfx_lib/encode_hw/hevc/linux/g12/hevcehw_g12_lin.cpp \
mfx_lib/encode_hw/hevc/linux/g12/hevcehw_g12_rext_lin.cpp \
mfx_lib/encode_hw/hevc/linux/g12/hevcehw_g12_qp_modulation_lin.cpp \
mfx_lib/encode_hw/shared/ehw_resources_pool.cpp \
mfx_lib/encode_hw/shared/ehw_task_manager.cpp \
mfx_lib/encode_hw/shared/ehw_device_vaapi.cpp \
mfx_lib/encode_hw/shared/ehw_utils_vaapi.cpp
mfx_lib/encode_hw/shared/ehw_utils_vaapi.cpp \
enctools/src/mfx_enctools_brc.cpp

MFX_LOCAL_INCLUDES := \
$(foreach dir, $(MFX_LOCAL_DIRS), $(wildcard $(LOCAL_PATH)/mfx_lib/$(dir)/include))
Expand All @@ -106,8 +109,10 @@ MFX_LOCAL_INCLUDES_HW := \
$(MFX_HOME)/_studio/mfx_lib/encode_hw/hevc/linux/g12 \
$(MFX_HOME)/_studio/mfx_lib/encode_hw/shared \
$(MFX_HOME)/_studio/enctools/include \
$(MFX_HOME)/_studio/enctools/aenc/include \
$(MFX_HOME)/_studio/mfx_lib/scheduler/linux/include


MFX_LOCAL_STATIC_LIBRARIES_HW := \
libmfx_lib_merged_hw \
libumc_codecs_merged_hw \
Expand Down Expand Up @@ -227,6 +232,14 @@ MFX_LIB_SHARED_FILES_2 := $(addprefix shared/src/, \
mfx_umc_alloc_wrapper.cpp \
mfx_umc_mjpeg_vpp.cpp)

MFX_LIB_SCHEDULE_FILES := $(addprefix mfx_lib/scheduler/linux/src/, \
mfx_scheduler_core.cpp \
mfx_scheduler_core_iunknown.cpp \
mfx_scheduler_core_task_management.cpp \
mfx_scheduler_core_ischeduler.cpp \
mfx_scheduler_core_task.cpp \
mfx_scheduler_core_thread.cpp)

# =============================================================================

include $(CLEAR_VARS)
Expand All @@ -247,7 +260,8 @@ LOCAL_CFLAGS := \
-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES \
-Wno-error \
-Wno-unused-parameter \
-Wno-unused-command-line-argument
-Wno-unused-command-line-argument \
-Wno-null-pointer-subtraction

LOCAL_CFLAGS_32 := $(MFX_CFLAGS_INTERNAL_32)
LOCAL_CFLAGS_64 := $(MFX_CFLAGS_INTERNAL_64)
Expand All @@ -264,7 +278,7 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
include $(MFX_HOME)/android/mfx_defs.mk

LOCAL_SRC_FILES := $(MFX_LIB_SHARED_FILES_1) $(MFX_LIB_SHARED_FILES_2)
LOCAL_SRC_FILES := $(MFX_LIB_SHARED_FILES_1) $(MFX_LIB_SHARED_FILES_2) $(MFX_LIB_SCHEDULE_FILES)

LOCAL_C_INCLUDES := \
$(MFX_LOCAL_INCLUDES_HW) \
Expand All @@ -276,6 +290,7 @@ LOCAL_CFLAGS := \
-Wno-error \
-Wno-unused-parameter \
-Wno-unused-command-line-argument \
-Wno-null-pointer-subtraction


LOCAL_CFLAGS_32 := $(MFX_CFLAGS_INTERNAL_32)
Expand All @@ -302,7 +317,7 @@ include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
include $(MFX_HOME)/android/mfx_defs.mk

LOCAL_SRC_FILES := $(MFX_LIB_SHARED_FILES_1) $(MFX_LIB_SHARED_FILES_2)
LOCAL_SRC_FILES := $(MFX_LIB_SHARED_FILES_1) $(MFX_LIB_SHARED_FILES_2) $(MFX_LIB_SCHEDULE_FILES)

LOCAL_C_INCLUDES := \
$(MFX_LOCAL_INCLUDES_HW) \
Expand All @@ -314,6 +329,7 @@ LOCAL_CFLAGS := \
-Wno-error \
-Wno-unused-parameter \
-Wno-unused-command-line-argument \
-Wno-null-pointer-subtraction


LOCAL_CFLAGS_64 := $(MFX_CFLAGS_INTERNAL_64)
Expand Down
4 changes: 3 additions & 1 deletion android/mfx_defs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ MFX_CFLAGS += \
-fPIE -fPIC \
-O2 -D_FORTIFY_SOURCE=2 \
-Wformat -Wformat-security \
-fexceptions -frtti
-fexceptions -frtti \
-Wno-null-pointer-subtraction


ifeq ($(filter MFX_O MFX_O_MR1, $(MFX_ANDROID_VERSION)),)
ifeq ($(MFX_ENABLE_ITT_TRACES),)
Expand Down
1 change: 1 addition & 0 deletions samples/sample_encode/src/sample_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ or https://software.intel.com/en-us/media-client-solutions-support.
#include "pipeline_region_encode.h"
#include <stdarg.h>
#include <string>
#include <cmath>
#include "version.h"

#define VAL_CHECK(val, argIdx, argName) \
Expand Down
1 change: 1 addition & 0 deletions samples/sample_multi_transcode/src/transcode_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ or https://software.intel.com/en-us/media-client-solutions-support.
#include <iterator>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <algorithm>

using namespace TranscodingSample;
Expand Down

0 comments on commit 3df9715

Please sign in to comment.