From 134a744a38e1be2de73f84625ad6d67725cac3ed Mon Sep 17 00:00:00 2001 From: zhanghongran Date: Sun, 28 Apr 2024 21:12:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9EHDR2SDR=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanghongran --- multimedia/av_codec/native_avcodec_base.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index 7a2f56884..fae0ef2db 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 OH_NativeBuffer_ColorSpace. Supported values: \n + * OH_COLORSPACE_BT709_LIMIT. 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 -- Gitee From c6f7ed5c85bd5376c7bbdc4e296f522c7b279fcb Mon Sep 17 00:00:00 2001 From: zhanghongran Date: Mon, 29 Apr 2024 09:03:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9Eavcodec=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanghongran --- multimedia/av_codec/native_avcodec_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index fae0ef2db..8c05b974f 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -540,8 +540,8 @@ 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 OH_NativeBuffer_ColorSpace. Supported values: \n - * OH_COLORSPACE_BT709_LIMIT. Only if the input of decoder is HDR Vivid video, the output of the decoder is SDR video + * 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 -- Gitee