From 38d168503cb73021b8d92be951a3d1070c2532c8 Mon Sep 17 00:00:00 2001 From: zhanghongran Date: Thu, 23 May 2024 15:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=BC=96=E7=A0=81=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=BE=93=E5=87=BAqp=E5=92=8Cmse=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanghongran --- .../libnative_media_codecbase.ndk.json | 8 ++++++++ multimedia/av_codec/native_avcodec_base.h | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json index 76058aad7..d7b148fc1 100644 --- a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json +++ b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json @@ -351,6 +351,14 @@ "first_introduced": "12", "name": "OH_MD_KEY_VIDEO_ENCODER_QP_MIN" }, + { + "first_introduced": "12", + "name": "OH_MD_KEY_VIDEO_ENCODER_QP_AVERAGE" + }, + { + "first_introduced": "12", + "name": "OH_MD_KEY_VIDEO_ENCODER_MSE" + }, { "first_introduced": "12", "name": "OH_MD_KEY_DECODING_TIMESTAMP" diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index 6e9cc6a54..550a9f9a4 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -544,6 +544,24 @@ extern const char *OH_MD_KEY_VIDEO_ENCODER_QP_MAX; * @since 12 */ extern const char *OH_MD_KEY_VIDEO_ENCODER_QP_MIN; +/** + * @brief Key for describing the video frame averge quantization parameter, value type is int32_t. + * This is a part of a video encoder statistics export feature. This value is emitted from video encoder for a video + * frame. + * + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 12 + */ +extern const char *OH_MD_KEY_VIDEO_ENCODER_QP_AVERAGE; +/** + * @brief Key for describing video frame mean squared error, value type is double. + * This is a part of a video encoder statistics export feature. This value is emitted from video encoder for a video + * frame. + * + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 12 + */ +extern const char *OH_MD_KEY_VIDEO_ENCODER_MSE; /** * @brief Key for decoding timestamp of the buffer in microseconds, value type is int64_t. * -- Gitee