Documentation
¶
Overview ¶
Video decoder setup example.
Demonstrates how to create an H.264 video decoder using AMediaCodec, build a format describing the input stream, and configure the codec. The codec is configured without a surface (nil window) and without DRM (zero-value Crypto), which is the pattern for buffer-mode decoding.
On a real device this would be followed by Start(), the input/output buffer loop (QueueInputBuffer / DequeueOutputBuffer / ReleaseOutputBuffer), and finally Stop(). Here we stop at Configure to illustrate the setup pattern without requiring an actual bitstream or display surface.
This program must run on an Android device with NDK media support.
Click to show internal directories.
Click to hide internal directories.