O'Reilly logo

Pro Android Apps Performance Optimization by Hervé Guihot

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Native RenderScript APIs

Your RenderScript code has access to a limited set of APIs as it cannot simply call APIs from the NDK or C library. The RenderScript APIs are defined in six header files, located in the SDK's platform/android-xx/renderscript/include (where xx is the API level, for example, 13):

  • rs_types.rsh
  • rs_core.rsh
  • rs_cl.rsh
  • rs_math.rsh
  • rs_graphics.rsh
  • rs_time.rsh

In Ice Cream Sandwich, the RenderScript APIs are defined in 12 header files. In addition to the six header files above, the following six files were added:

  • rs_allocation.rsh
  • rs_atomic.rsh
  • rs_debug.rsh
  • rs_matrix.rsh
  • rs_object.rsh
  • rs_quaternion.rsh

Again, as online documentation for RenderScript is currently quite scant, it is recommended you review these files. One of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required