Chapter     12

Native Graphics API

Needless to say, games and multimedia applications benefit from the Android NDK the most. These applications rely on native code for performance-critical operations. Having the capability to render graphics directly to the display from within the native layer is a highly crucial for such applications. This chapter will explore the following set of native graphics APIs that are provided through the Android NDK:

  • JNI Graphics API (aka Bitmap API)
  • OpenGL ES 1.x and 2.0
  • Native Window API

Throughout this chapter, you will be building an AVI video player application that will be used as a test bed to demonstrate rendering of video frames through the various native graphics APIs that are available.

Availability ...

Get Pro Android C++ with the NDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.