Skip to content

Commit

Permalink
Merge branch 'release/v0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitesh Sondhi committed Apr 19, 2016
2 parents 81db8a6 + bf10806 commit 0eae163
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 16 deletions.
Binary file removed FFmpegAndroid/assets/armeabi-v7a-neon/ffmpeg
Binary file not shown.
Binary file modified FFmpegAndroid/assets/armeabi-v7a/ffmpeg
100755 → 100644
Binary file not shown.
Binary file modified FFmpegAndroid/assets/x86/ffmpeg
100755 → 100644
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void testGetCpuArch() throws Exception {
if (Build.CPU_ABI.equals(CpuArchHelper.getx86CpuAbi()) || Build.CPU_ABI.equals(CpuArchHelper.getx86_64CpuAbi())) {
assertEquals(cpuArch, CpuArch.x86);
} else if (Build.CPU_ABI.equals(CpuArchHelper.getArmeabiv7CpuAbi())) {
assertThat(cpuArch == CpuArch.ARMv7 || cpuArch == CpuArch.ARMv7_NEON).isTrue();
assertEquals(cpuArch, CpuArch.ARMv7);
} else if (Build.CPU_ABI.equals(CpuArchHelper.getArm64CpuAbi())) {
assertEquals(cpuArch, CpuArch.ARMv7);
}else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class CpuArchTest extends CommonInstrumentationTestCase {

public void testFFmpegAssetsWithSha1Sum() {
testFFmpegAsset(CpuArch.ARMv7, "armeabi-v7a/ffmpeg");
testFFmpegAsset(CpuArch.ARMv7_NEON, "armeabi-v7a-neon/ffmpeg");
testFFmpegAsset(CpuArch.x86, "x86/ffmpeg");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import android.text.TextUtils;

enum CpuArch {
x86("1b3daf0402c38ec0019ec436d71a1389514711bd"),
ARMv7("e27cf3c432b121896fc8af2d147eff88d3074dd5"),
ARMv7_NEON("9463c40e898c53dcac59b8ba39cfd590e2f1b1bf"),
x86("0dd4dbad305ff197a1ea9e6158bd2081d229e70e"),
ARMv7("871888959ba2f063e18f56272d0d98ae01938ceb"),
NONE(null);

private String sha1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ static CpuArch getCpuArch() {
// check if device is arm v7
if (cpuNativeArchHelper.isARM_v7_CPU(archInfo)) {
// check if device is neon
if (cpuNativeArchHelper.isNeonSupported(archInfo)) {
return CpuArch.ARMv7_NEON;
}
return CpuArch.ARMv7;
}
// check if device is arm64 which is supported by ARMV7
Expand All @@ -41,7 +38,7 @@ static String getx86_64CpuAbi() {
static String getArm64CpuAbi() {
return "arm64-v8a";
}

static String getArmeabiv7CpuAbi() {
return "armeabi-v7a";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public void loadBinary(FFmpegLoadBinaryResponseHandler ffmpegLoadBinaryResponseH
Log.i("Loading FFmpeg for armv7 CPU");
cpuArchNameFromAssets = "armeabi-v7a";
break;
case ARMv7_NEON:
Log.i("Loading FFmpeg for armv7-neon CPU");
cpuArchNameFromAssets = "armeabi-v7a-neon";
break;
case NONE:
throw new FFmpegNotSupportedException("Device not supported");
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For examples and usage instructions head over to:

## Sample
![http://i.imgur.com/cP4WhLn.gif](http://i.imgur.com/cP4WhLn.gif)
* [Download APK](https://github.com/writingminds/ffmpeg-android-java/releases/download/v0.2.3/app-debug.apk)
* [Download APK](https://github.com/writingminds/ffmpeg-android-java/releases/download/v0.3/app-debug.apk)

## JavaDoc
* [Javadoc](http://writingminds.github.io/ffmpeg-android-java/docs/)
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Mar 17 16:54:04 CDT 2015
#Tue Apr 19 16:06:40 GMT+05:30 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip

0 comments on commit 0eae163

Please sign in to comment.