!10149 检查视频格式是否是Hdr

Merge pull request !10149 from caochuan/checkVideoIsHdrVivid
This commit is contained in:
openharmony_ci 2024-04-08 09:33:07 +00:00 committed by Gitee
commit 1ad3e86dac
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -566,6 +566,37 @@ declare namespace media {
* @since 11
*/
videoOrientation?: string;
/**
* This value exists if the video is HDR video.
* @type { ?HdrType }
* @readonly
* @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor
* @since 12
*/
hdrType?: HdrType;
}
/**
* Enumerates options about the HDR Type of the video.
* @enum { number }
* @syscap SystemCapability.Multimedia.Media.Core
* @since 12
*/
enum HdrType {
/**
* This option is used to mark none HDR type.
* @syscap SystemCapability.Multimedia.Media.Core
* @since 12
*/
AV_HDR_TYPE_NONE = 0,
/**
* This option is used to mark HDR Vivid type.
* @syscap SystemCapability.Multimedia.Media.Core
* @since 12
*/
AV_HDR_TYPE_VIVID = 1,
}
/**