Book Image

Android NDK: Beginner's Guide

By : Sylvain Ratabouil
Book Image

Android NDK: Beginner's Guide

By: Sylvain Ratabouil

Overview of this book

Table of Contents (18 chapters)
Android NDK Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Executing a predefined Intrinsic


RenderScript provides a few built-in functions, mainly dedicated to Image processing, called Intrinsics. With these, blending images, such as in Photoshop, blurring them, or even decoding raw YUV images from the camera, (see Chapter 4, Calling Java Back from Native Code, for a slower alternative) becomes simple and highly efficient. Indeed, Intrinsics are highly optimized and can be considered as one of the best implementations in their domain.

To see how Intrinsics work, let's create a new project that takes an input image and applies a blur effect to it.

Note

The resulting project is provided with this book under the name RenderScript_Part1.