Giter VIP home page Giter VIP logo

libx264-android's Introduction

libx264 for android NDK

## 简介 ##
使用脚本编译生成适用于 android 平台的 libx264 静态库;

## 编译 ##
### 编译依赖 ###
此项目的编译脚本 build.sh 默认使用 Android NDK Standalone Toolchain 作为工具包。

**Standalone Toolchain工具制作方法**
注:此处使用 android sdk r21  
在本地安装好 android ndk,路径为 $ANDROID_NDK,使用下面的命令生成ARM 32位版本的工具,  
$ANDROID_NDK/build/tools/make-standalone-toolchain.sh --arch=arm --platform=android-21 --toolchain=arm-linux-androideabi-4.8 --system=linux-x86_64 --install-dir=$HOME/arm

### 编译命令 ###
sh build.sh

生成结果位于 libs/*

### 使用方法 ###
拷贝 libs/ 到新项目中,如果新项目使用 ndk-build 作为编译工具,请在 Application.mk 中添加 APP_PLATFORM := android-21,否则会出现未知错误。

## 遗留 ##
虽然已经实现了对所有 ABI 的支持,但是,x264 configure脚本内部明确表示还不支持 armeabi mips mips64 的汇编优化;
因此x264在这三种ABI下运行的效率要低很多,官方甚至建议不要使用,这里为了更好的兼容性,全部启用。

libx264-android's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.