decoder-setup

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL