├── Filter ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── raw │ │ │ │ ├── base_vertex_shader.glsl │ │ │ │ └── base_fragment_shader.glsl │ │ │ └── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── liubing │ │ │ │ └── filtertestbed │ │ │ │ ├── CameraV2GLSurfaceView │ │ │ │ ├── CameraV2GLSurfaceView.java │ │ │ │ ├── CameraV2GLSurfaceViewActivity.java │ │ │ │ └── CameraV2Renderer.java │ │ │ │ ├── CameraV1GLSurfaceView │ │ │ │ ├── CameraV1GLSurfaceView.java │ │ │ │ ├── CameraV1GLSurfaceViewActivity.java │ │ │ │ └── CameraV1Renderer.java │ │ │ │ ├── Utils.java │ │ │ │ ├── CameraV1.java │ │ │ │ ├── CameraV1TextureView │ │ │ │ ├── CameraV1TextureViewActivity.java │ │ │ │ └── CameraV1GLRenderer.java │ │ │ │ ├── FilterEngine.java │ │ │ │ └── CameraV2.java │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ └── proguard-rules.pro ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── .idea │ ├── modules.xml │ ├── runConfigurations.xml │ ├── gradle.xml │ └── misc.xml ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── JNIDemo ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ │ ├── libs │ │ │ ├── x86 │ │ │ │ └── libhello-jni.so │ │ │ ├── mips │ │ │ │ └── libhello-jni.so │ │ │ ├── armeabi │ │ │ │ └── libhello-jni.so │ │ │ ├── mips64 │ │ │ │ └── libhello-jni.so │ │ │ ├── x86_64 │ │ │ │ └── libhello-jni.so │ │ │ ├── arm64-v8a │ │ │ │ └── libhello-jni.so │ │ │ └── armeabi-v7a │ │ │ │ └── libhello-jni.so │ │ │ ├── obj │ │ │ └── local │ │ │ │ ├── x86 │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ │ └── hello-jni │ │ │ │ │ ├── hello-jni.o │ │ │ │ │ └── hello-jni.o.d │ │ │ │ ├── mips │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ │ └── hello-jni │ │ │ │ │ ├── hello-jni.o │ │ │ │ │ └── hello-jni.o.d │ │ │ │ ├── armeabi │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ │ └── hello-jni │ │ │ │ │ ├── hello-jni.o │ │ │ │ │ └── hello-jni.o.d │ │ │ │ ├── mips64 │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ │ └── hello-jni │ │ │ │ │ ├── hello-jni.o │ │ │ │ │ └── hello-jni.o.d │ │ │ │ ├── x86_64 │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ │ └── hello-jni │ │ │ │ │ ├── hello-jni.o │ │ │ │ │ └── hello-jni.o.d │ │ │ │ ├── arm64-v8a │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ │ └── hello-jni │ │ │ │ │ ├── hello-jni.o │ │ │ │ │ └── hello-jni.o.d │ │ │ │ └── armeabi-v7a │ │ │ │ ├── libhello-jni.so │ │ │ │ └── objs │ │ │ │ └── hello-jni │ │ │ │ ├── hello-jni.o │ │ │ │ └── hello-jni.o.d │ │ │ ├── AndroidManifest.xml │ │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── hello-jni.c │ │ │ └── java │ │ │ └── com │ │ │ └── lb6905 │ │ │ └── jnidemo │ │ │ ├── TestClass.java │ │ │ └── MainActivity.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── OpenGLES ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── lb377463323 │ │ │ └── opengles │ │ │ ├── GLActivity.java │ │ │ ├── GLRenderer.java │ │ │ └── Triangle.java │ ├── build.gradle │ └── proguard-rules.pro ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── Camera ├── CameraV1 │ ├── app │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── ids.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── lb377463323 │ │ │ │ └── camera1 │ │ │ │ └── MainActivity.java │ │ ├── proguard-rules.pro │ │ └── build.gradle │ ├── settings.gradle │ ├── README.md │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew.bat │ └── gradlew └── CameraV2 │ ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── gallery_imageview.xml │ │ │ │ └── activity_main.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── lb377463323 │ │ │ └── camera2 │ │ │ └── MainActivity.java │ ├── proguard-rules.pro │ └── build.gradle │ ├── settings.gradle │ ├── .gitignore │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew.bat │ └── gradlew └── README.md /Filter/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /JNIDemo/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /OpenGLES/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Filter/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /JNIDemo/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /OpenGLES/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Camera/CameraV1/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Camera/CameraV2/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Camera/CameraV1/README.md: -------------------------------------------------------------------------------- 1 | This is a CameraV1 Demo,it has preview、switch camera、take picture function. 2 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | JNIDemo 3 | 4 | -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | OpenGLES 3 | 4 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | FilterTestBed 3 | 4 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CameraV1 3 | 4 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CameraV2 3 | 4 | -------------------------------------------------------------------------------- /Filter/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Filter/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Filter/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /JNIDemo/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /OpenGLES/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/x86/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/x86/libhello-jni.so -------------------------------------------------------------------------------- /Camera/CameraV2/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/mips/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/mips/libhello-jni.so -------------------------------------------------------------------------------- /Camera/CameraV1/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV1/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Camera/CameraV2/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV2/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/armeabi/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/armeabi/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/mips64/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/mips64/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/x86_64/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/x86_64/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/x86/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/x86/libhello-jni.so -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Filter/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Filter/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Filter/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Filter/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Filter/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/arm64-v8a/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/arm64-v8a/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/mips/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/mips/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Filter/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Filter/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Filter/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Filter/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/libs/armeabi-v7a/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/libs/armeabi-v7a/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/armeabi/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/armeabi/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/mips64/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/mips64/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/x86_64/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/x86_64/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/arm64-v8a/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/arm64-v8a/libhello-jni.so -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV1/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV1/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV2/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV2/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/armeabi-v7a/libhello-jni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/armeabi-v7a/libhello-jni.so -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /OpenGLES/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV1/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV1/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV2/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/mips/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/mips/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/x86/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/x86/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/OpenGLES/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Camera/CameraV1/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV1/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/Camera/CameraV2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/armeabi/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/armeabi/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/mips64/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/mips64/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/x86_64/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/x86_64/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/arm64-v8a/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/arm64-v8a/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/armeabi-v7a/objs/hello-jni/hello-jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lb377463323/GraphicsTestBed/HEAD/JNIDemo/app/src/main/obj/local/armeabi-v7a/objs/hello-jni/hello-jni.o -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/x86/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/x86/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/mips/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/mips/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/mips64/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/mips64/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/x86_64/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/x86_64/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/armeabi/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/armeabi/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/arm64-v8a/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/arm64-v8a/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/obj/local/armeabi-v7a/objs/hello-jni/hello-jni.o.d: -------------------------------------------------------------------------------- 1 | F:/Apps/jniDemo/JNIDemo/app/src/main/obj/local/armeabi-v7a/objs/hello-jni/hello-jni.o: \ 2 | F:/Apps/jniDemo/JNIDemo/app/src/main/jni/hello-jni.c 3 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/raw/base_vertex_shader.glsl: -------------------------------------------------------------------------------- 1 | attribute vec4 aPosition; 2 | uniform mat4 uTextureMatrix; 3 | attribute vec4 aTextureCoordinate; 4 | varying vec2 vTextureCoord; 5 | void main() 6 | { 7 | vTextureCoord = (uTextureMatrix * aTextureCoordinate).xy; 8 | gl_Position = aPosition; 9 | } -------------------------------------------------------------------------------- /Filter/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip 7 | -------------------------------------------------------------------------------- /JNIDemo/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jun 21 09:31:24 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip 7 | -------------------------------------------------------------------------------- /OpenGLES/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Jul 17 15:58:28 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip 7 | -------------------------------------------------------------------------------- /Camera/CameraV1/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip 7 | -------------------------------------------------------------------------------- /Camera/CameraV2/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip 7 | -------------------------------------------------------------------------------- /Filter/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/raw/base_fragment_shader.glsl: -------------------------------------------------------------------------------- 1 | #extension GL_OES_EGL_image_external : require 2 | precision mediump float; 3 | uniform samplerExternalOES uTextureSampler; 4 | varying vec2 vTextureCoord; 5 | void main() 6 | { 7 | vec4 vCameraColor = texture2D(uTextureSampler, vTextureCoord); 8 | float fGrayColor = (0.3*vCameraColor.r + 0.59*vCameraColor.g + 0.11*vCameraColor.b); 9 | gl_FragColor = vec4(fGrayColor, fGrayColor, fGrayColor, 1.0); 10 | } 11 | -------------------------------------------------------------------------------- /Filter/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /OpenGLES/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/layout/gallery_imageview.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 11 | 12 | -------------------------------------------------------------------------------- /Filter/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /JNIDemo/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /OpenGLES/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /Camera/CameraV1/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /Camera/CameraV2/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /Filter/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Filter/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /OpenGLES/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "com.lb377463323.opengles" 8 | minSdkVersion 15 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | compile 'com.android.support:appcompat-v7:25.3.1' 24 | } 25 | -------------------------------------------------------------------------------- /Filter/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.liubing.filtertestbed" 9 | minSdkVersion 21 10 | targetSdkVersion 25 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(include: ['*.jar'], dir: 'libs') 24 | compile 'com.android.support:appcompat-v7:25.3.1' 25 | } 26 | -------------------------------------------------------------------------------- /Filter/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\AndroidSdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\AndroidSdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/liubing/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.lb377463323.camera2" 9 | minSdkVersion 21 10 | targetSdkVersion 25 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(include: ['*.jar'], dir: 'libs') 24 | compile 'com.android.support:appcompat-v7:25.1.1' 25 | compile 'com.android.support:recyclerview-v7:25.1.1' 26 | } 27 | -------------------------------------------------------------------------------- /Camera/CameraV1/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "com.lb377463323.camera1" 8 | minSdkVersion 15 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(include: ['*.jar'], dir: 'libs') 24 | compile 'com.android.support:appcompat-v7:25.1.1' 25 | } 26 | -------------------------------------------------------------------------------- /OpenGLES/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /Camera/CameraV1/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /OpenGLES/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /JNIDemo/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | android.useDeprecatedNDK=true 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/jni/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2009 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | 19 | LOCAL_MODULE := hello-jni 20 | LOCAL_SRC_FILES := hello-jni.c 21 | 22 | include $(BUILD_SHARED_LIBRARY) 23 | -------------------------------------------------------------------------------- /JNIDemo/app/src/main/java/com/lb6905/jnidemo/TestClass.java: -------------------------------------------------------------------------------- 1 | package com.lb6905.jnidemo; 2 | 3 | import android.util.Log; 4 | 5 | /** 6 | * Created by lb6905 on 2017/7/18. 7 | */ 8 | 9 | public class TestClass { 10 | private final static String TAG = "TestClass"; 11 | 12 | public TestClass(){ 13 | Log.i(TAG, "TestClass"); 14 | } 15 | 16 | public void test(int index) { 17 | Log.i(TAG, "test : " + index); 18 | } 19 | 20 | public static void testStatic(String str) { 21 | Log.i(TAG, "testStatic : " + str); 22 | } 23 | 24 | public static class InnerClass { 25 | private int num; 26 | public InnerClass() { 27 | Log.i(TAG, "InnerClass"); 28 | } 29 | 30 | public void setInt(int n) { 31 | num = n; 32 | Log.i(TAG, "setInt: num = " + num); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Filter/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /JNIDemo/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Camera/CameraV2/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /JNIDemo/app/src/main/java/com/lb6905/jnidemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.lb6905.jnidemo; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | public class MainActivity extends AppCompatActivity { 8 | private TextView mTextView; 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_main); 14 | mTextView = (TextView) findViewById(R.id.tv_jni); 15 | int[] arr = getArray(); 16 | mTextView.setText(stringFromJNI()); 17 | JNIReflect(); 18 | } 19 | 20 | public native String stringFromJNI(); 21 | public native void setArray(int[] array); 22 | public native int[] getArray(); 23 | public native void JNIReflect(); 24 | 25 | static { 26 | System.loadLibrary("hello-jni"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Camera/CameraV2/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 |