diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index 7a2f56884630f4686b45917127ea941a06b7a3ad..8c05b974f46e0accb21b00f6ec9dccba1d190c31 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -537,6 +537,18 @@ extern const char *OH_MD_KEY_VIDEO_ENCODER_QP_MAX; */ extern const char *OH_MD_KEY_VIDEO_ENCODER_QP_MIN; +/** + * @brief Key for color space conversion when decoding video. + * When configuring decoder, set the value of the key to point the output color space. \n + * See {@link OH_NativeBuffer_ColorSpace}. Supported values: {@link OH_COLORSPACE_BT709_LIMIT}.\n + * Only if the input of decoder is HDR Vivid video, the output of the decoder is SDR video + * with color space BT709. Otherwise, the decoder reports an error through decoder's callback. + * + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 12 + */ +extern const char *OH_MD_KEY_VIDEO_DECODER_OUTPUT_COLORSPACE; + /** * @brief Media type. * @syscap SystemCapability.Multimedia.Media.CodecBase