How to use GPUImage library with Android- Part 1 GPUImage Integration?

Before proceed to article lets discuss about the “GPU”. Now a day’s every device has CPU and GPU. Well everyone is aware of CPU. GPU stands for Graphics Processing Unit. Basically used for image and video rendering. The processing of images is done using GPU. CyberAgent has created a library based on GPU, which is used for rendering the images. Consider an example of editing images using various filters.

While working on GPUImage library it requires bit knowledge of OpenGL language and C++. GPUImage library is based on C++.

 

Get GPUImage library from: – https://github.com/CyberAgent/android-gpuimage.

 

Requirements:

1) Latest Android Studio with NDK integrated (Download NDK from Android Studio. From Android Studio click on File>Project Structure>SDK Location. There you will find option to download NDK.)

2) GPUImage library

3) Android device or third party emulator (Most preferable Genymotion)

 

Integration of GPUImage library:

 

a) Create a new project under Android Studio. Configure your project and click on next as shown below.

create_new_project

 

b) Select minimum SDK API level 14 or above and click next. Choose your preferable activity and click finish.

setting_api_level

 

c) Now click on File>New>Import Module. Select the library path (Library will found under the GPUImage project) and finish.

select_library_path

 

d) Next right click on the project and select open module settings. Under Modules section you will find two modules “app” and “library”. Select ‘app’ and click on Dependencies tab. From extreme right click “+” button and select Module Dependency. Choose “library” and click OK. Wait a while let the gradle do the process.

set_module_dependency

Before proceed to article lets discuss about the “GPU”. Now a day’s every device has CPU and GPU. Well everyone is aware of CPU. GPU stands for Graphics Processing Unit. Basically used for image and video rendering. The processing of images is done using GPU. CyberAgent has created a library based on GPU, which is used for rendering the images. Consider an example of editing images using various filters.

While working on GPUImage library it requires bit knowledge of OpenGL language and C++. GPUImage library is based on C++.

 

Get GPUImage library from: – https://github.com/CyberAgent/android-gpuimage.

 

 

 

Recent Posts

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt