You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# Android-GPUImage-Plus
2
+
2
3
Image, Camera And Video Filters Based On OpenGL
3
4
4
5
>To get pure lib without ffmpeg(No feature of video recording), please checkout the branch [min](https://github.com/wysaid/android-gpuimage-plus/tree/min). The whole jni module will be less than 600KB.
@@ -9,9 +10,9 @@ See the `image deform demo`.
9
10
10
11

11
12
12
-
## Gradle dependency ##
13
+
## Gradle dependency
13
14
14
-
```
15
+
```gradle
15
16
repositories {
16
17
jcenter()
17
18
}
@@ -26,16 +27,17 @@ dependencies {
26
27
}
27
28
```
28
29
29
-
> Use other ffmpeg-library, see: https://github.com/wysaid/FFmpeg-Android.git
30
+
> Use other ffmpeg-library, see: <https://github.com/wysaid/FFmpeg-Android.git>
30
31
31
-
## Abstract ##
32
+
## Abstract
32
33
33
-
*This repo is an Android Studio Project, comprising "cgeDemo", "library" two sub-modules. Hundreds of built-in filters are available in the demo. 😋If you'd like to add your own filter, please take a look at the manual page. Or you can follow the demo code. The new custom filter should be written in C++.
34
+
* This repo is an Android Studio Project, comprising "cgeDemo", "library" two sub-modules. Hundreds of built-in filters are available in the demo. 😋If you'd like to add your own filter, please take a look at the manual page. Or you can follow the demo code. The new custom filter should be written in C++.
34
35
35
36
* Demo and Library will be updated as needed. Welcome for your questions or PR.
36
37
37
38
* To build with the jni part, pleasae try:
38
-
```
39
+
40
+
```shell
39
41
export NDK=path/of/your/ndk
40
42
cd folder/of/jni (android-gpuimage-plus/library/src/main/jni)
> You can find precompiled libs here: [android-gpuimage-plus-libs](https://github.com/wysaid/android-gpuimage-plus-libs) (The precompiled '.so' files are generated with NDK-r16b)
67
+
> You can find precompiled libs here: [android-gpuimage-plus-libs](https://github.com/wysaid/android-gpuimage-plus-libs) (The precompiled '.so' files are generated with NDK-r23b)
66
68
67
69
Note that the generated file "libFaceTracker.so" is not necessary. So just remove this file if you don't want any feature of it.
>Your filter must inherit [CGEImageFilterInterfaceAbstract](https://github.com/wysaid/android-gpuimage-plus/blob/master/library/src/main/jni/include/cgeImageFilter.h#L42) or its child class. Most of the filters are inherited from [CGEImageFilterInterface](https://github.com/wysaid/android-gpuimage-plus/blob/master/library/src/main/jni/include/cgeImageFilter.h#L57) because it has many useful functions.
103
107
104
-
```
108
+
```cpp
105
109
// A simple customized filter to do a color reversal.
>Note: To add your own shader filter with c++. [Please see the demo for further details](https://github.com/wysaid/android-gpuimage-plus/blob/master/library/src/main/jni/source/customFilter_N.cpp).
138
142
139
-
#### 2.2 Run your own filter ####
143
+
#### 2.2 Run your own filter
140
144
141
145
__In C++, you can use a CGEImageHandler to do that:__
>If no gl context exists, the class [CGESharedGLContext](https://github.com/wysaid/android-gpuimage-plus/blob/master/library/src/main/jni/interface/cgeSharedGLContext.h#L22) may be helpful.
0 commit comments