From cd8fe4409872042948075b612e901997a7a64dde Mon Sep 17 00:00:00 2001 From: caochuan Date: Thu, 25 Apr 2024 16:48:07 +0800 Subject: [PATCH] Feature: Add dynamic_range_type field to the photos table Signed-off-by: caochuan --- api/@ohos.file.photoAccessHelper.d.ts | 33 ++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index 40d1eead7..cc5e66f3e 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -160,6 +160,30 @@ declare namespace photoAccessHelper { MOVING_PHOTO = 3, } + /** + * Enumeration of dynamic range type + * + * @enum { number } DynamicRangeType + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @since 12 + */ + enum DynamicRangeType { + /** + * SDR(Standard-Dynamic Range) format + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @since 12 + */ + SDR = 0, + /** + * HDR(High-Dynamic Range) format + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @since 12 + */ + HDR = 1 + } + /** * Photo asset position * @@ -1572,7 +1596,14 @@ declare namespace photoAccessHelper { * @systemapi * @since 12 */ - MOVING_PHOTO_EFFECT_MODE = 'moving_photo_effect_mode' + MOVING_PHOTO_EFFECT_MODE = 'moving_photo_effect_mode', + /** + * Dynamic range type of the asset, read only + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @since 12 + */ + DYNAMIC_RANGE_TYPE = 'dynamic_range_type' } /**