[x265] [PATCH] Experimental Android support
Deepthi Nandakumar
deepthi at multicorewareinc.com
Wed Sep 30 08:47:20 CEST 2015
No, build/x265_config.h is a cmake-generated file.
On Tue, Sep 29, 2015 at 9:11 PM, Peter Kovář <peter.kovar at reflexion.tv>
wrote:
> # HG changeset patch
> # User Peter Kovář <peter.kovar at reflexion.tv>
> # Date 1443541239 -7200
> # Tue Sep 29 17:40:39 2015 +0200
> # Node ID fc6a1a47eadc50a56c7b472d05e1632e32f0bcf1
> # Parent 1768e5dd8feaa1b998d371f62ecd5554e3825f4b
> Experimental Android support
>
> Compile with ndk-build in the build/android directory.
> Eventually modify APP_ABI in the jni/Application.mk to select required
> target CPU.
>
> diff -r 1768e5dd8fea -r fc6a1a47eadc build/android/Android.mk
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/build/android/Android.mk Tue Sep 29 17:40:39 2015 +0200
> @@ -0,0 +1,73 @@
> +LOCAL_PATH:= $(call my-dir)
> +include $(CLEAR_VARS)
> +
> +LOCAL_MODULE := libx265
> +
> +LOCAL_SRC_FILES = \
> + ../../source/common/bitstream.cpp \
> + ../../source/common/common.cpp \
> + ../../source/common/constants.cpp \
> + ../../source/common/cpu.cpp \
> + ../../source/common/cudata.cpp \
> + ../../source/common/dct.cpp \
> + ../../source/common/deblock.cpp \
> + ../../source/common/frame.cpp \
> + ../../source/common/framedata.cpp \
> + ../../source/common/intrapred.cpp \
> + ../../source/common/ipfilter.cpp \
> + ../../source/common/loopfilter.cpp \
> + ../../source/common/lowres.cpp \
> + ../../source/common/md5.cpp \
> + ../../source/common/param.cpp \
> + ../../source/common/piclist.cpp \
> + ../../source/common/picyuv.cpp \
> + ../../source/common/pixel.cpp \
> + ../../source/common/predict.cpp \
> + ../../source/common/primitives.cpp \
> + ../../source/common/quant.cpp \
> + ../../source/common/scalinglist.cpp \
> + ../../source/common/shortyuv.cpp \
> + ../../source/common/slice.cpp \
> + ../../source/common/threading.cpp \
> + ../../source/common/threadpool.cpp \
> + ../../source/common/version.cpp \
> + ../../source/common/wavefront.cpp \
> + ../../source/common/yuv.cpp \
> + ../../source/encoder/analysis.cpp \
> + ../../source/encoder/api.cpp \
> + ../../source/encoder/bitcost.cpp \
> + ../../source/encoder/dpb.cpp \
> + ../../source/encoder/encoder.cpp \
> + ../../source/encoder/entropy.cpp \
> + ../../source/encoder/frameencoder.cpp \
> + ../../source/encoder/framefilter.cpp \
> + ../../source/encoder/level.cpp \
> + ../../source/encoder/motion.cpp \
> + ../../source/encoder/nal.cpp \
> + ../../source/encoder/ratecontrol.cpp \
> + ../../source/encoder/reference.cpp \
> + ../../source/encoder/sao.cpp \
> + ../../source/encoder/search.cpp \
> + ../../source/encoder/sei.cpp \
> + ../../source/encoder/slicetype.cpp \
> + ../../source/encoder/weightPrediction.cpp \
> + ../../source/input/input.cpp \
> + ../../source/input/yuv.cpp \
> + ../../source/input/y4m.cpp \
> + ../../source/output/output.cpp \
> + ../../source/output/raw.cpp \
> + ../../source/output/reconplay.cpp \
> + ../../source/output/yuv.cpp \
> + ../../source/output/y4m.cpp
> +
> +LOCAL_C_INCLUDES += . \
> + $(LOCAL_PATH)/../../source \
> + $(LOCAL_PATH)/../../source/common \
> + $(LOCAL_PATH)/../../source/encoder
> +
> +LOCAL_CFLAGS += -DDETAILED_CU_STATS -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1
> -DHIGH_BIT_DEPTH=0 -DX265_ARCH_ARM=1 -DX265_DEPTH=8 -DX265_NS=x265
> -D__STDC_LIMIT_MACROS=1 -DHAVE_STRTOK_R=1
> +
> +#LOCAL_CFLAGS += -Werror -Wall -Wno-strict-aliasing -Wno-unused-function
> +LOCAL_CFLAGS += -Wall -Wno-strict-aliasing -Wno-unused-function
> +
> +include $(BUILD_SHARED_LIBRARY)
> diff -r 1768e5dd8fea -r fc6a1a47eadc build/android/AndroidManifest.xml
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/build/android/AndroidManifest.xml Tue Sep 29 17:40:39 2015 +0200
> @@ -0,0 +1,9 @@
> +<?xml version="1.0" encoding="utf-8"?>
> +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
> + package="tv.reflexion.x265"
> + android:versionCode="1.7+509-f4c267f28487"
> android:installLocation="auto">
> + <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21"/>
> +
> + <application android:label="@string/app_name"
> android:largeHeap="true" android:allowBackup="true">
> + </application>
> +</manifest>
> diff -r 1768e5dd8fea -r fc6a1a47eadc build/android/jni/Application.mk
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/build/android/jni/Application.mk Tue Sep 29 17:40:39 2015 +0200
> @@ -0,0 +1,13 @@
> +APP_PROJECT_PATH := ..
> +
> +APP_BUILD_SCRIPT := Android.mk
> +
> +APP_MODULES := libx265
> +
> +#APP_ABI := all
> +APP_ABI := arm64-v8a
> +
> +#APP_STL := stlport_static
> +APP_STL := stlport_shared
> +
> +APP_PLATFORM := android-21
> diff -r 1768e5dd8fea -r fc6a1a47eadc build/android/x265_config.h
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/build/android/x265_config.h Tue Sep 29 17:40:39 2015 +0200
> @@ -0,0 +1,34 @@
>
> +/*****************************************************************************
> + * Copyright (C) 2013 x265 project
> + *
> + * Authors: Steve Borho <steve at borho.org>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111,
> USA.
> + *
> + * This program is also available under a commercial proprietary license.
> + * For more information, contact us at license @ x265.com.
> +
> *****************************************************************************/
> +
> +#ifndef X265_CONFIG_H
> +#define X265_CONFIG_H
> +
> +/* Defines generated at build time */
> +
> +/* Incremented each time public API is changed, X265_BUILD is used as
> + * the shared library SONAME on platforms which support it. It also
> + * prevents linking against a different version of the static lib */
> +#define X265_BUILD 75
> +
> +#endif
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20150930/9675b97d/attachment.html>
More information about the x265-devel
mailing list