From ebc8d92803ccaf34d46a56acd12fc9baeda15ee0 Mon Sep 17 00:00:00 2001 From: zhanghongran Date: Wed, 29 May 2024 11:27:33 +0800 Subject: [PATCH] =?UTF-8?q?avcodec=E8=A7=A3=E7=A0=81=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=9B=BE=E5=83=8F=E7=9C=9F=E5=AE=9E=E5=AE=BD?= =?UTF-8?q?=E9=AB=98?= 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 ad017d65b..186a6ed28 100644 --- a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json +++ b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json @@ -335,6 +335,14 @@ "first_introduced": "12", "name": "OH_MD_KEY_VIDEO_SLICE_HEIGHT" }, + { + "first_introduced": "12", + "name": "OH_MD_KEY_VIDEO_PIC_WIDTH" + }, + { + "first_introduced": "12", + "name": "OH_MD_KEY_VIDEO_PIC_HEIGHT" + }, { "first_introduced": "12", "name": "OH_MD_KEY_VIDEO_ENABLE_LOW_LATENCY" diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index 765500375..ccb023e1d 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -510,6 +510,24 @@ extern const char *OH_MD_KEY_VIDEO_STRIDE; * @since 12 */ extern const char *OH_MD_KEY_VIDEO_SLICE_HEIGHT; +/** + * @brief Key for describing the valid picture width of the video, value type is int32_t. + * Get the value from an OH_AVFormat instance, which obtained by calling {@link OH_VideoDecoder_GetOutputDescription} + * or {@link OH_AVCodecOnStreamChanged}. + * + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 12 + */ +extern const char *OH_MD_KEY_VIDEO_PIC_WIDTH; +/** + * @brief Key for describing the valid picture height of the video, value type is int32_t. + * Get the value from an OH_AVFormat instance, which obtained by calling {@link OH_VideoDecoder_GetOutputDescription} + * or {@link OH_AVCodecOnStreamChanged}. + * + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 12 + */ +extern const char *OH_MD_KEY_VIDEO_PIC_HEIGHT; /** * @brief Key to enable the low latency mode, value type is int32_t (0 or 1):1 is enabled, 0 otherwise. * If enabled, the video encoder or video decoder doesn't hold input and output data more than required by -- Gitee