Skip to content

Commit 47f33a4

Browse files
committed
commit
0 parents  commit 47f33a4

File tree

144 files changed

+26378
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+26378
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

.idea/gradle.xml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/CMakeLists.txt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
cmake_minimum_required(VERSION 3.4.1)
2+
3+
set(distribution_DIR ../../../../libs)
4+
5+
add_library( native-lib
6+
SHARED
7+
src/main/cpp/native-lib.cpp
8+
src/main/cpp/FFmpegMusic.cpp
9+
)
10+
add_library( avcodec-56
11+
SHARED
12+
IMPORTED)
13+
set_target_properties( avcodec-56
14+
PROPERTIES IMPORTED_LOCATION
15+
${distribution_DIR}/armeabi/libavcodec-56.so)
16+
add_library( avfilter-5
17+
SHARED
18+
IMPORTED)
19+
set_target_properties( avfilter-5
20+
PROPERTIES IMPORTED_LOCATION
21+
${distribution_DIR}/armeabi/libavfilter-5.so)
22+
23+
add_library( avformat-56
24+
SHARED
25+
IMPORTED)
26+
set_target_properties( avformat-56
27+
PROPERTIES IMPORTED_LOCATION
28+
${distribution_DIR}/armeabi/libavformat-56.so)
29+
30+
add_library( avutil-54
31+
SHARED
32+
IMPORTED)
33+
set_target_properties( avutil-54
34+
PROPERTIES IMPORTED_LOCATION
35+
${distribution_DIR}/armeabi/libavutil-54.so)
36+
37+
add_library( swresample-1
38+
SHARED
39+
IMPORTED)
40+
set_target_properties( swresample-1
41+
PROPERTIES IMPORTED_LOCATION
42+
${distribution_DIR}/armeabi/libswresample-1.so)
43+
44+
add_library( swscale-3
45+
SHARED
46+
IMPORTED)
47+
set_target_properties( swscale-3
48+
PROPERTIES IMPORTED_LOCATION
49+
${distribution_DIR}/armeabi/libswscale-3.so)
50+
include_directories(libs/include)
51+
target_link_libraries( native-lib
52+
avcodec-56
53+
avfilter-5
54+
avformat-56
55+
avutil-54
56+
swresample-1
57+
swscale-3
58+
log
59+
android
60+
OpenSLES
61+
)

app/build.gradle

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 26
5+
defaultConfig {
6+
applicationId "com.test.ffmpegopensles"
7+
minSdkVersion 25
8+
targetSdkVersion 26
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
sourceSets {
13+
main {
14+
jniLibs.srcDirs = ['libs']
15+
}
16+
}
17+
externalNativeBuild {
18+
cmake {
19+
cppFlags "-frtti -fexceptions"
20+
abiFilters 'armeabi'
21+
}
22+
}
23+
}
24+
buildTypes {
25+
release {
26+
minifyEnabled false
27+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
28+
}
29+
}
30+
externalNativeBuild {
31+
cmake {
32+
path "CMakeLists.txt"
33+
}
34+
}
35+
}
36+
37+
dependencies {
38+
implementation fileTree(dir: 'libs', include: ['*.jar'])
39+
implementation 'com.android.support:appcompat-v7:26.1.0'
40+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
41+
testImplementation 'junit:junit:4.12'
42+
androidTestImplementation 'com.android.support.test:runner:1.0.1'
43+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
44+
}

app/libs/armeabi/libavcodec-56.so

9.28 MB
Binary file not shown.

app/libs/armeabi/libavdevice-56.so

58 KB
Binary file not shown.

app/libs/armeabi/libavfilter-5.so

1 MB
Binary file not shown.

app/libs/armeabi/libavformat-56.so

1.59 MB
Binary file not shown.

app/libs/armeabi/libavutil-54.so

361 KB
Binary file not shown.

app/libs/armeabi/libpostproc-53.so

73.4 KB
Binary file not shown.

app/libs/armeabi/libswresample-1.so

81.4 KB
Binary file not shown.

app/libs/armeabi/libswscale-3.so

329 KB
Binary file not shown.

0 commit comments

Comments
 (0)