forked from LineageOS/android_hardware_qcom_media
-
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.
Merge tag 'android-7.1.2_r2' into cm-14.1
Android 7.1.2 Release 2 (N2G47E) Change-Id: Id0a45b1b3edb2e520f76a469e8dae0b4a4089c2a
- Loading branch information
Showing
157 changed files
with
4,103 additions
and
1,030 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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Makefile.am - Automake script for mm-omxvideo | ||
# | ||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
SUBDIRS = mm-core mm-video-v4l2 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,174 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
# Requires autoconf tool later than 2.61 | ||
AC_PREREQ([2.61]) | ||
# Initialize the omxvideo package version 1.0.0 | ||
AC_INIT([omxvideo], 1.0.0) | ||
# Does not strictly follow GNU Coding standards | ||
AM_INIT_AUTOMAKE([gnu foreign subdir-objects]) | ||
AM_MAINTAINER_MODE | ||
# defines some macros variable to be included by source | ||
AC_CONFIG_HEADER([config.h]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
|
||
# Checks for programs. | ||
AM_PROG_AR | ||
AC_PROG_CC | ||
AC_PROG_CPP | ||
AC_PROG_CXX | ||
AM_PROG_CC_C_O | ||
AC_PROG_LIBTOOL | ||
AC_PROG_AWK | ||
AC_PROG_INSTALL | ||
AC_PROG_LN_S | ||
AC_PROG_MAKE_SET | ||
|
||
PKG_PROG_PKG_CONFIG | ||
|
||
AC_ARG_ENABLE([target-msm8953], | ||
AC_HELP_STRING([--enable-target-msm8953], | ||
[Enable conditional compile for target msm8953 [default=no]]), | ||
[target_msm8953="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([target-msm8996], | ||
AC_HELP_STRING([--enable-target-msm8996], | ||
[Enable conditional compile for target msm8996 [default=no]]), | ||
[target_msm8996="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([target-msm8610], | ||
AC_HELP_STRING([--enable-target-msm8610], | ||
[Enable conditional compile for target msm8610 [default=no]]), | ||
[target_msm8610="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([target-msm8226], | ||
AC_HELP_STRING([--enable-target-msm8226], | ||
[Enable conditional compile for target msm8610 [default=no]]), | ||
[target_msm8226="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([is-ubwc-supported], | ||
AC_HELP_STRING([--enable-ubwc-supported], | ||
[Enable conditional compile for target msm8953 [default=no]]), | ||
[targets_that_support_ubwc="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([targets-that-support-pq], | ||
AC_HELP_STRING([--enable-targets-that-support-pq], | ||
[Enable conditional compile for target msm8953 [default=no]]), | ||
[targets_that_support_pq="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([target-uses-ion], | ||
AC_HELP_STRING([--enable-target-uses-ion], | ||
[Enable conditional compile for target target-uses-ion [default=no]]), | ||
[target_uses_ion="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([targets-that-use-flag-msm8226], | ||
AC_HELP_STRING([--enable-targets-that-use-flag-msm8226], | ||
[Enable conditional compile for target targets_that_use_flag_msm8226 [default=no]]), | ||
[targets_that_use_flag_msm8226="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([target-uses-media-extensions], | ||
AC_HELP_STRING([--enable-target-uses-media-extensions], | ||
[Enable conditional compile for target target_uses_media_extensions [default=no]]), | ||
[target_uses_media_extensions="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([master-side-cp-target-list], | ||
AC_HELP_STRING([--enable-master-side-cp-target-list], | ||
[Enable conditional compile for target master_side_cp_target_list [default=no]]), | ||
[master_side_cp_target_list="${enableval}"]) | ||
|
||
AC_ARG_ENABLE([use-glib], | ||
AC_HELP_STRING([--enable-use-glib], | ||
[Enable conditional compile for use glib [default=no]]), | ||
[use_glib="${enableval}"]) | ||
|
||
AC_ARG_WITH([sanitized-headers], | ||
[AS_HELP_STRING([--with-sanitized-headers=DIR],[location of the sanitized Linux kernel headers])], | ||
[CPPFLAGS="$CPPFLAGS -I $withval"]) | ||
|
||
AC_ARG_WITH([glib-headers], | ||
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([utils-headers], | ||
[AS_HELP_STRING([--with-utils-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([cutils-headers], | ||
[AS_HELP_STRING([--with-cutils-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([kernel-headers], | ||
[AS_HELP_STRING([--with-kernel-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([kernel-uapi-headers], | ||
[AS_HELP_STRING([--with-kernel-uapi-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([adreno-headers], | ||
[AS_HELP_STRING([--with-adreno-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([libgpustats-headers], | ||
[AS_HELP_STRING([--with-libgpustats-headers=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([ui-headers], | ||
[AS_HELP_STRING([--with-ui-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([android-headers], | ||
[AS_HELP_STRING([--with-gralloc-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([gralloc-headers], | ||
[AS_HELP_STRING([--with-strcpyincludes-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([binder-headers], | ||
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([display-headers], | ||
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AC_ARG_WITH([glib-lib-dir], | ||
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])], | ||
[CPPFLAGS="$CPPFLAGS -I$withval"]) | ||
|
||
AM_CONDITIONAL(TARGET_MSM8953, [test "x$target_msm8953" = "xyes"]) | ||
AM_CONDITIONAL(TARGET_MSM8996, [test "x$target_msm8996" = "xyes"]) | ||
AM_CONDITIONAL(TARGET_MSM8610, [test "x$target_msm8610" = "xyes"]) | ||
AM_CONDITIONAL(TARGET_MSM8226, [test "x$target_msm8226" = "xyes"]) | ||
AM_CONDITIONAL(TARGETS_THAT_SUPPORT_UBWC, [test "x$targets_that_support_ubwc" = "xyes"]) | ||
AM_CONDITIONAL(TARGETS_THAT_SUPPORT_PQ, [test "x$targets_that_support_pq" = "xyes"]) | ||
AM_CONDITIONAL(TARGET_USES_ION, [test "x$target_uses_ion" = "xyes"]) | ||
AM_CONDITIONAL(TARGETS_THAT_USE_FLAG_MSM8226, [test "x$targets_that_use_flag_msm8226" = "xyes"]) | ||
AM_CONDITIONAL(TARGET_USES_MEDIA_EXTENSIONS, [test "x$target_uses_media_extensions" = "xyes"]) | ||
AM_CONDITIONAL(MASTER_SIDE_CP_TARGET_LIST, [test "x$master_side_cp_target_list" = "xyes"]) | ||
AM_CONDITIONAL(USE_GLIB, [test "x$use_glib" = "xyes"]) | ||
|
||
AC_ARG_WITH([glib], | ||
AC_HELP_STRING([--with-glib], | ||
[enable glib, building HLOS systems which use glib])) | ||
|
||
if (test "x${with_glib}" = "xyes"); then | ||
GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" | ||
GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" | ||
|
||
AC_SUBST(GLIB_CFLAGS) | ||
AC_SUBST(GLIB_LIBS) | ||
fi | ||
|
||
AC_SUBST([CPPFLAGS]) | ||
AC_SUBST([CFLAGS]) | ||
|
||
AC_CONFIG_FILES([ \ | ||
Makefile \ | ||
mm-core/Makefile | ||
mm-video-v4l2/Makefile \ | ||
mm-video-v4l2/vidc/Makefile \ | ||
mm-video-v4l2/vidc/venc/Makefile \ | ||
]) | ||
AC_OUTPUT |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AM_CFLAGS = -Wall | ||
AM_CFLAGS += -Wundef | ||
AM_CFLAGS += -Wstrict-prototypes | ||
AM_CFLAGS += -Wno-trigraphs | ||
AM_CFLAGS += -g -O3 | ||
AM_CFLAGS += "-include stdint.h" | ||
AM_CFLAGS += "-std=c++11" | ||
|
||
|
||
AM_CPPFLAGS = $(CPPFLAGS) | ||
|
||
c_sources = C2DColorConverter.cpp | ||
h_sources = C2DColorConverter.h | ||
|
||
lib_LTLIBRARIES = libc2dcolorconvert.la | ||
libc2dcolorconvert_la_SOURCES = $(c_sources) $(h_sources) | ||
libc2dcolorconvert_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC | ||
libc2dcolorconvert_la_LIBADD = -ldl -lpthread -llog |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# sources and intermediate files are separated | ||
|
||
#AM_CFLAGS = -Wall | ||
#AM_CFLAGS += -Wundef | ||
#AM_CFLAGS += -Wstrict-prototypes | ||
#AM_CFLAGS += -Wno-trigraphs | ||
#AM_CFLAGS += -g -O3 | ||
#AM_CFLAGS += -O0 -fno-inline -fno-short-enums | ||
#AM_CFLAGS += -fPIC | ||
|
||
AM_CPPFLAGS = -D__packed__= | ||
AM_CPPFLAGS += -D_ANDROID_ | ||
AM_CPPFLAGS += -D_ENABLE_QC_MSG_LOG_ | ||
#AM_CPPFLAGS += -g -O3 | ||
#AM_CPPFLAGS += -O0 -fno-inline -fno-short-enums | ||
AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ | ||
AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ | ||
AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" | ||
AM_CPPFLAGS += "-Dstrlcat=g_strlcat" | ||
|
||
h_sources =inc/OMX_Audio.h | ||
h_sources +=inc/OMX_Component.h | ||
h_sources +=inc/OMX_ContentPipe.h | ||
h_sources +=inc/OMX_Core.h | ||
h_sources +=inc/OMX_Image.h | ||
h_sources +=inc/OMX_Index.h | ||
h_sources +=inc/OMX_IVCommon.h | ||
h_sources +=inc/OMX_Other.h | ||
h_sources +=inc/OMX_QCOMExtns.h | ||
h_sources +=inc/OMX_Types.h | ||
h_sources +=inc/OMX_Video.h | ||
h_sources +=inc/qc_omx_common.h | ||
h_sources +=inc/qc_omx_component.h | ||
h_sources +=inc/qc_omx_msg.h | ||
h_sources +=inc/QOMX_AudioExtensions.h | ||
h_sources +=inc/QOMX_AudioIndexExtensions.h | ||
h_sources +=inc/OMX_CoreExt.h | ||
h_sources +=inc/QOMX_CoreExtensions.h | ||
h_sources +=inc/QOMX_FileFormatExtensions.h | ||
h_sources +=inc/QOMX_IVCommonExtensions.h | ||
h_sources +=inc/QOMX_SourceExtensions.h | ||
h_sources +=inc/QOMX_VideoExtensions.h | ||
h_sources +=inc/OMX_IndexExt.h | ||
h_sources +=inc/QOMX_StreamingExtensions.h | ||
|
||
c_sources =src/common/omx_core_cmp.cpp | ||
c_sources +=src/common/qc_omx_core.c | ||
|
||
if TARGET_MSM8953 | ||
TARGET_REGISTRY = msm8953 | ||
endif | ||
|
||
if TARGET_MSM8996 | ||
TARGET_REGISTRY = msm8996 | ||
endif | ||
|
||
c_sources +=src/${TARGET_REGISTRY}/registry_table_android.c | ||
|
||
lib_LTLIBRARIES = libOmxCore.la | ||
include_HEADERS = $(h_sources) | ||
libOmxCore_la_SOURCES = $(c_sources) | ||
libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC | ||
libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC | ||
libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 | ||
libOmxCore_la_LDFLAGS += -shared -version-info 0 | ||
|
||
lib_LTLIBRARIES += libmm-omxcore.la | ||
|
||
c_sources =src/common/omx_core_cmp.cpp | ||
c_sources +=src/common/qc_omx_core.c | ||
c_sources +=src/${TARGET_REGISTRY}/registry_table.c | ||
|
||
include_HEADERS = $(h_sources) | ||
libmm_omxcore_la_SOURCES = $(c_sources) | ||
libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC | ||
libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC | ||
libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 | ||
libmm_omxcore_la_LDFLAGS += -shared -version-info 0 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.