Giter Site home page Giter Site logo

gpuimagedemo's Introduction

GPUImageDemo

一、应用截图

在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述

二、前言

GPUImage 是一个开源的图像渲染的库,使用它可以轻松实现很多滤镜效果,也可以很轻松的定义和实现自己特有的滤镜效果。

地址:https://github.com/cats-oss/android-gpuimage

三、依赖工程

要想使用 GPUImage,使用 Android Studio 只需要在 build.gradle 里面添加相关的依赖即可。

implementation 'jp.co.cyberagent.android:gpuimage:2.0.3'

四、GPUImage 类介绍

1. 目录结构

|--- filter : 这个包下面是各种滤镜效果类。
|--- util : 这个包下面是一些工具类。
|--- GLTextureView : 继承自 TextureView,和 GLSurfaceView 功能类似。
|--- GPUImage : 核心实现类,配合 GLSurfaceView/GLTextureView 和 GPUImageFilter 实现渲染。
|--- GPUImageNativeLibrary : 包含一些图片转码的 native 方法。
|--- GPUImageRenderer : 实际的渲染者。
|--- GPUImageView : 继承自 FrameLayout,封装了一个 GPUImage 和 GPUImageFilter,使用起来更方便。

gpuimagedemo's People

Contributors

afei-cn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.