Low-latency decoding in MediaCodec
Stay organized with collections
Save and categorize content based on your preferences.
This feature was added in Android 11 to enable media decoding with low
latency, which is critical for real-time apps. The SoC partners need to provide a
decoder driver to support this feature. The media framework signals this mode using
Codec 2.0/OMX configuration parameters available in AOSP.
See the
reference implementation for enabling this feature.
Implementation
The SoC partners need to implement decoder drivers to support this feature. App
developers can use the new API to use the feature. Partners need to provide decoder
drivers. This is a new public API that hasn't been used. There's no need to implement a
system UI or an extension for this feature.
Customization
The API allows users to turn this feature on or off. If turned on, the decoder must return
decoded frames as soon as possible based on the coding standard
(without waiting for further input) and must stay awake. If turned off, the decoder
can use power optimizations that may result in decoded frames being returned later
than strictly necessary, and the decoder may power down when stalled.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-28 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-28 UTC."]]