Abstract

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++.

Demo and Library will be updated as needed. Welcome for your questions or PR.

Also remember to comment out these line in NativeLibraryLoader

> 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)
Note that the generated file "libFaceTracker.so" is not necessary. So just remove this file if you don't want any feature of it.
* iOS version: [https://github.com/wysaid/ios-gpuimage-plus](https://github.com/wysaid/ios-gpuimage-plus "http://wysaid.org")
## Manual ##
### 1. Usage ###
___Sample Code for doing a filter with Bitmap___

### 2. Custom Shader Filter ###
#### 2.1 Write your own filter ####
>Your filter must inherit [CGEImageFilterInterfaceAbstract](https://raw.githubusercontent.com/wysaid/android-gpuimage-plus/master/library/src/main/jni/include/cgeImageFilter.h#L42) or its child class. Most of the filters are inherited from [CGEImageFilterInterface](https://raw.githubusercontent.com/wysaid/android-gpuimage-plus/master/library/src/main/jni/include/cgeImageFilter.h#L57) because it has many useful functions.

>Note: To add your own shader filter with c++. [Please see the demo for further details](https://raw.githubusercontent.com/wysaid/android-gpuimage-plus/master/library/src/main/jni/source/customFilter_N.cpp).
#### 2.2 Run your own filter ####
__In C++, you can use a CGEImageHandler to do that:__