Welcome to Grafika, a dumping ground for Android graphics & media hacks. A collection of hacks exercising graphics features. An SDK app, developed for API 18 (Android 4.3). While some of the code may work with older versions of Android, some sporatic work is done to support them. Open source (Apache 2 license), copyright by Google. So you can use the code according to the terms of the license, A perpetual work-in-progress. It's updated whenever the need arises. To some extent, Grafika can be treated as a companion to the Android System-Level Graphics Architecture document. The doc explains the technology that the examples rely on, and uses some of Grafika's activities as examples. Features are added to Grafika as the need arises, often in response to developer complaints about correctness or performance problems in the platform.
Features
- All code is written in the Java programming language
- Shows GL rendering with on-the-fly surface size changes
- Simple activity with three overlapping SurfaceViews, one marked secure
- Simultaneously draws to the display and to a video encoder with OpenGL ES, using framebuffer objects to avoid re-rendering
- Cross-fade from one video to another, recording the result
- Add features to the video player, like a slider for random access, and buttons for single-frame advance / rewind