mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 17:31:12 +00:00
!10149 检查视频格式是否是Hdr
Merge pull request !10149 from caochuan/checkVideoIsHdrVivid
This commit is contained in:
commit
1ad3e86dac
31
api/@ohos.multimedia.media.d.ts
vendored
31
api/@ohos.multimedia.media.d.ts
vendored
@ -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,
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user