Share via


MediaCodec.ParameterKeyHdr10PlusInfo Field

Definition

Set the HDR10+ metadata on the next queued input frame.

[Android.Runtime.Register("PARAMETER_KEY_HDR10_PLUS_INFO", ApiSince=29)]
public const string ParameterKeyHdr10PlusInfo;
[<Android.Runtime.Register("PARAMETER_KEY_HDR10_PLUS_INFO", ApiSince=29)>]
val mutable ParameterKeyHdr10PlusInfo : string

Field Value

Attributes

Remarks

Set the HDR10+ metadata on the next queued input frame.

Provide a byte array of data that's conforming to the user_data_registered_itu_t_t35() syntax of SEI message for ST 2094-40.

For decoders:

When a decoder is configured for one of the HDR10+ profiles that uses out-of-band metadata (such as MediaCodecInfo.CodecProfileLevel#VP9Profile2HDR10Plus or MediaCodecInfo.CodecProfileLevel#VP9Profile3HDR10Plus), this parameter sets the HDR10+ metadata on the next input buffer queued to the decoder. A decoder supporting these profiles must propagate the metadata to the format of the output buffer corresponding to this particular input buffer (under key MediaFormat#KEY_HDR10_PLUS_INFO). The metadata should be applied to that output buffer and the buffers following it (in display order), until the next output buffer (in display order) upon which an HDR10+ metadata is set.

This parameter shouldn't be set if the decoder is not configured for an HDR10+ profile that uses out-of-band metadata. In particular, it shouldn't be set for HDR10+ profiles that uses in-band metadata where the metadata is embedded in the input buffers, for example MediaCodecInfo.CodecProfileLevel#HEVCProfileMain10HDR10Plus.

For encoders:

When an encoder is configured for one of the HDR10+ profiles and the operates in byte buffer input mode (instead of surface input mode), this parameter sets the HDR10+ metadata on the next input buffer queued to the encoder. For the HDR10+ profiles that uses out-of-band metadata (such as MediaCodecInfo.CodecProfileLevel#VP9Profile2HDR10Plus, or MediaCodecInfo.CodecProfileLevel#VP9Profile3HDR10Plus), the metadata must be propagated to the format of the output buffer corresponding to this particular input buffer (under key MediaFormat#KEY_HDR10_PLUS_INFO). For the HDR10+ profiles that uses in-band metadata (such as MediaCodecInfo.CodecProfileLevel#HEVCProfileMain10HDR10Plus), the metadata info must be embedded in the corresponding output buffer itself.

This parameter shouldn't be set if the encoder is not configured for an HDR10+ profile, or if it's operating in surface input mode.

Java documentation for android.media.MediaCodec.PARAMETER_KEY_HDR10_PLUS_INFO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to