diff --git a/api/@ohos.multimedia.movingphotoview.d.ts b/api/@ohos.multimedia.movingphotoview.d.ts index 44055a162b614aea10094a115b66231f2c134a32..6b9b42d5a3f5d90d2a3aded108aa2a4d249b95aa 100644 --- a/api/@ohos.multimedia.movingphotoview.d.ts +++ b/api/@ohos.multimedia.movingphotoview.d.ts @@ -20,102 +20,6 @@ import photoAccessHelper from './@ohos.file.photoAccessHelper'; -/** - * Enumerates pixel map formats. - * - * @enum { number } - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ -export declare enum PixelMapFormat { - /** - * Indicates an unknown format. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ - UNKNOWN = 0, - /** - * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits) - * and are stored from the higher-order to the lower-order bits. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ - RGBA_8888 = 1, - /** - * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits - * and are stored from the higher-order to the lower-order bits. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ - NV21 = 2, - /** - * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components: - * R(10bits), G(10bits), B(10bits), A(2bits) and are stored from the higher-order to the lower-order bits. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @since 14 - */ - RGBA_1010102 = 3, - - /** - * Indicates that the storage order is to store Y first and then U V alternately each occupies 10 bits - * and are stored from the higher-order to the lower-order bits. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @since 14 - */ - YCBCR_P010 = 4, - - /** - * Indicates that the storage order is to store Y first and then V U alternately each occupies 10 bits - * and are stored from the higher-order to the lower-order bits. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @since 14 - */ - YCRCB_P010 = 5 -} -/** - * Dynamic range mode of moving photo. - * - * @enum { number } - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ -export declare enum DynamicRangeMode { - /** - * Allow image content to use an unrestricted extended range - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ - HIGH = 0, - /** - * Allow image content to use some extended range - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ - CONSTRAINT = 1, - /** - * Restrict the image content to dynamic range to the standard range - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @since 14 - */ - STANDARD = 2, -} /** * Defines the moving photo view options. * @@ -123,7 +27,8 @@ export declare enum DynamicRangeMode { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare interface MovingPhotoViewOptions { /** @@ -133,7 +38,8 @@ declare interface MovingPhotoViewOptions { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ movingPhoto: photoAccessHelper.MovingPhoto; /** @@ -143,7 +49,8 @@ declare interface MovingPhotoViewOptions { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ controller?: MovingPhotoViewController; /** @@ -153,16 +60,19 @@ declare interface MovingPhotoViewOptions { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ imageAIOptions?: ImageAIOptions; + /** * format of MovingPhotoView. * * @type { ?PixelMapFormat } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @systemapi - * @since 14 + * @since arkts{ '1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ movingPhotoFormat?: PixelMapFormat; /** @@ -171,7 +81,8 @@ declare interface MovingPhotoViewOptions { * @type { ?DynamicRangeMode } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @systemapi - * @since 14 + * @since arkts{ '1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ dynamicRangeMode?: DynamicRangeMode; /** @@ -180,7 +91,8 @@ declare interface MovingPhotoViewOptions { * @type { ?boolean } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @systemapi - * @since 19 + * @since arkts{ '1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ playWithMask?: boolean; } @@ -191,7 +103,8 @@ declare interface MovingPhotoViewOptions { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface MovingPhotoViewInterface { /** @@ -202,7 +115,8 @@ interface MovingPhotoViewInterface { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ (options: MovingPhotoViewOptions): MovingPhotoViewAttribute; } @@ -214,7 +128,8 @@ interface MovingPhotoViewInterface { * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare type MovingPhotoViewEventCallback = () => void; @@ -225,7 +140,8 @@ declare type MovingPhotoViewEventCallback = () => void; * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare class MovingPhotoViewAttribute extends CommonMethod { /** @@ -236,7 +152,8 @@ declare class MovingPhotoViewAttribute extends CommonMethod