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 ad017d65b52eadaaf43878049b5995cc9e735b12..186a6ed286a0d8637904c846702ef2fdf4c0d4e2 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 76550037591868d7492a4e71a88c3793b1835281..ccb023e1d7efde531556e9732873ff19144f5cc3 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