Book Image

Mastering Android NDK

Book Image

Mastering Android NDK

Overview of this book

Android NDK is used for multimedia applications that require direct access to system resources. NDK is also the key for portability, which in turn allows a reasonably comfortable development and debugging process using familiar tools such as GCC and Clang toolchains. This is a hands-on guide to extending your game development skills with Android NDK. The book takes you through many clear, step-by-step example applications to help you further explore the features of Android NDK and some popular C++ libraries and boost your productivity by debugging the development process. Through the course of this book, you will learn how to write portable multi-threaded native code, use HTTP networking in C++, play audio files, use OpenGL ES 3, and render high-quality text. Each chapter aims to take you one step closer to building your application. By the end of this book, you will be able to create an engaging, complete gaming application.
Table of Contents (17 chapters)
Mastering Android NDK
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Theora


Theora is a free and open video compression format from the Xiph.Org Foundation. Like all our multimedia technology, it can be used to distribute movies and video online and on-disc without the licensing and royalty fees or any other vendor lock-ins associated with many other video formats. It is available at http://www.theora.org.

To avoid confusion, we will introduce some nomenclature. By bitstream, we assume some sequence of bytes. Logical bitstream is some representation of video or audio data. Codec, or COder-DECoder, is a set of functions that encodes and decodes logical bitstreams into a set of compact representations named packed bitstreams. Since usual multimedia data consists of multiple logical bitstreams, the compact representation must be split into small chunks, which are called packets. Each packet has a specific size, a timestamp and a checksum associated with it to guarantee the packet integrity. The scheme for bitstreams and packets is shown in the following image...