GPUImage

所属分类:Java编程
开发工具:Java
文件大小:1401KB
下载次数:0
上传日期:2020-03-25 08:13:12
上 传 者6771186
说明:  支持实时摄像头滤镜的GPUImage是iOS下一个开源的基于GPU的图像处理库,提供各种各样的图像处理滤镜,并且支持照相机和摄像机的实时滤镜。GPUImage for Android是它在Android下的实现,同样也是开源
(GPUImage, which supports real-time camera filters, is the next open source GPU-based image processing library for iOS. It provides a variety of image processing filters, and supports real-time filters for cameras and camcorders. GPUImage for Android is its implementation under Android, which is also open source)

文件列表:
GPUImage\library\.classpath (475, 2014-12-16)
GPUImage\library\.project (811, 2014-12-16)
GPUImage\library\.settings\org.eclipse.jdt.core.prefs (177, 2014-12-16)
GPUImage\library\AndroidManifest.xml (302, 2014-12-16)
GPUImage\library\bin\AndroidManifest.xml (302, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\BuildConfig.class (375, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$1.class (1115, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$LoadImageFileTask.class (1880, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$LoadImageTask.class (5576, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$LoadImageUriTask.class (2794, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$OnPictureSavedListener.class (306, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$ResponseListener.class (369, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$SaveTask$1$1.class (1428, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$SaveTask$1.class (1902, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$SaveTask.class (4035, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage$ScaleType.class (1253, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage.class (11598, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage3x3ConvolutionFilter.class (2960, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImage3x3TextureSamplingFilter.class (3636, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageAddBlendFilter.class (1616, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageAlphaBlendFilter.class (1141, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageBrightnessFilter.class (1694, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageChromaKeyBlendFilter.class (3058, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageColorBlendFilter.class (1754, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageColorBurnBlendFilter.class (1000, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageColorDodgeBlendFilter.class (1529, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageColorInvertFilter.class (982, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageColorMatrixFilter.class (2183, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageContrastFilter.class (1700, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageDarkenBlendFilter.class (1005, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageDifferenceBlendFilter.class (972, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageDirectionalSobelEdgeDetectionFilter.class (2537, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageDissolveBlendFilter.class (1111, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageDivideBlendFilter.class (1888, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageEmbossFilter.class (951, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageExclusionBlendFilter.class (1133, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageExposureFilter.class (1680, 2014-12-16)
GPUImage\library\bin\classes\jp\co\cyberagent\android\gpuimage\GPUImageFilter$1.class (860, 2014-12-16)
... ...

# GPUImage for Android Idea from: [iOS GPUImage framework](https://github.com/BradLarson/GPUImage) Goal is to have something as similar to GPUImage as possible. Vertex and fragment shaders are exactly the same. That way it makes it easier to port filters from GPUImage iOS to Android. ## Requirements * Android 2.2 or higher (OpenGL ES 2.0) ## Usage ### Include in own project GPUImage can be used as a library project or by copying the following files/folders to your libs folder. * library/libs/armeabi (only needed for camera live preview) * library/bin/gpuimage.jar ### Maven dependency jp.co.cyberagent.android.gpuimage gpuimage-library apklib (use current version here) If you want to use it with live camera preview, than you will need to add the following as well: jp.co.cyberagent.android.gpuimage gpuimage-library armeabi so (use current version here) ### Sample Code With preview: @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity); Uri imageUri = ...; mGPUImage = new GPUImage(this); mGPUImage.setGLSurfaceView((GLSurfaceView) findViewById(R.id.surfaceView)); mGPUImage.setImage(imageUri); // this loads image on the current thread, should be run in a thread mGPUImage.setFilter(new GPUImageSepiaFilter()); // Later when image should be saved saved: mGPUImage.saveToPictures("GPUImage", "ImageWithFilter.jpg", null); } Without preview: Uri imageUri = ...; mGPUImage = new GPUImage(context); mGPUImage.setFilter(new GPUImageSobelEdgeDetection()); mGPUImage.setImage(imageUri); mGPUImage.saveToPictures("GPUImage", "ImageWithFilter.jpg", null); ## Create libs/armeabi Run the following command in the library folder. Make sure you have android-ndk in your PATH. cd library ndk-build ### Maven Make sure that you run the clean target when using maven. mvn clean install ## License Copyright 2012 CyberAgent Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

近期下载者

相关文件


收藏者