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 d25ea96d9a10382fab43bed53aa4bb9455e918c5..1a35101692435394f9ea59e2d1372c675480606c 100644 --- a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json +++ b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json @@ -331,6 +331,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 a567448cf69b8ed9d760e075f3f59530e7aeb841..b2d50ac66710e2ba5831ca3dd3991fe9d0d52da9 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -502,6 +502,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