mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Set ColorInfo in decoder configuration format.
Pass the color info and HDR static metadata when configuring the decoder
using MediaFormatUtil.maybeSetColorInfo.
PiperOrigin-RevId: 460424985
(cherry picked from commit 66e1229988)
This commit is contained in:
parent
fa08d8e219
commit
2ea90e7abd
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||
MediaFormatUtil.maybeSetInteger(
|
||||
mediaFormat, MediaFormat.KEY_MAX_INPUT_SIZE, format.maxInputSize);
|
||||
MediaFormatUtil.setCsdBuffers(mediaFormat, format.initializationData);
|
||||
MediaFormatUtil.maybeSetColorInfo(mediaFormat, format.colorInfo);
|
||||
if (decoderSupportsKeyAllowFrameDrop) {
|
||||
// This key ensures no frame dropping when the decoder's output surface is full. This allows
|
||||
// transformer to decode as many frames as possible in one render cycle.
|
||||
|
|
|
|||
Loading…
Reference in a new issue