forked from cropsly/ffmpeg-android-java
-
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.
- Loading branch information
Showing
29 changed files
with
474 additions
and
46 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Build for arm only | ||
APP_ABI := armeabi armeabi-v7a | ||
APP_ABI := armeabi armeabi-v7a x86 | ||
|
||
APP_PLATFORM := android-14 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
obj/local/x86/objs/ARM_ARCH/armArch.o: jni/armArch.c \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/jni.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs_elf.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/android/api-level.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdio.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdint.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_wchar_limits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/posix_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/stddef.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/compiler.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types_32.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/kernel.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/sysmacros.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdlib.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/string.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/malloc.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/alloca.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/strings.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/memory.h \ | ||
/Users/sb/Documents/android-ndk-r10/sources//android/cpufeatures/cpu-features.h | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/jni.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs_elf.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/android/api-level.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdio.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdint.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_wchar_limits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/posix_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/stddef.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/compiler.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types_32.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/kernel.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/sysmacros.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdlib.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/string.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/malloc.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/alloca.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/strings.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/memory.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/sources//android/cpufeatures/cpu-features.h: |
Binary file not shown.
182 changes: 182 additions & 0 deletions
182
FFmpegAndroid/obj/local/x86/objs/cpufeatures/cpu-features.o.d
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,182 @@ | ||
obj/local/x86/objs/cpufeatures/cpu-features.o: \ | ||
/Users/sb/Documents/android-ndk-r10/sources//android/cpufeatures/cpu-features.c \ | ||
/Users/sb/Documents/android-ndk-r10/sources//android/cpufeatures/cpu-features.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs_elf.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/android/api-level.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdint.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_wchar_limits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/dlfcn.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/errno.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/errno.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/errno.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/errno.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/errno-base.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/fcntl.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/posix_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/stddef.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/compiler.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types_32.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/kernel.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/sysmacros.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/fcntl.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/fcntl.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/fcntl.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/unistd.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/select.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/time.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/time.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/signal.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/limits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/limits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/limits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/internal_types.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/limits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/syslimits.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/page.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/page_32.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/string.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/malloc.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/signal.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/signal.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/sigcontext.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/siginfo.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/siginfo.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/sysconf.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/capability.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/pathconf.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/pthread.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/time.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sched.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdio.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdlib.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/alloca.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/strings.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/memory.h \ | ||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/system_properties.h | ||
|
||
/Users/sb/Documents/android-ndk-r10/sources//android/cpufeatures/cpu-features.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/cdefs_elf.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/android/api-level.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdint.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/_wchar_limits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/dlfcn.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/errno.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/errno.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/errno.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/errno.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/errno-base.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/fcntl.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/posix_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/stddef.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/compiler.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/posix_types_32.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/kernel.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/sysmacros.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/fcntl.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/fcntl.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/fcntl.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/unistd.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/select.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/time.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/time.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/signal.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/limits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/limits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/limits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/internal_types.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/machine/limits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/syslimits.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/page.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/page_32.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/string.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/malloc.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/signal.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/signal.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/sigcontext.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm/siginfo.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/asm-generic/siginfo.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/sysconf.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/linux/capability.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/pathconf.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/pthread.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/time.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sched.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdio.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/stdlib.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/alloca.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/strings.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/memory.h: | ||
|
||
/Users/sb/Documents/android-ndk-r10/platforms/android-14/arch-x86/usr/include/sys/system_properties.h: |
13 changes: 13 additions & 0 deletions
13
...c/androidTest/java/com/github/hiteshsondhi88/libffmpeg/CommonInstrumentationTestCase.java
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,13 @@ | ||
package com.github.hiteshsondhi88.libffmpeg; | ||
|
||
import android.test.InstrumentationTestCase; | ||
|
||
public class CommonInstrumentationTestCase extends InstrumentationTestCase { | ||
|
||
@Override | ||
protected void setUp() throws Exception { | ||
super.setUp(); | ||
Log.setDEBUG(true); | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -20,5 +20,4 @@ public void testGetCpuArch() throws Exception { | |
} | ||
} | ||
|
||
|
||
} |
39 changes: 39 additions & 0 deletions
39
FFmpegAndroid/src/androidTest/java/com/github/hiteshsondhi88/libffmpeg/CpuArchTest.java
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,39 @@ | ||
package com.github.hiteshsondhi88.libffmpeg; | ||
|
||
import android.content.res.AssetManager; | ||
import android.text.TextUtils; | ||
|
||
import com.github.hiteshsondhi88.libffmpeg.utils.AssertionHelper; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
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"); | ||
} | ||
|
||
private void testFFmpegAsset(CpuArch cpuArch, String assetsPath) { | ||
AssetManager assetMgr = getInstrumentation().getContext().getResources().getAssets(); | ||
InputStream is = null; | ||
try { | ||
is = assetMgr.open(assetsPath); | ||
String assetSha1Sum = FileUtils.SHA1(is); | ||
assertThat(!TextUtils.isEmpty(cpuArch.getSha1()) | ||
&& !TextUtils.isEmpty(assetSha1Sum) | ||
&& cpuArch.getSha1().equals(assetSha1Sum)).isTrue(); | ||
} catch (IOException e) { | ||
Log.e(e); | ||
AssertionHelper.assertError("error validating ffmpeg asset "+assetsPath); | ||
} finally { | ||
Util.close(is); | ||
} | ||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.