1e41f4b71Sopenharmony_ci# Image_NativeModule
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe Image_NativeModule module provides image processing capabilities, including encoding and decoding an image and obtaining image data from the native layer.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciThe APIs of this module do not need to be imported through the JS interface. You can directly use the NDK to develop the features.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**Since**: 12
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci## Summary
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci### Files
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci| Name| Description| 
19e41f4b71Sopenharmony_ci| -------- | -------- |
20e41f4b71Sopenharmony_ci| [image_common.h](image__common_8h.md) | Declares the common enums and structs used by the image interface.| 
21e41f4b71Sopenharmony_ci| [image_native.h](image__native_8h.md) | Declares the cropping rectangle, size, and component data of an image.| 
22e41f4b71Sopenharmony_ci| [image_packer_native.h](image__packer__native_8h.md) | Declares the APIs for image encoding.| 
23e41f4b71Sopenharmony_ci| [image_receiver_native.h](image__receiver__native_8h.md) | Declares the APIs used to obtain image data from the native layer.| 
24e41f4b71Sopenharmony_ci| [image_source_native.h](image__source__native_8h.md) | Declares the APIs for image decoding.| 
25e41f4b71Sopenharmony_ci| [pixelmap_native.h](pixelmap__native_8h.md) | Declares the APIs for accessing a pixel map.| 
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci### Structs
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci| Name| Description| 
31e41f4b71Sopenharmony_ci| -------- | -------- |
32e41f4b71Sopenharmony_ci| struct  [Image_Size](_image___size.md) | Describes the image size. | 
33e41f4b71Sopenharmony_ci| struct  [Image_Region](_image___region.md) | Describes the region of an image to decode. | 
34e41f4b71Sopenharmony_ci| struct  [Image_String](_image___string.md) | Describes an image string. | 
35e41f4b71Sopenharmony_ci| struct  [OH_Pixelmap_HdrStaticMetadata](_o_h___pixelmap___hdr_static_metadata.md) | Describes the static metadata values available for the key **HDR_STATIC_METADATA**. | 
36e41f4b71Sopenharmony_ci| struct  [OH_Pixelmap_HdrDynamicMetadata](_o_h___pixelmap___hdr_dynamic_metadata.md) | Describes the dynamic metadata values available for the key **DR_DYNAMIC_METADATA**. | 
37e41f4b71Sopenharmony_ci| struct  [OH_Pixelmap_HdrGainmapMetadata](_o_h___pixelmap___hdr_gainmap_metadata.md) | Describes the gain map metadata values available for the key **HDR_GAINMAP_METADATA**. For details, see ISO 21496-1. | 
38e41f4b71Sopenharmony_ci| struct  [OH_Pixelmap_HdrMetadataValue](_o_h___pixelmap___hdr_metadata_value.md) | Describes the HDR metadata values used by the pixel map and available for the key **OH_Pixelmap_HdrMetadataKey**. | 
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci### Types
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci| Name| Description| 
43e41f4b71Sopenharmony_ci| -------- | -------- |
44e41f4b71Sopenharmony_ci| typedef struct [Image_Size](_image___size.md) [Image_Size](#image_size) | Defines a struct for the image size. | 
45e41f4b71Sopenharmony_ci| typedef struct [Image_Region](_image___region.md) [Image_Region](#image_region) | Defines a struct for the region of an image to decode. | 
46e41f4b71Sopenharmony_ci| typedef struct [Image_String](_image___string.md) [Image_String](#image_string) | Defines a struct for an image string. | 
47e41f4b71Sopenharmony_ci| typedef struct [Image_String](_image___string.md) [Image_MimeType](#image_mimetype) | Defines a struct for an image format type. | 
48e41f4b71Sopenharmony_ci| typedef struct [OH_ImageNative](#oh_imagenative) [OH_ImageNative](#oh_imagenative) | Defines the alias for an image object at the native layer. | 
49e41f4b71Sopenharmony_ci| typedef struct [OH_ImagePackerNative](#oh_imagepackernative) [OH_ImagePackerNative](#oh_imagepackernative) | Defines the **ImagePacker** struct, which is used to perform operations related to an image packer.| 
50e41f4b71Sopenharmony_ci| typedef struct [OH_PackingOptions](#oh_packingoptions) [OH_PackingOptions](#oh_packingoptions) | Defines a struct for image encoding parameters.| 
51e41f4b71Sopenharmony_ci| typedef struct [OH_ImageReceiverNative](#oh_imagereceivernative) [OH_ImageReceiverNative](#oh_imagereceivernative) | Defines the data type name of the image receiver at the native layer. | 
52e41f4b71Sopenharmony_ci| typedef struct [OH_ImageReceiverOptions](#oh_imagereceiveroptions) [OH_ImageReceiverOptions](#oh_imagereceiveroptions) | Defines the data type name of the image receiver options. | 
53e41f4b71Sopenharmony_ci| typedef void(\* [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback)) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver) | Defines the callbacks for the image receiver at the native layer. | 
54e41f4b71Sopenharmony_ci| typedef struct [OH_ImageSourceNative](#oh_imagesourcenative) [OH_ImageSourceNative](#oh_imagesourcenative) | Defines the **ImageSource** struct, which is used to perform operations related to an image source.| 
55e41f4b71Sopenharmony_ci| typedef struct [OH_ImageSource_Info](#oh_imagesource_info) [OH_ImageSource_Info](#oh_imagesource_info) | Defines a struct for the image source information, which is created by calling [OH_ImageSourceInfo_Create](#oh_imagesourceinfo_create).| 
56e41f4b71Sopenharmony_ci| typedef struct [OH_DecodingOptions](#oh_decodingoptions) [OH_DecodingOptions](#oh_decodingoptions) | Defines a struct for decoding parameters, which are used in [OH_ImageSourceNative_CreatePixelmap](#oh_imagesourcenative_createpixelmap).| 
57e41f4b71Sopenharmony_ci| typedef struct [OH_PixelmapNative](#oh_pixelmapnative) [OH_PixelmapNative](#oh_pixelmapnative) | Defines the **Pixelmap** struct, which is used to perform operations related to a pixel map.| 
58e41f4b71Sopenharmony_ci| typedef struct [OH_NativeBuffer](#oh_nativebuffer) [OH_NativeBuffer](#oh_nativebuffer) | Defines the **NativeBuffer** struct, which is used to perform operations related to the native buffer.| 
59e41f4b71Sopenharmony_ci| typedef struct [OH_Pixelmap_HdrStaticMetadata](_o_h___pixelmap___hdr_static_metadata.md) [OH_Pixelmap_HdrStaticMetadata](#oh_pixelmap_hdrstaticmetadata) | Defines a struct for the static metadata values available for the key **HDR_STATIC_METADATA**. | 
60e41f4b71Sopenharmony_ci| typedef struct [OH_Pixelmap_HdrDynamicMetadata](_o_h___pixelmap___hdr_dynamic_metadata.md) [OH_Pixelmap_HdrDynamicMetadata](#oh_pixelmap_hdrdynamicmetadata) | Defines a struct for the dynamic metadata values available for the key **DR_DYNAMIC_METADATA**. | 
61e41f4b71Sopenharmony_ci| typedef struct [OH_Pixelmap_HdrGainmapMetadata](_o_h___pixelmap___hdr_gainmap_metadata.md) [OH_Pixelmap_HdrGainmapMetadata](#oh_pixelmap_hdrgainmapmetadata) | Defines a struct for the gain map metadata values available for the key **HDR_GAINMAP_METADATA**. For details, see ISO 21496-1. | 
62e41f4b71Sopenharmony_ci| typedef struct [OH_Pixelmap_HdrMetadataValue](_o_h___pixelmap___hdr_metadata_value.md) [OH_Pixelmap_HdrMetadataValue](#oh_pixelmap_hdrmetadatavalue) | Defines a struct for the HDR metadata values used by the pixel map a the key [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey). It is used in [OH_PixelmapNative_SetMetadata](#oh_pixelmapnative_setmetadata) and [OH_PixelmapNative_GetMetadata](#oh_pixelmapnative_getmetadata). |
63e41f4b71Sopenharmony_ci| typedef struct [OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) [OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) | Defines a struct for the initialization parameters.| 
64e41f4b71Sopenharmony_ci| typedef struct [OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) [OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) | Defines a struct for the image information.| 
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci### Enums
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ci| Name| Description| 
70e41f4b71Sopenharmony_ci| -------- | -------- |
71e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) {<br>IMAGE_SUCCESS = 0, <br>IMAGE_BAD_PARAMETER = 401, <br>IMAGE_UNSUPPORTED_MIME_TYPE = 7600101, <br>IMAGE_UNKNOWN_MIME_TYPE = 7600102,<br>IMAGE_TOO_LARGE = 7600103, <br>IMAGE_DMA_NOT_EXIST = 7600173, <br>IMAGE_DMA_OPERATION_FAILED = 7600174, <br>IMAGE_UNSUPPORTED_OPERATION = 7600201,<br>IMAGE_UNSUPPORTED_METADATA = 7600202, <br>IMAGE_UNSUPPORTED_CONVERSION = 7600203, <br>IMAGE_INVALID_REGION = 7600204, <br>IMAGE_ALLOC_FAILED = 7600301,<br>IMAGE_COPY_FAILED = 7600302, <br>IMAGE_UNKNOWN_ERROR = 7600901, <br>IMAGE_BAD_SOURCE = 7700101, <br>IMAGE_DECODE_FAILED = 7700301,<br>IMAGE_ENCODE_FAILED = 7800301<br>} | Enumerates the error codes. | 
72e41f4b71Sopenharmony_ci| [IMAGE_PACKER_DYNAMIC_RANGE](#image_packer_dynamic_range) {<br>IMAGE_PACKER_DYNAMIC_RANGE_AUTO = 0,<br>IMAGE_PACKER_DYNAMIC_RANGE_SDR = 1 } | Enumerates the desired dynamic range for encoding.| 
73e41f4b71Sopenharmony_ci| [IMAGE_DYNAMIC_RANGE](#image_dynamic_range) {<br>IMAGE_DYNAMIC_RANGE_AUTO = 0,<br>IMAGE_DYNAMIC_RANGE_SDR = 1,<br>IMAGE_DYNAMIC_RANGE_HDR = 2 } | Enumerates the desired dynamic range for decoding.| 
74e41f4b71Sopenharmony_ci| [PIXELMAP_ALPHA_TYPE](#pixelmap_alpha_type) {<br>PIXELMAP_ALPHA_TYPE_UNKNOWN = 0,<br>PIXELMAP_ALPHA_TYPE_OPAQUE = 1,<br>PIXELMAP_ALPHA_TYPE_PREMULTIPLIED = 2 } | Enumerates the alpha types of a pixel map.| 
75e41f4b71Sopenharmony_ci| [PIXEL_FORMAT](#pixel_format) {<br>PIXEL_FORMAT_UNKNOWN = 0, PIXEL_FORMAT_RGB_565 = 2,<br>PIXEL_FORMAT_RGBA_8888 = 3, PIXEL_FORMAT_BGRA_8888 = 4,<br>PIXEL_FORMAT_RGB_888 = 5, PIXEL_FORMAT_ALPHA_8 = 6,<br>PIXEL_FORMAT_RGBA_F16 = 7, PIXEL_FORMAT_NV21 = 8,<br>PIXEL_FORMAT_NV12 = 9<br>} | Enumerates the image pixel formats.| 
76e41f4b71Sopenharmony_ci| [OH_PixelmapNative_AntiAliasingLevel](#oh_pixelmapnative_antialiasinglevel) { <br>OH_PixelmapNative_AntiAliasing_NONE = 0, <br>OH_PixelmapNative_AntiAliasing_LOW = 1, <br>OH_PixelmapNative_AntiAliasing_MEDIUM = 2, <br>OH_PixelmapNative_AntiAliasing_HIGH = 3 <br>} | Enumerates the antialiasing levels used for scaling pixel maps. | 
77e41f4b71Sopenharmony_ci| [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey) { <br>HDR_METADATA_TYPE = 0, <br>HDR_STATIC_METADATA = 1, <br>HDR_DYNAMIC_METADATA = 2, <br>HDR_GAINMAP_METADATA = 3 } | Enumerates the keys of the HDR related metadata information used by the pixel map. It is used in [OH_PixelmapNative_SetMetadata](#oh_pixelmapnative_setmetadata) and [OH_PixelmapNative_GetMetadata](#oh_pixelmapnative_getmetadata). | 
78e41f4b71Sopenharmony_ci| [OH_Pixelmap_HdrMetadataType](#oh_pixelmap_hdrmetadatatype) { <br>HDR_METADATA_TYPE_NONE = 0, <br>HDR_METADATA_TYPE_BASE = 1, <br>HDR_METADATA_TYPE_GAINMAP = 2, <br>HDR_METADATA_TYPE_ALTERNATE = 3 } | Enumerates the HDR metadata types, which are the values of **HDR_METADATA_TYPE**. | 
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ci### Functions
82e41f4b71Sopenharmony_ci
83e41f4b71Sopenharmony_ci| Name| Description| 
84e41f4b71Sopenharmony_ci| -------- | -------- |
85e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_GetImageSize](#oh_imagenative_getimagesize) ([OH_ImageNative](#oh_imagenative) \*image, [Image_Size](_image___size.md) \*size) | Obtains the [Image_Size](_image___size.md) information of an [OH_ImageNative](#oh_imagenative) object.| 
86e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_GetComponentTypes](#oh_imagenative_getcomponenttypes) ([OH_ImageNative](#oh_imagenative) \*image, uint32_t \*\*types, size_t \*typeSize) | Obtains the component types of an [OH_ImageNative](#oh_imagenative) object.| 
87e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_GetByteBuffer](#oh_imagenative_getbytebuffer) ([OH_ImageNative](#oh_imagenative) \*image, uint32_t componentType, OH_NativeBuffer \*\*nativeBuffer) | Obtains the buffer corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.| 
88e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_GetBufferSize](#oh_imagenative_getbuffersize) ([OH_ImageNative](#oh_imagenative) \*image, uint32_t componentType, size_t \*size) | Obtains the size of the buffer corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.| 
89e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_GetRowStride](#oh_imagenative_getrowstride) ([OH_ImageNative](#oh_imagenative) \*image, uint32_t componentType, int32_t \*rowStride) | Obtains the row stride corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.| 
90e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_GetPixelStride](#oh_imagenative_getpixelstride) ([OH_ImageNative](#oh_imagenative) \*image, uint32_t componentType, int32_t \*pixelStride) | Obtains the pixel stride corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.| 
91e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageNative_Release](#oh_imagenative_release) ([OH_ImageNative](#oh_imagenative) \*image) | Releases an [OH_ImageNative](#oh_imagenative) object.| 
92e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_Create](#oh_packingoptions_create) ([OH_PackingOptions](#oh_packingoptions) \*\*options) | Creates the pointer to an **OH_PackingOptions** object.| 
93e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_GetMimeType](#oh_packingoptions_getmimetype) ([OH_PackingOptions](#oh_packingoptions) \*options, [Image_MimeType](#image_mimetype) \*format) | Obtains the MIME type.| 
94e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_SetMimeType](#oh_packingoptions_setmimetype) ([OH_PackingOptions](#oh_packingoptions) \*options, [Image_MimeType](#image_mimetype) \*format) | Sets the MIME type.| 
95e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_GetQuality](#oh_packingoptions_getquality) ([OH_PackingOptions](#oh_packingoptions) \*options, uint32_t \*quality) | Obtains the encoding quality.| 
96e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_SetQuality](#oh_packingoptions_setquality) ([OH_PackingOptions](#oh_packingoptions) \*options, uint32_t quality) | Sets the encoding quality.| 
97e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_GetDesiredDynamicRange](#oh_packingoptions_getdesireddynamicrange) ([OH_PackingOptions](#oh_packingoptions) \*options, int32_t \*desiredDynamicRange) | Obtains the desired dynamic range during encoding.| 
98e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_SetDesiredDynamicRange](#oh_packingoptions_setdesireddynamicrange) ([OH_PackingOptions](#oh_packingoptions) \*options, int32_t desiredDynamicRange) | Sets the desired dynamic range during encoding.| 
99e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PackingOptions_Release](#oh_packingoptions_release) ([OH_PackingOptions](#oh_packingoptions) \*options) | Releases the pointer to an **OH_PackingOptions** object.| 
100e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImagePackerNative_Create](#oh_imagepackernative_create) ([OH_ImagePackerNative](#oh_imagepackernative) \*\*imagePacker) | Creates the pointer to an **OH_ImagePackerNative** object.| 
101e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImagePackerNative_PackToDataFromImageSource](#oh_imagepackernative_packtodatafromimagesource) ([OH_ImagePackerNative](#oh_imagepackernative) \*imagePacker, [OH_PackingOptions](#oh_packingoptions) \*options, [OH_ImageSourceNative](#oh_imagesourcenative) \*imageSource, uint8_t \*outData, size_t \*size) | Encodes an image source into data in a given format.| 
102e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImagePackerNative_PackToDataFromPixelmap](#oh_imagepackernative_packtodatafrompixelmap) ([OH_ImagePackerNative](#oh_imagepackernative) \*imagePacker, [OH_PackingOptions](#oh_packingoptions) \*options, [OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, uint8_t \*outData, size_t \*size) | Encodes a pixel map into data in a given format.| 
103e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImagePackerNative_PackToFileFromImageSource](#oh_imagepackernative_packtofilefromimagesource) ([OH_ImagePackerNative](#oh_imagepackernative) \*imagePacker, [OH_PackingOptions](#oh_packingoptions) \*options, [OH_ImageSourceNative](#oh_imagesourcenative) \*imageSource, int32_t fd) | Encodes an image source into a file.| 
104e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImagePackerNative_PackToFileFromPixelmap](#oh_imagepackernative_packtofilefrompixelmap) ([OH_ImagePackerNative](#oh_imagepackernative) \*imagePacker, [OH_PackingOptions](#oh_packingoptions) \*options, [OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, int32_t fd) | Encodes a pixel map into a file.| 
105e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImagePackerNative_Release](#oh_imagepackernative_release) ([OH_ImagePackerNative](#oh_imagepackernative) \*imagePacker) | Releases the pointer to an **OH_ImagePackerNative** object.| 
106e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverOptions_Create](#oh_imagereceiveroptions_create) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*\*options) | Creates an **OH_ImageReceiverOptions** object at the application layer.| 
107e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverOptions_GetSize](#oh_imagereceiveroptions_getsize) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*options, [Image_Size](_image___size.md) \*size) | Obtains the [Image_Size](_image___size.md) information of an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.| 
108e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverOptions_SetSize](#oh_imagereceiveroptions_setsize) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*options, [Image_Size](_image___size.md) size) | Sets the [Image_Size](_image___size.md) information for an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.| 
109e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverOptions_GetCapacity](#oh_imagereceiveroptions_getcapacity) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*options, int32_t \*capacity) | Obtains the capacity of an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.| 
110e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverOptions_SetCapacity](#oh_imagereceiveroptions_setcapacity) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*options, int32_t capacity) | Sets the capacity for an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.| 
111e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverOptions_Release](#oh_imagereceiveroptions_release) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*options) | Releases an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.| 
112e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_Create](#oh_imagereceivernative_create) ([OH_ImageReceiverOptions](#oh_imagereceiveroptions) \*options, [OH_ImageReceiverNative](#oh_imagereceivernative) \*\*receiver) | Creates an **OH_ImageReceiverNative** object at the application layer.| 
113e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_GetReceivingSurfaceId](#oh_imagereceivernative_getreceivingsurfaceid) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver, uint64_t \*surfaceId) | Obtains the receiver ID through an [OH_ImageReceiverNative](#oh_imagereceivernative) object.| 
114e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_ReadLatestImage](#oh_imagereceivernative_readlatestimage) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver, [OH_ImageNative](#oh_imagenative) \*\*image) | Obtains the latest image through an [OH_ImageReceiverNative](#oh_imagereceivernative) object.| 
115e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_ReadNextImage](#oh_imagereceivernative_readnextimage) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver, [OH_ImageNative](#oh_imagenative) \*\*image) | Obtains the next image through an [OH_ImageReceiverNative](#oh_imagereceivernative) object.| 
116e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_On](#oh_imagereceivernative_on) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver, [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback) callback) | Registers a callback, which is an [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback) object.| 
117e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_Off](#oh_imagereceivernative_off) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver) | Unregisters a callback, which is an [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback) object.| 
118e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_GetSize](#oh_imagereceivernative_getsize) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver, [Image_Size](_image___size.md) \*size) | Obtains the size of an image receiver, which is an [OH_ImageReceiverNative](#oh_imagereceivernative) object.| 
119e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_GetCapacity](#oh_imagereceivernative_getcapacity) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver, int32_t \*capacity) | Obtains the capacity of an image receiver, which is an [OH_ImageReceiverNative](#oh_imagereceivernative) object.| 
120e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageReceiverNative_Release](#oh_imagereceivernative_release) ([OH_ImageReceiverNative](#oh_imagereceivernative) \*receiver) | Releases an [OH_ImageReceiverNative](#oh_imagereceivernative) object.| 
121e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceInfo_Create](#oh_imagesourceinfo_create) ([OH_ImageSource_Info](#oh_imagesource_info) \*\*info) | Creates the pointer to an **OH_ImageSource_Info** object.| 
122e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceInfo_GetWidth](#oh_imagesourceinfo_getwidth) ([OH_ImageSource_Info](#oh_imagesource_info) \*info, uint32_t \*width) | Obtains the image width.| 
123e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceInfo_GetHeight](#oh_imagesourceinfo_getheight) ([OH_ImageSource_Info](#oh_imagesource_info) \*info, uint32_t \*height) | Obtains the image height.| 
124e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceInfo_GetDynamicRange](#oh_imagesourceinfo_getdynamicrange) ([OH_ImageSource_Info](#oh_imagesource_info) \*info, bool \*isHdr) | Obtains the dynamic range of an image.| 
125e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceInfo_Release](#oh_imagesourceinfo_release) ([OH_ImageSource_Info](#oh_imagesource_info) \*info) | Releases the pointer to an **OH_ImageSource_Info** object.| 
126e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_Create](#oh_decodingoptions_create) ([OH_DecodingOptions](#oh_decodingoptions) \*\*options) | Creates the pointer to an **OH_DecodingOptions** object.| 
127e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_GetPixelFormat](#oh_decodingoptions_getpixelformat) ([OH_DecodingOptions](#oh_decodingoptions) \*options, int32_t \*pixelFormat) | Obtains the pixel format.| 
128e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_SetPixelFormat](#oh_decodingoptions_setpixelformat) ([OH_DecodingOptions](#oh_decodingoptions) \*options, int32_t pixelFormat) | Sets the pixel format.| 
129e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_GetIndex](#oh_decodingoptions_getindex) ([OH_DecodingOptions](#oh_decodingoptions) \*options, uint32_t \*index) | Obtains the index of an image.| 
130e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_SetIndex](#oh_decodingoptions_setindex) ([OH_DecodingOptions](#oh_decodingoptions) \*options, uint32_t index) | Sets the index for an image.| 
131e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_GetRotate](#oh_decodingoptions_getrotate) ([OH_DecodingOptions](#oh_decodingoptions) \*options, float \*rotate) | Obtains the rotation degree.| 
132e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_SetRotate](#oh_decodingoptions_setrotate) ([OH_DecodingOptions](#oh_decodingoptions) \*options, float rotate) | Sets the rotation angle.| 
133e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_GetDesiredSize](#oh_decodingoptions_getdesiredsize) ([OH_DecodingOptions](#oh_decodingoptions) \*options, [Image_Size](_image___size.md) \*desiredSize) | Obtains the desired output size.| 
134e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_SetDesiredSize](#oh_decodingoptions_setdesiredsize) ([OH_DecodingOptions](#oh_decodingoptions) \*options, [Image_Size](_image___size.md) \*desiredSize) | Sets the desired output size.| 
135e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_GetDesiredRegion](#oh_decodingoptions_getdesiredregion) ([OH_DecodingOptions](#oh_decodingoptions) \*options, [Image_Region](_image___region.md) \*desiredRegion) | Obtains the region to decode.| 
136e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_SetDesiredRegion](#oh_decodingoptions_setdesiredregion) ([OH_DecodingOptions](#oh_decodingoptions) \*options, [Image_Region](_image___region.md) \*desiredRegion) | Sets the region to decode.| 
137e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_GetDesiredDynamicRange](#oh_decodingoptions_getdesireddynamicrange) ([OH_DecodingOptions](#oh_decodingoptions) \*options, int32_t \*desiredDynamicRange) | Obtains the desired dynamic range configured during decoding.| 
138e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_SetDesiredDynamicRange](#oh_decodingoptions_setdesireddynamicrange) ([OH_DecodingOptions](#oh_decodingoptions) \*options, int32_t desiredDynamicRange) | Sets the desired dynamic range during decoding.| 
139e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_DecodingOptions_Release](#oh_decodingoptions_release) ([OH_DecodingOptions](#oh_decodingoptions) \*options) | Releases the pointer to an **OH_DecodingOptions** object.| 
140e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_CreateFromUri](#oh_imagesourcenative_createfromuri) (char \*uri, size_t uriSize, [OH_ImageSourceNative](#oh_imagesourcenative) \*\*res) | Creates the pointer to an **OH_ImageSourceNative** object based on a URI.| 
141e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_CreateFromFd](#oh_imagesourcenative_createfromfd) (int32_t fd, [OH_ImageSourceNative](#oh_imagesourcenative) \*\*res) | Creates the pointer to an **OH_ImageSourceNative** object based on a file descriptor.| 
142e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_CreateFromData](#oh_imagesourcenative_createfromdata) (uint8_t \*data, size_t dataSize, [OH_ImageSourceNative](#oh_imagesourcenative) \*\*res) | Creates the pointer to an **OH_ImageSourceNative** object based on buffer data.| 
143e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_CreateFromRawFile](#oh_imagesourcenative_createfromrawfile) (RawFileDescriptor \*rawFile, [OH_ImageSourceNative](#oh_imagesourcenative) \*\*res) | Creates the pointer to an **OH_ImageSourceNative** object by using the raw file descriptor of an image resource file.| 
144e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_CreatePixelmap](#oh_imagesourcenative_createpixelmap) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, [OH_DecodingOptions](#oh_decodingoptions) \*options, [OH_PixelmapNative](#oh_pixelmapnative) \*\*pixelmap) | Creates the pointer to an **OH_PixelmapNative** object based on image decoding parameters.| 
145e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_CreatePixelmapList](#oh_imagesourcenative_createpixelmaplist) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, [OH_DecodingOptions](#oh_decodingoptions) \*options, [OH_PixelmapNative](#oh_pixelmapnative) \*resVecPixMap[], size_t size) | Creates an array of **OH_PixelmapNative** objects based on image decoding parameters.| 
146e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_GetDelayTimeList](#oh_imagesourcenative_getdelaytimelist) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, int32_t \*delayTimeList, size_t size) | Obtains the image delay time list.| 
147e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_GetImageInfo](#oh_imagesourcenative_getimageinfo) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, int32_t index, [OH_ImageSource_Info](#oh_imagesource_info) \*info) | Obtains the information about an image with a given index.| 
148e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_GetImageProperty](#oh_imagesourcenative_getimageproperty) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, [Image_String](_image___string.md) \*key, [Image_String](_image___string.md) \*value) | Obtains the value of an image property.| 
149e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_ModifyImageProperty](#oh_imagesourcenative_modifyimageproperty) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, [Image_String](_image___string.md) \*key, [Image_String](_image___string.md) \*value) | Modifies the value of an image property.| 
150e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_GetFrameCount](#oh_imagesourcenative_getframecount) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source, uint32_t \*frameCount) | Obtains the number of image frames.| 
151e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_ImageSourceNative_Release](#oh_imagesourcenative_release) ([OH_ImageSourceNative](#oh_imagesourcenative) \*source) | Releases the pointer to an **OH_ImageSourceNative** object.| 
152e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_Create](#oh_pixelmapinitializationoptions_create) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*\*options) | Creates the pointer to an **OH_Pixelmap_InitializationOptions** object.| 
153e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_GetWidth](#oh_pixelmapinitializationoptions_getwidth) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, uint32_t \*width) | Obtains the image width.| 
154e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_SetWidth](#oh_pixelmapinitializationoptions_setwidth) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, uint32_t width) | Sets the image width.| 
155e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_GetHeight](#oh_pixelmapinitializationoptions_getheight) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, uint32_t \*height) | Obtains the image height.| 
156e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_SetHeight](#oh_pixelmapinitializationoptions_setheight) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, uint32_t height) | Sets the image height.| 
157e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_GetPixelFormat](#oh_pixelmapinitializationoptions_getpixelformat) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, int32_t \*pixelFormat) | Obtains the pixel format.| 
158e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_SetPixelFormat](#oh_pixelmapinitializationoptions_setpixelformat) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, int32_t pixelFormat) | Sets the pixel format.| 
159e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_GetSrcPixelFormat](#oh_pixelmapinitializationoptions_getsrcpixelformat) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, int32_t \*srcpixelFormat) | Obtains the source pixel format.| 
160e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_SetSrcPixelFormat](#oh_pixelmapinitializationoptions_setsrcpixelformat) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, int32_t srcpixelFormat) | Sets the source pixel format.| 
161e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_GetRowStride](#oh_pixelmapinitializationoptions_getrowstride) (OH_Pixelmap_InitializationOptions \*options, int32_t \*rowStride) | Obtains the row stride. | 
162e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_SetRowStride](#oh_pixelmapinitializationoptions_setrowstride) (OH_Pixelmap_InitializationOptions \*options, int32_t rowStride) | Sets the row stride. | 
163e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_GetAlphaType](#oh_pixelmapinitializationoptions_getalphatype) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, int32_t \*alphaType) | Obtains the alpha type.| 
164e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_SetAlphaType](#oh_pixelmapinitializationoptions_setalphatype) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, int32_t alphaType) | Sets the alpha type.| 
165e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapInitializationOptions_Release](#oh_pixelmapinitializationoptions_release) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options) | Releases the pointer to an **OH_Pixelmap_InitializationOptions** object.| 
166e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_Create](#oh_pixelmapimageinfo_create) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*\*info) | Creates the pointer to an **OH_Pixelmap_ImageInfo** object.| 
167e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_GetWidth](#oh_pixelmapimageinfo_getwidth) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info, uint32_t \*width) | Obtains the image width.| 
168e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_GetHeight](#oh_pixelmapimageinfo_getheight) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info, uint32_t \*height) | Obtains the image height.| 
169e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_GetRowStride](#oh_pixelmapimageinfo_getrowstride) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info, uint32_t \*rowStride) | Obtains the row stride.| 
170e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_GetPixelFormat](#oh_pixelmapimageinfo_getpixelformat) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info, int32_t \*pixelFormat) | Obtains the pixel format.| 
171e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_GetAlphaType](#oh_pixelmapimageinfo_getalphatype) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info, int32_t \*alphaType) | Obtains the alpha type.| 
172e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_GetDynamicRange](#oh_pixelmapimageinfo_getdynamicrange) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info, bool \*isHdr) | Obtains the dynamic range of a pixel map.| 
173e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapImageInfo_Release](#oh_pixelmapimageinfo_release) ([OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*info) | Releases the pointer to an **OH_Pixelmap_ImageInfo** object.| 
174e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_CreatePixelmap](#oh_pixelmapnative_createpixelmap) (uint8_t \*data, size_t dataLength, [OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, [OH_PixelmapNative](#oh_pixelmapnative) \*\*pixelmap) | Creates a **PixelMap** object based on properties. By default, the BGRA_8888 format is used for data processing.| 
175e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_ReadPixels](#oh_pixelmapnative_readpixels) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, uint8_t \*destination, size_t \*bufferSize) | Reads the image pixel data and writes the data to an ArrayBuffer.| 
176e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_WritePixels](#oh_pixelmapnative_writepixels) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, uint8_t \*source, size_t bufferSize) | Reads the image pixel data in the buffer and writes the data to a pixel map.| 
177e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_ToSdr](#oh_pixelmapnative_tosdr) (OH_PixelmapNative \*pixelmap) | Converts an HDR image into an SDR image. | 
178e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_GetImageInfo](#oh_pixelmapnative_getimageinfo) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, [OH_Pixelmap_ImageInfo](#oh_pixelmap_imageinfo) \*imageInfo) | Obtains the image information.| 
179e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Opacity](#oh_pixelmapnative_opacity) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, float rate) | Sets the opacity rate to enable the pixel map to achieve the corresponding opacity effect.| 
180e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Scale](#oh_pixelmapnative_scale) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, float scaleX, float scaleY) | Scales an image based on a given width and height.| 
181e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_ScaleWithAntiAliasing](#oh_pixelmapnative_scalewithantialiasing) (OH_PixelmapNative \*pixelmap, float scaleX, float scaleY, [OH_PixelmapNative_AntiAliasingLevel](#oh_pixelmapnative_antialiasinglevel) level) | Scales an image based on the specified antialiasing level, width, and height. | 
182e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Translate](#oh_pixelmapnative_translate) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, float x, float y) | Translates an image based on given coordinates.| 
183e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Rotate](#oh_pixelmapnative_rotate) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, float angle) | Rotates an image based on a given angle.| 
184e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Flip](#oh_pixelmapnative_flip) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, bool shouldFilpHorizontally, bool shouldFilpVertically) | Flips an image based on a given angle.| 
185e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Crop](#oh_pixelmapnative_crop) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, [Image_Region](_image___region.md) \*region) | Crops an image based on a given size.| 
186e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_Release](#oh_pixelmapnative_release) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap) | Releases the pointer to an **OH_PixelmapNative** object.| 
187e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_ConvertAlphaFormat](#oh_pixelmapnative_convertalphaformat) ([OH_PixelmapNative](#oh_pixelmapnative) \*pixelmap, [OH_PixelmapNative](#oh_pixelmapnative) \*dstpixelmap, const bool isPremul) | Converts pixel data of a pixel map from premultiplied alpha to non-premultiplied alpha, or vice versa.| 
188e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_CreateEmptyPixelmap](#oh_pixelmapnative_createemptypixelmap) ([OH_Pixelmap_InitializationOptions](#oh_pixelmap_initializationoptions) \*options, [OH_PixelmapNative](#oh_pixelmapnative) \*\*pixelmap) | Creates an empty pixel map using **OH_Pixelmap_InitializationOptions**. The memory data is 0.| 
189e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_GetNativeBuffer](#oh_pixelmapnative_getnativebuffer) (OH_PixelmapNative \*pixelmap, OH_NativeBuffer \*\*nativeBuffer) | Obtains the **NativeBuffer** object from a pixel map in the DMA memory. | 
190e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_GetMetadata](#oh_pixelmapnative_getmetadata) (OH_PixelmapNative \*pixelmap, [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey) key, [OH_Pixelmap_HdrMetadataValue](_o_h___pixelmap___hdr_metadata_value.md) \*\*value) | Obtains the metadata. | 
191e41f4b71Sopenharmony_ci| [Image_ErrorCode](#image_errorcode) [OH_PixelmapNative_SetMetadata](#oh_pixelmapnative_setmetadata) (OH_PixelmapNative \*pixelmap, [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey) key, [OH_Pixelmap_HdrMetadataValue](_o_h___pixelmap___hdr_metadata_value.md) \*value) | Sets the metadata. | 
192e41f4b71Sopenharmony_ci
193e41f4b71Sopenharmony_ci
194e41f4b71Sopenharmony_ci### Variables
195e41f4b71Sopenharmony_ci
196e41f4b71Sopenharmony_ci| Name| Description| 
197e41f4b71Sopenharmony_ci| -------- | -------- |
198e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_BMP](#mime_type_bmp) = "image/bmp" | BMP image format.| 
199e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_JPEG](#mime_type_jpeg) = "image/jpeg" | JPEG image format.| 
200e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_HEIC](#mime_type_heic) = "image/heic" | HEIF image format.| 
201e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_PNG](#mime_type_png) = "image/png" | PNG image format.| 
202e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_WEBP](#mime_type_webp) = "image/webp" | WebP image format.| 
203e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_GIF](#mime_type_gif) = "image/gif" | GIF image format.| 
204e41f4b71Sopenharmony_ci| static const char \*[MIME_TYPE_ICON](#mime_type_icon) = "image/x-icon" | ICO image format.| 
205e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_BITS_PER_SAMPLE](#ohos_image_property_bits_per_sample) = "BitsPerSample" | Number of bits per sample.| 
206e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_ORIENTATION](#ohos_image_property_orientation) = "Orientation" | Image orientation.| 
207e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_IMAGE_LENGTH](#ohos_image_property_image_length) = "ImageLength" | Image length.| 
208e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_IMAGE_WIDTH](#ohos_image_property_image_width) = "ImageWidth" | Image width.| 
209e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_LATITUDE](#ohos_image_property_gps_latitude) = "GPSLatitude" | Image latitude.| 
210e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_LONGITUDE](#ohos_image_property_gps_longitude) = "GPSLongitude" | Image longitude.| 
211e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_LATITUDE_REF](#ohos_image_property_gps_latitude_ref) = "GPSLatitudeRef" | Whether the latitude is north or south latitude.| 
212e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_LONGITUDE_REF](#ohos_image_property_gps_longitude_ref) = "GPSLongitudeRef" | Whether the longitude is east or west longitude.| 
213e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_DATE_TIME_ORIGINAL](#ohos_image_property_date_time_original) = "DateTimeOriginal" | Shooting time, for example, 2022:09:06 15:48:00.| 
214e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_EXPOSURE_TIME](#ohos_image_property_exposure_time) = "ExposureTime" | Exposure time, for example, 1/33 seconds.| 
215e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SCENE_TYPE](#ohos_image_property_scene_type) = "SceneType" | Type of the scene, for example, portrait, scenery, motion, and night.| 
216e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_ISO_SPEED_RATINGS](#ohos_image_property_iso_speed_ratings) = "ISOSpeedRatings" | ISO sensitivity or ISO speed, for example, 400.| 
217e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_F_NUMBER](#ohos_image_property_f_number) = "FNumber" | F number, for example, f/1.8.| 
218e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_COMPRESSED_BITS_PER_PIXEL](#ohos_image_property_compressed_bits_per_pixel) = "CompressedBitsPerPixel" | Number of bits per pixel. It is specific to compressed data.| 
219e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_COMPRESSION](#ohos_image_property_compression) = "Compression" | Compression scheme used on the image data.| 
220e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_PHOTOMETRIC_INTERPRETATION](#ohos_image_property_photometric_interpretation) = "PhotometricInterpretation" | Color space of the image data, for example, RGB or YCbCr.| 
221e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_STRIP_OFFSETS](#ohos_image_property_strip_offsets) = "StripOffsets" | Byte offset of each strip.| 
222e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SAMPLES_PER_PIXEL](#ohos_image_property_samples_per_pixel) = "SamplesPerPixel" | Number of components per pixel. The value is **3** for RGB and YCbCr images. The **JPEG** key is used in JPEG compressed data.| 
223e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_ROWS_PER_STRIP](#ohos_image_property_rows_per_strip) = "RowsPerStrip" | Number of rows per strip.| 
224e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_STRIP_BYTE_COUNTS](#ohos_image_property_strip_byte_counts) = "StripByteCounts" | Number of bytes in each strip after compression.| 
225e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_X_RESOLUTION](#ohos_image_property_x_resolution) = "XResolution" | Number of pixels per ResolutionUnit in the image width (X) direction.| 
226e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_Y_RESOLUTION](#ohos_image_property_y_resolution) = "YResolution" | Number of pixels per ResolutionUnit in the image height (Y) direction.| 
227e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_PLANAR_CONFIGURATION](#ohos_image_property_planar_configuration) = "PlanarConfiguration" | Storage format of components of each pixel, which can be chunky or planar.| 
228e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_RESOLUTION_UNIT](#ohos_image_property_resolution_unit) = "ResolutionUnit" | Unit of measurement for XResolution and YResolution.| 
229e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_TRANSFER_FUNCTION](#ohos_image_property_transfer_function) = "TransferFunction" | Transfer function for the image, which is usually used for color correction.| 
230e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SOFTWARE](#ohos_image_property_software) = "Software" | Name and version number of the software used to create the image.| 
231e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_ARTIST](#ohos_image_property_artist) = "Artist" | Person who created the image.| 
232e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_WHITE_POINT](#ohos_image_property_white_point) = "WhitePoint" | Chromaticity of the white point of the image.| 
233e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_PRIMARY_CHROMATICITIES](#ohos_image_property_primary_chromaticities) = "PrimaryChromaticities" | Chromaticities of the primaries of the image.| 
234e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_YCBCR_COEFFICIENTS](#ohos_image_property_ycbcr_coefficients) = "YCbCrCoefficients" | Transformation from RGB to YCbCr image data.| 
235e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_YCBCR_SUB_SAMPLING](#ohos_image_property_ycbcr_sub_sampling) = "YCbCrSubSampling" | Subsampling factors used for the chrominance components of a YCbCr image.| 
236e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_YCBCR_POSITIONING](#ohos_image_property_ycbcr_positioning) = "YCbCrPositioning" | Positioning of subsampled chrominance components relative to luminance samples.| 
237e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_REFERENCE_BLACK_WHITE](#ohos_image_property_reference_black_white) = "ReferenceBlackWhite" | A pair of headroom and footroom image data values (codes) for each pixel component.| 
238e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_COPYRIGHT](#ohos_image_property_copyright) = "Copyright" | Copyright notice of the image.| 
239e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT](#ohos_image_property_jpeg_interchange_format) = "JPEGInterchangeFormat" | Offset of the SOI marker of a JPEG interchange format bitstream.| 
240e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT_LENGTH](#ohos_image_property_jpeg_interchange_format_length) = "JPEGInterchangeFormatLength" | Number of bytes of the JPEG stream.| 
241e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_EXPOSURE_PROGRAM](#ohos_image_property_exposure_program) = "ExposureProgram" | Class of the program used by the camera to set exposure when the image was captured.| 
242e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SPECTRAL_SENSITIVITY](#ohos_image_property_spectral_sensitivity) = "SpectralSensitivity" | Spectral sensitivity of each channel of the camera.| 
243e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_OECF](#ohos_image_property_oecf) = "OECF" | Opto-Electric Conversion Function (OECF) specified in ISO 14524.| 
244e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_EXIF_VERSION](#ohos_image_property_exif_version) = "ExifVersion" | Version of the supported EXIF standard.| 
245e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_DATE_TIME_DIGITIZED](#ohos_image_property_date_time_digitized) = "DateTimeDigitized" | Date and time when the image was stored as digital data, in the format of YYYY:MM:DD HH:MM:SS.| 
246e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_COMPONENTS_CONFIGURATION](#ohos_image_property_components_configuration) = "ComponentsConfiguration" | Specific information about compressed data.| 
247e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SHUTTER_SPEED_VALUE](#ohos_image_property_shutter_speed_value) = "ShutterSpeedValue" | Shutter speed, expressed in Additive System of Photographic Exposure (APEX) values.| 
248e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_BRIGHTNESS_VALUE](#ohos_image_property_brightness_value) = "BrightnessValue" | Value of brightness, expressed in APEX values.| 
249e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_MAX_APERTURE_VALUE](#ohos_image_property_max_aperture_value) = "MaxApertureValue" | Smallest F number of the lens.| 
250e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE](#ohos_image_property_subject_distance) = "SubjectDistance" | Distance to the subject, in meters.| 
251e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBJECT_AREA](#ohos_image_property_subject_area) = "SubjectArea" | Location and area of the main subject in the entire scene.| 
252e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_MAKER_NOTE](#ohos_image_property_maker_note) = "MakerNote" | Marker used by EXIF/DCF manufacturers to record any required information.| 
253e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBSEC_TIME](#ohos_image_property_subsec_time) = "SubsecTime" | Tag used to record fractions of seconds for the **DateTime** tag.| 
254e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBSEC_TIME_ORIGINAL](#ohos_image_property_subsec_time_original) = "SubsecTimeOriginal" | Tag used to record fractions of seconds for the **DateTimeOriginal** tag.| 
255e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBSEC_TIME_DIGITIZED](#ohos_image_property_subsec_time_digitized) = "SubsecTimeDigitized" | Tag used to record fractions of seconds for the **DateTimeDigitized** tag.| 
256e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FLASHPIX_VERSION](#ohos_image_property_flashpix_version) = "FlashpixVersion" | FlashPix format version supported by an FPXR file. It is used to enhance device compatibility.| 
257e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_COLOR_SPACE](#ohos_image_property_color_space) = "ColorSpace" | Color space information, which is usually recorded as a color space specifier.| 
258e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_RELATED_SOUND_FILE](#ohos_image_property_related_sound_file) = "RelatedSoundFile" | Name of an audio file related to the image data.| 
259e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FLASH_ENERGY](#ohos_image_property_flash_energy) = "FlashEnergy" | Strobe energy at the time the image was captured, in Beam Candle Power Seconds (BCPS).| 
260e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SPATIAL_FREQUENCY_RESPONSE](#ohos_image_property_spatial_frequency_response) = "SpatialFrequencyResponse" | Spatial frequency table of the camera or input device.| 
261e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FOCAL_PLANE_X_RESOLUTION](#ohos_image_property_focal_plane_x_resolution) = "FocalPlaneXResolution" | Number of pixels in the image width (X) direction per FocalPlaneResolutionUnit.| 
262e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FOCAL_PLANE_Y_RESOLUTION](#ohos_image_property_focal_plane_y_resolution) = "FocalPlaneYResolution" | Number of pixels in the image height (Y) direction per FocalPlaneResolutionUnit.| 
263e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FOCAL_PLANE_RESOLUTION_UNIT](#ohos_image_property_focal_plane_resolution_unit) = "FocalPlaneResolutionUnit" | Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution.| 
264e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBJECT_LOCATION](#ohos_image_property_subject_location) = "SubjectLocation" | Location of the main subject relative to the left edge.| 
265e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_EXPOSURE_INDEX](#ohos_image_property_exposure_index) = "ExposureIndex" | Exposure index selected at the time the image is captured.| 
266e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SENSING_METHOD](#ohos_image_property_sensing_method) = "SensingMethod" | Type of the image sensor on the camera.| 
267e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FILE_SOURCE](#ohos_image_property_file_source) = "FileSource" | Image source.| 
268e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_CFA_PATTERN](#ohos_image_property_cfa_pattern) = "CFAPattern" | Color Filter Array (CFA) geometric pattern of the image sensor.| 
269e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_CUSTOM_RENDERED](#ohos_image_property_custom_rendered) = "CustomRendered" | Special processing on image data.| 
270e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_EXPOSURE_MODE](#ohos_image_property_exposure_mode) = "ExposureMode" | Exposure mode set when the image was captured.| 
271e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_DIGITAL_ZOOM_RATIO](#ohos_image_property_digital_zoom_ratio) = "DigitalZoomRatio" | Digital zoom ratio when the image was captured.| 
272e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SCENE_CAPTURE_TYPE](#ohos_image_property_scene_capture_type) = "SceneCaptureType" | Type of the scene that was captured.| 
273e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GAIN_CONTROL](#ohos_image_property_gain_control) = "GainControl" | Degree of overall image gain adjustment.| 
274e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_CONTRAST](#ohos_image_property_contrast) = "Contrast" | Direction of contrast processing used by the camera.| 
275e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SATURATION](#ohos_image_property_saturation) = "Saturation" | Direction of saturation processing used by the camera.| 
276e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SHARPNESS](#ohos_image_property_sharpness) = "Sharpness" | Direction of sharpness processing used by the camera.| 
277e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_DEVICE_SETTING_DESCRIPTION](#ohos_image_property_device_setting_description) = "DeviceSettingDescription" | Information about the photographing conditions of a specific camera model.| 
278e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE_RANGE](#ohos_image_property_subject_distance_range) = "SubjectDistanceRange" | Distance to the subject.| 
279e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_IMAGE_UNIQUE_ID](#ohos_image_property_image_unique_id) = "ImageUniqueID" | Unique identifier assigned to each image.| 
280e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_VERSION_ID](#ohos_image_property_gps_version_id) = "GPSVersionID" | Version of GPSInfoIFD.| 
281e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_ALTITUDE_REF](#ohos_image_property_gps_altitude_ref) = "GPSAltitudeRef" | Whether the latitude is north or south latitude.| 
282e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_ALTITUDE](#ohos_image_property_gps_altitude) = "GPSAltitude" | Altitude based on the reference in GPSAltitudeRef.| 
283e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_SATELLITES](#ohos_image_property_gps_satellites) = "GPSSatellites" | GPS satellites used for measurement.| 
284e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_STATUS](#ohos_image_property_gps_status) = "GPSStatus" | Status of the GPS receiver when the image was recorded.| 
285e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_MEASURE_MODE](#ohos_image_property_gps_measure_mode) = "GPSMeasureMode" | GPS measurement pmode.| 
286e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DOP](#ohos_image_property_gps_dop) = "GPSDOP" | GPS DOP (data degree of precision)| 
287e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_SPEED_REF](#ohos_image_property_gps_speed_ref) = "GPSSpeedRef" | Unit used to express the movement speed of the GPS receiver.| 
288e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_SPEED](#ohos_image_property_gps_speed) = "GPSSpeed" | Movement speed of the GPS receiver.| 
289e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_TRACK_REF](#ohos_image_property_gps_track_ref) = "GPSTrackRef" | Reference of the movement direction of the GPS receiver.| 
290e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_TRACK](#ohos_image_property_gps_track) = "GPSTrack" | Movement direction of the GPS receiver.| 
291e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION_REF](#ohos_image_property_gps_img_direction_ref) = "GPSImgDirectionRef" | Reference of the direction of the image when it was captured.| 
292e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION](#ohos_image_property_gps_img_direction) = "GPSImgDirection" | Direction of the image when it was captured.| 
293e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_MAP_DATUM](#ohos_image_property_gps_map_datum) = "GPSMapDatum" | Geodetic survey data used by the GPS receiver.| 
294e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE_REF](#ohos_image_property_gps_dest_latitude_ref) = "GPSDestLatitudeRef" | Whether the latitude of the destination point is north or south latitude.| 
295e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE](#ohos_image_property_gps_dest_latitude) = "GPSDestLatitude" | Latitude of the destination point.| 
296e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE_REF](#ohos_image_property_gps_dest_longitude_ref) = "GPSDestLongitudeRef" | Whether the longitude of the destination point is east or west longitude.| 
297e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_PROCESSING_METHOD](#ohos_image_property_gps_processing_method) = "GPSProcessingMethod" | String that records the name of the method used for positioning.| 
298e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_AREA_INFORMATION](#ohos_image_property_gps_area_information) = "GPSAreaInformation" | String that records the name of the GPS area.| 
299e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DIFFERENTIAL](#ohos_image_property_gps_differential) = "GPSDifferential" | Whether differential correction is applied to the GPS receiver. It is critical to accurate location accuracy.| 
300e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_BODY_SERIAL_NUMBER](#ohos_image_property_body_serial_number) = "BodySerialNumber" | Serial number of the camera body.| 
301e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_CAMERA_OWNER_NAME](#ohos_image_property_camera_owner_name) = "CameraOwnerName" | Name of the camera owner.| 
302e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_COMPOSITE_IMAGE](#ohos_image_property_composite_image) = "CompositeImage" | Whether the image is a composite image.| 
303e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_DNG_VERSION](#ohos_image_property_dng_version) = "DNGVersion" | DNG version. It encodes the DNG 4-tier version number.| 
304e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE](#ohos_image_property_gps_dest_longitude) = "GPSDestLongitude" | Longitude of the destination point.| 
305e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING_REF](#ohos_image_property_gps_dest_bearing_ref) = "GPSDestBearingRef" | Reference of the bearing to the destination point.| 
306e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING](#ohos_image_property_gps_dest_bearing) = "GPSDestBearing" | Bearing to the destination point.| 
307e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE_REF](#ohos_image_property_gps_dest_distance_ref) = "GPSDestDistanceRef" | Unit used to express the distance to the destination point.| 
308e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE](#ohos_image_property_gps_dest_distance) = "GPSDestDistance" | Distance to the destination point.| 
309e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_DEFAULT_CROP_SIZE](#ohos_image_property_default_crop_size) = "DefaultCropSize" | Size of the final image area, in raw image coordinates, taking into account extra pixels around the edges of the final image.| 
310e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GAMMA](#ohos_image_property_gamma) = "Gamma" | Gamma value.| 
311e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEYYY](#ohos_image_property_iso_speed_latitudeyyy) = "ISOSpeedLatitudeyyy" | ISO speed latitude yyy value of the camera or input device, which is defined in ISO 12232.| 
312e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEZZZ](#ohos_image_property_iso_speed_latitudezzz) = "ISOSpeedLatitudezzz" | ISO speed latitude zzz value of the camera or input device, which is defined in ISO 12232.| 
313e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_LENS_MAKE](#ohos_image_property_lens_make) = "LensMake" | Manufacturer of the lens.| 
314e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_LENS_MODEL](#ohos_image_property_lens_model) = "LensModel" | Model of the lens.| 
315e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_LENS_SERIAL_NUMBER](#ohos_image_property_lens_serial_number) = "LensSerialNumber" | Serial number of the lens.| 
316e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_LENS_SPECIFICATION](#ohos_image_property_lens_specification) = "LensSpecification" | Specifications of the lens.| 
317e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_NEW_SUBFILE_TYPE](#ohos_image_property_new_subfile_type) = "NewSubfileType" | Data type of a subfile, such as a full-resolution image, a thumbnail, or a part of a multi-frame image. The value is a bit mask. The value 0 indicates a full-resolution image, **1** indicates a thumbnail, and **2** indicates a part of a multi-frame image.| 
318e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_OFFSET_TIME](#ohos_image_property_offset_time) = "OffsetTime" | Time with an offset from UTC when the image was captured, in the format of ±HH:MM.| 
319e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_OFFSET_TIME_DIGITIZED](#ohos_image_property_offset_time_digitized) = "OffsetTimeDigitized" | Time with an offset from UTC when the image was digitized. It helps to accurately adjust the timestamp.| 
320e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_OFFSET_TIME_ORIGINAL](#ohos_image_property_offset_time_original) = "OffsetTimeOriginal" | Time with an offset from UTC when the original image was created. It is critical for time-sensitive applications.| 
321e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE](#ohos_image_property_source_exposure_times_of_composite_image) = "SourceExposureTimesOfCompositeImage" | Exposure time of source images of the composite image.| 
322e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE](#ohos_image_property_source_image_number_of_composite_image) = "SourceImageNumberOfCompositeImage" | Number of source images of the composite image.| 
323e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SUBFILE_TYPE](#ohos_image_property_subfile_type) = "SubfileType" | Type of data contained in this subfile. This tag has been deprecated. Use **NewSubfileType** instead.| 
324e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GPS_H_POSITIONING_ERROR](#ohos_image_property_gps_h_positioning_error) = "GPSHPositioningError" | Horizontal positioning error, in meters.| 
325e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_PHOTOGRAPHIC_SENSITIVITY](#ohos_image_property_photographic_sensitivity) = "PhotographicSensitivity" | Sensitivity of the camera or input device when the image was captured.| 
326e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_BURST_NUMBER](#ohos_image_property_burst_number) = "HwMnoteBurstNumber" | Number of burst shooting times.| 
327e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_CONF](#ohos_image_property_face_conf) = "HwMnoteFaceConf" | Face confidence.| 
328e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_LEYE_CENTER](#ohos_image_property_face_leye_center) = "HwMnoteFaceLeyeCenter" | Left eye centered. It is used in **OH_ImageSource_GetImageProperty** and **OH_ImageSource_ModifyImageProperty**.| 
329e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_MOUTH_CENTER](#ohos_image_property_face_mouth_center) = "HwMnoteFaceMouthCenter" | Mouth centered.| 
330e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_POINTER](#ohos_image_property_face_pointer) = "HwMnoteFacePointer" | Face pointer.| 
331e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_RECT](#ohos_image_property_face_rect) = "HwMnoteFaceRect" | Face rectangle.| 
332e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_REYE_CENTER](#ohos_image_property_face_reye_center) = "HwMnoteFaceReyeCenter" | Right eye centered.| 
333e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_SMILE_SCORE](#ohos_image_property_face_smile_score) = "HwMnoteFaceSmileScore" | Smile score of for faces.| 
334e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FACE_VERSION](#ohos_image_property_face_version) = "HwMnoteFaceVersion" | Facial recognition algorithm version.| 
335e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_FRONT_CAMERA](#ohos_image_property_front_camera) = "HwMnoteFrontCamera" | Whether the front camera is used to take a selfie.| 
336e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SCENE_POINTER](#ohos_image_property_scene_pointer) = "HwMnoteScenePointer" | Pointer to the scene.| 
337e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_SCENE_VERSION](#ohos_image_property_scene_version) = "HwMnoteSceneVersion" | Scene algorithm version.| 
338e41f4b71Sopenharmony_ci| static const char \*[OHOS_IMAGE_PROPERTY_GIF_LOOP_COUNT](#ohos_image_property_gif_loop_count) = "GIFLoopCount" | Number of GIF loops.| 
339e41f4b71Sopenharmony_ci
340e41f4b71Sopenharmony_ci
341e41f4b71Sopenharmony_ci## Type Description
342e41f4b71Sopenharmony_ci
343e41f4b71Sopenharmony_ci
344e41f4b71Sopenharmony_ci### Image_MimeType
345e41f4b71Sopenharmony_ci
346e41f4b71Sopenharmony_ci```
347e41f4b71Sopenharmony_citypedef struct Image_String Image_MimeType
348e41f4b71Sopenharmony_ci```
349e41f4b71Sopenharmony_ci
350e41f4b71Sopenharmony_ci**Description**
351e41f4b71Sopenharmony_ci
352e41f4b71Sopenharmony_ciDefines a struct for an image format type.
353e41f4b71Sopenharmony_ci
354e41f4b71Sopenharmony_ci**Since**: 12
355e41f4b71Sopenharmony_ci
356e41f4b71Sopenharmony_ci
357e41f4b71Sopenharmony_ci### Image_Region
358e41f4b71Sopenharmony_ci
359e41f4b71Sopenharmony_ci```
360e41f4b71Sopenharmony_citypedef struct Image_Region Image_Region
361e41f4b71Sopenharmony_ci```
362e41f4b71Sopenharmony_ci
363e41f4b71Sopenharmony_ci**Description**
364e41f4b71Sopenharmony_ci
365e41f4b71Sopenharmony_ciDefines a struct for the region of an image to decode.
366e41f4b71Sopenharmony_ci
367e41f4b71Sopenharmony_ci**Since**: 12
368e41f4b71Sopenharmony_ci
369e41f4b71Sopenharmony_ci
370e41f4b71Sopenharmony_ci### Image_Size
371e41f4b71Sopenharmony_ci
372e41f4b71Sopenharmony_ci```
373e41f4b71Sopenharmony_citypedef struct Image_Size Image_Size
374e41f4b71Sopenharmony_ci```
375e41f4b71Sopenharmony_ci
376e41f4b71Sopenharmony_ci**Description**
377e41f4b71Sopenharmony_ci
378e41f4b71Sopenharmony_ciDefines a struct for the image size.
379e41f4b71Sopenharmony_ci
380e41f4b71Sopenharmony_ci**Since**: 12
381e41f4b71Sopenharmony_ci
382e41f4b71Sopenharmony_ci
383e41f4b71Sopenharmony_ci### Image_String
384e41f4b71Sopenharmony_ci
385e41f4b71Sopenharmony_ci```
386e41f4b71Sopenharmony_citypedef struct Image_String Image_String
387e41f4b71Sopenharmony_ci```
388e41f4b71Sopenharmony_ci
389e41f4b71Sopenharmony_ci**Description**
390e41f4b71Sopenharmony_ci
391e41f4b71Sopenharmony_ciDefines a struct for an image string.
392e41f4b71Sopenharmony_ci
393e41f4b71Sopenharmony_ci**Since**: 12
394e41f4b71Sopenharmony_ci
395e41f4b71Sopenharmony_ci
396e41f4b71Sopenharmony_ci### OH_DecodingOptions
397e41f4b71Sopenharmony_ci
398e41f4b71Sopenharmony_ci```
399e41f4b71Sopenharmony_citypedef struct OH_DecodingOptions OH_DecodingOptions
400e41f4b71Sopenharmony_ci```
401e41f4b71Sopenharmony_ci
402e41f4b71Sopenharmony_ci**Description**
403e41f4b71Sopenharmony_ci
404e41f4b71Sopenharmony_ciDefines a struct for decoding parameters, which are used in [OH_ImageSourceNative_CreatePixelmap](#oh_imagesourcenative_createpixelmap).
405e41f4b71Sopenharmony_ci
406e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_DecodingOptions Struct](../../media/image/image-structure-c.md#oh_decodingoptions-struct).
407e41f4b71Sopenharmony_ci
408e41f4b71Sopenharmony_ci**Since**: 12
409e41f4b71Sopenharmony_ci
410e41f4b71Sopenharmony_ci
411e41f4b71Sopenharmony_ci### OH_ImageNative
412e41f4b71Sopenharmony_ci
413e41f4b71Sopenharmony_ci```
414e41f4b71Sopenharmony_citypedef struct OH_ImageNative OH_ImageNative
415e41f4b71Sopenharmony_ci```
416e41f4b71Sopenharmony_ci
417e41f4b71Sopenharmony_ci**Description**
418e41f4b71Sopenharmony_ci
419e41f4b71Sopenharmony_ciDefines the alias for an image object at the native layer.
420e41f4b71Sopenharmony_ci
421e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_ImageNative Struct](../../media/image/image-structure-c.md#oh_imagenative-struct).
422e41f4b71Sopenharmony_ci
423e41f4b71Sopenharmony_ci**Since**: 12
424e41f4b71Sopenharmony_ci
425e41f4b71Sopenharmony_ci
426e41f4b71Sopenharmony_ci### OH_ImagePackerNative
427e41f4b71Sopenharmony_ci
428e41f4b71Sopenharmony_ci```
429e41f4b71Sopenharmony_citypedef struct OH_ImagePackerNative OH_ImagePackerNative
430e41f4b71Sopenharmony_ci```
431e41f4b71Sopenharmony_ci
432e41f4b71Sopenharmony_ci**Description**
433e41f4b71Sopenharmony_ci
434e41f4b71Sopenharmony_ciDefines the **ImagePacker** struct, which is used to perform operations related to an image packer.
435e41f4b71Sopenharmony_ci
436e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_ImagePackerNative Struct](../../media/image/image-structure-c.md#oh_imagepackernative-struct).
437e41f4b71Sopenharmony_ci
438e41f4b71Sopenharmony_ci**Since**: 12
439e41f4b71Sopenharmony_ci
440e41f4b71Sopenharmony_ci
441e41f4b71Sopenharmony_ci### OH_ImageReceiver_OnCallback
442e41f4b71Sopenharmony_ci
443e41f4b71Sopenharmony_ci```
444e41f4b71Sopenharmony_citypedef void(*OH_ImageReceiver_OnCallback) (OH_ImageReceiverNative *receiver)
445e41f4b71Sopenharmony_ci```
446e41f4b71Sopenharmony_ci
447e41f4b71Sopenharmony_ci**Description**
448e41f4b71Sopenharmony_ci
449e41f4b71Sopenharmony_ciDefines the callbacks for the image receiver at the native layer.
450e41f4b71Sopenharmony_ci
451e41f4b71Sopenharmony_ci**Since**: 12
452e41f4b71Sopenharmony_ci
453e41f4b71Sopenharmony_ci
454e41f4b71Sopenharmony_ci### OH_ImageReceiverNative
455e41f4b71Sopenharmony_ci
456e41f4b71Sopenharmony_ci```
457e41f4b71Sopenharmony_citypedef struct OH_ImageReceiverNative OH_ImageReceiverNative
458e41f4b71Sopenharmony_ci```
459e41f4b71Sopenharmony_ci
460e41f4b71Sopenharmony_ci**Description**
461e41f4b71Sopenharmony_ci
462e41f4b71Sopenharmony_ciDefines the data type name of the image receiver at the native layer.
463e41f4b71Sopenharmony_ci
464e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_ImageReceiverNative Struct](../../media/image/image-structure-c.md#oh_imagereceivernative-struct).
465e41f4b71Sopenharmony_ci
466e41f4b71Sopenharmony_ci**Since**: 12
467e41f4b71Sopenharmony_ci
468e41f4b71Sopenharmony_ci
469e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions
470e41f4b71Sopenharmony_ci
471e41f4b71Sopenharmony_ci```
472e41f4b71Sopenharmony_citypedef struct OH_ImageReceiverOptionsOH_ImageReceiverOptions
473e41f4b71Sopenharmony_ci```
474e41f4b71Sopenharmony_ci
475e41f4b71Sopenharmony_ci**Description**
476e41f4b71Sopenharmony_ci
477e41f4b71Sopenharmony_ciDefines the data type name of the image receiver options.
478e41f4b71Sopenharmony_ci
479e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_ImageReceiverOptions Struct](../../media/image/image-structure-c.md#oh_imagereceiveroptions-struct).
480e41f4b71Sopenharmony_ci
481e41f4b71Sopenharmony_ci**Since**: 12
482e41f4b71Sopenharmony_ci
483e41f4b71Sopenharmony_ci
484e41f4b71Sopenharmony_ci### OH_Pixelmap_HdrDynamicMetadata
485e41f4b71Sopenharmony_ci
486e41f4b71Sopenharmony_ci```
487e41f4b71Sopenharmony_citypedef struct OH_Pixelmap_HdrDynamicMetadata OH_Pixelmap_HdrDynamicMetadata
488e41f4b71Sopenharmony_ci```
489e41f4b71Sopenharmony_ci
490e41f4b71Sopenharmony_ci**Description**
491e41f4b71Sopenharmony_ci
492e41f4b71Sopenharmony_ciDefines a struct for the dynamic metadata values available for the key **DR_DYNAMIC_METADATA**.
493e41f4b71Sopenharmony_ci
494e41f4b71Sopenharmony_ci**Since**: 12
495e41f4b71Sopenharmony_ci
496e41f4b71Sopenharmony_ci
497e41f4b71Sopenharmony_ci### OH_Pixelmap_HdrGainmapMetadata
498e41f4b71Sopenharmony_ci
499e41f4b71Sopenharmony_ci```
500e41f4b71Sopenharmony_citypedef struct OH_Pixelmap_HdrGainmapMetadata OH_Pixelmap_HdrGainmapMetadata
501e41f4b71Sopenharmony_ci```
502e41f4b71Sopenharmony_ci
503e41f4b71Sopenharmony_ci**Description**
504e41f4b71Sopenharmony_ci
505e41f4b71Sopenharmony_ciDefines a struct for the gain map metadata values available for the key **HDR_GAINMAP_METADATA**. For details, see ISO 21496-1.
506e41f4b71Sopenharmony_ci
507e41f4b71Sopenharmony_ci**Since**: 12
508e41f4b71Sopenharmony_ci
509e41f4b71Sopenharmony_ci
510e41f4b71Sopenharmony_ci### OH_Pixelmap_HdrMetadataValue
511e41f4b71Sopenharmony_ci
512e41f4b71Sopenharmony_ci```
513e41f4b71Sopenharmony_citypedef struct OH_Pixelmap_HdrMetadataValue OH_Pixelmap_HdrMetadataValue
514e41f4b71Sopenharmony_ci```
515e41f4b71Sopenharmony_ci
516e41f4b71Sopenharmony_ci**Description**
517e41f4b71Sopenharmony_ci
518e41f4b71Sopenharmony_ciDefines a struct for the HDR metadata values used by the pixel map. It corresponds to the key [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey).
519e41f4b71Sopenharmony_ci
520e41f4b71Sopenharmony_ciIt is used in [OH_PixelmapNative_SetMetadata](#oh_pixelmapnative_setmetadata) and [OH_PixelmapNative_GetMetadata](#oh_pixelmapnative_getmetadata).
521e41f4b71Sopenharmony_ci
522e41f4b71Sopenharmony_ci**Since**: 12
523e41f4b71Sopenharmony_ci
524e41f4b71Sopenharmony_ci
525e41f4b71Sopenharmony_ci### OH_Pixelmap_HdrStaticMetadata
526e41f4b71Sopenharmony_ci
527e41f4b71Sopenharmony_ci```
528e41f4b71Sopenharmony_citypedef struct OH_Pixelmap_HdrStaticMetadata OH_Pixelmap_HdrStaticMetadata
529e41f4b71Sopenharmony_ci```
530e41f4b71Sopenharmony_ci
531e41f4b71Sopenharmony_ci**Description**
532e41f4b71Sopenharmony_ci
533e41f4b71Sopenharmony_ciDefines a struct for the static metadata values available for the key **HDR_STATIC_METADATA**.
534e41f4b71Sopenharmony_ci
535e41f4b71Sopenharmony_ci**Since**: 12
536e41f4b71Sopenharmony_ci
537e41f4b71Sopenharmony_ci
538e41f4b71Sopenharmony_ci### OH_ImageSource_Info
539e41f4b71Sopenharmony_ci
540e41f4b71Sopenharmony_ci```
541e41f4b71Sopenharmony_citypedef struct OH_ImageSource_Info OH_ImageSource_Info
542e41f4b71Sopenharmony_ci```
543e41f4b71Sopenharmony_ci
544e41f4b71Sopenharmony_ci**Description**
545e41f4b71Sopenharmony_ci
546e41f4b71Sopenharmony_ciDefines a struct for the image source information, which is created by calling [OH_ImageSourceInfo_Create](#oh_imagesourceinfo_create).
547e41f4b71Sopenharmony_ci
548e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_ImageSource_Info Struct](../../media/image/image-structure-c.md#oh_imagesource_info-struct).
549e41f4b71Sopenharmony_ci
550e41f4b71Sopenharmony_ci**Since**: 12
551e41f4b71Sopenharmony_ci
552e41f4b71Sopenharmony_ci
553e41f4b71Sopenharmony_ci### OH_ImageSourceNative
554e41f4b71Sopenharmony_ci
555e41f4b71Sopenharmony_ci```
556e41f4b71Sopenharmony_citypedef struct OH_ImageSourceNative OH_ImageSourceNative
557e41f4b71Sopenharmony_ci```
558e41f4b71Sopenharmony_ci
559e41f4b71Sopenharmony_ci**Description**
560e41f4b71Sopenharmony_ci
561e41f4b71Sopenharmony_ciDefines the **ImageSource** struct, which is used to perform operations related to an image source.
562e41f4b71Sopenharmony_ci
563e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_ImageSourceNative Struct](../../media/image/image-structure-c.md#oh_imagesourcenative-struct).
564e41f4b71Sopenharmony_ci
565e41f4b71Sopenharmony_ci**Since**: 12
566e41f4b71Sopenharmony_ci
567e41f4b71Sopenharmony_ci
568e41f4b71Sopenharmony_ci### OH_PackingOptions
569e41f4b71Sopenharmony_ci
570e41f4b71Sopenharmony_ci```
571e41f4b71Sopenharmony_citypedef struct OH_PackingOptions OH_PackingOptions
572e41f4b71Sopenharmony_ci```
573e41f4b71Sopenharmony_ci
574e41f4b71Sopenharmony_ci**Description**
575e41f4b71Sopenharmony_ci
576e41f4b71Sopenharmony_ciDefines a struct for image encoding parameters.
577e41f4b71Sopenharmony_ci
578e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_PackingOptions Struct](../../media/image/image-structure-c.md#oh_packingoptions-struct).
579e41f4b71Sopenharmony_ci
580e41f4b71Sopenharmony_ci**Since**: 12
581e41f4b71Sopenharmony_ci
582e41f4b71Sopenharmony_ci
583e41f4b71Sopenharmony_ci### OH_Pixelmap_ImageInfo
584e41f4b71Sopenharmony_ci
585e41f4b71Sopenharmony_ci```
586e41f4b71Sopenharmony_citypedef struct OH_Pixelmap_ImageInfo OH_Pixelmap_ImageInfo
587e41f4b71Sopenharmony_ci```
588e41f4b71Sopenharmony_ci
589e41f4b71Sopenharmony_ci**Description**
590e41f4b71Sopenharmony_ci
591e41f4b71Sopenharmony_ciDefines a struct for the image information.
592e41f4b71Sopenharmony_ci
593e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_Pixelmap_ImageInfo Struct](../../media/image/image-structure-c.md#oh_pixelmap_imageinfo-struct).
594e41f4b71Sopenharmony_ci
595e41f4b71Sopenharmony_ci**Since**: 12
596e41f4b71Sopenharmony_ci
597e41f4b71Sopenharmony_ci
598e41f4b71Sopenharmony_ci### OH_Pixelmap_InitializationOptions
599e41f4b71Sopenharmony_ci
600e41f4b71Sopenharmony_ci```
601e41f4b71Sopenharmony_citypedef struct OH_Pixelmap_InitializationOptions OH_Pixelmap_InitializationOptions
602e41f4b71Sopenharmony_ci```
603e41f4b71Sopenharmony_ci
604e41f4b71Sopenharmony_ci**Description**
605e41f4b71Sopenharmony_ci
606e41f4b71Sopenharmony_ciDefines a struct for the initialization parameters.
607e41f4b71Sopenharmony_ci
608e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_Pixelmap_InitializationOptions Struct](../../media/image/image-structure-c.md#oh_pixelmap_initializationoptions-struct).
609e41f4b71Sopenharmony_ci
610e41f4b71Sopenharmony_ci**Since**: 12
611e41f4b71Sopenharmony_ci
612e41f4b71Sopenharmony_ci
613e41f4b71Sopenharmony_ci### OH_PixelmapNative
614e41f4b71Sopenharmony_ci
615e41f4b71Sopenharmony_ci```
616e41f4b71Sopenharmony_citypedef struct OH_PixelmapNative OH_PixelmapNative
617e41f4b71Sopenharmony_ci```
618e41f4b71Sopenharmony_ci
619e41f4b71Sopenharmony_ci**Description**
620e41f4b71Sopenharmony_ci
621e41f4b71Sopenharmony_ciDefines the **Pixelmap** struct, which is used to perform operations related to a pixel map.
622e41f4b71Sopenharmony_ci
623e41f4b71Sopenharmony_ciThe fields in this struct cannot be directly operated. Instead, they must be manipulated via function calls. For details about the struct content and operation mode, see [OH_PixelmapNative Struct](../../media/image/image-structure-c.md#oh_pixelmapnative-struct).
624e41f4b71Sopenharmony_ci
625e41f4b71Sopenharmony_ci**Since**: 12
626e41f4b71Sopenharmony_ci
627e41f4b71Sopenharmony_ci
628e41f4b71Sopenharmony_ci### OH_NativeBuffer
629e41f4b71Sopenharmony_ci
630e41f4b71Sopenharmony_ci```
631e41f4b71Sopenharmony_citypedef struct OH_NativeBuffer OH_NativeBuffer
632e41f4b71Sopenharmony_ci```
633e41f4b71Sopenharmony_ci
634e41f4b71Sopenharmony_ci**Description**
635e41f4b71Sopenharmony_ci
636e41f4b71Sopenharmony_ciDefines the **NativeBuffer** struct, which is used to perform operations related to the native buffer.
637e41f4b71Sopenharmony_ci
638e41f4b71Sopenharmony_ci
639e41f4b71Sopenharmony_ci**Since**: 12
640e41f4b71Sopenharmony_ci
641e41f4b71Sopenharmony_ci
642e41f4b71Sopenharmony_ci## Enum Description
643e41f4b71Sopenharmony_ci
644e41f4b71Sopenharmony_ci
645e41f4b71Sopenharmony_ci### IMAGE_DYNAMIC_RANGE
646e41f4b71Sopenharmony_ci
647e41f4b71Sopenharmony_ci```
648e41f4b71Sopenharmony_cienum IMAGE_DYNAMIC_RANGE
649e41f4b71Sopenharmony_ci```
650e41f4b71Sopenharmony_ci
651e41f4b71Sopenharmony_ci**Description**
652e41f4b71Sopenharmony_ci
653e41f4b71Sopenharmony_ciEnumerates the desired dynamic range for decoding.
654e41f4b71Sopenharmony_ci
655e41f4b71Sopenharmony_ci**Since**: 12
656e41f4b71Sopenharmony_ci
657e41f4b71Sopenharmony_ci| Value| Description| 
658e41f4b71Sopenharmony_ci| -------- | -------- |
659e41f4b71Sopenharmony_ci| IMAGE_DYNAMIC_RANGE_AUTO | Adaptive processing.| 
660e41f4b71Sopenharmony_ci| IMAGE_DYNAMIC_RANGE_SDR | Standard dynamic range (SDR).| 
661e41f4b71Sopenharmony_ci| IMAGE_DYNAMIC_RANGE_HDR | High dynamic range (HDR).| 
662e41f4b71Sopenharmony_ci
663e41f4b71Sopenharmony_ci
664e41f4b71Sopenharmony_ci### Image_ErrorCode
665e41f4b71Sopenharmony_ci
666e41f4b71Sopenharmony_ci```
667e41f4b71Sopenharmony_cienum Image_ErrorCode
668e41f4b71Sopenharmony_ci```
669e41f4b71Sopenharmony_ci
670e41f4b71Sopenharmony_ci**Description**
671e41f4b71Sopenharmony_ci
672e41f4b71Sopenharmony_ciEnumerates the error codes.
673e41f4b71Sopenharmony_ci
674e41f4b71Sopenharmony_ci**Since**: 12
675e41f4b71Sopenharmony_ci
676e41f4b71Sopenharmony_ci| Value| Description| 
677e41f4b71Sopenharmony_ci| -------- | -------- |
678e41f4b71Sopenharmony_ci| IMAGE_SUCCESS  | Operation successful.| 
679e41f4b71Sopenharmony_ci| IMAGE_BAD_PARAMETER  | Invalid parameter.| 
680e41f4b71Sopenharmony_ci| IMAGE_UNSUPPORTED_MIME_TYPE  | Unsupported MIME type.| 
681e41f4b71Sopenharmony_ci| IMAGE_UNKNOWN_MIME_TYPE  | Unknown MIME type.| 
682e41f4b71Sopenharmony_ci| IMAGE_TOO_LARGE  | The data or image is too large.| 
683e41f4b71Sopenharmony_ci| IMAGE_DMA_NOT_EXIST  | The memory is not the DMA memory.| 
684e41f4b71Sopenharmony_ci| IMAGE_DMA_OPERATION_FAILED  | The operation on the DMA memory fails.| 
685e41f4b71Sopenharmony_ci| IMAGE_UNSUPPORTED_OPERATION  | Unsupported operation.| 
686e41f4b71Sopenharmony_ci| IMAGE_UNSUPPORTED_METADATA  | Unsupported metadata.| 
687e41f4b71Sopenharmony_ci| IMAGE_UNSUPPORTED_CONVERSION  | Unsupported conversion.| 
688e41f4b71Sopenharmony_ci| IMAGE_INVALID_REGION  | Invalid region.| 
689e41f4b71Sopenharmony_ci| IMAGE_ALLOC_FAILED  | Failed to allocate the memory.| 
690e41f4b71Sopenharmony_ci| IMAGE_COPY_FAILED  | Failed to copy the memory.| 
691e41f4b71Sopenharmony_ci| IMAGE_UNKNOWN_ERROR  | Unknown error.| 
692e41f4b71Sopenharmony_ci| IMAGE_BAD_SOURCE  | Abnormal data source.| 
693e41f4b71Sopenharmony_ci| IMAGE_DECODE_FAILED  | Decoding failed.| 
694e41f4b71Sopenharmony_ci| IMAGE_ENCODE_FAILED  | Encoding failed.| 
695e41f4b71Sopenharmony_ci
696e41f4b71Sopenharmony_ci
697e41f4b71Sopenharmony_ci### IMAGE_PACKER_DYNAMIC_RANGE
698e41f4b71Sopenharmony_ci
699e41f4b71Sopenharmony_ci```
700e41f4b71Sopenharmony_cienum IMAGE_PACKER_DYNAMIC_RANGE
701e41f4b71Sopenharmony_ci```
702e41f4b71Sopenharmony_ci
703e41f4b71Sopenharmony_ci**Description**
704e41f4b71Sopenharmony_ci
705e41f4b71Sopenharmony_ciEnumerates the desired dynamic range for encoding.
706e41f4b71Sopenharmony_ci
707e41f4b71Sopenharmony_ci**Since**: 12
708e41f4b71Sopenharmony_ci
709e41f4b71Sopenharmony_ci| Value| Description| 
710e41f4b71Sopenharmony_ci| -------- | -------- |
711e41f4b71Sopenharmony_ci| IMAGE_PACKER_DYNAMIC_RANGE_AUTO | Adaptive processing.| 
712e41f4b71Sopenharmony_ci| IMAGE_PACKER_DYNAMIC_RANGE_SDR | SDR.| 
713e41f4b71Sopenharmony_ci
714e41f4b71Sopenharmony_ci
715e41f4b71Sopenharmony_ci### PIXEL_FORMAT
716e41f4b71Sopenharmony_ci
717e41f4b71Sopenharmony_ci```
718e41f4b71Sopenharmony_cienum PIXEL_FORMAT
719e41f4b71Sopenharmony_ci```
720e41f4b71Sopenharmony_ci
721e41f4b71Sopenharmony_ci**Description**
722e41f4b71Sopenharmony_ci
723e41f4b71Sopenharmony_ciEnumerates the image pixel formats.
724e41f4b71Sopenharmony_ci
725e41f4b71Sopenharmony_ci**Since**: 12
726e41f4b71Sopenharmony_ci
727e41f4b71Sopenharmony_ci| Value| Description| 
728e41f4b71Sopenharmony_ci| -------- | -------- |
729e41f4b71Sopenharmony_ci| PIXEL_FORMAT_UNKNOWN | Unknown format.| 
730e41f4b71Sopenharmony_ci| PIXEL_FORMAT_RGB_565 | RGB_565 format.| 
731e41f4b71Sopenharmony_ci| PIXEL_FORMAT_RGBA_8888 | RGBA_8888 format.| 
732e41f4b71Sopenharmony_ci| PIXEL_FORMAT_BGRA_8888 | BGRA_8888 format.| 
733e41f4b71Sopenharmony_ci| PIXEL_FORMAT_RGB_888 | RGB_888 format.| 
734e41f4b71Sopenharmony_ci| PIXEL_FORMAT_ALPHA_8 | ALPHA_8 format.| 
735e41f4b71Sopenharmony_ci| PIXEL_FORMAT_RGBA_F16 | RGBA_F16 format.| 
736e41f4b71Sopenharmony_ci| PIXEL_FORMAT_NV21 | NV21 format.| 
737e41f4b71Sopenharmony_ci| PIXEL_FORMAT_NV12 | NV12 format.| 
738e41f4b71Sopenharmony_ci
739e41f4b71Sopenharmony_ci
740e41f4b71Sopenharmony_ci### OH_Pixelmap_HdrMetadataKey
741e41f4b71Sopenharmony_ci
742e41f4b71Sopenharmony_ci```
743e41f4b71Sopenharmony_cienum OH_Pixelmap_HdrMetadataKey
744e41f4b71Sopenharmony_ci```
745e41f4b71Sopenharmony_ci
746e41f4b71Sopenharmony_ci**Description**
747e41f4b71Sopenharmony_ci
748e41f4b71Sopenharmony_ciEnumerates the keys of the HDR related metadata information used by the pixel map. It is used in [OH_PixelmapNative_SetMetadata](#oh_pixelmapnative_setmetadata) and [OH_PixelmapNative_GetMetadata](#oh_pixelmapnative_getmetadata).
749e41f4b71Sopenharmony_ci
750e41f4b71Sopenharmony_ci**Since**: 12
751e41f4b71Sopenharmony_ci
752e41f4b71Sopenharmony_ci| Value| Description| 
753e41f4b71Sopenharmony_ci| -------- | -------- |
754e41f4b71Sopenharmony_ci| HDR_METADATA_TYPE  | Metadata type used by the pixel map.  | 
755e41f4b71Sopenharmony_ci| HDR_STATIC_METADATA  | Static metadata.  | 
756e41f4b71Sopenharmony_ci| HDR_DYNAMIC_METADATA  | Dynamic metadata.  | 
757e41f4b71Sopenharmony_ci| HDR_GAINMAP_METADATA  | Metadata used by gain maps.  | 
758e41f4b71Sopenharmony_ci
759e41f4b71Sopenharmony_ci
760e41f4b71Sopenharmony_ci### OH_Pixelmap_HdrMetadataType
761e41f4b71Sopenharmony_ci
762e41f4b71Sopenharmony_ci```
763e41f4b71Sopenharmony_cienum OH_Pixelmap_HdrMetadataType
764e41f4b71Sopenharmony_ci```
765e41f4b71Sopenharmony_ci
766e41f4b71Sopenharmony_ci**Description**
767e41f4b71Sopenharmony_ci
768e41f4b71Sopenharmony_ciEnumerates the HDR metadata types, which are the values of **HDR_METADATA_TYPE**.
769e41f4b71Sopenharmony_ci
770e41f4b71Sopenharmony_ci**Since**: 12
771e41f4b71Sopenharmony_ci
772e41f4b71Sopenharmony_ci| Value| Description| 
773e41f4b71Sopenharmony_ci| -------- | -------- |
774e41f4b71Sopenharmony_ci| HDR_METADATA_TYPE_NONE  | No metadata.  | 
775e41f4b71Sopenharmony_ci| HDR_METADATA_TYPE_BASE  | Metadata used for base graphics.  | 
776e41f4b71Sopenharmony_ci| HDR_METADATA_TYPE_GAINMAP  | Metadata used for gain maps.  | 
777e41f4b71Sopenharmony_ci| HDR_METADATA_TYPE_ALTERNATE  | Metadata used for synthesized HDR graphics.  | 
778e41f4b71Sopenharmony_ci
779e41f4b71Sopenharmony_ci
780e41f4b71Sopenharmony_ci### OH_PixelmapNative_AntiAliasingLevel
781e41f4b71Sopenharmony_ci
782e41f4b71Sopenharmony_ci```
783e41f4b71Sopenharmony_cienum OH_PixelmapNative_AntiAliasingLevel
784e41f4b71Sopenharmony_ci```
785e41f4b71Sopenharmony_ci
786e41f4b71Sopenharmony_ci**Description**
787e41f4b71Sopenharmony_ci
788e41f4b71Sopenharmony_ciEnumerates the antialiasing levels used for scaling pixel maps.
789e41f4b71Sopenharmony_ci
790e41f4b71Sopenharmony_ci**Since**: 12
791e41f4b71Sopenharmony_ci
792e41f4b71Sopenharmony_ci| Value| Description| 
793e41f4b71Sopenharmony_ci| -------- | -------- |
794e41f4b71Sopenharmony_ci| OH_PixelmapNative_AntiAliasing_NONE  | Nearest neighbor.  | 
795e41f4b71Sopenharmony_ci| OH_PixelmapNative_AntiAliasing_LOW  | Bilinear interpolation.  | 
796e41f4b71Sopenharmony_ci| OH_PixelmapNative_AntiAliasing_MEDIUM  | Bilinear interpolation with mipmap enabled.  | 
797e41f4b71Sopenharmony_ci| OH_PixelmapNative_AntiAliasing_HIGH  | Cubic convolution.  | 
798e41f4b71Sopenharmony_ci
799e41f4b71Sopenharmony_ci
800e41f4b71Sopenharmony_ci### PIXELMAP_ALPHA_TYPE
801e41f4b71Sopenharmony_ci
802e41f4b71Sopenharmony_ci```
803e41f4b71Sopenharmony_cienum PIXELMAP_ALPHA_TYPE
804e41f4b71Sopenharmony_ci```
805e41f4b71Sopenharmony_ci
806e41f4b71Sopenharmony_ci**Description**
807e41f4b71Sopenharmony_ci
808e41f4b71Sopenharmony_ciEnumerates the alpha types of a pixel map.
809e41f4b71Sopenharmony_ci
810e41f4b71Sopenharmony_ci**Since**: 12
811e41f4b71Sopenharmony_ci
812e41f4b71Sopenharmony_ci| Value| Description| 
813e41f4b71Sopenharmony_ci| -------- | -------- |
814e41f4b71Sopenharmony_ci| PIXELMAP_ALPHA_TYPE_UNKNOWN | Unknown format.| 
815e41f4b71Sopenharmony_ci| PIXELMAP_ALPHA_TYPE_OPAQUE | Opaque format.| 
816e41f4b71Sopenharmony_ci| PIXELMAP_ALPHA_TYPE_PREMULTIPLIED | Premultiplied format.| 
817e41f4b71Sopenharmony_ci
818e41f4b71Sopenharmony_ci
819e41f4b71Sopenharmony_ci## Function Description
820e41f4b71Sopenharmony_ci
821e41f4b71Sopenharmony_ci
822e41f4b71Sopenharmony_ci### OH_DecodingOptions_Create()
823e41f4b71Sopenharmony_ci
824e41f4b71Sopenharmony_ci```
825e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_Create (OH_DecodingOptions ** options)
826e41f4b71Sopenharmony_ci```
827e41f4b71Sopenharmony_ci
828e41f4b71Sopenharmony_ci**Description**
829e41f4b71Sopenharmony_ci
830e41f4b71Sopenharmony_ciCreates the pointer to an **OH_DecodingOptions** object.
831e41f4b71Sopenharmony_ci
832e41f4b71Sopenharmony_ci**Since**: 12
833e41f4b71Sopenharmony_ci
834e41f4b71Sopenharmony_ci**Parameters**
835e41f4b71Sopenharmony_ci
836e41f4b71Sopenharmony_ci| Name| Description| 
837e41f4b71Sopenharmony_ci| -------- | -------- |
838e41f4b71Sopenharmony_ci| options | Double pointer to the **OH_DecodingOptions** object created. | 
839e41f4b71Sopenharmony_ci
840e41f4b71Sopenharmony_ci**Returns**
841e41f4b71Sopenharmony_ci
842e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
843e41f4b71Sopenharmony_ci
844e41f4b71Sopenharmony_ci
845e41f4b71Sopenharmony_ci### OH_DecodingOptions_GetDesiredDynamicRange()
846e41f4b71Sopenharmony_ci
847e41f4b71Sopenharmony_ci```
848e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_GetDesiredDynamicRange (OH_DecodingOptions * options, int32_t * desiredDynamicRange )
849e41f4b71Sopenharmony_ci```
850e41f4b71Sopenharmony_ci
851e41f4b71Sopenharmony_ci**Description**
852e41f4b71Sopenharmony_ci
853e41f4b71Sopenharmony_ciObtains the desired dynamic range configured during decoding.
854e41f4b71Sopenharmony_ci
855e41f4b71Sopenharmony_ci**Since**: 12
856e41f4b71Sopenharmony_ci
857e41f4b71Sopenharmony_ci**Parameters**
858e41f4b71Sopenharmony_ci
859e41f4b71Sopenharmony_ci| Name| Description| 
860e41f4b71Sopenharmony_ci| -------- | -------- |
861e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
862e41f4b71Sopenharmony_ci| desiredDynamicRange | Pointer to the desired dynamic range. For details about the available options, see [IMAGE_DYNAMIC_RANGE](#image_dynamic_range). | 
863e41f4b71Sopenharmony_ci
864e41f4b71Sopenharmony_ci**Returns**
865e41f4b71Sopenharmony_ci
866e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
867e41f4b71Sopenharmony_ci
868e41f4b71Sopenharmony_ci
869e41f4b71Sopenharmony_ci### OH_DecodingOptions_GetDesiredRegion()
870e41f4b71Sopenharmony_ci
871e41f4b71Sopenharmony_ci```
872e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_GetDesiredRegion (OH_DecodingOptions * options, Image_Region * desiredRegion )
873e41f4b71Sopenharmony_ci```
874e41f4b71Sopenharmony_ci
875e41f4b71Sopenharmony_ci**Description**
876e41f4b71Sopenharmony_ci
877e41f4b71Sopenharmony_ciObtains the region to decode.
878e41f4b71Sopenharmony_ci
879e41f4b71Sopenharmony_ci**Since**: 12
880e41f4b71Sopenharmony_ci
881e41f4b71Sopenharmony_ci**Parameters**
882e41f4b71Sopenharmony_ci
883e41f4b71Sopenharmony_ci| Name| Description| 
884e41f4b71Sopenharmony_ci| -------- | -------- |
885e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
886e41f4b71Sopenharmony_ci| desiredRegion | Pointer to the region to decode. | 
887e41f4b71Sopenharmony_ci
888e41f4b71Sopenharmony_ci**Returns**
889e41f4b71Sopenharmony_ci
890e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
891e41f4b71Sopenharmony_ci
892e41f4b71Sopenharmony_ci
893e41f4b71Sopenharmony_ci### OH_DecodingOptions_GetDesiredSize()
894e41f4b71Sopenharmony_ci
895e41f4b71Sopenharmony_ci```
896e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_GetDesiredSize (OH_DecodingOptions * options, Image_Size * desiredSize )
897e41f4b71Sopenharmony_ci```
898e41f4b71Sopenharmony_ci
899e41f4b71Sopenharmony_ci**Description**
900e41f4b71Sopenharmony_ci
901e41f4b71Sopenharmony_ciObtains the desired output size.
902e41f4b71Sopenharmony_ci
903e41f4b71Sopenharmony_ci**Since**: 12
904e41f4b71Sopenharmony_ci
905e41f4b71Sopenharmony_ci**Parameters**
906e41f4b71Sopenharmony_ci
907e41f4b71Sopenharmony_ci| Name| Description| 
908e41f4b71Sopenharmony_ci| -------- | -------- |
909e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
910e41f4b71Sopenharmony_ci| desiredSize | Pointer to the desired output size. | 
911e41f4b71Sopenharmony_ci
912e41f4b71Sopenharmony_ci**Returns**
913e41f4b71Sopenharmony_ci
914e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
915e41f4b71Sopenharmony_ci
916e41f4b71Sopenharmony_ci
917e41f4b71Sopenharmony_ci### OH_DecodingOptions_GetIndex()
918e41f4b71Sopenharmony_ci
919e41f4b71Sopenharmony_ci```
920e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_GetIndex (OH_DecodingOptions * options, uint32_t * index )
921e41f4b71Sopenharmony_ci```
922e41f4b71Sopenharmony_ci
923e41f4b71Sopenharmony_ci**Description**
924e41f4b71Sopenharmony_ci
925e41f4b71Sopenharmony_ciObtains the index of an image.
926e41f4b71Sopenharmony_ci
927e41f4b71Sopenharmony_ci**Since**: 12
928e41f4b71Sopenharmony_ci
929e41f4b71Sopenharmony_ci**Parameters**
930e41f4b71Sopenharmony_ci
931e41f4b71Sopenharmony_ci| Name| Description| 
932e41f4b71Sopenharmony_ci| -------- | -------- |
933e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
934e41f4b71Sopenharmony_ci| index | Pointer to the index of the image to decode. | 
935e41f4b71Sopenharmony_ci
936e41f4b71Sopenharmony_ci**Returns**
937e41f4b71Sopenharmony_ci
938e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
939e41f4b71Sopenharmony_ci
940e41f4b71Sopenharmony_ci
941e41f4b71Sopenharmony_ci### OH_DecodingOptions_GetPixelFormat()
942e41f4b71Sopenharmony_ci
943e41f4b71Sopenharmony_ci```
944e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_GetPixelFormat (OH_DecodingOptions * options, int32_t * pixelFormat )
945e41f4b71Sopenharmony_ci```
946e41f4b71Sopenharmony_ci
947e41f4b71Sopenharmony_ci**Description**
948e41f4b71Sopenharmony_ci
949e41f4b71Sopenharmony_ciObtains the pixel format.
950e41f4b71Sopenharmony_ci
951e41f4b71Sopenharmony_ci**Since**: 12
952e41f4b71Sopenharmony_ci
953e41f4b71Sopenharmony_ci**Parameters**
954e41f4b71Sopenharmony_ci
955e41f4b71Sopenharmony_ci| Name| Description| 
956e41f4b71Sopenharmony_ci| -------- | -------- |
957e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
958e41f4b71Sopenharmony_ci| pixelFormat | Pointer to the pixel format. For details about the available options, see [PIXEL_FORMAT](#pixel_format).| 
959e41f4b71Sopenharmony_ci
960e41f4b71Sopenharmony_ci**Returns**
961e41f4b71Sopenharmony_ci
962e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
963e41f4b71Sopenharmony_ci
964e41f4b71Sopenharmony_ci
965e41f4b71Sopenharmony_ci### OH_DecodingOptions_GetRotate()
966e41f4b71Sopenharmony_ci
967e41f4b71Sopenharmony_ci```
968e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_GetRotate (OH_DecodingOptions * options, float * rotate )
969e41f4b71Sopenharmony_ci```
970e41f4b71Sopenharmony_ci
971e41f4b71Sopenharmony_ci**Description**
972e41f4b71Sopenharmony_ci
973e41f4b71Sopenharmony_ciObtains the rotation degree.
974e41f4b71Sopenharmony_ci
975e41f4b71Sopenharmony_ci**Since**: 12
976e41f4b71Sopenharmony_ci
977e41f4b71Sopenharmony_ci**Parameters**
978e41f4b71Sopenharmony_ci
979e41f4b71Sopenharmony_ci| Name| Description| 
980e41f4b71Sopenharmony_ci| -------- | -------- |
981e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
982e41f4b71Sopenharmony_ci| rotate | Pointer to the angle to rotate, in degrees. | 
983e41f4b71Sopenharmony_ci
984e41f4b71Sopenharmony_ci**Returns**
985e41f4b71Sopenharmony_ci
986e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
987e41f4b71Sopenharmony_ci
988e41f4b71Sopenharmony_ci
989e41f4b71Sopenharmony_ci### OH_DecodingOptions_Release()
990e41f4b71Sopenharmony_ci
991e41f4b71Sopenharmony_ci```
992e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_Release (OH_DecodingOptions * options)
993e41f4b71Sopenharmony_ci```
994e41f4b71Sopenharmony_ci
995e41f4b71Sopenharmony_ci**Description**
996e41f4b71Sopenharmony_ci
997e41f4b71Sopenharmony_ciReleases the pointer to an **OH_DecodingOptions** object.
998e41f4b71Sopenharmony_ci
999e41f4b71Sopenharmony_ci**Since**: 12
1000e41f4b71Sopenharmony_ci
1001e41f4b71Sopenharmony_ci**Parameters**
1002e41f4b71Sopenharmony_ci
1003e41f4b71Sopenharmony_ci| Name| Description| 
1004e41f4b71Sopenharmony_ci| -------- | -------- |
1005e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1006e41f4b71Sopenharmony_ci
1007e41f4b71Sopenharmony_ci**Returns**
1008e41f4b71Sopenharmony_ci
1009e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1010e41f4b71Sopenharmony_ci
1011e41f4b71Sopenharmony_ci
1012e41f4b71Sopenharmony_ci
1013e41f4b71Sopenharmony_ci### OH_DecodingOptions_SetDesiredDynamicRange()
1014e41f4b71Sopenharmony_ci
1015e41f4b71Sopenharmony_ci```
1016e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_SetDesiredDynamicRange (OH_DecodingOptions * options, int32_t desiredDynamicRange )
1017e41f4b71Sopenharmony_ci```
1018e41f4b71Sopenharmony_ci
1019e41f4b71Sopenharmony_ci**Description**
1020e41f4b71Sopenharmony_ci
1021e41f4b71Sopenharmony_ciSets the desired dynamic range during decoding.
1022e41f4b71Sopenharmony_ci
1023e41f4b71Sopenharmony_ci**Since**: 12
1024e41f4b71Sopenharmony_ci
1025e41f4b71Sopenharmony_ci**Parameters**
1026e41f4b71Sopenharmony_ci
1027e41f4b71Sopenharmony_ci| Name| Description| 
1028e41f4b71Sopenharmony_ci| -------- | -------- |
1029e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1030e41f4b71Sopenharmony_ci| desiredDynamicRange | Desired dynamic range. For details about the available options, see [IMAGE_DYNAMIC_RANGE](#image_dynamic_range). | 
1031e41f4b71Sopenharmony_ci
1032e41f4b71Sopenharmony_ci**Returns**
1033e41f4b71Sopenharmony_ci
1034e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1035e41f4b71Sopenharmony_ci
1036e41f4b71Sopenharmony_ci
1037e41f4b71Sopenharmony_ci
1038e41f4b71Sopenharmony_ci
1039e41f4b71Sopenharmony_ci### OH_DecodingOptions_SetDesiredRegion()
1040e41f4b71Sopenharmony_ci
1041e41f4b71Sopenharmony_ci```
1042e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_SetDesiredRegion (OH_DecodingOptions * options, Image_Region * desiredRegion )
1043e41f4b71Sopenharmony_ci```
1044e41f4b71Sopenharmony_ci
1045e41f4b71Sopenharmony_ci**Description**
1046e41f4b71Sopenharmony_ci
1047e41f4b71Sopenharmony_ciSets the region to decode.
1048e41f4b71Sopenharmony_ci
1049e41f4b71Sopenharmony_ci**Since**: 12
1050e41f4b71Sopenharmony_ci
1051e41f4b71Sopenharmony_ci**Parameters**
1052e41f4b71Sopenharmony_ci
1053e41f4b71Sopenharmony_ci| Name| Description| 
1054e41f4b71Sopenharmony_ci| -------- | -------- |
1055e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1056e41f4b71Sopenharmony_ci| desiredRegion | Pointer to the region to decode. | 
1057e41f4b71Sopenharmony_ci
1058e41f4b71Sopenharmony_ci**Returns**
1059e41f4b71Sopenharmony_ci
1060e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1061e41f4b71Sopenharmony_ci
1062e41f4b71Sopenharmony_ci
1063e41f4b71Sopenharmony_ci### OH_DecodingOptions_SetDesiredSize()
1064e41f4b71Sopenharmony_ci
1065e41f4b71Sopenharmony_ci```
1066e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_SetDesiredSize (OH_DecodingOptions * options, Image_Size * desiredSize )
1067e41f4b71Sopenharmony_ci```
1068e41f4b71Sopenharmony_ci
1069e41f4b71Sopenharmony_ci**Description**
1070e41f4b71Sopenharmony_ci
1071e41f4b71Sopenharmony_ciSets the desired output size.
1072e41f4b71Sopenharmony_ci
1073e41f4b71Sopenharmony_ci**Since**: 12
1074e41f4b71Sopenharmony_ci
1075e41f4b71Sopenharmony_ci**Parameters**
1076e41f4b71Sopenharmony_ci
1077e41f4b71Sopenharmony_ci| Name| Description| 
1078e41f4b71Sopenharmony_ci| -------- | -------- |
1079e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1080e41f4b71Sopenharmony_ci| desiredSize | Pointer to the desired output size. | 
1081e41f4b71Sopenharmony_ci
1082e41f4b71Sopenharmony_ci**Returns**
1083e41f4b71Sopenharmony_ci
1084e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1085e41f4b71Sopenharmony_ci
1086e41f4b71Sopenharmony_ci
1087e41f4b71Sopenharmony_ci### OH_DecodingOptions_SetIndex()
1088e41f4b71Sopenharmony_ci
1089e41f4b71Sopenharmony_ci```
1090e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_SetIndex (OH_DecodingOptions * options, uint32_t index )
1091e41f4b71Sopenharmony_ci```
1092e41f4b71Sopenharmony_ci
1093e41f4b71Sopenharmony_ci**Description**
1094e41f4b71Sopenharmony_ci
1095e41f4b71Sopenharmony_ciSets the index for an image.
1096e41f4b71Sopenharmony_ci
1097e41f4b71Sopenharmony_ci**Since**: 12
1098e41f4b71Sopenharmony_ci
1099e41f4b71Sopenharmony_ci**Parameters**
1100e41f4b71Sopenharmony_ci
1101e41f4b71Sopenharmony_ci| Name| Description| 
1102e41f4b71Sopenharmony_ci| -------- | -------- |
1103e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1104e41f4b71Sopenharmony_ci| index | Index of the image to decode. | 
1105e41f4b71Sopenharmony_ci
1106e41f4b71Sopenharmony_ci**Returns**
1107e41f4b71Sopenharmony_ci
1108e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1109e41f4b71Sopenharmony_ci
1110e41f4b71Sopenharmony_ci
1111e41f4b71Sopenharmony_ci### OH_DecodingOptions_SetPixelFormat()
1112e41f4b71Sopenharmony_ci
1113e41f4b71Sopenharmony_ci```
1114e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_SetPixelFormat (OH_DecodingOptions * options, int32_t pixelFormat )
1115e41f4b71Sopenharmony_ci```
1116e41f4b71Sopenharmony_ci
1117e41f4b71Sopenharmony_ci**Description**
1118e41f4b71Sopenharmony_ci
1119e41f4b71Sopenharmony_ciSets the pixel format.
1120e41f4b71Sopenharmony_ci
1121e41f4b71Sopenharmony_ci**Since**: 12
1122e41f4b71Sopenharmony_ci
1123e41f4b71Sopenharmony_ci**Parameters**
1124e41f4b71Sopenharmony_ci
1125e41f4b71Sopenharmony_ci| Name| Description| 
1126e41f4b71Sopenharmony_ci| -------- | -------- |
1127e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1128e41f4b71Sopenharmony_ci| pixelFormat | Pixel format. For details about the available options, see [PIXEL_FORMAT](#pixel_format). | 
1129e41f4b71Sopenharmony_ci
1130e41f4b71Sopenharmony_ci**Returns**
1131e41f4b71Sopenharmony_ci
1132e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1133e41f4b71Sopenharmony_ci
1134e41f4b71Sopenharmony_ci
1135e41f4b71Sopenharmony_ci### OH_DecodingOptions_SetRotate()
1136e41f4b71Sopenharmony_ci
1137e41f4b71Sopenharmony_ci```
1138e41f4b71Sopenharmony_ciImage_ErrorCode OH_DecodingOptions_SetRotate (OH_DecodingOptions * options, float rotate )
1139e41f4b71Sopenharmony_ci```
1140e41f4b71Sopenharmony_ci
1141e41f4b71Sopenharmony_ci**Description**
1142e41f4b71Sopenharmony_ci
1143e41f4b71Sopenharmony_ciSets the rotation angle.
1144e41f4b71Sopenharmony_ci
1145e41f4b71Sopenharmony_ci**Since**: 12
1146e41f4b71Sopenharmony_ci
1147e41f4b71Sopenharmony_ci**Parameters**
1148e41f4b71Sopenharmony_ci
1149e41f4b71Sopenharmony_ci| Name| Description| 
1150e41f4b71Sopenharmony_ci| -------- | -------- |
1151e41f4b71Sopenharmony_ci| options | Pointer to an **OH_DecodingOptions** object. | 
1152e41f4b71Sopenharmony_ci| rotate | Angle to rotate, in degrees. | 
1153e41f4b71Sopenharmony_ci
1154e41f4b71Sopenharmony_ci**Returns**
1155e41f4b71Sopenharmony_ci
1156e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1157e41f4b71Sopenharmony_ci
1158e41f4b71Sopenharmony_ci
1159e41f4b71Sopenharmony_ci### OH_ImageNative_GetBufferSize()
1160e41f4b71Sopenharmony_ci
1161e41f4b71Sopenharmony_ci```
1162e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_GetBufferSize (OH_ImageNative * image, uint32_t componentType, size_t * size )
1163e41f4b71Sopenharmony_ci```
1164e41f4b71Sopenharmony_ci
1165e41f4b71Sopenharmony_ci**Description**
1166e41f4b71Sopenharmony_ci
1167e41f4b71Sopenharmony_ciObtains the size of the buffer corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.
1168e41f4b71Sopenharmony_ci
1169e41f4b71Sopenharmony_ci**Since**: 12
1170e41f4b71Sopenharmony_ci
1171e41f4b71Sopenharmony_ci**Parameters**
1172e41f4b71Sopenharmony_ci
1173e41f4b71Sopenharmony_ci| Name| Description| 
1174e41f4b71Sopenharmony_ci| -------- | -------- |
1175e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1176e41f4b71Sopenharmony_ci| componentType | Component type. | 
1177e41f4b71Sopenharmony_ci| size | Pointer to the size of the buffer. | 
1178e41f4b71Sopenharmony_ci
1179e41f4b71Sopenharmony_ci**Returns**
1180e41f4b71Sopenharmony_ci
1181e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1182e41f4b71Sopenharmony_ci
1183e41f4b71Sopenharmony_ci
1184e41f4b71Sopenharmony_ci### OH_ImageNative_GetByteBuffer()
1185e41f4b71Sopenharmony_ci
1186e41f4b71Sopenharmony_ci```
1187e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_GetByteBuffer (OH_ImageNative * image, uint32_t componentType, OH_NativeBuffer ** nativeBuffer )
1188e41f4b71Sopenharmony_ci```
1189e41f4b71Sopenharmony_ci
1190e41f4b71Sopenharmony_ci**Description**
1191e41f4b71Sopenharmony_ci
1192e41f4b71Sopenharmony_ciObtains the buffer corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.
1193e41f4b71Sopenharmony_ci
1194e41f4b71Sopenharmony_ci**Since**: 12
1195e41f4b71Sopenharmony_ci
1196e41f4b71Sopenharmony_ci**Parameters**
1197e41f4b71Sopenharmony_ci
1198e41f4b71Sopenharmony_ci| Name| Description| 
1199e41f4b71Sopenharmony_ci| -------- | -------- |
1200e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1201e41f4b71Sopenharmony_ci| componentType | Component type. | 
1202e41f4b71Sopenharmony_ci| nativeBuffer | Double pointer to the buffer, which is an **OH_NativeBuffer** object. | 
1203e41f4b71Sopenharmony_ci
1204e41f4b71Sopenharmony_ci**Returns**
1205e41f4b71Sopenharmony_ci
1206e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1207e41f4b71Sopenharmony_ci
1208e41f4b71Sopenharmony_ci
1209e41f4b71Sopenharmony_ci### OH_ImageNative_GetComponentTypes()
1210e41f4b71Sopenharmony_ci
1211e41f4b71Sopenharmony_ci```
1212e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_GetComponentTypes (OH_ImageNative * image, uint32_t ** types, size_t * typeSize )
1213e41f4b71Sopenharmony_ci```
1214e41f4b71Sopenharmony_ci
1215e41f4b71Sopenharmony_ci**Description**
1216e41f4b71Sopenharmony_ci
1217e41f4b71Sopenharmony_ciObtains the component types of an [OH_ImageNative](#oh_imagenative) object.
1218e41f4b71Sopenharmony_ci
1219e41f4b71Sopenharmony_ci**Since**: 12
1220e41f4b71Sopenharmony_ci
1221e41f4b71Sopenharmony_ci**Parameters**
1222e41f4b71Sopenharmony_ci
1223e41f4b71Sopenharmony_ci| Name| Description| 
1224e41f4b71Sopenharmony_ci| -------- | -------- |
1225e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1226e41f4b71Sopenharmony_ci| types | Double pointer to the component types obtained. | 
1227e41f4b71Sopenharmony_ci| typeSize | Pointer to the number of component types obtained. | 
1228e41f4b71Sopenharmony_ci
1229e41f4b71Sopenharmony_ci**Returns**
1230e41f4b71Sopenharmony_ci
1231e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1232e41f4b71Sopenharmony_ci
1233e41f4b71Sopenharmony_ci
1234e41f4b71Sopenharmony_ci### OH_ImageNative_GetImageSize()
1235e41f4b71Sopenharmony_ci
1236e41f4b71Sopenharmony_ci```
1237e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_GetImageSize (OH_ImageNative * image, Image_Size * size )
1238e41f4b71Sopenharmony_ci```
1239e41f4b71Sopenharmony_ci
1240e41f4b71Sopenharmony_ci**Description**
1241e41f4b71Sopenharmony_ci
1242e41f4b71Sopenharmony_ciObtains the [Image_Size](_image___size.md) information of an [OH_ImageNative](#oh_imagenative) object.
1243e41f4b71Sopenharmony_ci
1244e41f4b71Sopenharmony_ci**Since**: 12
1245e41f4b71Sopenharmony_ci
1246e41f4b71Sopenharmony_ci**Parameters**
1247e41f4b71Sopenharmony_ci
1248e41f4b71Sopenharmony_ci| Name| Description| 
1249e41f4b71Sopenharmony_ci| -------- | -------- |
1250e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1251e41f4b71Sopenharmony_ci| size | Pointer to the [Image_Size](_image___size.md) object obtained. | 
1252e41f4b71Sopenharmony_ci
1253e41f4b71Sopenharmony_ci**Returns**
1254e41f4b71Sopenharmony_ci
1255e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
1256e41f4b71Sopenharmony_ci
1257e41f4b71Sopenharmony_ci
1258e41f4b71Sopenharmony_ci### OH_ImageNative_GetPixelStride()
1259e41f4b71Sopenharmony_ci
1260e41f4b71Sopenharmony_ci```
1261e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_GetPixelStride (OH_ImageNative * image, uint32_t componentType, int32_t * pixelStride )
1262e41f4b71Sopenharmony_ci```
1263e41f4b71Sopenharmony_ci
1264e41f4b71Sopenharmony_ci**Description**
1265e41f4b71Sopenharmony_ci
1266e41f4b71Sopenharmony_ciObtains the pixel stride corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.
1267e41f4b71Sopenharmony_ci
1268e41f4b71Sopenharmony_ci**Since**: 12
1269e41f4b71Sopenharmony_ci
1270e41f4b71Sopenharmony_ci**Parameters**
1271e41f4b71Sopenharmony_ci
1272e41f4b71Sopenharmony_ci| Name| Description| 
1273e41f4b71Sopenharmony_ci| -------- | -------- |
1274e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1275e41f4b71Sopenharmony_ci| componentType | Component type. | 
1276e41f4b71Sopenharmony_ci| pixelStride | Pointer to the pixel stride obtained. | 
1277e41f4b71Sopenharmony_ci
1278e41f4b71Sopenharmony_ci**Returns**
1279e41f4b71Sopenharmony_ci
1280e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1281e41f4b71Sopenharmony_ci
1282e41f4b71Sopenharmony_ci
1283e41f4b71Sopenharmony_ci### OH_ImageNative_GetRowStride()
1284e41f4b71Sopenharmony_ci
1285e41f4b71Sopenharmony_ci```
1286e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_GetRowStride (OH_ImageNative * image, uint32_t componentType, int32_t * rowStride )
1287e41f4b71Sopenharmony_ci```
1288e41f4b71Sopenharmony_ci
1289e41f4b71Sopenharmony_ci**Description**
1290e41f4b71Sopenharmony_ci
1291e41f4b71Sopenharmony_ciObtains the row stride corresponding to a component type in an [OH_ImageNative](#oh_imagenative) object.
1292e41f4b71Sopenharmony_ci
1293e41f4b71Sopenharmony_ci**Since**: 12
1294e41f4b71Sopenharmony_ci
1295e41f4b71Sopenharmony_ci**Parameters**
1296e41f4b71Sopenharmony_ci
1297e41f4b71Sopenharmony_ci| Name| Description| 
1298e41f4b71Sopenharmony_ci| -------- | -------- |
1299e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1300e41f4b71Sopenharmony_ci| componentType | Component type. | 
1301e41f4b71Sopenharmony_ci| rowStride | Pointer to the row stride obtained. | 
1302e41f4b71Sopenharmony_ci
1303e41f4b71Sopenharmony_ci**Returns**
1304e41f4b71Sopenharmony_ci
1305e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1306e41f4b71Sopenharmony_ci
1307e41f4b71Sopenharmony_ci
1308e41f4b71Sopenharmony_ci### OH_ImageNative_Release()
1309e41f4b71Sopenharmony_ci
1310e41f4b71Sopenharmony_ci```
1311e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageNative_Release (OH_ImageNative * image)
1312e41f4b71Sopenharmony_ci```
1313e41f4b71Sopenharmony_ci
1314e41f4b71Sopenharmony_ci**Description**
1315e41f4b71Sopenharmony_ci
1316e41f4b71Sopenharmony_ciReleases an [OH_ImageNative](#oh_imagenative) object.
1317e41f4b71Sopenharmony_ci
1318e41f4b71Sopenharmony_ci**Since**: 12
1319e41f4b71Sopenharmony_ci
1320e41f4b71Sopenharmony_ci**Parameters**
1321e41f4b71Sopenharmony_ci
1322e41f4b71Sopenharmony_ci| Name| Description| 
1323e41f4b71Sopenharmony_ci| -------- | -------- |
1324e41f4b71Sopenharmony_ci| image | Pointer to an [OH_ImageNative](#oh_imagenative) object. | 
1325e41f4b71Sopenharmony_ci
1326e41f4b71Sopenharmony_ci**Returns**
1327e41f4b71Sopenharmony_ci
1328e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1329e41f4b71Sopenharmony_ci
1330e41f4b71Sopenharmony_ci
1331e41f4b71Sopenharmony_ci### OH_ImagePackerNative_Create()
1332e41f4b71Sopenharmony_ci
1333e41f4b71Sopenharmony_ci```
1334e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImagePackerNative_Create (OH_ImagePackerNative ** imagePacker)
1335e41f4b71Sopenharmony_ci```
1336e41f4b71Sopenharmony_ci
1337e41f4b71Sopenharmony_ci**Description**
1338e41f4b71Sopenharmony_ci
1339e41f4b71Sopenharmony_ciCreates the pointer to an **OH_ImagePackerNative** object.
1340e41f4b71Sopenharmony_ci
1341e41f4b71Sopenharmony_ci**Since**: 12
1342e41f4b71Sopenharmony_ci
1343e41f4b71Sopenharmony_ci**Parameters**
1344e41f4b71Sopenharmony_ci
1345e41f4b71Sopenharmony_ci| Name| Description| 
1346e41f4b71Sopenharmony_ci| -------- | -------- |
1347e41f4b71Sopenharmony_ci| options | Double pointer to the **OH_ImagePackerNative** object created. | 
1348e41f4b71Sopenharmony_ci
1349e41f4b71Sopenharmony_ci**Returns**
1350e41f4b71Sopenharmony_ci
1351e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1352e41f4b71Sopenharmony_ci
1353e41f4b71Sopenharmony_ci
1354e41f4b71Sopenharmony_ci### OH_ImagePackerNative_PackToDataFromImageSource()
1355e41f4b71Sopenharmony_ci
1356e41f4b71Sopenharmony_ci```
1357e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImagePackerNative_PackToDataFromImageSource (OH_ImagePackerNative * imagePacker, OH_PackingOptions * options, OH_ImageSourceNative * imageSource, uint8_t * outData, size_t * size )
1358e41f4b71Sopenharmony_ci```
1359e41f4b71Sopenharmony_ci
1360e41f4b71Sopenharmony_ci**Description**
1361e41f4b71Sopenharmony_ci
1362e41f4b71Sopenharmony_ciEncodes an image source into data in a given format.
1363e41f4b71Sopenharmony_ci
1364e41f4b71Sopenharmony_ci**Since**: 12
1365e41f4b71Sopenharmony_ci
1366e41f4b71Sopenharmony_ci**Parameters**
1367e41f4b71Sopenharmony_ci
1368e41f4b71Sopenharmony_ci| Name| Description| 
1369e41f4b71Sopenharmony_ci| -------- | -------- |
1370e41f4b71Sopenharmony_ci| imagePacker | Pointer to an **OH_ImagePackerNative** object. | 
1371e41f4b71Sopenharmony_ci| options | Pointer to an [OH_PackingOptions](#oh_packingoptions) object. | 
1372e41f4b71Sopenharmony_ci| imageSource | Pointer to the image source to encode. | 
1373e41f4b71Sopenharmony_ci| outData | Pointer to the buffer used to store the output data. | 
1374e41f4b71Sopenharmony_ci| size | Pointer to the size of the buffer. | 
1375e41f4b71Sopenharmony_ci
1376e41f4b71Sopenharmony_ci**Returns**
1377e41f4b71Sopenharmony_ci
1378e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DECODE_FAILED** if image decoding fails; returns **IMAGE_ALLOC_FAILED** if memory allocation fails; returns **IMAGE_TOO_LARGE** if the data or image is too large; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
1379e41f4b71Sopenharmony_ci
1380e41f4b71Sopenharmony_ci
1381e41f4b71Sopenharmony_ci### OH_ImagePackerNative_PackToDataFromPixelmap()
1382e41f4b71Sopenharmony_ci
1383e41f4b71Sopenharmony_ci```
1384e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImagePackerNative_PackToDataFromPixelmap (OH_ImagePackerNative * imagePacker, OH_PackingOptions * options, OH_PixelmapNative * pixelmap, uint8_t * outData, size_t * size )
1385e41f4b71Sopenharmony_ci```
1386e41f4b71Sopenharmony_ci
1387e41f4b71Sopenharmony_ci**Description**
1388e41f4b71Sopenharmony_ci
1389e41f4b71Sopenharmony_ciEncodes a pixel map into data in a given format.
1390e41f4b71Sopenharmony_ci
1391e41f4b71Sopenharmony_ci**Since**: 12
1392e41f4b71Sopenharmony_ci
1393e41f4b71Sopenharmony_ci**Parameters**
1394e41f4b71Sopenharmony_ci
1395e41f4b71Sopenharmony_ci| Name| Description| 
1396e41f4b71Sopenharmony_ci| -------- | -------- |
1397e41f4b71Sopenharmony_ci| imagePacker | Pointer to an **OH_ImagePackerNative** object. | 
1398e41f4b71Sopenharmony_ci| options | Pointer to an [OH_PackingOptions](#oh_packingoptions) object.| 
1399e41f4b71Sopenharmony_ci| pixelmap | Pointer to the pixel map to encode. | 
1400e41f4b71Sopenharmony_ci| outData | Pointer to the buffer used to store the output data. | 
1401e41f4b71Sopenharmony_ci| size | Pointer to the size of the buffer. | 
1402e41f4b71Sopenharmony_ci
1403e41f4b71Sopenharmony_ci**Returns**
1404e41f4b71Sopenharmony_ci
1405e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DECODE_FAILED** if image decoding fails; returns **IMAGE_ALLOC_FAILED** if memory allocation fails; returns **IMAGE_TOO_LARGE** if the data or image is too large; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
1406e41f4b71Sopenharmony_ci
1407e41f4b71Sopenharmony_ci
1408e41f4b71Sopenharmony_ci### OH_ImagePackerNative_PackToFileFromImageSource()
1409e41f4b71Sopenharmony_ci
1410e41f4b71Sopenharmony_ci```
1411e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImagePackerNative_PackToFileFromImageSource (OH_ImagePackerNative * imagePacker, OH_PackingOptions * options, OH_ImageSourceNative * imageSource, int32_t fd )
1412e41f4b71Sopenharmony_ci```
1413e41f4b71Sopenharmony_ci
1414e41f4b71Sopenharmony_ci**Description**
1415e41f4b71Sopenharmony_ci
1416e41f4b71Sopenharmony_ciEncodes an image source into a file.
1417e41f4b71Sopenharmony_ci
1418e41f4b71Sopenharmony_ci**Since**: 12
1419e41f4b71Sopenharmony_ci
1420e41f4b71Sopenharmony_ci**Parameters**
1421e41f4b71Sopenharmony_ci
1422e41f4b71Sopenharmony_ci| Name| Description| 
1423e41f4b71Sopenharmony_ci| -------- | -------- |
1424e41f4b71Sopenharmony_ci| imagePacker | Pointer to an **OH_ImagePackerNative** object. | 
1425e41f4b71Sopenharmony_ci| options | Pointer to an [OH_PackingOptions](#oh_packingoptions) object.| 
1426e41f4b71Sopenharmony_ci| imageSource | Pointer to the image source to encode. | 
1427e41f4b71Sopenharmony_ci| fd | File descriptor, which is writable. | 
1428e41f4b71Sopenharmony_ci
1429e41f4b71Sopenharmony_ci**Returns**
1430e41f4b71Sopenharmony_ci
1431e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DECODE_FAILED** if image decoding fails; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
1432e41f4b71Sopenharmony_ci
1433e41f4b71Sopenharmony_ci
1434e41f4b71Sopenharmony_ci### OH_ImagePackerNative_PackToFileFromPixelmap()
1435e41f4b71Sopenharmony_ci
1436e41f4b71Sopenharmony_ci```
1437e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImagePackerNative_PackToFileFromPixelmap (OH_ImagePackerNative * imagePacker, OH_PackingOptions * options, OH_PixelmapNative * pixelmap, int32_t fd )
1438e41f4b71Sopenharmony_ci```
1439e41f4b71Sopenharmony_ci
1440e41f4b71Sopenharmony_ci**Description**
1441e41f4b71Sopenharmony_ci
1442e41f4b71Sopenharmony_ciEncodes a pixel map into a file.
1443e41f4b71Sopenharmony_ci
1444e41f4b71Sopenharmony_ci**Since**: 12
1445e41f4b71Sopenharmony_ci
1446e41f4b71Sopenharmony_ci**Parameters**
1447e41f4b71Sopenharmony_ci
1448e41f4b71Sopenharmony_ci| Name| Description| 
1449e41f4b71Sopenharmony_ci| -------- | -------- |
1450e41f4b71Sopenharmony_ci| imagePacker | Pointer to an **OH_ImagePackerNative** object. | 
1451e41f4b71Sopenharmony_ci| options | Pointer to an [OH_PackingOptions](#oh_packingoptions) object.| 
1452e41f4b71Sopenharmony_ci| pixelmap | Pointer to the pixel map to encode. | 
1453e41f4b71Sopenharmony_ci| fd | File descriptor, which is writable. | 
1454e41f4b71Sopenharmony_ci
1455e41f4b71Sopenharmony_ci**Returns**
1456e41f4b71Sopenharmony_ci
1457e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DECODE_FAILED** if image decoding fails; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
1458e41f4b71Sopenharmony_ci
1459e41f4b71Sopenharmony_ci
1460e41f4b71Sopenharmony_ci### OH_ImagePackerNative_Release()
1461e41f4b71Sopenharmony_ci
1462e41f4b71Sopenharmony_ci```
1463e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImagePackerNative_Release (OH_ImagePackerNative * imagePacker)
1464e41f4b71Sopenharmony_ci```
1465e41f4b71Sopenharmony_ci
1466e41f4b71Sopenharmony_ci**Description**
1467e41f4b71Sopenharmony_ci
1468e41f4b71Sopenharmony_ciReleases the pointer to an **OH_ImagePackerNative** object.
1469e41f4b71Sopenharmony_ci
1470e41f4b71Sopenharmony_ci**Since**: 12
1471e41f4b71Sopenharmony_ci
1472e41f4b71Sopenharmony_ci**Parameters**
1473e41f4b71Sopenharmony_ci
1474e41f4b71Sopenharmony_ci| Name| Description| 
1475e41f4b71Sopenharmony_ci| -------- | -------- |
1476e41f4b71Sopenharmony_ci| imagePacker | Pointer to an **OH_ImagePackerNative** object. | 
1477e41f4b71Sopenharmony_ci
1478e41f4b71Sopenharmony_ci**Returns**
1479e41f4b71Sopenharmony_ci
1480e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1481e41f4b71Sopenharmony_ci
1482e41f4b71Sopenharmony_ci
1483e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_Create()
1484e41f4b71Sopenharmony_ci
1485e41f4b71Sopenharmony_ci```
1486e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_Create (OH_ImageReceiverOptions * options, OH_ImageReceiverNative ** receiver )
1487e41f4b71Sopenharmony_ci```
1488e41f4b71Sopenharmony_ci
1489e41f4b71Sopenharmony_ci**Description**
1490e41f4b71Sopenharmony_ci
1491e41f4b71Sopenharmony_ciCreates an **OH_ImageReceiverNative** object at the application layer.
1492e41f4b71Sopenharmony_ci
1493e41f4b71Sopenharmony_ci**Since**: 12
1494e41f4b71Sopenharmony_ci
1495e41f4b71Sopenharmony_ci**Parameters**
1496e41f4b71Sopenharmony_ci
1497e41f4b71Sopenharmony_ci| Name| Description| 
1498e41f4b71Sopenharmony_ci| -------- | -------- |
1499e41f4b71Sopenharmony_ci| options | Pointer to an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object. | 
1500e41f4b71Sopenharmony_ci| receiver | Double pointer to the [OH_ImageReceiverNative](#oh_imagereceivernative) object created. | 
1501e41f4b71Sopenharmony_ci
1502e41f4b71Sopenharmony_ci**Returns**
1503e41f4b71Sopenharmony_ci
1504e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_ALLOC_FAILED** if memory allocation fails. For details, see [Image_ErrorCode](#image_errorcode).
1505e41f4b71Sopenharmony_ci
1506e41f4b71Sopenharmony_ci
1507e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_GetCapacity()
1508e41f4b71Sopenharmony_ci
1509e41f4b71Sopenharmony_ci```
1510e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_GetCapacity (OH_ImageReceiverNative * receiver, int32_t * capacity )
1511e41f4b71Sopenharmony_ci```
1512e41f4b71Sopenharmony_ci
1513e41f4b71Sopenharmony_ci**Description**
1514e41f4b71Sopenharmony_ci
1515e41f4b71Sopenharmony_ciObtains the capacity of an image receiver, which is an [OH_ImageReceiverNative](#oh_imagereceivernative) object.
1516e41f4b71Sopenharmony_ci
1517e41f4b71Sopenharmony_ci**Since**: 12
1518e41f4b71Sopenharmony_ci
1519e41f4b71Sopenharmony_ci**Parameters**
1520e41f4b71Sopenharmony_ci
1521e41f4b71Sopenharmony_ci| Name| Description| 
1522e41f4b71Sopenharmony_ci| -------- | -------- |
1523e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1524e41f4b71Sopenharmony_ci| capacity | Pointer to the capacity obtained. | 
1525e41f4b71Sopenharmony_ci
1526e41f4b71Sopenharmony_ci**Returns**
1527e41f4b71Sopenharmony_ci
1528e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1529e41f4b71Sopenharmony_ci
1530e41f4b71Sopenharmony_ci**See**
1531e41f4b71Sopenharmony_ci
1532e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative)
1533e41f4b71Sopenharmony_ci
1534e41f4b71Sopenharmony_ci
1535e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_GetReceivingSurfaceId()
1536e41f4b71Sopenharmony_ci
1537e41f4b71Sopenharmony_ci```
1538e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_GetReceivingSurfaceId (OH_ImageReceiverNative * receiver, uint64_t * surfaceId )
1539e41f4b71Sopenharmony_ci```
1540e41f4b71Sopenharmony_ci
1541e41f4b71Sopenharmony_ci**Description**
1542e41f4b71Sopenharmony_ci
1543e41f4b71Sopenharmony_ciObtains the receiver ID through an [OH_ImageReceiverNative](#oh_imagereceivernative) object.
1544e41f4b71Sopenharmony_ci
1545e41f4b71Sopenharmony_ci**Since**: 12
1546e41f4b71Sopenharmony_ci
1547e41f4b71Sopenharmony_ci**Parameters**
1548e41f4b71Sopenharmony_ci
1549e41f4b71Sopenharmony_ci| Name| Description| 
1550e41f4b71Sopenharmony_ci| -------- | -------- |
1551e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1552e41f4b71Sopenharmony_ci| surfaceId | Pointer to the surface ID obtained. | 
1553e41f4b71Sopenharmony_ci
1554e41f4b71Sopenharmony_ci**Returns**
1555e41f4b71Sopenharmony_ci
1556e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
1557e41f4b71Sopenharmony_ci
1558e41f4b71Sopenharmony_ci**See**
1559e41f4b71Sopenharmony_ci
1560e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative)
1561e41f4b71Sopenharmony_ci
1562e41f4b71Sopenharmony_ci
1563e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_GetSize()
1564e41f4b71Sopenharmony_ci
1565e41f4b71Sopenharmony_ci```
1566e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_GetSize (OH_ImageReceiverNative * receiver, Image_Size * size )
1567e41f4b71Sopenharmony_ci```
1568e41f4b71Sopenharmony_ci
1569e41f4b71Sopenharmony_ci**Description**
1570e41f4b71Sopenharmony_ci
1571e41f4b71Sopenharmony_ciObtains the size of an image receiver, which is an [OH_ImageReceiverNative](#oh_imagereceivernative) object.
1572e41f4b71Sopenharmony_ci
1573e41f4b71Sopenharmony_ci**Since**: 12
1574e41f4b71Sopenharmony_ci
1575e41f4b71Sopenharmony_ci**Parameters**
1576e41f4b71Sopenharmony_ci
1577e41f4b71Sopenharmony_ci| Name| Description| 
1578e41f4b71Sopenharmony_ci| -------- | -------- |
1579e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1580e41f4b71Sopenharmony_ci| size | Pointer to the [Image_Size](_image___size.md) object obtained. | 
1581e41f4b71Sopenharmony_ci
1582e41f4b71Sopenharmony_ci**Returns**
1583e41f4b71Sopenharmony_ci
1584e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1585e41f4b71Sopenharmony_ci
1586e41f4b71Sopenharmony_ci**See**
1587e41f4b71Sopenharmony_ci
1588e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative), [Image_Size](_image___size.md)
1589e41f4b71Sopenharmony_ci
1590e41f4b71Sopenharmony_ci
1591e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_Off()
1592e41f4b71Sopenharmony_ci
1593e41f4b71Sopenharmony_ci```
1594e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_Off (OH_ImageReceiverNative * receiver)
1595e41f4b71Sopenharmony_ci```
1596e41f4b71Sopenharmony_ci
1597e41f4b71Sopenharmony_ci**Description**
1598e41f4b71Sopenharmony_ci
1599e41f4b71Sopenharmony_ciUnregisters a callback, which is an [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback) object.
1600e41f4b71Sopenharmony_ci
1601e41f4b71Sopenharmony_ciThe callback is registered by calling [OH_ImageReceiverNative_On](#oh_imagereceivernative_on).
1602e41f4b71Sopenharmony_ci
1603e41f4b71Sopenharmony_ci**Since**: 12
1604e41f4b71Sopenharmony_ci
1605e41f4b71Sopenharmony_ci**Parameters**
1606e41f4b71Sopenharmony_ci
1607e41f4b71Sopenharmony_ci| Name| Description| 
1608e41f4b71Sopenharmony_ci| -------- | -------- |
1609e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1610e41f4b71Sopenharmony_ci
1611e41f4b71Sopenharmony_ci**Returns**
1612e41f4b71Sopenharmony_ci
1613e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1614e41f4b71Sopenharmony_ci
1615e41f4b71Sopenharmony_ci**See**
1616e41f4b71Sopenharmony_ci
1617e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative), [OH_ImageReceiverNative_On](#oh_imagereceivernative_on)
1618e41f4b71Sopenharmony_ci
1619e41f4b71Sopenharmony_ci
1620e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_On()
1621e41f4b71Sopenharmony_ci
1622e41f4b71Sopenharmony_ci```
1623e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_On (OH_ImageReceiverNative * receiver, OH_ImageReceiver_OnCallback callback )
1624e41f4b71Sopenharmony_ci```
1625e41f4b71Sopenharmony_ci
1626e41f4b71Sopenharmony_ci**Description**
1627e41f4b71Sopenharmony_ci
1628e41f4b71Sopenharmony_ciRegisters a callback, which is an [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback) object.
1629e41f4b71Sopenharmony_ci
1630e41f4b71Sopenharmony_ciThis callback is triggered whenever a new image is received.
1631e41f4b71Sopenharmony_ci
1632e41f4b71Sopenharmony_ci**Since**: 12
1633e41f4b71Sopenharmony_ci
1634e41f4b71Sopenharmony_ci**Parameters**
1635e41f4b71Sopenharmony_ci
1636e41f4b71Sopenharmony_ci| Name| Description| 
1637e41f4b71Sopenharmony_ci| -------- | -------- |
1638e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1639e41f4b71Sopenharmony_ci| callback | Callback, which is an [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback) object. | 
1640e41f4b71Sopenharmony_ci
1641e41f4b71Sopenharmony_ci**Returns**
1642e41f4b71Sopenharmony_ci
1643e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1644e41f4b71Sopenharmony_ci
1645e41f4b71Sopenharmony_ci**See**
1646e41f4b71Sopenharmony_ci
1647e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative), [OH_ImageReceiver_OnCallback](#oh_imagereceiver_oncallback)
1648e41f4b71Sopenharmony_ci
1649e41f4b71Sopenharmony_ci
1650e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_ReadLatestImage()
1651e41f4b71Sopenharmony_ci
1652e41f4b71Sopenharmony_ci```
1653e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_ReadLatestImage (OH_ImageReceiverNative * receiver, OH_ImageNative ** image )
1654e41f4b71Sopenharmony_ci```
1655e41f4b71Sopenharmony_ci
1656e41f4b71Sopenharmony_ci**Description**
1657e41f4b71Sopenharmony_ci
1658e41f4b71Sopenharmony_ciObtains the latest image through an [OH_ImageReceiverNative](#oh_imagereceivernative) object.
1659e41f4b71Sopenharmony_ci
1660e41f4b71Sopenharmony_ci**Since**: 12
1661e41f4b71Sopenharmony_ci
1662e41f4b71Sopenharmony_ci**Parameters**
1663e41f4b71Sopenharmony_ci
1664e41f4b71Sopenharmony_ci| Name| Description| 
1665e41f4b71Sopenharmony_ci| -------- | -------- |
1666e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1667e41f4b71Sopenharmony_ci| image | Double pointer to the image obtained, which is an **OH_ImageNative** object at the application layer. | 
1668e41f4b71Sopenharmony_ci
1669e41f4b71Sopenharmony_ci**Returns**
1670e41f4b71Sopenharmony_ci
1671e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs; returns **IMAGE_ALLOC_FAILED** if memory allocation fails. For details, see [Image_ErrorCode](#image_errorcode).
1672e41f4b71Sopenharmony_ci
1673e41f4b71Sopenharmony_ci**See**
1674e41f4b71Sopenharmony_ci
1675e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative), [OH_ImageNative](#oh_imagenative)
1676e41f4b71Sopenharmony_ci
1677e41f4b71Sopenharmony_ci
1678e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_ReadNextImage()
1679e41f4b71Sopenharmony_ci
1680e41f4b71Sopenharmony_ci```
1681e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_ReadNextImage (OH_ImageReceiverNative * receiver, OH_ImageNative ** image )
1682e41f4b71Sopenharmony_ci```
1683e41f4b71Sopenharmony_ci
1684e41f4b71Sopenharmony_ci**Description**
1685e41f4b71Sopenharmony_ci
1686e41f4b71Sopenharmony_ciObtains the next image through an [OH_ImageReceiverNative](#oh_imagereceivernative) object.
1687e41f4b71Sopenharmony_ci
1688e41f4b71Sopenharmony_ci**Since**: 12
1689e41f4b71Sopenharmony_ci
1690e41f4b71Sopenharmony_ci**Parameters**
1691e41f4b71Sopenharmony_ci
1692e41f4b71Sopenharmony_ci| Name| Description| 
1693e41f4b71Sopenharmony_ci| -------- | -------- |
1694e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1695e41f4b71Sopenharmony_ci| image | Double pointer to the image obtained, which is an **OH_ImageNative** object at the application layer. | 
1696e41f4b71Sopenharmony_ci
1697e41f4b71Sopenharmony_ci**Returns**
1698e41f4b71Sopenharmony_ci
1699e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs; returns **IMAGE_ALLOC_FAILED** if memory allocation fails. For details, see [Image_ErrorCode](#image_errorcode).
1700e41f4b71Sopenharmony_ci
1701e41f4b71Sopenharmony_ci**See**
1702e41f4b71Sopenharmony_ci
1703e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative), [OH_ImageNative](#oh_imagenative)
1704e41f4b71Sopenharmony_ci
1705e41f4b71Sopenharmony_ci
1706e41f4b71Sopenharmony_ci### OH_ImageReceiverNative_Release()
1707e41f4b71Sopenharmony_ci
1708e41f4b71Sopenharmony_ci```
1709e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverNative_Release (OH_ImageReceiverNative * receiver)
1710e41f4b71Sopenharmony_ci```
1711e41f4b71Sopenharmony_ci
1712e41f4b71Sopenharmony_ci**Description**
1713e41f4b71Sopenharmony_ci
1714e41f4b71Sopenharmony_ciReleases an [OH_ImageReceiverNative](#oh_imagereceivernative) object.
1715e41f4b71Sopenharmony_ci
1716e41f4b71Sopenharmony_ci**Since**: 12
1717e41f4b71Sopenharmony_ci
1718e41f4b71Sopenharmony_ci**Parameters**
1719e41f4b71Sopenharmony_ci
1720e41f4b71Sopenharmony_ci| Name| Description| 
1721e41f4b71Sopenharmony_ci| -------- | -------- |
1722e41f4b71Sopenharmony_ci| receiver | Pointer to an [OH_ImageReceiverNative](#oh_imagereceivernative) object. | 
1723e41f4b71Sopenharmony_ci
1724e41f4b71Sopenharmony_ci**Returns**
1725e41f4b71Sopenharmony_ci
1726e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1727e41f4b71Sopenharmony_ci
1728e41f4b71Sopenharmony_ci**See**
1729e41f4b71Sopenharmony_ci
1730e41f4b71Sopenharmony_ci[OH_ImageReceiverNative](#oh_imagereceivernative)
1731e41f4b71Sopenharmony_ci
1732e41f4b71Sopenharmony_ci
1733e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions_Create()
1734e41f4b71Sopenharmony_ci
1735e41f4b71Sopenharmony_ci```
1736e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverOptions_Create (OH_ImageReceiverOptions ** options)
1737e41f4b71Sopenharmony_ci```
1738e41f4b71Sopenharmony_ci
1739e41f4b71Sopenharmony_ci**Description**
1740e41f4b71Sopenharmony_ci
1741e41f4b71Sopenharmony_ciCreates an **OH_ImageReceiverOptions** object at the application layer.
1742e41f4b71Sopenharmony_ci
1743e41f4b71Sopenharmony_ci**Since**: 12
1744e41f4b71Sopenharmony_ci
1745e41f4b71Sopenharmony_ci**Parameters**
1746e41f4b71Sopenharmony_ci
1747e41f4b71Sopenharmony_ci| Name| Description| 
1748e41f4b71Sopenharmony_ci| -------- | -------- |
1749e41f4b71Sopenharmony_ci| options | Double pointer to the [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object created. | 
1750e41f4b71Sopenharmony_ci
1751e41f4b71Sopenharmony_ci**Returns**
1752e41f4b71Sopenharmony_ci
1753e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_ALLOC_FAILED** if memory allocation fails. For details, see [Image_ErrorCode](#image_errorcode).
1754e41f4b71Sopenharmony_ci
1755e41f4b71Sopenharmony_ci
1756e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions_GetCapacity()
1757e41f4b71Sopenharmony_ci
1758e41f4b71Sopenharmony_ci```
1759e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverOptions_GetCapacity (OH_ImageReceiverOptions * options, int32_t * capacity )
1760e41f4b71Sopenharmony_ci```
1761e41f4b71Sopenharmony_ci
1762e41f4b71Sopenharmony_ci**Description**
1763e41f4b71Sopenharmony_ci
1764e41f4b71Sopenharmony_ciObtains the capacity of an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.
1765e41f4b71Sopenharmony_ci
1766e41f4b71Sopenharmony_ci**Since**: 12
1767e41f4b71Sopenharmony_ci
1768e41f4b71Sopenharmony_ci**Parameters**
1769e41f4b71Sopenharmony_ci
1770e41f4b71Sopenharmony_ci| Name| Description| 
1771e41f4b71Sopenharmony_ci| -------- | -------- |
1772e41f4b71Sopenharmony_ci| options | Pointer to an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object. | 
1773e41f4b71Sopenharmony_ci| capacity | Pointer to the capacity obtained. | 
1774e41f4b71Sopenharmony_ci
1775e41f4b71Sopenharmony_ci**Returns**
1776e41f4b71Sopenharmony_ci
1777e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1778e41f4b71Sopenharmony_ci
1779e41f4b71Sopenharmony_ci
1780e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions_GetSize()
1781e41f4b71Sopenharmony_ci
1782e41f4b71Sopenharmony_ci```
1783e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverOptions_GetSize (OH_ImageReceiverOptions * options, Image_Size * size )
1784e41f4b71Sopenharmony_ci```
1785e41f4b71Sopenharmony_ci
1786e41f4b71Sopenharmony_ci**Description**
1787e41f4b71Sopenharmony_ci
1788e41f4b71Sopenharmony_ciObtains the [Image_Size](_image___size.md) information of an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.
1789e41f4b71Sopenharmony_ci
1790e41f4b71Sopenharmony_ci**Since**: 12
1791e41f4b71Sopenharmony_ci
1792e41f4b71Sopenharmony_ci**Parameters**
1793e41f4b71Sopenharmony_ci
1794e41f4b71Sopenharmony_ci| Name| Description| 
1795e41f4b71Sopenharmony_ci| -------- | -------- |
1796e41f4b71Sopenharmony_ci| options | Pointer to an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object. | 
1797e41f4b71Sopenharmony_ci| size | Pointer to the [Image_Size](_image___size.md) object obtained. | 
1798e41f4b71Sopenharmony_ci
1799e41f4b71Sopenharmony_ci**Returns**
1800e41f4b71Sopenharmony_ci
1801e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1802e41f4b71Sopenharmony_ci
1803e41f4b71Sopenharmony_ci
1804e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions_Release()
1805e41f4b71Sopenharmony_ci
1806e41f4b71Sopenharmony_ci```
1807e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverOptions_Release (OH_ImageReceiverOptions * options)
1808e41f4b71Sopenharmony_ci```
1809e41f4b71Sopenharmony_ci
1810e41f4b71Sopenharmony_ci**Description**
1811e41f4b71Sopenharmony_ci
1812e41f4b71Sopenharmony_ciReleases an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.
1813e41f4b71Sopenharmony_ci
1814e41f4b71Sopenharmony_ci**Since**: 12
1815e41f4b71Sopenharmony_ci
1816e41f4b71Sopenharmony_ci**Parameters**
1817e41f4b71Sopenharmony_ci
1818e41f4b71Sopenharmony_ci| Name| Description| 
1819e41f4b71Sopenharmony_ci| -------- | -------- |
1820e41f4b71Sopenharmony_ci| options | Pointer to an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object. | 
1821e41f4b71Sopenharmony_ci
1822e41f4b71Sopenharmony_ci**Returns**
1823e41f4b71Sopenharmony_ci
1824e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1825e41f4b71Sopenharmony_ci
1826e41f4b71Sopenharmony_ci**See**
1827e41f4b71Sopenharmony_ci
1828e41f4b71Sopenharmony_ci[OH_ImageReceiverOptions](#oh_imagereceiveroptions)
1829e41f4b71Sopenharmony_ci
1830e41f4b71Sopenharmony_ci
1831e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions_SetCapacity()
1832e41f4b71Sopenharmony_ci
1833e41f4b71Sopenharmony_ci```
1834e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverOptions_SetCapacity (OH_ImageReceiverOptions * options, int32_t capacity )
1835e41f4b71Sopenharmony_ci```
1836e41f4b71Sopenharmony_ci
1837e41f4b71Sopenharmony_ci**Description**
1838e41f4b71Sopenharmony_ci
1839e41f4b71Sopenharmony_ciSets the capacity for an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.
1840e41f4b71Sopenharmony_ci
1841e41f4b71Sopenharmony_ci**Since**: 12
1842e41f4b71Sopenharmony_ci
1843e41f4b71Sopenharmony_ci**Parameters**
1844e41f4b71Sopenharmony_ci
1845e41f4b71Sopenharmony_ci| Name| Description| 
1846e41f4b71Sopenharmony_ci| -------- | -------- |
1847e41f4b71Sopenharmony_ci| options | Pointer to an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object. | 
1848e41f4b71Sopenharmony_ci| capacity | Capacity to set. | 
1849e41f4b71Sopenharmony_ci
1850e41f4b71Sopenharmony_ci**Returns**
1851e41f4b71Sopenharmony_ci
1852e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1853e41f4b71Sopenharmony_ci
1854e41f4b71Sopenharmony_ci
1855e41f4b71Sopenharmony_ci### OH_ImageReceiverOptions_SetSize()
1856e41f4b71Sopenharmony_ci
1857e41f4b71Sopenharmony_ci```
1858e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageReceiverOptions_SetSize (OH_ImageReceiverOptions * options, Image_Size size )
1859e41f4b71Sopenharmony_ci```
1860e41f4b71Sopenharmony_ci
1861e41f4b71Sopenharmony_ci**Description**
1862e41f4b71Sopenharmony_ci
1863e41f4b71Sopenharmony_ciSets the [Image_Size](_image___size.md) information for an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object.
1864e41f4b71Sopenharmony_ci
1865e41f4b71Sopenharmony_ci**Since**: 12
1866e41f4b71Sopenharmony_ci
1867e41f4b71Sopenharmony_ci**Parameters**
1868e41f4b71Sopenharmony_ci
1869e41f4b71Sopenharmony_ci| Name| Description| 
1870e41f4b71Sopenharmony_ci| -------- | -------- |
1871e41f4b71Sopenharmony_ci| options | Pointer to an [OH_ImageReceiverOptions](#oh_imagereceiveroptions) object. | 
1872e41f4b71Sopenharmony_ci| size | [Image_Size](_image___size.md) object. | 
1873e41f4b71Sopenharmony_ci
1874e41f4b71Sopenharmony_ci**Returns**
1875e41f4b71Sopenharmony_ci
1876e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1877e41f4b71Sopenharmony_ci
1878e41f4b71Sopenharmony_ci
1879e41f4b71Sopenharmony_ci### OH_ImageSourceInfo_Create()
1880e41f4b71Sopenharmony_ci
1881e41f4b71Sopenharmony_ci```
1882e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceInfo_Create (OH_ImageSource_Info ** info)
1883e41f4b71Sopenharmony_ci```
1884e41f4b71Sopenharmony_ci
1885e41f4b71Sopenharmony_ci**Description**
1886e41f4b71Sopenharmony_ci
1887e41f4b71Sopenharmony_ciCreates the pointer to an **OH_ImageSource_Info** object.
1888e41f4b71Sopenharmony_ci
1889e41f4b71Sopenharmony_ci**Since**: 12
1890e41f4b71Sopenharmony_ci
1891e41f4b71Sopenharmony_ci**Parameters**
1892e41f4b71Sopenharmony_ci
1893e41f4b71Sopenharmony_ci| Name| Description| 
1894e41f4b71Sopenharmony_ci| -------- | -------- |
1895e41f4b71Sopenharmony_ci| info | Double pointer to the **OH_ImageSource_Info** object created. | 
1896e41f4b71Sopenharmony_ci
1897e41f4b71Sopenharmony_ci**Returns**
1898e41f4b71Sopenharmony_ci
1899e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1900e41f4b71Sopenharmony_ci
1901e41f4b71Sopenharmony_ci
1902e41f4b71Sopenharmony_ci### OH_ImageSourceInfo_GetDynamicRange()
1903e41f4b71Sopenharmony_ci
1904e41f4b71Sopenharmony_ci```
1905e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceInfo_GetDynamicRange (OH_ImageSource_Info * info, bool * isHdr )
1906e41f4b71Sopenharmony_ci```
1907e41f4b71Sopenharmony_ci
1908e41f4b71Sopenharmony_ci**Description**
1909e41f4b71Sopenharmony_ci
1910e41f4b71Sopenharmony_ciObtains the dynamic range of an image.
1911e41f4b71Sopenharmony_ci
1912e41f4b71Sopenharmony_ci**Since**: 12
1913e41f4b71Sopenharmony_ci
1914e41f4b71Sopenharmony_ci**Parameters**
1915e41f4b71Sopenharmony_ci
1916e41f4b71Sopenharmony_ci| Name| Description| 
1917e41f4b71Sopenharmony_ci| -------- | -------- |
1918e41f4b71Sopenharmony_ci| info | Pointer to an **OH_ImageSource_Info** object. | 
1919e41f4b71Sopenharmony_ci| isHdr | Pointer to a Boolean that specifies whether the HDR is used. | 
1920e41f4b71Sopenharmony_ci
1921e41f4b71Sopenharmony_ci**Returns**
1922e41f4b71Sopenharmony_ci
1923e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1924e41f4b71Sopenharmony_ci
1925e41f4b71Sopenharmony_ci
1926e41f4b71Sopenharmony_ci### OH_ImageSourceInfo_GetHeight()
1927e41f4b71Sopenharmony_ci
1928e41f4b71Sopenharmony_ci```
1929e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceInfo_GetHeight (OH_ImageSource_Info * info, uint32_t * height )
1930e41f4b71Sopenharmony_ci```
1931e41f4b71Sopenharmony_ci
1932e41f4b71Sopenharmony_ci**Description**
1933e41f4b71Sopenharmony_ci
1934e41f4b71Sopenharmony_ciObtains the image height.
1935e41f4b71Sopenharmony_ci
1936e41f4b71Sopenharmony_ci**Since**: 12
1937e41f4b71Sopenharmony_ci
1938e41f4b71Sopenharmony_ci**Parameters**
1939e41f4b71Sopenharmony_ci
1940e41f4b71Sopenharmony_ci| Name| Description| 
1941e41f4b71Sopenharmony_ci| -------- | -------- |
1942e41f4b71Sopenharmony_ci| info | Pointer to an **OH_ImageSource_Info** object. | 
1943e41f4b71Sopenharmony_ci| height | Pointer to the image height, in px. | 
1944e41f4b71Sopenharmony_ci
1945e41f4b71Sopenharmony_ci**Returns**
1946e41f4b71Sopenharmony_ci
1947e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1948e41f4b71Sopenharmony_ci
1949e41f4b71Sopenharmony_ci
1950e41f4b71Sopenharmony_ci### OH_ImageSourceInfo_GetWidth()
1951e41f4b71Sopenharmony_ci
1952e41f4b71Sopenharmony_ci```
1953e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceInfo_GetWidth (OH_ImageSource_Info * info, uint32_t * width )
1954e41f4b71Sopenharmony_ci```
1955e41f4b71Sopenharmony_ci
1956e41f4b71Sopenharmony_ci**Description**
1957e41f4b71Sopenharmony_ci
1958e41f4b71Sopenharmony_ciObtains the image width.
1959e41f4b71Sopenharmony_ci
1960e41f4b71Sopenharmony_ci**Since**: 12
1961e41f4b71Sopenharmony_ci
1962e41f4b71Sopenharmony_ci**Parameters**
1963e41f4b71Sopenharmony_ci
1964e41f4b71Sopenharmony_ci| Name| Description| 
1965e41f4b71Sopenharmony_ci| -------- | -------- |
1966e41f4b71Sopenharmony_ci| info | Pointer to an **OH_ImageSource_Info** object. | 
1967e41f4b71Sopenharmony_ci| width | Pointer to the image width, in px. | 
1968e41f4b71Sopenharmony_ci
1969e41f4b71Sopenharmony_ci**Returns**
1970e41f4b71Sopenharmony_ci
1971e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1972e41f4b71Sopenharmony_ci
1973e41f4b71Sopenharmony_ci
1974e41f4b71Sopenharmony_ci### OH_ImageSourceInfo_Release()
1975e41f4b71Sopenharmony_ci
1976e41f4b71Sopenharmony_ci```
1977e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceInfo_Release (OH_ImageSource_Info * info)
1978e41f4b71Sopenharmony_ci```
1979e41f4b71Sopenharmony_ci
1980e41f4b71Sopenharmony_ci**Description**
1981e41f4b71Sopenharmony_ci
1982e41f4b71Sopenharmony_ciReleases the pointer to an **OH_ImageSource_Info** object.
1983e41f4b71Sopenharmony_ci
1984e41f4b71Sopenharmony_ci**Since**: 12
1985e41f4b71Sopenharmony_ci
1986e41f4b71Sopenharmony_ci**Parameters**
1987e41f4b71Sopenharmony_ci
1988e41f4b71Sopenharmony_ci| Name| Description| 
1989e41f4b71Sopenharmony_ci| -------- | -------- |
1990e41f4b71Sopenharmony_ci| info | Pointer to an **OH_ImageSource_Info** object. | 
1991e41f4b71Sopenharmony_ci
1992e41f4b71Sopenharmony_ci**Returns**
1993e41f4b71Sopenharmony_ci
1994e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
1995e41f4b71Sopenharmony_ci
1996e41f4b71Sopenharmony_ci
1997e41f4b71Sopenharmony_ci### OH_ImageSourceNative_CreateFromData()
1998e41f4b71Sopenharmony_ci
1999e41f4b71Sopenharmony_ci```
2000e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_CreateFromData (uint8_t * data, size_t dataSize, OH_ImageSourceNative ** res )
2001e41f4b71Sopenharmony_ci```
2002e41f4b71Sopenharmony_ci
2003e41f4b71Sopenharmony_ci**Description**
2004e41f4b71Sopenharmony_ci
2005e41f4b71Sopenharmony_ciCreates the pointer to an **OH_ImageSourceNative** object based on buffer data.
2006e41f4b71Sopenharmony_ci
2007e41f4b71Sopenharmony_ci**Since**: 12
2008e41f4b71Sopenharmony_ci
2009e41f4b71Sopenharmony_ci**Parameters**
2010e41f4b71Sopenharmony_ci
2011e41f4b71Sopenharmony_ci| Name| Description| 
2012e41f4b71Sopenharmony_ci| -------- | -------- |
2013e41f4b71Sopenharmony_ci| data | Pointer to the buffer data. | 
2014e41f4b71Sopenharmony_ci| dataSize | Size of the buffer. | 
2015e41f4b71Sopenharmony_ci| res | Double pointer to the **OH_ImageSourceNative** object created at the C++ local layer. | 
2016e41f4b71Sopenharmony_ci
2017e41f4b71Sopenharmony_ci**Returns**
2018e41f4b71Sopenharmony_ci
2019e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_BAD_SOURCE** if the data source is abnormal. For details, see [Image_ErrorCode](#image_errorcode).
2020e41f4b71Sopenharmony_ci
2021e41f4b71Sopenharmony_ci
2022e41f4b71Sopenharmony_ci### OH_ImageSourceNative_CreateFromFd()
2023e41f4b71Sopenharmony_ci
2024e41f4b71Sopenharmony_ci```
2025e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_CreateFromFd (int32_t fd, OH_ImageSourceNative ** res )
2026e41f4b71Sopenharmony_ci```
2027e41f4b71Sopenharmony_ci
2028e41f4b71Sopenharmony_ci**Description**
2029e41f4b71Sopenharmony_ci
2030e41f4b71Sopenharmony_ciCreates the pointer to an **OH_ImageSourceNative** object based on a file descriptor.
2031e41f4b71Sopenharmony_ci
2032e41f4b71Sopenharmony_ci**Since**: 12
2033e41f4b71Sopenharmony_ci
2034e41f4b71Sopenharmony_ci**Parameters**
2035e41f4b71Sopenharmony_ci
2036e41f4b71Sopenharmony_ci| Name| Description| 
2037e41f4b71Sopenharmony_ci| -------- | -------- |
2038e41f4b71Sopenharmony_ci| fd | File descriptor. | 
2039e41f4b71Sopenharmony_ci| res | Double pointer to the **OH_ImageSourceNative** object created at the C++ local layer. | 
2040e41f4b71Sopenharmony_ci
2041e41f4b71Sopenharmony_ci**Returns**
2042e41f4b71Sopenharmony_ci
2043e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2044e41f4b71Sopenharmony_ci
2045e41f4b71Sopenharmony_ci
2046e41f4b71Sopenharmony_ci### OH_ImageSourceNative_CreateFromRawFile()
2047e41f4b71Sopenharmony_ci
2048e41f4b71Sopenharmony_ci```
2049e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_CreateFromRawFile (RawFileDescriptor * rawFile, OH_ImageSourceNative ** res )
2050e41f4b71Sopenharmony_ci```
2051e41f4b71Sopenharmony_ci
2052e41f4b71Sopenharmony_ci**Description**
2053e41f4b71Sopenharmony_ci
2054e41f4b71Sopenharmony_ciCreates the pointer to an **OH_ImageSourceNative** object by using the raw file descriptor of an image resource file.
2055e41f4b71Sopenharmony_ci
2056e41f4b71Sopenharmony_ci**Since**: 12
2057e41f4b71Sopenharmony_ci
2058e41f4b71Sopenharmony_ci**Parameters**
2059e41f4b71Sopenharmony_ci
2060e41f4b71Sopenharmony_ci| Name| Description| 
2061e41f4b71Sopenharmony_ci| -------- | -------- |
2062e41f4b71Sopenharmony_ci| rawFile | Pointer to the file descriptor of the raw file. | 
2063e41f4b71Sopenharmony_ci| res | Double pointer to the **OH_ImageSourceNative** object created at the C++ local layer. | 
2064e41f4b71Sopenharmony_ci
2065e41f4b71Sopenharmony_ci**Returns**
2066e41f4b71Sopenharmony_ci
2067e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2068e41f4b71Sopenharmony_ci
2069e41f4b71Sopenharmony_ci
2070e41f4b71Sopenharmony_ci### OH_ImageSourceNative_CreateFromUri()
2071e41f4b71Sopenharmony_ci
2072e41f4b71Sopenharmony_ci```
2073e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_CreateFromUri (char * uri, size_t uriSize, OH_ImageSourceNative ** res )
2074e41f4b71Sopenharmony_ci```
2075e41f4b71Sopenharmony_ci
2076e41f4b71Sopenharmony_ci**Description**
2077e41f4b71Sopenharmony_ci
2078e41f4b71Sopenharmony_ciCreates the pointer to an **OH_ImageSourceNative** object based on a URI.
2079e41f4b71Sopenharmony_ci
2080e41f4b71Sopenharmony_ci**Since**: 12
2081e41f4b71Sopenharmony_ci
2082e41f4b71Sopenharmony_ci**Parameters**
2083e41f4b71Sopenharmony_ci
2084e41f4b71Sopenharmony_ci| Name| Description| 
2085e41f4b71Sopenharmony_ci| -------- | -------- |
2086e41f4b71Sopenharmony_ci| uri | Pointer to the URI of the image source. Only file URIs or Base64 URIs are accepted. Currently, only absolute paths are supported. |
2087e41f4b71Sopenharmony_ci| uriSize | URI length. | 
2088e41f4b71Sopenharmony_ci| res | Double pointer to the **OH_ImageSourceNative** object created at the C++ local layer. | 
2089e41f4b71Sopenharmony_ci
2090e41f4b71Sopenharmony_ci**Returns**
2091e41f4b71Sopenharmony_ci
2092e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_BAD_SOURCE** if the data source is abnormal. For details, see [Image_ErrorCode](#image_errorcode).
2093e41f4b71Sopenharmony_ci
2094e41f4b71Sopenharmony_ci
2095e41f4b71Sopenharmony_ci### OH_ImageSourceNative_CreatePixelmap()
2096e41f4b71Sopenharmony_ci
2097e41f4b71Sopenharmony_ci```
2098e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_CreatePixelmap (OH_ImageSourceNative * source, OH_DecodingOptions * options, OH_PixelmapNative ** pixelmap )
2099e41f4b71Sopenharmony_ci```
2100e41f4b71Sopenharmony_ci
2101e41f4b71Sopenharmony_ci**Description**
2102e41f4b71Sopenharmony_ci
2103e41f4b71Sopenharmony_ciCreates the pointer to an **OH_PixelmapNative** object based on image decoding parameters.
2104e41f4b71Sopenharmony_ci
2105e41f4b71Sopenharmony_ci**Since**: 12
2106e41f4b71Sopenharmony_ci
2107e41f4b71Sopenharmony_ci**Parameters**
2108e41f4b71Sopenharmony_ci
2109e41f4b71Sopenharmony_ci| Name| Description| 
2110e41f4b71Sopenharmony_ci| -------- | -------- |
2111e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2112e41f4b71Sopenharmony_ci| options | Pointer to the image decoding parameters. | 
2113e41f4b71Sopenharmony_ci| resPixMap | Double pointer to the **OH_PixelmapNative** object created at the C++ local layer. | 
2114e41f4b71Sopenharmony_ci
2115e41f4b71Sopenharmony_ci**Returns**
2116e41f4b71Sopenharmony_ci
2117e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2118e41f4b71Sopenharmony_ci
2119e41f4b71Sopenharmony_ci
2120e41f4b71Sopenharmony_ci### OH_ImageSourceNative_CreatePixelmapList()
2121e41f4b71Sopenharmony_ci
2122e41f4b71Sopenharmony_ci```
2123e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_CreatePixelmapList (OH_ImageSourceNative * source, OH_DecodingOptions * options, OH_PixelmapNative * resVecPixMap[], size_t size )
2124e41f4b71Sopenharmony_ci```
2125e41f4b71Sopenharmony_ci
2126e41f4b71Sopenharmony_ci**Description**
2127e41f4b71Sopenharmony_ci
2128e41f4b71Sopenharmony_ciCreates an array of **OH_PixelmapNative** objects based on image decoding parameters.
2129e41f4b71Sopenharmony_ci
2130e41f4b71Sopenharmony_ci**Since**: 12
2131e41f4b71Sopenharmony_ci
2132e41f4b71Sopenharmony_ci**Parameters**
2133e41f4b71Sopenharmony_ci
2134e41f4b71Sopenharmony_ci| Name| Description| 
2135e41f4b71Sopenharmony_ci| -------- | -------- |
2136e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2137e41f4b71Sopenharmony_ci| options | Pointer to the image decoding parameters. | 
2138e41f4b71Sopenharmony_ci| resVecPixMap | Pointer to an array of **OH_PixelmapNative** objects created at the C++ local layer. | 
2139e41f4b71Sopenharmony_ci| size | Size of the array. You can use [OH_ImageSourceNative_GetFrameCount](#oh_imagesourcenative_getframecount) to obtain the size. | 
2140e41f4b71Sopenharmony_ci
2141e41f4b71Sopenharmony_ci**Returns**
2142e41f4b71Sopenharmony_ci
2143e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNSUPPORTED_OPERATION** if the operation is not supported. For details, see [Image_ErrorCode](#image_errorcode).
2144e41f4b71Sopenharmony_ci
2145e41f4b71Sopenharmony_ci
2146e41f4b71Sopenharmony_ci### OH_ImageSourceNative_GetDelayTimeList()
2147e41f4b71Sopenharmony_ci
2148e41f4b71Sopenharmony_ci```
2149e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_GetDelayTimeList (OH_ImageSourceNative * source, int32_t * delayTimeList, size_t size )
2150e41f4b71Sopenharmony_ci```
2151e41f4b71Sopenharmony_ci
2152e41f4b71Sopenharmony_ci**Description**
2153e41f4b71Sopenharmony_ci
2154e41f4b71Sopenharmony_ciObtains the image delay time list.
2155e41f4b71Sopenharmony_ci
2156e41f4b71Sopenharmony_ci**Since**: 12
2157e41f4b71Sopenharmony_ci
2158e41f4b71Sopenharmony_ci**Parameters**
2159e41f4b71Sopenharmony_ci
2160e41f4b71Sopenharmony_ci| Name| Description| 
2161e41f4b71Sopenharmony_ci| -------- | -------- |
2162e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2163e41f4b71Sopenharmony_ci| delayTimeList | Pointer to the delay time list obtained. It cannot be a null pointer. | 
2164e41f4b71Sopenharmony_ci| size | Size of the delay time list. You can use [OH_ImageSourceNative_GetFrameCount](#oh_imagesourcenative_getframecount) to obtain the size. | 
2165e41f4b71Sopenharmony_ci
2166e41f4b71Sopenharmony_ci**Returns**
2167e41f4b71Sopenharmony_ci
2168e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2169e41f4b71Sopenharmony_ci
2170e41f4b71Sopenharmony_ci
2171e41f4b71Sopenharmony_ci### OH_ImageSourceNative_GetFrameCount()
2172e41f4b71Sopenharmony_ci
2173e41f4b71Sopenharmony_ci```
2174e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_GetFrameCount (OH_ImageSourceNative * source, uint32_t * frameCount )
2175e41f4b71Sopenharmony_ci```
2176e41f4b71Sopenharmony_ci
2177e41f4b71Sopenharmony_ci**Description**
2178e41f4b71Sopenharmony_ci
2179e41f4b71Sopenharmony_ciObtains the number of image frames.
2180e41f4b71Sopenharmony_ci
2181e41f4b71Sopenharmony_ci**Since**: 12
2182e41f4b71Sopenharmony_ci
2183e41f4b71Sopenharmony_ci**Parameters**
2184e41f4b71Sopenharmony_ci
2185e41f4b71Sopenharmony_ci| Name| Description| 
2186e41f4b71Sopenharmony_ci| -------- | -------- |
2187e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2188e41f4b71Sopenharmony_ci| frameCount | Pointer to the number of frames obtained. | 
2189e41f4b71Sopenharmony_ci
2190e41f4b71Sopenharmony_ci**Returns**
2191e41f4b71Sopenharmony_ci
2192e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2193e41f4b71Sopenharmony_ci
2194e41f4b71Sopenharmony_ci
2195e41f4b71Sopenharmony_ci### OH_ImageSourceNative_GetImageInfo()
2196e41f4b71Sopenharmony_ci
2197e41f4b71Sopenharmony_ci```
2198e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_GetImageInfo (OH_ImageSourceNative * source, int32_t index, OH_ImageSource_Info * info )
2199e41f4b71Sopenharmony_ci```
2200e41f4b71Sopenharmony_ci
2201e41f4b71Sopenharmony_ci**Description**
2202e41f4b71Sopenharmony_ci
2203e41f4b71Sopenharmony_ciObtains the information about an image with a given index.
2204e41f4b71Sopenharmony_ci
2205e41f4b71Sopenharmony_ci**Since**: 12
2206e41f4b71Sopenharmony_ci
2207e41f4b71Sopenharmony_ci**Parameters**
2208e41f4b71Sopenharmony_ci
2209e41f4b71Sopenharmony_ci| Name| Description| 
2210e41f4b71Sopenharmony_ci| -------- | -------- |
2211e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2212e41f4b71Sopenharmony_ci| index | Index of an image. For a GIF image, the value range is [0, N-1], where N indicates the number of GIF frames. For an image with only one frame, you can pass in **0**. | 
2213e41f4b71Sopenharmony_ci| info | Pointer to the image information obtained, which is an **OH_ImageSource_Info** object. | 
2214e41f4b71Sopenharmony_ci
2215e41f4b71Sopenharmony_ci**Returns**
2216e41f4b71Sopenharmony_ci
2217e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2218e41f4b71Sopenharmony_ci
2219e41f4b71Sopenharmony_ci
2220e41f4b71Sopenharmony_ci### OH_ImageSourceNative_GetImageProperty()
2221e41f4b71Sopenharmony_ci
2222e41f4b71Sopenharmony_ci```
2223e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_GetImageProperty (OH_ImageSourceNative * source, Image_String * key, Image_String * value )
2224e41f4b71Sopenharmony_ci```
2225e41f4b71Sopenharmony_ci
2226e41f4b71Sopenharmony_ci**Description**
2227e41f4b71Sopenharmony_ci
2228e41f4b71Sopenharmony_ciObtains the value of an image property.
2229e41f4b71Sopenharmony_ci
2230e41f4b71Sopenharmony_ci**Since**: 12
2231e41f4b71Sopenharmony_ci
2232e41f4b71Sopenharmony_ci**Parameters**
2233e41f4b71Sopenharmony_ci
2234e41f4b71Sopenharmony_ci| Name| Description| 
2235e41f4b71Sopenharmony_ci| -------- | -------- |
2236e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2237e41f4b71Sopenharmony_ci| key | Pointer to the property key. For details, see [Image_String](_image___string.md). For details about the value range of **key**, see the definition of **OHOS_IMAGE_PROPERTY_XXX**. The memory must be released after the image source is used. For details, see [OH_ImageSourceNative_Release](#oh_imagesourcenative_release). | 
2238e41f4b71Sopenharmony_ci| value | Pointer to the value obtained. You can pass in a null pointer with the size set to zero. In this case, the system will allocate memory, but you must release the memory after use. | 
2239e41f4b71Sopenharmony_ci
2240e41f4b71Sopenharmony_ci**Returns**
2241e41f4b71Sopenharmony_ci
2242e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2243e41f4b71Sopenharmony_ci
2244e41f4b71Sopenharmony_ci
2245e41f4b71Sopenharmony_ci### OH_ImageSourceNative_ModifyImageProperty()
2246e41f4b71Sopenharmony_ci
2247e41f4b71Sopenharmony_ci```
2248e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_ModifyImageProperty (OH_ImageSourceNative * source, Image_String * key, Image_String * value )
2249e41f4b71Sopenharmony_ci```
2250e41f4b71Sopenharmony_ci
2251e41f4b71Sopenharmony_ci**Description**
2252e41f4b71Sopenharmony_ci
2253e41f4b71Sopenharmony_ciModifies the value of an image property.
2254e41f4b71Sopenharmony_ci
2255e41f4b71Sopenharmony_ci**Since**: 12
2256e41f4b71Sopenharmony_ci
2257e41f4b71Sopenharmony_ci**Parameters**
2258e41f4b71Sopenharmony_ci
2259e41f4b71Sopenharmony_ci| Name| Description| 
2260e41f4b71Sopenharmony_ci| -------- | -------- |
2261e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2262e41f4b71Sopenharmony_ci| key | Pointer to the property key. For details, see [Image_String](_image___string.md). **key** is an EXIF constant. The memory must be released after the image source is used. For details, see [OH_ImageSourceNative_Release](#oh_imagesourcenative_release). | 
2263e41f4b71Sopenharmony_ci| value | Pointer to the new value. | 
2264e41f4b71Sopenharmony_ci
2265e41f4b71Sopenharmony_ci**Returns**
2266e41f4b71Sopenharmony_ci
2267e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2268e41f4b71Sopenharmony_ci
2269e41f4b71Sopenharmony_ci
2270e41f4b71Sopenharmony_ci### OH_ImageSourceNative_Release()
2271e41f4b71Sopenharmony_ci
2272e41f4b71Sopenharmony_ci```
2273e41f4b71Sopenharmony_ciImage_ErrorCode OH_ImageSourceNative_Release (OH_ImageSourceNative * source)
2274e41f4b71Sopenharmony_ci```
2275e41f4b71Sopenharmony_ci
2276e41f4b71Sopenharmony_ci**Description**
2277e41f4b71Sopenharmony_ci
2278e41f4b71Sopenharmony_ciReleases the pointer to an **OH_ImageSourceNative** object.
2279e41f4b71Sopenharmony_ci
2280e41f4b71Sopenharmony_ci**Since**: 12
2281e41f4b71Sopenharmony_ci
2282e41f4b71Sopenharmony_ci**Parameters**
2283e41f4b71Sopenharmony_ci
2284e41f4b71Sopenharmony_ci| Name| Description| 
2285e41f4b71Sopenharmony_ci| -------- | -------- |
2286e41f4b71Sopenharmony_ci| source | Pointer to an **OH_ImageSourceNative** object. | 
2287e41f4b71Sopenharmony_ci
2288e41f4b71Sopenharmony_ci**Returns**
2289e41f4b71Sopenharmony_ci
2290e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2291e41f4b71Sopenharmony_ci
2292e41f4b71Sopenharmony_ci
2293e41f4b71Sopenharmony_ci### OH_PackingOptions_Create()
2294e41f4b71Sopenharmony_ci
2295e41f4b71Sopenharmony_ci```
2296e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_Create (OH_PackingOptions ** options)
2297e41f4b71Sopenharmony_ci```
2298e41f4b71Sopenharmony_ci
2299e41f4b71Sopenharmony_ci**Description**
2300e41f4b71Sopenharmony_ci
2301e41f4b71Sopenharmony_ciCreates the pointer to an **OH_PackingOptions** object.
2302e41f4b71Sopenharmony_ci
2303e41f4b71Sopenharmony_ci**Since**: 12
2304e41f4b71Sopenharmony_ci
2305e41f4b71Sopenharmony_ci**Parameters**
2306e41f4b71Sopenharmony_ci
2307e41f4b71Sopenharmony_ci| Name| Description| 
2308e41f4b71Sopenharmony_ci| -------- | -------- |
2309e41f4b71Sopenharmony_ci| options | Double pointer to the **OH_PackingOptions** object created. | 
2310e41f4b71Sopenharmony_ci
2311e41f4b71Sopenharmony_ci**Returns**
2312e41f4b71Sopenharmony_ci
2313e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2314e41f4b71Sopenharmony_ci
2315e41f4b71Sopenharmony_ci
2316e41f4b71Sopenharmony_ci### OH_PackingOptions_GetDesiredDynamicRange()
2317e41f4b71Sopenharmony_ci
2318e41f4b71Sopenharmony_ci```
2319e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_GetDesiredDynamicRange (OH_PackingOptions * options, int32_t * desiredDynamicRange )
2320e41f4b71Sopenharmony_ci```
2321e41f4b71Sopenharmony_ci
2322e41f4b71Sopenharmony_ci**Description**
2323e41f4b71Sopenharmony_ci
2324e41f4b71Sopenharmony_ciObtains the desired dynamic range during encoding.
2325e41f4b71Sopenharmony_ci
2326e41f4b71Sopenharmony_ci**Since**: 12
2327e41f4b71Sopenharmony_ci
2328e41f4b71Sopenharmony_ci**Parameters**
2329e41f4b71Sopenharmony_ci
2330e41f4b71Sopenharmony_ci| Name| Description| 
2331e41f4b71Sopenharmony_ci| -------- | -------- |
2332e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2333e41f4b71Sopenharmony_ci| desiredDynamicRange | Pointer to the desired dynamic range. For details about the available options, see [IMAGE_PACKER_DYNAMIC_RANGE](#image_packer_dynamic_range). | 
2334e41f4b71Sopenharmony_ci
2335e41f4b71Sopenharmony_ci**Returns**
2336e41f4b71Sopenharmony_ci
2337e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2338e41f4b71Sopenharmony_ci
2339e41f4b71Sopenharmony_ci
2340e41f4b71Sopenharmony_ci### OH_PackingOptions_GetMimeType()
2341e41f4b71Sopenharmony_ci
2342e41f4b71Sopenharmony_ci```
2343e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_GetMimeType (OH_PackingOptions * options, Image_MimeType * format )
2344e41f4b71Sopenharmony_ci```
2345e41f4b71Sopenharmony_ci
2346e41f4b71Sopenharmony_ci**Description**
2347e41f4b71Sopenharmony_ci
2348e41f4b71Sopenharmony_ciObtains the MIME type.
2349e41f4b71Sopenharmony_ci
2350e41f4b71Sopenharmony_ci**Since**: 12
2351e41f4b71Sopenharmony_ci
2352e41f4b71Sopenharmony_ci**Parameters**
2353e41f4b71Sopenharmony_ci
2354e41f4b71Sopenharmony_ci| Name| Description| 
2355e41f4b71Sopenharmony_ci| -------- | -------- |
2356e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2357e41f4b71Sopenharmony_ci| format | Pointer to the image format. You can pass in a null pointer with the size set to zero. In this case, the system will allocate memory, but you must release the memory after use. | 
2358e41f4b71Sopenharmony_ci
2359e41f4b71Sopenharmony_ci**Returns**
2360e41f4b71Sopenharmony_ci
2361e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2362e41f4b71Sopenharmony_ci
2363e41f4b71Sopenharmony_ci
2364e41f4b71Sopenharmony_ci### OH_PackingOptions_GetQuality()
2365e41f4b71Sopenharmony_ci
2366e41f4b71Sopenharmony_ci```
2367e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_GetQuality (OH_PackingOptions * options, uint32_t * quality )
2368e41f4b71Sopenharmony_ci```
2369e41f4b71Sopenharmony_ci
2370e41f4b71Sopenharmony_ci**Description**
2371e41f4b71Sopenharmony_ci
2372e41f4b71Sopenharmony_ciObtains the encoding quality.
2373e41f4b71Sopenharmony_ci
2374e41f4b71Sopenharmony_ci**Since**: 12
2375e41f4b71Sopenharmony_ci
2376e41f4b71Sopenharmony_ci**Parameters**
2377e41f4b71Sopenharmony_ci
2378e41f4b71Sopenharmony_ci| Name| Description| 
2379e41f4b71Sopenharmony_ci| -------- | -------- |
2380e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2381e41f4b71Sopenharmony_ci| quality | Pointer to the encoding quality. | 
2382e41f4b71Sopenharmony_ci
2383e41f4b71Sopenharmony_ci**Returns**
2384e41f4b71Sopenharmony_ci
2385e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2386e41f4b71Sopenharmony_ci
2387e41f4b71Sopenharmony_ci
2388e41f4b71Sopenharmony_ci### OH_PackingOptions_Release()
2389e41f4b71Sopenharmony_ci
2390e41f4b71Sopenharmony_ci```
2391e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_Release (OH_PackingOptions * options)
2392e41f4b71Sopenharmony_ci```
2393e41f4b71Sopenharmony_ci
2394e41f4b71Sopenharmony_ci**Description**
2395e41f4b71Sopenharmony_ci
2396e41f4b71Sopenharmony_ciReleases the pointer to an **OH_PackingOptions** object.
2397e41f4b71Sopenharmony_ci
2398e41f4b71Sopenharmony_ci**Since**: 12
2399e41f4b71Sopenharmony_ci
2400e41f4b71Sopenharmony_ci**Parameters**
2401e41f4b71Sopenharmony_ci
2402e41f4b71Sopenharmony_ci| Name| Description| 
2403e41f4b71Sopenharmony_ci| -------- | -------- |
2404e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2405e41f4b71Sopenharmony_ci
2406e41f4b71Sopenharmony_ci**Returns**
2407e41f4b71Sopenharmony_ci
2408e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2409e41f4b71Sopenharmony_ci
2410e41f4b71Sopenharmony_ci
2411e41f4b71Sopenharmony_ci### OH_PackingOptions_SetDesiredDynamicRange()
2412e41f4b71Sopenharmony_ci
2413e41f4b71Sopenharmony_ci```
2414e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_SetDesiredDynamicRange (OH_PackingOptions * options, int32_t desiredDynamicRange )
2415e41f4b71Sopenharmony_ci```
2416e41f4b71Sopenharmony_ci
2417e41f4b71Sopenharmony_ci**Description**
2418e41f4b71Sopenharmony_ci
2419e41f4b71Sopenharmony_ciSets the desired dynamic range during encoding.
2420e41f4b71Sopenharmony_ci
2421e41f4b71Sopenharmony_ci**Since**: 12
2422e41f4b71Sopenharmony_ci
2423e41f4b71Sopenharmony_ci**Parameters**
2424e41f4b71Sopenharmony_ci
2425e41f4b71Sopenharmony_ci| Name| Description| 
2426e41f4b71Sopenharmony_ci| -------- | -------- |
2427e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2428e41f4b71Sopenharmony_ci| desiredDynamicRange | Desired dynamic range. For details about the available options, see [IMAGE_PACKER_DYNAMIC_RANGE](#image_packer_dynamic_range). | 
2429e41f4b71Sopenharmony_ci
2430e41f4b71Sopenharmony_ci**Returns**
2431e41f4b71Sopenharmony_ci
2432e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2433e41f4b71Sopenharmony_ci
2434e41f4b71Sopenharmony_ci
2435e41f4b71Sopenharmony_ci### OH_PackingOptions_SetMimeType()
2436e41f4b71Sopenharmony_ci
2437e41f4b71Sopenharmony_ci```
2438e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_SetMimeType (OH_PackingOptions * options, Image_MimeType * format )
2439e41f4b71Sopenharmony_ci```
2440e41f4b71Sopenharmony_ci
2441e41f4b71Sopenharmony_ci**Description**
2442e41f4b71Sopenharmony_ci
2443e41f4b71Sopenharmony_ciSets the MIME type.
2444e41f4b71Sopenharmony_ci
2445e41f4b71Sopenharmony_ci**Since**: 12
2446e41f4b71Sopenharmony_ci
2447e41f4b71Sopenharmony_ci**Parameters**
2448e41f4b71Sopenharmony_ci
2449e41f4b71Sopenharmony_ci| Name| Description| 
2450e41f4b71Sopenharmony_ci| -------- | -------- |
2451e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2452e41f4b71Sopenharmony_ci| format | Pointer to the image format. | 
2453e41f4b71Sopenharmony_ci
2454e41f4b71Sopenharmony_ci**Returns**
2455e41f4b71Sopenharmony_ci
2456e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2457e41f4b71Sopenharmony_ci
2458e41f4b71Sopenharmony_ci
2459e41f4b71Sopenharmony_ci### OH_PackingOptions_SetQuality()
2460e41f4b71Sopenharmony_ci
2461e41f4b71Sopenharmony_ci```
2462e41f4b71Sopenharmony_ciImage_ErrorCode OH_PackingOptions_SetQuality (OH_PackingOptions * options, uint32_t quality )
2463e41f4b71Sopenharmony_ci```
2464e41f4b71Sopenharmony_ci
2465e41f4b71Sopenharmony_ci**Description**
2466e41f4b71Sopenharmony_ci
2467e41f4b71Sopenharmony_ciSets the encoding quality.
2468e41f4b71Sopenharmony_ci
2469e41f4b71Sopenharmony_ci**Since**: 12
2470e41f4b71Sopenharmony_ci
2471e41f4b71Sopenharmony_ci**Parameters**
2472e41f4b71Sopenharmony_ci
2473e41f4b71Sopenharmony_ci| Name| Description| 
2474e41f4b71Sopenharmony_ci| -------- | -------- |
2475e41f4b71Sopenharmony_ci| options | Pointer to an **OH_PackingOptions** object. | 
2476e41f4b71Sopenharmony_ci| quality | Encoding quality. | 
2477e41f4b71Sopenharmony_ci
2478e41f4b71Sopenharmony_ci**Returns**
2479e41f4b71Sopenharmony_ci
2480e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2481e41f4b71Sopenharmony_ci
2482e41f4b71Sopenharmony_ci
2483e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_Create()
2484e41f4b71Sopenharmony_ci
2485e41f4b71Sopenharmony_ci```
2486e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_Create (OH_Pixelmap_ImageInfo ** info)
2487e41f4b71Sopenharmony_ci```
2488e41f4b71Sopenharmony_ci
2489e41f4b71Sopenharmony_ci**Description**
2490e41f4b71Sopenharmony_ci
2491e41f4b71Sopenharmony_ciCreates the pointer to an **OH_Pixelmap_ImageInfo** object.
2492e41f4b71Sopenharmony_ci
2493e41f4b71Sopenharmony_ci**Since**: 12
2494e41f4b71Sopenharmony_ci
2495e41f4b71Sopenharmony_ci**Parameters**
2496e41f4b71Sopenharmony_ci
2497e41f4b71Sopenharmony_ci| Name| Description| 
2498e41f4b71Sopenharmony_ci| -------- | -------- |
2499e41f4b71Sopenharmony_ci| info | Double pointer to the **OH_Pixelmap_ImageInfo** object created. | 
2500e41f4b71Sopenharmony_ci
2501e41f4b71Sopenharmony_ci**Returns**
2502e41f4b71Sopenharmony_ci
2503e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2504e41f4b71Sopenharmony_ci
2505e41f4b71Sopenharmony_ci
2506e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_GetAlphaType()
2507e41f4b71Sopenharmony_ci
2508e41f4b71Sopenharmony_ci```
2509e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_GetAlphaType (OH_Pixelmap_ImageInfo * info, int32_t * alphaType )
2510e41f4b71Sopenharmony_ci```
2511e41f4b71Sopenharmony_ci
2512e41f4b71Sopenharmony_ci**Description**
2513e41f4b71Sopenharmony_ci
2514e41f4b71Sopenharmony_ciObtains the alpha type.
2515e41f4b71Sopenharmony_ci
2516e41f4b71Sopenharmony_ci**Since**: 12
2517e41f4b71Sopenharmony_ci
2518e41f4b71Sopenharmony_ci**Parameters**
2519e41f4b71Sopenharmony_ci
2520e41f4b71Sopenharmony_ci| Name| Description| 
2521e41f4b71Sopenharmony_ci| -------- | -------- |
2522e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2523e41f4b71Sopenharmony_ci| alphaType | Pointer to the alpha type. For details about the available options, see [PIXELMAP_ALPHA_TYPE](#pixelmap_alpha_type). | 
2524e41f4b71Sopenharmony_ci
2525e41f4b71Sopenharmony_ci**Returns**
2526e41f4b71Sopenharmony_ci
2527e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2528e41f4b71Sopenharmony_ci
2529e41f4b71Sopenharmony_ci
2530e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_GetDynamicRange()
2531e41f4b71Sopenharmony_ci
2532e41f4b71Sopenharmony_ci```
2533e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_GetDynamicRange (OH_Pixelmap_ImageInfo * info, bool * isHdr )
2534e41f4b71Sopenharmony_ci```
2535e41f4b71Sopenharmony_ci
2536e41f4b71Sopenharmony_ci**Description**
2537e41f4b71Sopenharmony_ci
2538e41f4b71Sopenharmony_ciObtains the dynamic range of a pixel map.
2539e41f4b71Sopenharmony_ci
2540e41f4b71Sopenharmony_ci**Since**: 12
2541e41f4b71Sopenharmony_ci
2542e41f4b71Sopenharmony_ci**Parameters**
2543e41f4b71Sopenharmony_ci
2544e41f4b71Sopenharmony_ci| Name| Description| 
2545e41f4b71Sopenharmony_ci| -------- | -------- |
2546e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2547e41f4b71Sopenharmony_ci| isHdr | Pointer to a Boolean that specifies whether the HDR is used. | 
2548e41f4b71Sopenharmony_ci
2549e41f4b71Sopenharmony_ci**Returns**
2550e41f4b71Sopenharmony_ci
2551e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2552e41f4b71Sopenharmony_ci
2553e41f4b71Sopenharmony_ci
2554e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_GetHeight()
2555e41f4b71Sopenharmony_ci
2556e41f4b71Sopenharmony_ci```
2557e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_GetHeight (OH_Pixelmap_ImageInfo * info, uint32_t * height )
2558e41f4b71Sopenharmony_ci```
2559e41f4b71Sopenharmony_ci
2560e41f4b71Sopenharmony_ci**Description**
2561e41f4b71Sopenharmony_ci
2562e41f4b71Sopenharmony_ciObtains the image height.
2563e41f4b71Sopenharmony_ci
2564e41f4b71Sopenharmony_ci**Since**: 12
2565e41f4b71Sopenharmony_ci
2566e41f4b71Sopenharmony_ci**Parameters**
2567e41f4b71Sopenharmony_ci
2568e41f4b71Sopenharmony_ci| Name| Description| 
2569e41f4b71Sopenharmony_ci| -------- | -------- |
2570e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2571e41f4b71Sopenharmony_ci| height | Pointer to the image height, in px. | 
2572e41f4b71Sopenharmony_ci
2573e41f4b71Sopenharmony_ci**Returns**
2574e41f4b71Sopenharmony_ci
2575e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2576e41f4b71Sopenharmony_ci
2577e41f4b71Sopenharmony_ci
2578e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_GetPixelFormat()
2579e41f4b71Sopenharmony_ci
2580e41f4b71Sopenharmony_ci```
2581e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_GetPixelFormat (OH_Pixelmap_ImageInfo * info, int32_t * pixelFormat )
2582e41f4b71Sopenharmony_ci```
2583e41f4b71Sopenharmony_ci
2584e41f4b71Sopenharmony_ci**Description**
2585e41f4b71Sopenharmony_ci
2586e41f4b71Sopenharmony_ciObtains the pixel format.
2587e41f4b71Sopenharmony_ci
2588e41f4b71Sopenharmony_ci**Since**: 12
2589e41f4b71Sopenharmony_ci
2590e41f4b71Sopenharmony_ci**Parameters**
2591e41f4b71Sopenharmony_ci
2592e41f4b71Sopenharmony_ci| Name| Description| 
2593e41f4b71Sopenharmony_ci| -------- | -------- |
2594e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2595e41f4b71Sopenharmony_ci| pixelFormat | Pointer to the pixel format. | 
2596e41f4b71Sopenharmony_ci
2597e41f4b71Sopenharmony_ci**Returns**
2598e41f4b71Sopenharmony_ci
2599e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2600e41f4b71Sopenharmony_ci
2601e41f4b71Sopenharmony_ci
2602e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_GetRowStride()
2603e41f4b71Sopenharmony_ci
2604e41f4b71Sopenharmony_ci```
2605e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_GetRowStride (OH_Pixelmap_ImageInfo * info, uint32_t * rowStride )
2606e41f4b71Sopenharmony_ci```
2607e41f4b71Sopenharmony_ci
2608e41f4b71Sopenharmony_ci**Description**
2609e41f4b71Sopenharmony_ci
2610e41f4b71Sopenharmony_ciObtains the row stride.
2611e41f4b71Sopenharmony_ci
2612e41f4b71Sopenharmony_ci**Since**: 12
2613e41f4b71Sopenharmony_ci
2614e41f4b71Sopenharmony_ci**Parameters**
2615e41f4b71Sopenharmony_ci
2616e41f4b71Sopenharmony_ci| Name| Description| 
2617e41f4b71Sopenharmony_ci| -------- | -------- |
2618e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2619e41f4b71Sopenharmony_ci| rowStride | Pointer to the row stride, which is the number of bytes from one row of pixels in memory to the next row of pixels in memory. | 
2620e41f4b71Sopenharmony_ci
2621e41f4b71Sopenharmony_ci**Returns**
2622e41f4b71Sopenharmony_ci
2623e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2624e41f4b71Sopenharmony_ci
2625e41f4b71Sopenharmony_ci
2626e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_GetWidth()
2627e41f4b71Sopenharmony_ci
2628e41f4b71Sopenharmony_ci```
2629e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_GetWidth (OH_Pixelmap_ImageInfo * info, uint32_t * width )
2630e41f4b71Sopenharmony_ci```
2631e41f4b71Sopenharmony_ci
2632e41f4b71Sopenharmony_ci**Description**
2633e41f4b71Sopenharmony_ci
2634e41f4b71Sopenharmony_ciObtains the image width.
2635e41f4b71Sopenharmony_ci
2636e41f4b71Sopenharmony_ci**Since**: 12
2637e41f4b71Sopenharmony_ci
2638e41f4b71Sopenharmony_ci**Parameters**
2639e41f4b71Sopenharmony_ci
2640e41f4b71Sopenharmony_ci| Name| Description| 
2641e41f4b71Sopenharmony_ci| -------- | -------- |
2642e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2643e41f4b71Sopenharmony_ci| width | Pointer to the image width, in px. | 
2644e41f4b71Sopenharmony_ci
2645e41f4b71Sopenharmony_ci**Returns**
2646e41f4b71Sopenharmony_ci
2647e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2648e41f4b71Sopenharmony_ci
2649e41f4b71Sopenharmony_ci
2650e41f4b71Sopenharmony_ci### OH_PixelmapImageInfo_Release()
2651e41f4b71Sopenharmony_ci
2652e41f4b71Sopenharmony_ci```
2653e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapImageInfo_Release (OH_Pixelmap_ImageInfo * info)
2654e41f4b71Sopenharmony_ci```
2655e41f4b71Sopenharmony_ci
2656e41f4b71Sopenharmony_ci**Description**
2657e41f4b71Sopenharmony_ci
2658e41f4b71Sopenharmony_ciReleases the pointer to an **OH_Pixelmap_ImageInfo** object.
2659e41f4b71Sopenharmony_ci
2660e41f4b71Sopenharmony_ci**Since**: 12
2661e41f4b71Sopenharmony_ci
2662e41f4b71Sopenharmony_ci**Parameters**
2663e41f4b71Sopenharmony_ci
2664e41f4b71Sopenharmony_ci| Name| Description| 
2665e41f4b71Sopenharmony_ci| -------- | -------- |
2666e41f4b71Sopenharmony_ci| info | Pointer to an **OH_Pixelmap_ImageInfo** object. | 
2667e41f4b71Sopenharmony_ci
2668e41f4b71Sopenharmony_ci**Returns**
2669e41f4b71Sopenharmony_ci
2670e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2671e41f4b71Sopenharmony_ci
2672e41f4b71Sopenharmony_ci
2673e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_Create()
2674e41f4b71Sopenharmony_ci
2675e41f4b71Sopenharmony_ci```
2676e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_Create (OH_Pixelmap_InitializationOptions ** options)
2677e41f4b71Sopenharmony_ci```
2678e41f4b71Sopenharmony_ci
2679e41f4b71Sopenharmony_ci**Description**
2680e41f4b71Sopenharmony_ci
2681e41f4b71Sopenharmony_ciCreates the pointer to an **OH_Pixelmap_InitializationOptions** object.
2682e41f4b71Sopenharmony_ci
2683e41f4b71Sopenharmony_ci**Since**: 12
2684e41f4b71Sopenharmony_ci
2685e41f4b71Sopenharmony_ci**Parameters**
2686e41f4b71Sopenharmony_ci
2687e41f4b71Sopenharmony_ci| Name| Description| 
2688e41f4b71Sopenharmony_ci| -------- | -------- |
2689e41f4b71Sopenharmony_ci| options | Double pointer to the **OH_Pixelmap_InitializationOptions** object created. | 
2690e41f4b71Sopenharmony_ci
2691e41f4b71Sopenharmony_ci**Returns**
2692e41f4b71Sopenharmony_ci
2693e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2694e41f4b71Sopenharmony_ci
2695e41f4b71Sopenharmony_ci
2696e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_GetAlphaType()
2697e41f4b71Sopenharmony_ci
2698e41f4b71Sopenharmony_ci```
2699e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_GetAlphaType (OH_Pixelmap_InitializationOptions * options, int32_t * alphaType )
2700e41f4b71Sopenharmony_ci```
2701e41f4b71Sopenharmony_ci
2702e41f4b71Sopenharmony_ci**Description**
2703e41f4b71Sopenharmony_ci
2704e41f4b71Sopenharmony_ciObtains the alpha type.
2705e41f4b71Sopenharmony_ci
2706e41f4b71Sopenharmony_ci**Since**: 12
2707e41f4b71Sopenharmony_ci
2708e41f4b71Sopenharmony_ci**Parameters**
2709e41f4b71Sopenharmony_ci
2710e41f4b71Sopenharmony_ci| Name| Description| 
2711e41f4b71Sopenharmony_ci| -------- | -------- |
2712e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2713e41f4b71Sopenharmony_ci| alphaType | Pointer to the alpha type. For details about the available options, see [PIXELMAP_ALPHA_TYPE](#pixelmap_alpha_type). | 
2714e41f4b71Sopenharmony_ci
2715e41f4b71Sopenharmony_ci**Returns**
2716e41f4b71Sopenharmony_ci
2717e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2718e41f4b71Sopenharmony_ci
2719e41f4b71Sopenharmony_ci
2720e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_GetHeight()
2721e41f4b71Sopenharmony_ci
2722e41f4b71Sopenharmony_ci```
2723e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_GetHeight (OH_Pixelmap_InitializationOptions * options, uint32_t * height )
2724e41f4b71Sopenharmony_ci```
2725e41f4b71Sopenharmony_ci
2726e41f4b71Sopenharmony_ci**Description**
2727e41f4b71Sopenharmony_ci
2728e41f4b71Sopenharmony_ciObtains the image height.
2729e41f4b71Sopenharmony_ci
2730e41f4b71Sopenharmony_ci**Since**: 12
2731e41f4b71Sopenharmony_ci
2732e41f4b71Sopenharmony_ci**Parameters**
2733e41f4b71Sopenharmony_ci
2734e41f4b71Sopenharmony_ci| Name| Description| 
2735e41f4b71Sopenharmony_ci| -------- | -------- |
2736e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2737e41f4b71Sopenharmony_ci| height | Pointer to the image height, in px. | 
2738e41f4b71Sopenharmony_ci
2739e41f4b71Sopenharmony_ci**Returns**
2740e41f4b71Sopenharmony_ci
2741e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2742e41f4b71Sopenharmony_ci
2743e41f4b71Sopenharmony_ci
2744e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_GetPixelFormat()
2745e41f4b71Sopenharmony_ci
2746e41f4b71Sopenharmony_ci```
2747e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_GetPixelFormat (OH_Pixelmap_InitializationOptions * options, int32_t * pixelFormat )
2748e41f4b71Sopenharmony_ci```
2749e41f4b71Sopenharmony_ci
2750e41f4b71Sopenharmony_ci**Description**
2751e41f4b71Sopenharmony_ci
2752e41f4b71Sopenharmony_ciObtains the pixel format.
2753e41f4b71Sopenharmony_ci
2754e41f4b71Sopenharmony_ci**Since**: 12
2755e41f4b71Sopenharmony_ci
2756e41f4b71Sopenharmony_ci**Parameters**
2757e41f4b71Sopenharmony_ci
2758e41f4b71Sopenharmony_ci| Name| Description| 
2759e41f4b71Sopenharmony_ci| -------- | -------- |
2760e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2761e41f4b71Sopenharmony_ci| pixelFormat | Pointer to the pixel format. For details about the available options, see [PIXEL_FORMAT](#pixel_format).| 
2762e41f4b71Sopenharmony_ci
2763e41f4b71Sopenharmony_ci**Returns**
2764e41f4b71Sopenharmony_ci
2765e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2766e41f4b71Sopenharmony_ci
2767e41f4b71Sopenharmony_ci
2768e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_GetRowStride()
2769e41f4b71Sopenharmony_ci
2770e41f4b71Sopenharmony_ci```
2771e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_GetRowStride (OH_Pixelmap_InitializationOptions * options, int32_t * rowStride )
2772e41f4b71Sopenharmony_ci```
2773e41f4b71Sopenharmony_ci
2774e41f4b71Sopenharmony_ci**Description**
2775e41f4b71Sopenharmony_ci
2776e41f4b71Sopenharmony_ciObtains the row stride.
2777e41f4b71Sopenharmony_ci
2778e41f4b71Sopenharmony_ciThe stride is the actual memory size occupied by each row of the image, in bytes. Stride = Width \*Number of bytes per pixel + Padding, where padding refers to the extra space added at the end of each row for memory alignment purposes.
2779e41f4b71Sopenharmony_ci
2780e41f4b71Sopenharmony_ci**Since**: 12
2781e41f4b71Sopenharmony_ci
2782e41f4b71Sopenharmony_ci**Parameters**
2783e41f4b71Sopenharmony_ci
2784e41f4b71Sopenharmony_ci| Name| Description| 
2785e41f4b71Sopenharmony_ci| -------- | -------- |
2786e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2787e41f4b71Sopenharmony_ci| rowStride | Pointer to the stride, in bytes. | 
2788e41f4b71Sopenharmony_ci
2789e41f4b71Sopenharmony_ci**Returns**
2790e41f4b71Sopenharmony_ci
2791e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if the object pointed to by **options** is released. For details, see [Image_ErrorCode](#image_errorcode).
2792e41f4b71Sopenharmony_ci
2793e41f4b71Sopenharmony_ci
2794e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_GetSrcPixelFormat()
2795e41f4b71Sopenharmony_ci
2796e41f4b71Sopenharmony_ci```
2797e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_GetSrcPixelFormat(OH_Pixelmap_InitializationOptions *ops, int32_t *srcpixelFormat)
2798e41f4b71Sopenharmony_ci```
2799e41f4b71Sopenharmony_ci
2800e41f4b71Sopenharmony_ci**Description**
2801e41f4b71Sopenharmony_ci
2802e41f4b71Sopenharmony_ciObtains the source pixel format.
2803e41f4b71Sopenharmony_ci
2804e41f4b71Sopenharmony_ci**Since**: 12
2805e41f4b71Sopenharmony_ci
2806e41f4b71Sopenharmony_ci**Parameters**
2807e41f4b71Sopenharmony_ci
2808e41f4b71Sopenharmony_ci| Name| Description| 
2809e41f4b71Sopenharmony_ci| -------- | -------- |
2810e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object.| 
2811e41f4b71Sopenharmony_ci| srcpixelFormat | Pointer to the source pixel format. For details about the available options, see [PIXEL_FORMAT](#pixel_format).| 
2812e41f4b71Sopenharmony_ci
2813e41f4b71Sopenharmony_ci**Returns**
2814e41f4b71Sopenharmony_ci
2815e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2816e41f4b71Sopenharmony_ci
2817e41f4b71Sopenharmony_ci
2818e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_GetWidth()
2819e41f4b71Sopenharmony_ci
2820e41f4b71Sopenharmony_ci```
2821e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_GetWidth (OH_Pixelmap_InitializationOptions * options, uint32_t * width )
2822e41f4b71Sopenharmony_ci```
2823e41f4b71Sopenharmony_ci
2824e41f4b71Sopenharmony_ci**Description**
2825e41f4b71Sopenharmony_ci
2826e41f4b71Sopenharmony_ciObtains the image width.
2827e41f4b71Sopenharmony_ci
2828e41f4b71Sopenharmony_ci**Since**: 12
2829e41f4b71Sopenharmony_ci
2830e41f4b71Sopenharmony_ci**Parameters**
2831e41f4b71Sopenharmony_ci
2832e41f4b71Sopenharmony_ci| Name| Description| 
2833e41f4b71Sopenharmony_ci| -------- | -------- |
2834e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2835e41f4b71Sopenharmony_ci| width | Pointer to the image width, in px. | 
2836e41f4b71Sopenharmony_ci
2837e41f4b71Sopenharmony_ci**Returns**
2838e41f4b71Sopenharmony_ci
2839e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2840e41f4b71Sopenharmony_ci
2841e41f4b71Sopenharmony_ci
2842e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_Release()
2843e41f4b71Sopenharmony_ci
2844e41f4b71Sopenharmony_ci```
2845e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_Release (OH_Pixelmap_InitializationOptions * options)
2846e41f4b71Sopenharmony_ci```
2847e41f4b71Sopenharmony_ci
2848e41f4b71Sopenharmony_ci**Description**
2849e41f4b71Sopenharmony_ci
2850e41f4b71Sopenharmony_ciReleases the pointer to an **OH_Pixelmap_InitializationOptions** object.
2851e41f4b71Sopenharmony_ci
2852e41f4b71Sopenharmony_ci**Since**: 12
2853e41f4b71Sopenharmony_ci
2854e41f4b71Sopenharmony_ci**Parameters**
2855e41f4b71Sopenharmony_ci
2856e41f4b71Sopenharmony_ci| Name| Description| 
2857e41f4b71Sopenharmony_ci| -------- | -------- |
2858e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2859e41f4b71Sopenharmony_ci
2860e41f4b71Sopenharmony_ci**Returns**
2861e41f4b71Sopenharmony_ci
2862e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2863e41f4b71Sopenharmony_ci
2864e41f4b71Sopenharmony_ci
2865e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_SetAlphaType()
2866e41f4b71Sopenharmony_ci
2867e41f4b71Sopenharmony_ci```
2868e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_SetAlphaType (OH_Pixelmap_InitializationOptions * options, int32_t alphaType )
2869e41f4b71Sopenharmony_ci```
2870e41f4b71Sopenharmony_ci
2871e41f4b71Sopenharmony_ci**Description**
2872e41f4b71Sopenharmony_ci
2873e41f4b71Sopenharmony_ciSets the alpha type.
2874e41f4b71Sopenharmony_ci
2875e41f4b71Sopenharmony_ci**Since**: 12
2876e41f4b71Sopenharmony_ci
2877e41f4b71Sopenharmony_ci**Parameters**
2878e41f4b71Sopenharmony_ci
2879e41f4b71Sopenharmony_ci| Name| Description| 
2880e41f4b71Sopenharmony_ci| -------- | -------- |
2881e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2882e41f4b71Sopenharmony_ci| alphaType | Alpha type. For details about the available options, see [PIXELMAP_ALPHA_TYPE](#pixelmap_alpha_type). | 
2883e41f4b71Sopenharmony_ci
2884e41f4b71Sopenharmony_ci**Returns**
2885e41f4b71Sopenharmony_ci
2886e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2887e41f4b71Sopenharmony_ci
2888e41f4b71Sopenharmony_ci
2889e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_SetHeight()
2890e41f4b71Sopenharmony_ci
2891e41f4b71Sopenharmony_ci```
2892e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_SetHeight (OH_Pixelmap_InitializationOptions * options, uint32_t height )
2893e41f4b71Sopenharmony_ci```
2894e41f4b71Sopenharmony_ci
2895e41f4b71Sopenharmony_ci**Description**
2896e41f4b71Sopenharmony_ci
2897e41f4b71Sopenharmony_ciSets the image height.
2898e41f4b71Sopenharmony_ci
2899e41f4b71Sopenharmony_ci**Since**: 12
2900e41f4b71Sopenharmony_ci
2901e41f4b71Sopenharmony_ci**Parameters**
2902e41f4b71Sopenharmony_ci
2903e41f4b71Sopenharmony_ci| Name| Description| 
2904e41f4b71Sopenharmony_ci| -------- | -------- |
2905e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2906e41f4b71Sopenharmony_ci| height | Image height, in px. | 
2907e41f4b71Sopenharmony_ci
2908e41f4b71Sopenharmony_ci**Returns**
2909e41f4b71Sopenharmony_ci
2910e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2911e41f4b71Sopenharmony_ci
2912e41f4b71Sopenharmony_ci
2913e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_SetPixelFormat()
2914e41f4b71Sopenharmony_ci
2915e41f4b71Sopenharmony_ci```
2916e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_SetPixelFormat (OH_Pixelmap_InitializationOptions * options, int32_t pixelFormat )
2917e41f4b71Sopenharmony_ci```
2918e41f4b71Sopenharmony_ci
2919e41f4b71Sopenharmony_ci**Description**
2920e41f4b71Sopenharmony_ci
2921e41f4b71Sopenharmony_ciSets the pixel format.
2922e41f4b71Sopenharmony_ci
2923e41f4b71Sopenharmony_ci**Since**: 12
2924e41f4b71Sopenharmony_ci
2925e41f4b71Sopenharmony_ci**Parameters**
2926e41f4b71Sopenharmony_ci
2927e41f4b71Sopenharmony_ci| Name| Description| 
2928e41f4b71Sopenharmony_ci| -------- | -------- |
2929e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2930e41f4b71Sopenharmony_ci| pixelFormat | Pixel format. For details about the available options, see [PIXEL_FORMAT](#pixel_format).| 
2931e41f4b71Sopenharmony_ci
2932e41f4b71Sopenharmony_ci**Returns**
2933e41f4b71Sopenharmony_ci
2934e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2935e41f4b71Sopenharmony_ci
2936e41f4b71Sopenharmony_ci
2937e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_SetRowStride()
2938e41f4b71Sopenharmony_ci
2939e41f4b71Sopenharmony_ci```
2940e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_SetRowStride (OH_Pixelmap_InitializationOptions * options, int32_t rowStride )
2941e41f4b71Sopenharmony_ci```
2942e41f4b71Sopenharmony_ci
2943e41f4b71Sopenharmony_ci**Description**
2944e41f4b71Sopenharmony_ci
2945e41f4b71Sopenharmony_ciSets the row stride.
2946e41f4b71Sopenharmony_ci
2947e41f4b71Sopenharmony_ciThe stride is the actual memory size occupied by each row of the image, in bytes. Stride = Width \*Number of bytes per pixel + Padding, where padding refers to the extra space added at the end of each row for memory alignment purposes.
2948e41f4b71Sopenharmony_ci
2949e41f4b71Sopenharmony_ci**Since**: 12
2950e41f4b71Sopenharmony_ci
2951e41f4b71Sopenharmony_ci**Parameters**
2952e41f4b71Sopenharmony_ci
2953e41f4b71Sopenharmony_ci| Name| Description| 
2954e41f4b71Sopenharmony_ci| -------- | -------- |
2955e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2956e41f4b71Sopenharmony_ci| rowStride | Pointer to the stride, in bytes. | 
2957e41f4b71Sopenharmony_ci
2958e41f4b71Sopenharmony_ci**Returns**
2959e41f4b71Sopenharmony_ci
2960e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if the object pointed to by **options** is released. For details, see [Image_ErrorCode](#image_errorcode).
2961e41f4b71Sopenharmony_ci
2962e41f4b71Sopenharmony_ci
2963e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_SetSrcPixelFormat()
2964e41f4b71Sopenharmony_ci
2965e41f4b71Sopenharmony_ci```
2966e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_SetSrcPixelFormat (OH_Pixelmap_InitializationOptions * options, int32_t srcpixelFormat )
2967e41f4b71Sopenharmony_ci```
2968e41f4b71Sopenharmony_ci
2969e41f4b71Sopenharmony_ci**Description**
2970e41f4b71Sopenharmony_ci
2971e41f4b71Sopenharmony_ciSets the source pixel format.
2972e41f4b71Sopenharmony_ci
2973e41f4b71Sopenharmony_ci**Since**: 12
2974e41f4b71Sopenharmony_ci
2975e41f4b71Sopenharmony_ci**Parameters**
2976e41f4b71Sopenharmony_ci
2977e41f4b71Sopenharmony_ci| Name| Description| 
2978e41f4b71Sopenharmony_ci| -------- | -------- |
2979e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
2980e41f4b71Sopenharmony_ci| srcpixelFormat | Source pixel format. For details about the available options, see [PIXEL_FORMAT](#pixel_format). | 
2981e41f4b71Sopenharmony_ci
2982e41f4b71Sopenharmony_ci**Returns**
2983e41f4b71Sopenharmony_ci
2984e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
2985e41f4b71Sopenharmony_ci
2986e41f4b71Sopenharmony_ci
2987e41f4b71Sopenharmony_ci### OH_PixelmapInitializationOptions_SetWidth()
2988e41f4b71Sopenharmony_ci
2989e41f4b71Sopenharmony_ci```
2990e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapInitializationOptions_SetWidth (OH_Pixelmap_InitializationOptions * options, uint32_t width )
2991e41f4b71Sopenharmony_ci```
2992e41f4b71Sopenharmony_ci
2993e41f4b71Sopenharmony_ci**Description**
2994e41f4b71Sopenharmony_ci
2995e41f4b71Sopenharmony_ciSets the image width.
2996e41f4b71Sopenharmony_ci
2997e41f4b71Sopenharmony_ci**Since**: 12
2998e41f4b71Sopenharmony_ci
2999e41f4b71Sopenharmony_ci**Parameters**
3000e41f4b71Sopenharmony_ci
3001e41f4b71Sopenharmony_ci| Name| Description| 
3002e41f4b71Sopenharmony_ci| -------- | -------- |
3003e41f4b71Sopenharmony_ci| options | Pointer to an **OH_Pixelmap_InitializationOptions** object. | 
3004e41f4b71Sopenharmony_ci| width | Image width, in px. | 
3005e41f4b71Sopenharmony_ci
3006e41f4b71Sopenharmony_ci**Returns**
3007e41f4b71Sopenharmony_ci
3008e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3009e41f4b71Sopenharmony_ci
3010e41f4b71Sopenharmony_ci
3011e41f4b71Sopenharmony_ci### OH_PixelmapNative_ConvertAlphaFormat()
3012e41f4b71Sopenharmony_ci
3013e41f4b71Sopenharmony_ci```
3014e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_ConvertAlphaFormat (OH_PixelmapNative * srcpixelmap, OH_PixelmapNative * dstpixelmap, const bool isPremul )
3015e41f4b71Sopenharmony_ci```
3016e41f4b71Sopenharmony_ci
3017e41f4b71Sopenharmony_ci**Description**
3018e41f4b71Sopenharmony_ci
3019e41f4b71Sopenharmony_ciConverts pixel data of a pixel map from premultiplied alpha to non-premultiplied alpha, or vice versa.
3020e41f4b71Sopenharmony_ci
3021e41f4b71Sopenharmony_ci**Since**: 12
3022e41f4b71Sopenharmony_ci
3023e41f4b71Sopenharmony_ci**Parameters**
3024e41f4b71Sopenharmony_ci
3025e41f4b71Sopenharmony_ci| Name| Description| 
3026e41f4b71Sopenharmony_ci| -------- | -------- |
3027e41f4b71Sopenharmony_ci| srcpixelmap | Pointer to the source pixel map, which is an **OH_PixelmapNative** object. | 
3028e41f4b71Sopenharmony_ci| dstpixelmap | Pointer to the destination pixel map, which is an **OH_PixelmapNative** object. This pointer must be different from the pointer to the source pixel map. | 
3029e41f4b71Sopenharmony_ci| isPremul | Conversion mode. The value **true** means a conversion from premultiplied alpha to non-premultiplied alpha, and **false** means a conversion from non-premultiplied alpha to premultiplied alpha. | 
3030e41f4b71Sopenharmony_ci
3031e41f4b71Sopenharmony_ci**Returns**
3032e41f4b71Sopenharmony_ci
3033e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3034e41f4b71Sopenharmony_ci
3035e41f4b71Sopenharmony_ci
3036e41f4b71Sopenharmony_ci### OH_PixelmapNative_CreateEmptyPixelmap()
3037e41f4b71Sopenharmony_ci
3038e41f4b71Sopenharmony_ci```
3039e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_CreateEmptyPixelmap (OH_Pixelmap_InitializationOptions * options, OH_PixelmapNative ** pixelmap )
3040e41f4b71Sopenharmony_ci```
3041e41f4b71Sopenharmony_ci
3042e41f4b71Sopenharmony_ci**Description**
3043e41f4b71Sopenharmony_ci
3044e41f4b71Sopenharmony_ciCreates an empty pixel map using **OH_Pixelmap_InitializationOptions**. The memory data is 0.
3045e41f4b71Sopenharmony_ci
3046e41f4b71Sopenharmony_ci**Since**: 12
3047e41f4b71Sopenharmony_ci
3048e41f4b71Sopenharmony_ci**Parameters**
3049e41f4b71Sopenharmony_ci
3050e41f4b71Sopenharmony_ci| Name| Description| 
3051e41f4b71Sopenharmony_ci| -------- | -------- |
3052e41f4b71Sopenharmony_ci| options | Pointer to the properties. | 
3053e41f4b71Sopenharmony_ci| pixelmap | Double pointer to the **OH_PixelmapNative** object created. | 
3054e41f4b71Sopenharmony_ci
3055e41f4b71Sopenharmony_ci**Returns**
3056e41f4b71Sopenharmony_ci
3057e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3058e41f4b71Sopenharmony_ci
3059e41f4b71Sopenharmony_ci
3060e41f4b71Sopenharmony_ci### OH_PixelmapNative_CreatePixelmap()
3061e41f4b71Sopenharmony_ci
3062e41f4b71Sopenharmony_ci```
3063e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_CreatePixelmap (uint8_t * data, size_t dataLength, OH_Pixelmap_InitializationOptions * options, OH_PixelmapNative ** pixelmap )
3064e41f4b71Sopenharmony_ci```
3065e41f4b71Sopenharmony_ci
3066e41f4b71Sopenharmony_ci**Description**
3067e41f4b71Sopenharmony_ci
3068e41f4b71Sopenharmony_ciCreates a **PixelMap** object based on properties. By default, the BGRA_8888 format is used for data processing.
3069e41f4b71Sopenharmony_ci
3070e41f4b71Sopenharmony_ci**Since**: 12
3071e41f4b71Sopenharmony_ci
3072e41f4b71Sopenharmony_ci**Parameters**
3073e41f4b71Sopenharmony_ci
3074e41f4b71Sopenharmony_ci| Name| Description| 
3075e41f4b71Sopenharmony_ci| -------- | -------- |
3076e41f4b71Sopenharmony_ci| data | Pointer to the color array in BGRA_8888 format. | 
3077e41f4b71Sopenharmony_ci| dataLength | Size of the array. | 
3078e41f4b71Sopenharmony_ci| options | Pointer to the properties. | 
3079e41f4b71Sopenharmony_ci| pixelmap | Double pointer to the **OH_PixelmapNative** object created. | 
3080e41f4b71Sopenharmony_ci
3081e41f4b71Sopenharmony_ci**Returns**
3082e41f4b71Sopenharmony_ci
3083e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNSUPPORTED_OPERATION** if the operation is not supported. For details, see [Image_ErrorCode](#image_errorcode).
3084e41f4b71Sopenharmony_ci
3085e41f4b71Sopenharmony_ci
3086e41f4b71Sopenharmony_ci### OH_PixelmapNative_Crop()
3087e41f4b71Sopenharmony_ci
3088e41f4b71Sopenharmony_ci```
3089e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Crop (OH_PixelmapNative * pixelmap, Image_Region * region )
3090e41f4b71Sopenharmony_ci```
3091e41f4b71Sopenharmony_ci
3092e41f4b71Sopenharmony_ci**Description**
3093e41f4b71Sopenharmony_ci
3094e41f4b71Sopenharmony_ciCrops an image based on a given size.
3095e41f4b71Sopenharmony_ci
3096e41f4b71Sopenharmony_ci**Since**: 12
3097e41f4b71Sopenharmony_ci
3098e41f4b71Sopenharmony_ci**Parameters**
3099e41f4b71Sopenharmony_ci
3100e41f4b71Sopenharmony_ci| Name| Description| 
3101e41f4b71Sopenharmony_ci| -------- | -------- |
3102e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3103e41f4b71Sopenharmony_ci| region | Pointer to the region of the image after cropping. | 
3104e41f4b71Sopenharmony_ci
3105e41f4b71Sopenharmony_ci**Returns**
3106e41f4b71Sopenharmony_ci
3107e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3108e41f4b71Sopenharmony_ci
3109e41f4b71Sopenharmony_ci
3110e41f4b71Sopenharmony_ci### OH_PixelmapNative_Flip()
3111e41f4b71Sopenharmony_ci
3112e41f4b71Sopenharmony_ci```
3113e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Flip (OH_PixelmapNative * pixelmap, bool shouldFilpHorizontally, bool shouldFilpVertically )
3114e41f4b71Sopenharmony_ci```
3115e41f4b71Sopenharmony_ci
3116e41f4b71Sopenharmony_ci**Description**
3117e41f4b71Sopenharmony_ci
3118e41f4b71Sopenharmony_ciFlips an image based on a given angle.
3119e41f4b71Sopenharmony_ci
3120e41f4b71Sopenharmony_ci**Since**: 12
3121e41f4b71Sopenharmony_ci
3122e41f4b71Sopenharmony_ci**Parameters**
3123e41f4b71Sopenharmony_ci
3124e41f4b71Sopenharmony_ci| Name| Description| 
3125e41f4b71Sopenharmony_ci| -------- | -------- |
3126e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3127e41f4b71Sopenharmony_ci| shouldFilpHorizontally | Whether to flip the image horizontally. | 
3128e41f4b71Sopenharmony_ci| shouldFilpVertically | Whether to flip the image vertically. | 
3129e41f4b71Sopenharmony_ci
3130e41f4b71Sopenharmony_ci**Returns**
3131e41f4b71Sopenharmony_ci
3132e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3133e41f4b71Sopenharmony_ci
3134e41f4b71Sopenharmony_ci
3135e41f4b71Sopenharmony_ci### OH_PixelmapNative_GetImageInfo()
3136e41f4b71Sopenharmony_ci
3137e41f4b71Sopenharmony_ci```
3138e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_GetImageInfo (OH_PixelmapNative * pixelmap, OH_Pixelmap_ImageInfo * imageInfo )
3139e41f4b71Sopenharmony_ci```
3140e41f4b71Sopenharmony_ci
3141e41f4b71Sopenharmony_ci**Description**
3142e41f4b71Sopenharmony_ci
3143e41f4b71Sopenharmony_ciObtains the image information.
3144e41f4b71Sopenharmony_ci
3145e41f4b71Sopenharmony_ci**Since**: 12
3146e41f4b71Sopenharmony_ci
3147e41f4b71Sopenharmony_ci**Parameters**
3148e41f4b71Sopenharmony_ci
3149e41f4b71Sopenharmony_ci| Name| Description| 
3150e41f4b71Sopenharmony_ci| -------- | -------- |
3151e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3152e41f4b71Sopenharmony_ci| imageInfo | Pointer to the image information. | 
3153e41f4b71Sopenharmony_ci
3154e41f4b71Sopenharmony_ci**Returns**
3155e41f4b71Sopenharmony_ci
3156e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3157e41f4b71Sopenharmony_ci
3158e41f4b71Sopenharmony_ci
3159e41f4b71Sopenharmony_ci### OH_PixelmapNative_GetMetadata()
3160e41f4b71Sopenharmony_ci
3161e41f4b71Sopenharmony_ci```
3162e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_GetMetadata (OH_PixelmapNative * pixelmap, OH_Pixelmap_HdrMetadataKey key, OH_Pixelmap_HdrMetadataValue ** value )
3163e41f4b71Sopenharmony_ci```
3164e41f4b71Sopenharmony_ci
3165e41f4b71Sopenharmony_ci**Description**
3166e41f4b71Sopenharmony_ci
3167e41f4b71Sopenharmony_ciObtains the metadata.
3168e41f4b71Sopenharmony_ci
3169e41f4b71Sopenharmony_ci**Since**: 12
3170e41f4b71Sopenharmony_ci
3171e41f4b71Sopenharmony_ci**Parameters**
3172e41f4b71Sopenharmony_ci
3173e41f4b71Sopenharmony_ci| Name| Description| 
3174e41f4b71Sopenharmony_ci| -------- | -------- |
3175e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3176e41f4b71Sopenharmony_ci| key | Metadata key. For details, see [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey). | 
3177e41f4b71Sopenharmony_ci| value | Double pointer to the value of the metadata key. For details, see [OH_Pixelmap_HdrMetadataValue](_o_h___pixelmap___hdr_metadata_value.md). | 
3178e41f4b71Sopenharmony_ci
3179e41f4b71Sopenharmony_ci**Returns**
3180e41f4b71Sopenharmony_ci
3181e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DMA_NOT_EXIST** if the DMA memory does not exist; returns **IMAGE_COPY_FAILED** if the memory copy fails. For details, see [Image_ErrorCode](#image_errorcode).
3182e41f4b71Sopenharmony_ci
3183e41f4b71Sopenharmony_ci
3184e41f4b71Sopenharmony_ci### OH_PixelmapNative_GetNativeBuffer()
3185e41f4b71Sopenharmony_ci
3186e41f4b71Sopenharmony_ci```
3187e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_GetNativeBuffer (OH_PixelmapNative * pixelmap, OH_NativeBuffer ** nativeBuffer )
3188e41f4b71Sopenharmony_ci```
3189e41f4b71Sopenharmony_ci
3190e41f4b71Sopenharmony_ci**Description**
3191e41f4b71Sopenharmony_ci
3192e41f4b71Sopenharmony_ciObtains the **NativeBuffer** object from a pixel map in the DMA memory.
3193e41f4b71Sopenharmony_ci
3194e41f4b71Sopenharmony_ci**Since**: 12
3195e41f4b71Sopenharmony_ci
3196e41f4b71Sopenharmony_ci**Parameters**
3197e41f4b71Sopenharmony_ci
3198e41f4b71Sopenharmony_ci| Name| Description| 
3199e41f4b71Sopenharmony_ci| -------- | -------- |
3200e41f4b71Sopenharmony_ci| pixelmap | Pointer to the pixel map. | 
3201e41f4b71Sopenharmony_ci| nativeBuffer | Double pointer to the **NativeBuffer** object obtained. | 
3202e41f4b71Sopenharmony_ci
3203e41f4b71Sopenharmony_ci**Returns**
3204e41f4b71Sopenharmony_ci
3205e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DMA_NOT_EXIST** if the memory is not the DMA memory; returns **IMAGE_DMA_OPERATION_FAILED** if the operation on the DMA memory fails. For details, see [Image_ErrorCode](#image_errorcode).
3206e41f4b71Sopenharmony_ci
3207e41f4b71Sopenharmony_ci
3208e41f4b71Sopenharmony_ci### OH_PixelmapNative_Opacity()
3209e41f4b71Sopenharmony_ci
3210e41f4b71Sopenharmony_ci```
3211e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Opacity (OH_PixelmapNative * pixelmap, float rate )
3212e41f4b71Sopenharmony_ci```
3213e41f4b71Sopenharmony_ci
3214e41f4b71Sopenharmony_ci**Description**
3215e41f4b71Sopenharmony_ci
3216e41f4b71Sopenharmony_ciSets the opacity rate to enable the pixel map to achieve the corresponding opacity effect.
3217e41f4b71Sopenharmony_ci
3218e41f4b71Sopenharmony_ci**Since**: 12
3219e41f4b71Sopenharmony_ci
3220e41f4b71Sopenharmony_ci**Parameters**
3221e41f4b71Sopenharmony_ci
3222e41f4b71Sopenharmony_ci| Name| Description| 
3223e41f4b71Sopenharmony_ci| -------- | -------- |
3224e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3225e41f4b71Sopenharmony_ci| rate | Opacity rate to set. | 
3226e41f4b71Sopenharmony_ci
3227e41f4b71Sopenharmony_ci**Returns**
3228e41f4b71Sopenharmony_ci
3229e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3230e41f4b71Sopenharmony_ci
3231e41f4b71Sopenharmony_ci
3232e41f4b71Sopenharmony_ci### OH_PixelmapNative_ReadPixels()
3233e41f4b71Sopenharmony_ci
3234e41f4b71Sopenharmony_ci```
3235e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_ReadPixels (OH_PixelmapNative * pixelmap, uint8_t * destination, size_t * bufferSize )
3236e41f4b71Sopenharmony_ci```
3237e41f4b71Sopenharmony_ci
3238e41f4b71Sopenharmony_ci**Description**
3239e41f4b71Sopenharmony_ci
3240e41f4b71Sopenharmony_ciReads pixel data of an image and writes the data to the buffer based on the pixel format of the pixel map.
3241e41f4b71Sopenharmony_ci
3242e41f4b71Sopenharmony_ci**Since**: 12
3243e41f4b71Sopenharmony_ci
3244e41f4b71Sopenharmony_ci**Parameters**
3245e41f4b71Sopenharmony_ci
3246e41f4b71Sopenharmony_ci| Name| Description| 
3247e41f4b71Sopenharmony_ci| -------- | -------- |
3248e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3249e41f4b71Sopenharmony_ci| destination | Pointer to the buffer to which the image pixel map data will be written. | 
3250e41f4b71Sopenharmony_ci| bufferSize | Pointer to the buffer size. | 
3251e41f4b71Sopenharmony_ci
3252e41f4b71Sopenharmony_ci**Returns**
3253e41f4b71Sopenharmony_ci
3254e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
3255e41f4b71Sopenharmony_ci
3256e41f4b71Sopenharmony_ci
3257e41f4b71Sopenharmony_ci### OH_PixelmapNative_Release()
3258e41f4b71Sopenharmony_ci
3259e41f4b71Sopenharmony_ci```
3260e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Release (OH_PixelmapNative * pixelmap)
3261e41f4b71Sopenharmony_ci```
3262e41f4b71Sopenharmony_ci
3263e41f4b71Sopenharmony_ci**Description**
3264e41f4b71Sopenharmony_ci
3265e41f4b71Sopenharmony_ciReleases the pointer to an **OH_PixelmapNative** object.
3266e41f4b71Sopenharmony_ci
3267e41f4b71Sopenharmony_ci**Since**: 12
3268e41f4b71Sopenharmony_ci
3269e41f4b71Sopenharmony_ci**Parameters**
3270e41f4b71Sopenharmony_ci
3271e41f4b71Sopenharmony_ci| Name| Description| 
3272e41f4b71Sopenharmony_ci| -------- | -------- |
3273e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3274e41f4b71Sopenharmony_ci
3275e41f4b71Sopenharmony_ci**Returns**
3276e41f4b71Sopenharmony_ci
3277e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3278e41f4b71Sopenharmony_ci
3279e41f4b71Sopenharmony_ci
3280e41f4b71Sopenharmony_ci### OH_PixelmapNative_Rotate()
3281e41f4b71Sopenharmony_ci
3282e41f4b71Sopenharmony_ci```
3283e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Rotate (OH_PixelmapNative * pixelmap, float angle )
3284e41f4b71Sopenharmony_ci```
3285e41f4b71Sopenharmony_ci
3286e41f4b71Sopenharmony_ci**Description**
3287e41f4b71Sopenharmony_ci
3288e41f4b71Sopenharmony_ciRotates an image based on a given angle.
3289e41f4b71Sopenharmony_ci
3290e41f4b71Sopenharmony_ci**Since**: 12
3291e41f4b71Sopenharmony_ci
3292e41f4b71Sopenharmony_ci**Parameters**
3293e41f4b71Sopenharmony_ci
3294e41f4b71Sopenharmony_ci| Name| Description| 
3295e41f4b71Sopenharmony_ci| -------- | -------- |
3296e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3297e41f4b71Sopenharmony_ci| angle | Image rotation angle, in degrees. | 
3298e41f4b71Sopenharmony_ci
3299e41f4b71Sopenharmony_ci**Returns**
3300e41f4b71Sopenharmony_ci
3301e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3302e41f4b71Sopenharmony_ci
3303e41f4b71Sopenharmony_ci
3304e41f4b71Sopenharmony_ci### OH_PixelmapNative_Scale()
3305e41f4b71Sopenharmony_ci
3306e41f4b71Sopenharmony_ci```
3307e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Scale (OH_PixelmapNative * pixelmap, float scaleX, float scaleY )
3308e41f4b71Sopenharmony_ci```
3309e41f4b71Sopenharmony_ci
3310e41f4b71Sopenharmony_ci**Description**
3311e41f4b71Sopenharmony_ci
3312e41f4b71Sopenharmony_ciScales an image based on a given width and height.
3313e41f4b71Sopenharmony_ci
3314e41f4b71Sopenharmony_ci**Since**: 12
3315e41f4b71Sopenharmony_ci
3316e41f4b71Sopenharmony_ci**Parameters**
3317e41f4b71Sopenharmony_ci
3318e41f4b71Sopenharmony_ci| Name| Description| 
3319e41f4b71Sopenharmony_ci| -------- | -------- |
3320e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3321e41f4b71Sopenharmony_ci| scaleX | Scale ratio of the width. | 
3322e41f4b71Sopenharmony_ci| scaleY | Scale ratio of the height. | 
3323e41f4b71Sopenharmony_ci
3324e41f4b71Sopenharmony_ci**Returns**
3325e41f4b71Sopenharmony_ci
3326e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3327e41f4b71Sopenharmony_ci
3328e41f4b71Sopenharmony_ci
3329e41f4b71Sopenharmony_ci### OH_PixelmapNative_ScaleWithAntiAliasing()
3330e41f4b71Sopenharmony_ci
3331e41f4b71Sopenharmony_ci```
3332e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_ScaleWithAntiAliasing (OH_PixelmapNative * pixelmap, float scaleX, float scaleY, OH_PixelmapNative_AntiAliasingLevel level )
3333e41f4b71Sopenharmony_ci```
3334e41f4b71Sopenharmony_ci
3335e41f4b71Sopenharmony_ci**Description**
3336e41f4b71Sopenharmony_ci
3337e41f4b71Sopenharmony_ciScales an image based on the specified antialiasing level, width, and height.
3338e41f4b71Sopenharmony_ci
3339e41f4b71Sopenharmony_ci**Since**: 12
3340e41f4b71Sopenharmony_ci
3341e41f4b71Sopenharmony_ci**Parameters**
3342e41f4b71Sopenharmony_ci
3343e41f4b71Sopenharmony_ci| Name| Description| 
3344e41f4b71Sopenharmony_ci| -------- | -------- |
3345e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3346e41f4b71Sopenharmony_ci| scaleX | Scale ratio of the width. | 
3347e41f4b71Sopenharmony_ci| scaleY | Scale ratio of the height. | 
3348e41f4b71Sopenharmony_ci| level | Antialiasing level. | 
3349e41f4b71Sopenharmony_ci
3350e41f4b71Sopenharmony_ci**Returns**
3351e41f4b71Sopenharmony_ci
3352e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_TOO_LARGE** if the image is too large; returns **IMAGE_ALLOC_FAILED** if memory allocation fails; returns **IMAGE_UNKNOWN_ERROR** if the object pointed to by **pixelmap** is released. For details, see [Image_ErrorCode](#image_errorcode).
3353e41f4b71Sopenharmony_ci
3354e41f4b71Sopenharmony_ci
3355e41f4b71Sopenharmony_ci### OH_PixelmapNative_SetMetadata()
3356e41f4b71Sopenharmony_ci
3357e41f4b71Sopenharmony_ci```
3358e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_SetMetadata (OH_PixelmapNative * pixelmap, OH_Pixelmap_HdrMetadataKey key, OH_Pixelmap_HdrMetadataValue * value )
3359e41f4b71Sopenharmony_ci```
3360e41f4b71Sopenharmony_ci
3361e41f4b71Sopenharmony_ci**Description**
3362e41f4b71Sopenharmony_ci
3363e41f4b71Sopenharmony_ciSets metadata.
3364e41f4b71Sopenharmony_ci
3365e41f4b71Sopenharmony_ci**Since**: 12
3366e41f4b71Sopenharmony_ci
3367e41f4b71Sopenharmony_ci**Parameters**
3368e41f4b71Sopenharmony_ci
3369e41f4b71Sopenharmony_ci| Name| Description| 
3370e41f4b71Sopenharmony_ci| -------- | -------- |
3371e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3372e41f4b71Sopenharmony_ci| key | Pointer to the metadata key. For details, see [OH_Pixelmap_HdrMetadataKey](#oh_pixelmap_hdrmetadatakey). | 
3373e41f4b71Sopenharmony_ci| value | Pointer to the value of the metadata key. For details, see [OH_Pixelmap_HdrMetadataValue](_o_h___pixelmap___hdr_metadata_value.md). | 
3374e41f4b71Sopenharmony_ci
3375e41f4b71Sopenharmony_ci**Returns**
3376e41f4b71Sopenharmony_ci
3377e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_DMA_NOT_EXIST** if the DMA memory does not exist; returns **IMAGE_COPY_FAILED** if the memory copy fails. For details, see [Image_ErrorCode](#image_errorcode).
3378e41f4b71Sopenharmony_ci
3379e41f4b71Sopenharmony_ci
3380e41f4b71Sopenharmony_ci### OH_PixelmapNative_ToSdr()
3381e41f4b71Sopenharmony_ci
3382e41f4b71Sopenharmony_ci```
3383e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_ToSdr (OH_PixelmapNative * pixelmap)
3384e41f4b71Sopenharmony_ci```
3385e41f4b71Sopenharmony_ci
3386e41f4b71Sopenharmony_ci**Description**
3387e41f4b71Sopenharmony_ci
3388e41f4b71Sopenharmony_ciConverts an HDR image into an SDR image.
3389e41f4b71Sopenharmony_ci
3390e41f4b71Sopenharmony_ci**Since**: 12
3391e41f4b71Sopenharmony_ci
3392e41f4b71Sopenharmony_ci**Parameters**
3393e41f4b71Sopenharmony_ci
3394e41f4b71Sopenharmony_ci| Name| Description| 
3395e41f4b71Sopenharmony_ci| -------- | -------- |
3396e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3397e41f4b71Sopenharmony_ci
3398e41f4b71Sopenharmony_ci**Returns**
3399e41f4b71Sopenharmony_ci
3400e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNSUPPORTED_OPERATION** if the operation is not supported. For details, see [Image_ErrorCode](#image_errorcode).
3401e41f4b71Sopenharmony_ci
3402e41f4b71Sopenharmony_ci
3403e41f4b71Sopenharmony_ci### OH_PixelmapNative_Translate()
3404e41f4b71Sopenharmony_ci
3405e41f4b71Sopenharmony_ci```
3406e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_Translate (OH_PixelmapNative * pixelmap, float x, float y )
3407e41f4b71Sopenharmony_ci```
3408e41f4b71Sopenharmony_ci
3409e41f4b71Sopenharmony_ci**Description**
3410e41f4b71Sopenharmony_ci
3411e41f4b71Sopenharmony_ciTranslates an image based on given coordinates.
3412e41f4b71Sopenharmony_ci
3413e41f4b71Sopenharmony_ci**Since**: 12
3414e41f4b71Sopenharmony_ci
3415e41f4b71Sopenharmony_ci**Parameters**
3416e41f4b71Sopenharmony_ci
3417e41f4b71Sopenharmony_ci| Name| Description| 
3418e41f4b71Sopenharmony_ci| -------- | -------- |
3419e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3420e41f4b71Sopenharmony_ci| x | X coordinate to translate. | 
3421e41f4b71Sopenharmony_ci| y | Y coordinate to translate. | 
3422e41f4b71Sopenharmony_ci
3423e41f4b71Sopenharmony_ci**Returns**
3424e41f4b71Sopenharmony_ci
3425e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect. For details, see [Image_ErrorCode](#image_errorcode).
3426e41f4b71Sopenharmony_ci
3427e41f4b71Sopenharmony_ci
3428e41f4b71Sopenharmony_ci### OH_PixelmapNative_WritePixels()
3429e41f4b71Sopenharmony_ci
3430e41f4b71Sopenharmony_ci```
3431e41f4b71Sopenharmony_ciImage_ErrorCode OH_PixelmapNative_WritePixels (OH_PixelmapNative * pixelmap, uint8_t * source, size_t bufferSize )
3432e41f4b71Sopenharmony_ci```
3433e41f4b71Sopenharmony_ci
3434e41f4b71Sopenharmony_ci**Description**
3435e41f4b71Sopenharmony_ci
3436e41f4b71Sopenharmony_ciReads the pixel data in the buffer and writes the result to the pixel map based on the pixel format of the pixel map.
3437e41f4b71Sopenharmony_ci
3438e41f4b71Sopenharmony_ci**Since**: 12
3439e41f4b71Sopenharmony_ci
3440e41f4b71Sopenharmony_ci**Parameters**
3441e41f4b71Sopenharmony_ci
3442e41f4b71Sopenharmony_ci| Name| Description| 
3443e41f4b71Sopenharmony_ci| -------- | -------- |
3444e41f4b71Sopenharmony_ci| pixelmap | Pointer to an **OH_PixelmapNative** object. | 
3445e41f4b71Sopenharmony_ci| source | Pointer to the buffer from which the image data will be read. | 
3446e41f4b71Sopenharmony_ci| bufferSize | Buffer size. | 
3447e41f4b71Sopenharmony_ci
3448e41f4b71Sopenharmony_ci**Returns**
3449e41f4b71Sopenharmony_ci
3450e41f4b71Sopenharmony_ciReturns **IMAGE_SUCCESS** if the operation is successful; returns **IMAGE_BAD_PARAMETER** if a parameter is incorrect; returns **IMAGE_UNSUPPORTED_OPERATION** if the operation is not supported; returns **IMAGE_UNKNOWN_ERROR** if an unknown error occurs. For details, see [Image_ErrorCode](#image_errorcode).
3451e41f4b71Sopenharmony_ci
3452e41f4b71Sopenharmony_ci
3453e41f4b71Sopenharmony_ci## Variable Description
3454e41f4b71Sopenharmony_ci
3455e41f4b71Sopenharmony_ci
3456e41f4b71Sopenharmony_ci### MIME_TYPE_BMP
3457e41f4b71Sopenharmony_ci
3458e41f4b71Sopenharmony_ci```
3459e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_BMP = "image/bmp"
3460e41f4b71Sopenharmony_ci```
3461e41f4b71Sopenharmony_ci
3462e41f4b71Sopenharmony_ci**Description**
3463e41f4b71Sopenharmony_ci
3464e41f4b71Sopenharmony_ciBMP image format.
3465e41f4b71Sopenharmony_ci
3466e41f4b71Sopenharmony_ci**Since**: 12
3467e41f4b71Sopenharmony_ci
3468e41f4b71Sopenharmony_ci
3469e41f4b71Sopenharmony_ci### MIME_TYPE_GIF
3470e41f4b71Sopenharmony_ci
3471e41f4b71Sopenharmony_ci```
3472e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_GIF = "image/gif"
3473e41f4b71Sopenharmony_ci```
3474e41f4b71Sopenharmony_ci
3475e41f4b71Sopenharmony_ci**Description**
3476e41f4b71Sopenharmony_ci
3477e41f4b71Sopenharmony_ciGIF image format.
3478e41f4b71Sopenharmony_ci
3479e41f4b71Sopenharmony_ci**Since**: 12
3480e41f4b71Sopenharmony_ci
3481e41f4b71Sopenharmony_ci
3482e41f4b71Sopenharmony_ci### MIME_TYPE_HEIC
3483e41f4b71Sopenharmony_ci
3484e41f4b71Sopenharmony_ci```
3485e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_HEIC = "image/heic"
3486e41f4b71Sopenharmony_ci```
3487e41f4b71Sopenharmony_ci
3488e41f4b71Sopenharmony_ci**Description**
3489e41f4b71Sopenharmony_ci
3490e41f4b71Sopenharmony_ciHEIF image format.
3491e41f4b71Sopenharmony_ci
3492e41f4b71Sopenharmony_ci**Since**: 12
3493e41f4b71Sopenharmony_ci
3494e41f4b71Sopenharmony_ci
3495e41f4b71Sopenharmony_ci### MIME_TYPE_ICON
3496e41f4b71Sopenharmony_ci
3497e41f4b71Sopenharmony_ci```
3498e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_ICON = "image/x-icon"
3499e41f4b71Sopenharmony_ci```
3500e41f4b71Sopenharmony_ci
3501e41f4b71Sopenharmony_ci**Description**
3502e41f4b71Sopenharmony_ci
3503e41f4b71Sopenharmony_ciICO image format.
3504e41f4b71Sopenharmony_ci
3505e41f4b71Sopenharmony_ci**Since**: 12
3506e41f4b71Sopenharmony_ci
3507e41f4b71Sopenharmony_ci
3508e41f4b71Sopenharmony_ci### MIME_TYPE_JPEG
3509e41f4b71Sopenharmony_ci
3510e41f4b71Sopenharmony_ci```
3511e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_JPEG = "image/jpeg"
3512e41f4b71Sopenharmony_ci```
3513e41f4b71Sopenharmony_ci
3514e41f4b71Sopenharmony_ci**Description**
3515e41f4b71Sopenharmony_ci
3516e41f4b71Sopenharmony_ciJPEG image format.
3517e41f4b71Sopenharmony_ci
3518e41f4b71Sopenharmony_ci**Since**: 12
3519e41f4b71Sopenharmony_ci
3520e41f4b71Sopenharmony_ci
3521e41f4b71Sopenharmony_ci### MIME_TYPE_PNG
3522e41f4b71Sopenharmony_ci
3523e41f4b71Sopenharmony_ci```
3524e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_PNG = "image/png"
3525e41f4b71Sopenharmony_ci```
3526e41f4b71Sopenharmony_ci
3527e41f4b71Sopenharmony_ci**Description**
3528e41f4b71Sopenharmony_ci
3529e41f4b71Sopenharmony_ciPNG image format.
3530e41f4b71Sopenharmony_ci
3531e41f4b71Sopenharmony_ci**Since**: 12
3532e41f4b71Sopenharmony_ci
3533e41f4b71Sopenharmony_ci
3534e41f4b71Sopenharmony_ci### MIME_TYPE_WEBP
3535e41f4b71Sopenharmony_ci
3536e41f4b71Sopenharmony_ci```
3537e41f4b71Sopenharmony_cistatic const char* MIME_TYPE_WEBP = "image/webp"
3538e41f4b71Sopenharmony_ci```
3539e41f4b71Sopenharmony_ci
3540e41f4b71Sopenharmony_ci**Description**
3541e41f4b71Sopenharmony_ci
3542e41f4b71Sopenharmony_ciWebP image format.
3543e41f4b71Sopenharmony_ci
3544e41f4b71Sopenharmony_ci**Since**: 12
3545e41f4b71Sopenharmony_ci
3546e41f4b71Sopenharmony_ci
3547e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_ARTIST
3548e41f4b71Sopenharmony_ci
3549e41f4b71Sopenharmony_ci```
3550e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_ARTIST = "Artist"
3551e41f4b71Sopenharmony_ci```
3552e41f4b71Sopenharmony_ci
3553e41f4b71Sopenharmony_ci**Description**
3554e41f4b71Sopenharmony_ci
3555e41f4b71Sopenharmony_ciPerson who created the image.
3556e41f4b71Sopenharmony_ci
3557e41f4b71Sopenharmony_ci**Since**: 12
3558e41f4b71Sopenharmony_ci
3559e41f4b71Sopenharmony_ci
3560e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_BITS_PER_SAMPLE
3561e41f4b71Sopenharmony_ci
3562e41f4b71Sopenharmony_ci```
3563e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_BITS_PER_SAMPLE = "BitsPerSample"
3564e41f4b71Sopenharmony_ci```
3565e41f4b71Sopenharmony_ci
3566e41f4b71Sopenharmony_ci**Description**
3567e41f4b71Sopenharmony_ci
3568e41f4b71Sopenharmony_ciNumber of bits per sample.
3569e41f4b71Sopenharmony_ci
3570e41f4b71Sopenharmony_ci**Since**: 12
3571e41f4b71Sopenharmony_ci
3572e41f4b71Sopenharmony_ci
3573e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_BODY_SERIAL_NUMBER
3574e41f4b71Sopenharmony_ci
3575e41f4b71Sopenharmony_ci```
3576e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_BODY_SERIAL_NUMBER = "BodySerialNumber"
3577e41f4b71Sopenharmony_ci```
3578e41f4b71Sopenharmony_ci
3579e41f4b71Sopenharmony_ci**Description**
3580e41f4b71Sopenharmony_ci
3581e41f4b71Sopenharmony_ciSerial number of the camera body.
3582e41f4b71Sopenharmony_ci
3583e41f4b71Sopenharmony_ci**Since**: 12
3584e41f4b71Sopenharmony_ci
3585e41f4b71Sopenharmony_ci
3586e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_BRIGHTNESS_VALUE
3587e41f4b71Sopenharmony_ci
3588e41f4b71Sopenharmony_ci```
3589e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_BRIGHTNESS_VALUE = "BrightnessValue"
3590e41f4b71Sopenharmony_ci```
3591e41f4b71Sopenharmony_ci
3592e41f4b71Sopenharmony_ci**Description**
3593e41f4b71Sopenharmony_ci
3594e41f4b71Sopenharmony_ciValue of brightness, expressed in APEX values.
3595e41f4b71Sopenharmony_ci
3596e41f4b71Sopenharmony_ci**Since**: 12
3597e41f4b71Sopenharmony_ci
3598e41f4b71Sopenharmony_ci
3599e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_BURST_NUMBER
3600e41f4b71Sopenharmony_ci
3601e41f4b71Sopenharmony_ci```
3602e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_BURST_NUMBER = "HwMnoteBurstNumber"
3603e41f4b71Sopenharmony_ci```
3604e41f4b71Sopenharmony_ci
3605e41f4b71Sopenharmony_ci**Description**
3606e41f4b71Sopenharmony_ci
3607e41f4b71Sopenharmony_ciNumber of burst shooting times.
3608e41f4b71Sopenharmony_ci
3609e41f4b71Sopenharmony_ci**Since**: 12
3610e41f4b71Sopenharmony_ci
3611e41f4b71Sopenharmony_ci
3612e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_CAMERA_OWNER_NAME
3613e41f4b71Sopenharmony_ci
3614e41f4b71Sopenharmony_ci```
3615e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_CAMERA_OWNER_NAME = "CameraOwnerName"
3616e41f4b71Sopenharmony_ci```
3617e41f4b71Sopenharmony_ci
3618e41f4b71Sopenharmony_ci**Description**
3619e41f4b71Sopenharmony_ci
3620e41f4b71Sopenharmony_ciName of the camera owner.
3621e41f4b71Sopenharmony_ci
3622e41f4b71Sopenharmony_ci**Since**: 12
3623e41f4b71Sopenharmony_ci
3624e41f4b71Sopenharmony_ci
3625e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_CFA_PATTERN
3626e41f4b71Sopenharmony_ci
3627e41f4b71Sopenharmony_ci```
3628e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_CFA_PATTERN = "CFAPattern"
3629e41f4b71Sopenharmony_ci```
3630e41f4b71Sopenharmony_ci
3631e41f4b71Sopenharmony_ci**Description**
3632e41f4b71Sopenharmony_ci
3633e41f4b71Sopenharmony_ciColor Filter Array (CFA) geometric pattern of the image sensor.
3634e41f4b71Sopenharmony_ci
3635e41f4b71Sopenharmony_ci**Since**: 12
3636e41f4b71Sopenharmony_ci
3637e41f4b71Sopenharmony_ci
3638e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_COLOR_SPACE
3639e41f4b71Sopenharmony_ci
3640e41f4b71Sopenharmony_ci```
3641e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_COLOR_SPACE = "ColorSpace"
3642e41f4b71Sopenharmony_ci```
3643e41f4b71Sopenharmony_ci
3644e41f4b71Sopenharmony_ci**Description**
3645e41f4b71Sopenharmony_ci
3646e41f4b71Sopenharmony_ciColor space information, which is usually recorded as a color space specifier.
3647e41f4b71Sopenharmony_ci
3648e41f4b71Sopenharmony_ci**Since**: 12
3649e41f4b71Sopenharmony_ci
3650e41f4b71Sopenharmony_ci
3651e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_COMPONENTS_CONFIGURATION
3652e41f4b71Sopenharmony_ci
3653e41f4b71Sopenharmony_ci```
3654e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_COMPONENTS_CONFIGURATION = "ComponentsConfiguration"
3655e41f4b71Sopenharmony_ci```
3656e41f4b71Sopenharmony_ci
3657e41f4b71Sopenharmony_ci**Description**
3658e41f4b71Sopenharmony_ci
3659e41f4b71Sopenharmony_ciSpecific information about compressed data.
3660e41f4b71Sopenharmony_ci
3661e41f4b71Sopenharmony_ci**Since**: 12
3662e41f4b71Sopenharmony_ci
3663e41f4b71Sopenharmony_ci
3664e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_COMPOSITE_IMAGE
3665e41f4b71Sopenharmony_ci
3666e41f4b71Sopenharmony_ci```
3667e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_COMPOSITE_IMAGE = "CompositeImage"
3668e41f4b71Sopenharmony_ci```
3669e41f4b71Sopenharmony_ci
3670e41f4b71Sopenharmony_ci**Description**
3671e41f4b71Sopenharmony_ci
3672e41f4b71Sopenharmony_ciWhether the image is a composite image.
3673e41f4b71Sopenharmony_ci
3674e41f4b71Sopenharmony_ci**Since**: 12
3675e41f4b71Sopenharmony_ci
3676e41f4b71Sopenharmony_ci
3677e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_COMPRESSED_BITS_PER_PIXEL
3678e41f4b71Sopenharmony_ci
3679e41f4b71Sopenharmony_ci```
3680e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_COMPRESSED_BITS_PER_PIXEL = "CompressedBitsPerPixel"
3681e41f4b71Sopenharmony_ci```
3682e41f4b71Sopenharmony_ci
3683e41f4b71Sopenharmony_ci**Description**
3684e41f4b71Sopenharmony_ci
3685e41f4b71Sopenharmony_ciNumber of bits per pixel. It is specific to compressed data.
3686e41f4b71Sopenharmony_ci
3687e41f4b71Sopenharmony_ci**Since**: 12
3688e41f4b71Sopenharmony_ci
3689e41f4b71Sopenharmony_ci
3690e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_COMPRESSION
3691e41f4b71Sopenharmony_ci
3692e41f4b71Sopenharmony_ci```
3693e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_COMPRESSION = "Compression"
3694e41f4b71Sopenharmony_ci```
3695e41f4b71Sopenharmony_ci
3696e41f4b71Sopenharmony_ci**Description**
3697e41f4b71Sopenharmony_ci
3698e41f4b71Sopenharmony_ciCompression scheme used on the image data.
3699e41f4b71Sopenharmony_ci
3700e41f4b71Sopenharmony_ci**Since**: 12
3701e41f4b71Sopenharmony_ci
3702e41f4b71Sopenharmony_ci
3703e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_CONTRAST
3704e41f4b71Sopenharmony_ci
3705e41f4b71Sopenharmony_ci```
3706e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_CONTRAST = "Contrast"
3707e41f4b71Sopenharmony_ci```
3708e41f4b71Sopenharmony_ci
3709e41f4b71Sopenharmony_ci**Description**
3710e41f4b71Sopenharmony_ci
3711e41f4b71Sopenharmony_ciDirection of contrast processing used by the camera.
3712e41f4b71Sopenharmony_ci
3713e41f4b71Sopenharmony_ci**Since**: 12
3714e41f4b71Sopenharmony_ci
3715e41f4b71Sopenharmony_ci
3716e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_COPYRIGHT
3717e41f4b71Sopenharmony_ci
3718e41f4b71Sopenharmony_ci```
3719e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_COPYRIGHT = "Copyright"
3720e41f4b71Sopenharmony_ci```
3721e41f4b71Sopenharmony_ci
3722e41f4b71Sopenharmony_ci**Description**
3723e41f4b71Sopenharmony_ci
3724e41f4b71Sopenharmony_ciCopyright notice of the image.
3725e41f4b71Sopenharmony_ci
3726e41f4b71Sopenharmony_ci**Since**: 12
3727e41f4b71Sopenharmony_ci
3728e41f4b71Sopenharmony_ci
3729e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_CUSTOM_RENDERED
3730e41f4b71Sopenharmony_ci
3731e41f4b71Sopenharmony_ci```
3732e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_CUSTOM_RENDERED = "CustomRendered"
3733e41f4b71Sopenharmony_ci```
3734e41f4b71Sopenharmony_ci
3735e41f4b71Sopenharmony_ci**Description**
3736e41f4b71Sopenharmony_ci
3737e41f4b71Sopenharmony_ciSpecial processing on image data.
3738e41f4b71Sopenharmony_ci
3739e41f4b71Sopenharmony_ci**Since**: 12
3740e41f4b71Sopenharmony_ci
3741e41f4b71Sopenharmony_ci
3742e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_DATE_TIME_DIGITIZED
3743e41f4b71Sopenharmony_ci
3744e41f4b71Sopenharmony_ci```
3745e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_DATE_TIME_DIGITIZED = "DateTimeDigitized"
3746e41f4b71Sopenharmony_ci```
3747e41f4b71Sopenharmony_ci
3748e41f4b71Sopenharmony_ci**Description**
3749e41f4b71Sopenharmony_ci
3750e41f4b71Sopenharmony_ciDate and time when the image was stored as digital data, in the format of YYYY:MM:DD HH:MM:SS.
3751e41f4b71Sopenharmony_ci
3752e41f4b71Sopenharmony_ci**Since**: 12
3753e41f4b71Sopenharmony_ci
3754e41f4b71Sopenharmony_ci
3755e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_DATE_TIME_ORIGINAL
3756e41f4b71Sopenharmony_ci
3757e41f4b71Sopenharmony_ci```
3758e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_DATE_TIME_ORIGINAL = "DateTimeOriginal"
3759e41f4b71Sopenharmony_ci```
3760e41f4b71Sopenharmony_ci
3761e41f4b71Sopenharmony_ci**Description**
3762e41f4b71Sopenharmony_ci
3763e41f4b71Sopenharmony_ciShooting time, for example, 2022:09:06 15:48:00.
3764e41f4b71Sopenharmony_ci
3765e41f4b71Sopenharmony_ci**Since**: 12
3766e41f4b71Sopenharmony_ci
3767e41f4b71Sopenharmony_ci
3768e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_DEFAULT_CROP_SIZE
3769e41f4b71Sopenharmony_ci
3770e41f4b71Sopenharmony_ci```
3771e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_DEFAULT_CROP_SIZE = "DefaultCropSize"
3772e41f4b71Sopenharmony_ci```
3773e41f4b71Sopenharmony_ci
3774e41f4b71Sopenharmony_ci**Description**
3775e41f4b71Sopenharmony_ci
3776e41f4b71Sopenharmony_ciSize of the final image area, in raw image coordinates, taking into account extra pixels around the edges of the final image.
3777e41f4b71Sopenharmony_ci
3778e41f4b71Sopenharmony_ci**Since**: 12
3779e41f4b71Sopenharmony_ci
3780e41f4b71Sopenharmony_ci
3781e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_DEVICE_SETTING_DESCRIPTION
3782e41f4b71Sopenharmony_ci
3783e41f4b71Sopenharmony_ci```
3784e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_DEVICE_SETTING_DESCRIPTION = "DeviceSettingDescription"
3785e41f4b71Sopenharmony_ci```
3786e41f4b71Sopenharmony_ci
3787e41f4b71Sopenharmony_ci**Description**
3788e41f4b71Sopenharmony_ci
3789e41f4b71Sopenharmony_ciInformation about the photographing conditions of a specific camera model.
3790e41f4b71Sopenharmony_ci
3791e41f4b71Sopenharmony_ci**Since**: 12
3792e41f4b71Sopenharmony_ci
3793e41f4b71Sopenharmony_ci
3794e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_DIGITAL_ZOOM_RATIO
3795e41f4b71Sopenharmony_ci
3796e41f4b71Sopenharmony_ci```
3797e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_DIGITAL_ZOOM_RATIO = "DigitalZoomRatio"
3798e41f4b71Sopenharmony_ci```
3799e41f4b71Sopenharmony_ci
3800e41f4b71Sopenharmony_ci**Description**
3801e41f4b71Sopenharmony_ci
3802e41f4b71Sopenharmony_ciDigital zoom ratio when the image was captured.
3803e41f4b71Sopenharmony_ci
3804e41f4b71Sopenharmony_ci**Since**: 12
3805e41f4b71Sopenharmony_ci
3806e41f4b71Sopenharmony_ci
3807e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_DNG_VERSION
3808e41f4b71Sopenharmony_ci
3809e41f4b71Sopenharmony_ci```
3810e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_DNG_VERSION = "DNGVersion"
3811e41f4b71Sopenharmony_ci```
3812e41f4b71Sopenharmony_ci
3813e41f4b71Sopenharmony_ci**Description**
3814e41f4b71Sopenharmony_ci
3815e41f4b71Sopenharmony_ciDNG version. It encodes the DNG 4-tier version number.
3816e41f4b71Sopenharmony_ci
3817e41f4b71Sopenharmony_ci**Since**: 12
3818e41f4b71Sopenharmony_ci
3819e41f4b71Sopenharmony_ci
3820e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_EXIF_VERSION
3821e41f4b71Sopenharmony_ci
3822e41f4b71Sopenharmony_ci```
3823e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_EXIF_VERSION = "ExifVersion"
3824e41f4b71Sopenharmony_ci```
3825e41f4b71Sopenharmony_ci
3826e41f4b71Sopenharmony_ci**Description**
3827e41f4b71Sopenharmony_ci
3828e41f4b71Sopenharmony_ciVersion of the supported EXIF standard.
3829e41f4b71Sopenharmony_ci
3830e41f4b71Sopenharmony_ci**Since**: 12
3831e41f4b71Sopenharmony_ci
3832e41f4b71Sopenharmony_ci
3833e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_EXPOSURE_INDEX
3834e41f4b71Sopenharmony_ci
3835e41f4b71Sopenharmony_ci```
3836e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_EXPOSURE_INDEX = "ExposureIndex"
3837e41f4b71Sopenharmony_ci```
3838e41f4b71Sopenharmony_ci
3839e41f4b71Sopenharmony_ci**Description**
3840e41f4b71Sopenharmony_ci
3841e41f4b71Sopenharmony_ciExposure index selected at the time the image is captured.
3842e41f4b71Sopenharmony_ci
3843e41f4b71Sopenharmony_ci**Since**: 12
3844e41f4b71Sopenharmony_ci
3845e41f4b71Sopenharmony_ci
3846e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_EXPOSURE_MODE
3847e41f4b71Sopenharmony_ci
3848e41f4b71Sopenharmony_ci```
3849e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_EXPOSURE_MODE = "ExposureMode"
3850e41f4b71Sopenharmony_ci```
3851e41f4b71Sopenharmony_ci
3852e41f4b71Sopenharmony_ci**Description**
3853e41f4b71Sopenharmony_ci
3854e41f4b71Sopenharmony_ciExposure mode set when the image was captured.
3855e41f4b71Sopenharmony_ci
3856e41f4b71Sopenharmony_ci**Since**: 12
3857e41f4b71Sopenharmony_ci
3858e41f4b71Sopenharmony_ci
3859e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_EXPOSURE_PROGRAM
3860e41f4b71Sopenharmony_ci
3861e41f4b71Sopenharmony_ci```
3862e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_EXPOSURE_PROGRAM = "ExposureProgram"
3863e41f4b71Sopenharmony_ci```
3864e41f4b71Sopenharmony_ci
3865e41f4b71Sopenharmony_ci**Description**
3866e41f4b71Sopenharmony_ci
3867e41f4b71Sopenharmony_ciClass of the program used by the camera to set exposure when the image was captured.
3868e41f4b71Sopenharmony_ci
3869e41f4b71Sopenharmony_ci**Since**: 12
3870e41f4b71Sopenharmony_ci
3871e41f4b71Sopenharmony_ci
3872e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_EXPOSURE_TIME
3873e41f4b71Sopenharmony_ci
3874e41f4b71Sopenharmony_ci```
3875e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_EXPOSURE_TIME = "ExposureTime"
3876e41f4b71Sopenharmony_ci```
3877e41f4b71Sopenharmony_ci
3878e41f4b71Sopenharmony_ci**Description**
3879e41f4b71Sopenharmony_ci
3880e41f4b71Sopenharmony_ciExposure time, for example, 1/33 seconds.
3881e41f4b71Sopenharmony_ci
3882e41f4b71Sopenharmony_ci**Since**: 12
3883e41f4b71Sopenharmony_ci
3884e41f4b71Sopenharmony_ci
3885e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_F_NUMBER
3886e41f4b71Sopenharmony_ci
3887e41f4b71Sopenharmony_ci```
3888e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_F_NUMBER = "FNumber"
3889e41f4b71Sopenharmony_ci```
3890e41f4b71Sopenharmony_ci
3891e41f4b71Sopenharmony_ci**Description**
3892e41f4b71Sopenharmony_ci
3893e41f4b71Sopenharmony_ciF number, for example, f/1.8.
3894e41f4b71Sopenharmony_ci
3895e41f4b71Sopenharmony_ci**Since**: 12
3896e41f4b71Sopenharmony_ci
3897e41f4b71Sopenharmony_ci
3898e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_CONF
3899e41f4b71Sopenharmony_ci
3900e41f4b71Sopenharmony_ci```
3901e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_CONF = "HwMnoteFaceConf"
3902e41f4b71Sopenharmony_ci```
3903e41f4b71Sopenharmony_ci
3904e41f4b71Sopenharmony_ci**Description**
3905e41f4b71Sopenharmony_ci
3906e41f4b71Sopenharmony_ciFace confidence.
3907e41f4b71Sopenharmony_ci
3908e41f4b71Sopenharmony_ci**Since**: 12
3909e41f4b71Sopenharmony_ci
3910e41f4b71Sopenharmony_ci
3911e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_LEYE_CENTER
3912e41f4b71Sopenharmony_ci
3913e41f4b71Sopenharmony_ci```
3914e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_LEYE_CENTER = "HwMnoteFaceLeyeCenter"
3915e41f4b71Sopenharmony_ci```
3916e41f4b71Sopenharmony_ci
3917e41f4b71Sopenharmony_ci**Description**
3918e41f4b71Sopenharmony_ci
3919e41f4b71Sopenharmony_ciLeft eye centered. It is used in **OH_ImageSource_GetImageProperty** and **OH_ImageSource_ModifyImageProperty**.
3920e41f4b71Sopenharmony_ci
3921e41f4b71Sopenharmony_ci**Since**: 12
3922e41f4b71Sopenharmony_ci
3923e41f4b71Sopenharmony_ci
3924e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_MOUTH_CENTER
3925e41f4b71Sopenharmony_ci
3926e41f4b71Sopenharmony_ci```
3927e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_MOUTH_CENTER = "HwMnoteFaceMouthCenter"
3928e41f4b71Sopenharmony_ci```
3929e41f4b71Sopenharmony_ci
3930e41f4b71Sopenharmony_ci**Description**
3931e41f4b71Sopenharmony_ci
3932e41f4b71Sopenharmony_ciMouth centered.
3933e41f4b71Sopenharmony_ci
3934e41f4b71Sopenharmony_ci**Since**: 12
3935e41f4b71Sopenharmony_ci
3936e41f4b71Sopenharmony_ci
3937e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_POINTER
3938e41f4b71Sopenharmony_ci
3939e41f4b71Sopenharmony_ci```
3940e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_POINTER = "HwMnoteFacePointer"
3941e41f4b71Sopenharmony_ci```
3942e41f4b71Sopenharmony_ci
3943e41f4b71Sopenharmony_ci**Description**
3944e41f4b71Sopenharmony_ci
3945e41f4b71Sopenharmony_ciFace pointer.
3946e41f4b71Sopenharmony_ci
3947e41f4b71Sopenharmony_ci**Since**: 12
3948e41f4b71Sopenharmony_ci
3949e41f4b71Sopenharmony_ci
3950e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_RECT
3951e41f4b71Sopenharmony_ci
3952e41f4b71Sopenharmony_ci```
3953e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_RECT = "HwMnoteFaceRect"
3954e41f4b71Sopenharmony_ci```
3955e41f4b71Sopenharmony_ci
3956e41f4b71Sopenharmony_ci**Description**
3957e41f4b71Sopenharmony_ci
3958e41f4b71Sopenharmony_ciFace rectangle.
3959e41f4b71Sopenharmony_ci
3960e41f4b71Sopenharmony_ci**Since**: 12
3961e41f4b71Sopenharmony_ci
3962e41f4b71Sopenharmony_ci
3963e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_REYE_CENTER
3964e41f4b71Sopenharmony_ci
3965e41f4b71Sopenharmony_ci```
3966e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_REYE_CENTER = "HwMnoteFaceReyeCenter"
3967e41f4b71Sopenharmony_ci```
3968e41f4b71Sopenharmony_ci
3969e41f4b71Sopenharmony_ci**Description**
3970e41f4b71Sopenharmony_ci
3971e41f4b71Sopenharmony_ciRight eye centered.
3972e41f4b71Sopenharmony_ci
3973e41f4b71Sopenharmony_ci**Since**: 12
3974e41f4b71Sopenharmony_ci
3975e41f4b71Sopenharmony_ci
3976e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_SMILE_SCORE
3977e41f4b71Sopenharmony_ci
3978e41f4b71Sopenharmony_ci```
3979e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_SMILE_SCORE = "HwMnoteFaceSmileScore"
3980e41f4b71Sopenharmony_ci```
3981e41f4b71Sopenharmony_ci
3982e41f4b71Sopenharmony_ci**Description**
3983e41f4b71Sopenharmony_ci
3984e41f4b71Sopenharmony_ciSmile score of for faces.
3985e41f4b71Sopenharmony_ci
3986e41f4b71Sopenharmony_ci**Since**: 12
3987e41f4b71Sopenharmony_ci
3988e41f4b71Sopenharmony_ci
3989e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FACE_VERSION
3990e41f4b71Sopenharmony_ci
3991e41f4b71Sopenharmony_ci```
3992e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FACE_VERSION = "HwMnoteFaceVersion"
3993e41f4b71Sopenharmony_ci```
3994e41f4b71Sopenharmony_ci
3995e41f4b71Sopenharmony_ci**Description**
3996e41f4b71Sopenharmony_ci
3997e41f4b71Sopenharmony_ciFacial recognition algorithm version.
3998e41f4b71Sopenharmony_ci
3999e41f4b71Sopenharmony_ci**Since**: 12
4000e41f4b71Sopenharmony_ci
4001e41f4b71Sopenharmony_ci
4002e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FILE_SOURCE
4003e41f4b71Sopenharmony_ci
4004e41f4b71Sopenharmony_ci```
4005e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FILE_SOURCE = "FileSource"
4006e41f4b71Sopenharmony_ci```
4007e41f4b71Sopenharmony_ci
4008e41f4b71Sopenharmony_ci**Description**
4009e41f4b71Sopenharmony_ci
4010e41f4b71Sopenharmony_ciImage source.
4011e41f4b71Sopenharmony_ci
4012e41f4b71Sopenharmony_ci**Since**: 12
4013e41f4b71Sopenharmony_ci
4014e41f4b71Sopenharmony_ci
4015e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FLASH_ENERGY
4016e41f4b71Sopenharmony_ci
4017e41f4b71Sopenharmony_ci```
4018e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FLASH_ENERGY = "FlashEnergy"
4019e41f4b71Sopenharmony_ci```
4020e41f4b71Sopenharmony_ci
4021e41f4b71Sopenharmony_ci**Description**
4022e41f4b71Sopenharmony_ci
4023e41f4b71Sopenharmony_ciStrobe energy at the time the image was captured, in Beam Candle Power Seconds (BCPS).
4024e41f4b71Sopenharmony_ci
4025e41f4b71Sopenharmony_ci**Since**: 12
4026e41f4b71Sopenharmony_ci
4027e41f4b71Sopenharmony_ci
4028e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FLASHPIX_VERSION
4029e41f4b71Sopenharmony_ci
4030e41f4b71Sopenharmony_ci```
4031e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FLASHPIX_VERSION = "FlashpixVersion"
4032e41f4b71Sopenharmony_ci```
4033e41f4b71Sopenharmony_ci
4034e41f4b71Sopenharmony_ci**Description**
4035e41f4b71Sopenharmony_ci
4036e41f4b71Sopenharmony_ciFlashPix format version supported by an FPXR file. It is used to enhance device compatibility.
4037e41f4b71Sopenharmony_ci
4038e41f4b71Sopenharmony_ci**Since**: 12
4039e41f4b71Sopenharmony_ci
4040e41f4b71Sopenharmony_ci
4041e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FOCAL_PLANE_RESOLUTION_UNIT
4042e41f4b71Sopenharmony_ci
4043e41f4b71Sopenharmony_ci```
4044e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FOCAL_PLANE_RESOLUTION_UNIT = "FocalPlaneResolutionUnit"
4045e41f4b71Sopenharmony_ci```
4046e41f4b71Sopenharmony_ci
4047e41f4b71Sopenharmony_ci**Description**
4048e41f4b71Sopenharmony_ci
4049e41f4b71Sopenharmony_ciUnit for measuring FocalPlaneXResolution and FocalPlaneYResolution.
4050e41f4b71Sopenharmony_ci
4051e41f4b71Sopenharmony_ci**Since**: 12
4052e41f4b71Sopenharmony_ci
4053e41f4b71Sopenharmony_ci
4054e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FOCAL_PLANE_X_RESOLUTION
4055e41f4b71Sopenharmony_ci
4056e41f4b71Sopenharmony_ci```
4057e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FOCAL_PLANE_X_RESOLUTION = "FocalPlaneXResolution"
4058e41f4b71Sopenharmony_ci```
4059e41f4b71Sopenharmony_ci
4060e41f4b71Sopenharmony_ci**Description**
4061e41f4b71Sopenharmony_ci
4062e41f4b71Sopenharmony_ciNumber of pixels in the image width (X) direction per FocalPlaneResolutionUnit.
4063e41f4b71Sopenharmony_ci
4064e41f4b71Sopenharmony_ci**Since**: 12
4065e41f4b71Sopenharmony_ci
4066e41f4b71Sopenharmony_ci
4067e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FOCAL_PLANE_Y_RESOLUTION
4068e41f4b71Sopenharmony_ci
4069e41f4b71Sopenharmony_ci```
4070e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FOCAL_PLANE_Y_RESOLUTION = "FocalPlaneYResolution"
4071e41f4b71Sopenharmony_ci```
4072e41f4b71Sopenharmony_ci
4073e41f4b71Sopenharmony_ci**Description**
4074e41f4b71Sopenharmony_ci
4075e41f4b71Sopenharmony_ciNumber of pixels in the image height (Y) direction per FocalPlaneResolutionUnit.
4076e41f4b71Sopenharmony_ci
4077e41f4b71Sopenharmony_ci**Since**: 12
4078e41f4b71Sopenharmony_ci
4079e41f4b71Sopenharmony_ci
4080e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_FRONT_CAMERA
4081e41f4b71Sopenharmony_ci
4082e41f4b71Sopenharmony_ci```
4083e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_FRONT_CAMERA = "HwMnoteFrontCamera"
4084e41f4b71Sopenharmony_ci```
4085e41f4b71Sopenharmony_ci
4086e41f4b71Sopenharmony_ci**Description**
4087e41f4b71Sopenharmony_ci
4088e41f4b71Sopenharmony_ciWhether the front camera is used to take a selfie.
4089e41f4b71Sopenharmony_ci
4090e41f4b71Sopenharmony_ci**Since**: 12
4091e41f4b71Sopenharmony_ci
4092e41f4b71Sopenharmony_ci
4093e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GAIN_CONTROL
4094e41f4b71Sopenharmony_ci
4095e41f4b71Sopenharmony_ci```
4096e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GAIN_CONTROL = "GainControl"
4097e41f4b71Sopenharmony_ci```
4098e41f4b71Sopenharmony_ci
4099e41f4b71Sopenharmony_ci**Description**
4100e41f4b71Sopenharmony_ci
4101e41f4b71Sopenharmony_ciDegree of overall image gain adjustment.
4102e41f4b71Sopenharmony_ci
4103e41f4b71Sopenharmony_ci**Since**: 12
4104e41f4b71Sopenharmony_ci
4105e41f4b71Sopenharmony_ci
4106e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GAMMA
4107e41f4b71Sopenharmony_ci
4108e41f4b71Sopenharmony_ci```
4109e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GAMMA = "Gamma"
4110e41f4b71Sopenharmony_ci```
4111e41f4b71Sopenharmony_ci
4112e41f4b71Sopenharmony_ci**Description**
4113e41f4b71Sopenharmony_ci
4114e41f4b71Sopenharmony_ciGamma value.
4115e41f4b71Sopenharmony_ci
4116e41f4b71Sopenharmony_ci**Since**: 12
4117e41f4b71Sopenharmony_ci
4118e41f4b71Sopenharmony_ci
4119e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GIF_LOOP_COUNT
4120e41f4b71Sopenharmony_ci
4121e41f4b71Sopenharmony_ci```
4122e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GIF_LOOP_COUNT = "GIFLoopCount"
4123e41f4b71Sopenharmony_ci```
4124e41f4b71Sopenharmony_ci
4125e41f4b71Sopenharmony_ci**Description**
4126e41f4b71Sopenharmony_ci
4127e41f4b71Sopenharmony_ciNumber of GIF loops.
4128e41f4b71Sopenharmony_ci
4129e41f4b71Sopenharmony_ci**Since**: 12
4130e41f4b71Sopenharmony_ci
4131e41f4b71Sopenharmony_ci
4132e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_ALTITUDE
4133e41f4b71Sopenharmony_ci
4134e41f4b71Sopenharmony_ci```
4135e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_ALTITUDE = "GPSAltitude"
4136e41f4b71Sopenharmony_ci```
4137e41f4b71Sopenharmony_ci
4138e41f4b71Sopenharmony_ci**Description**
4139e41f4b71Sopenharmony_ci
4140e41f4b71Sopenharmony_ciAltitude based on the reference in GPSAltitudeRef.
4141e41f4b71Sopenharmony_ci
4142e41f4b71Sopenharmony_ci**Since**: 12
4143e41f4b71Sopenharmony_ci
4144e41f4b71Sopenharmony_ci
4145e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_ALTITUDE_REF
4146e41f4b71Sopenharmony_ci
4147e41f4b71Sopenharmony_ci```
4148e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_ALTITUDE_REF = "GPSAltitudeRef"
4149e41f4b71Sopenharmony_ci```
4150e41f4b71Sopenharmony_ci
4151e41f4b71Sopenharmony_ci**Description**
4152e41f4b71Sopenharmony_ci
4153e41f4b71Sopenharmony_ciWhether the latitude is north or south latitude.
4154e41f4b71Sopenharmony_ci
4155e41f4b71Sopenharmony_ci**Since**: 12
4156e41f4b71Sopenharmony_ci
4157e41f4b71Sopenharmony_ci
4158e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_AREA_INFORMATION
4159e41f4b71Sopenharmony_ci
4160e41f4b71Sopenharmony_ci```
4161e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_AREA_INFORMATION = "GPSAreaInformation"
4162e41f4b71Sopenharmony_ci```
4163e41f4b71Sopenharmony_ci
4164e41f4b71Sopenharmony_ci**Description**
4165e41f4b71Sopenharmony_ci
4166e41f4b71Sopenharmony_ciString that records the name of the GPS area.
4167e41f4b71Sopenharmony_ci
4168e41f4b71Sopenharmony_ci**Since**: 12
4169e41f4b71Sopenharmony_ci
4170e41f4b71Sopenharmony_ci
4171e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING
4172e41f4b71Sopenharmony_ci
4173e41f4b71Sopenharmony_ci```
4174e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING = "GPSDestBearing"
4175e41f4b71Sopenharmony_ci```
4176e41f4b71Sopenharmony_ci
4177e41f4b71Sopenharmony_ci**Description**
4178e41f4b71Sopenharmony_ci
4179e41f4b71Sopenharmony_ciBearing to the destination point.
4180e41f4b71Sopenharmony_ci
4181e41f4b71Sopenharmony_ci**Since**: 12
4182e41f4b71Sopenharmony_ci
4183e41f4b71Sopenharmony_ci
4184e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING_REF
4185e41f4b71Sopenharmony_ci
4186e41f4b71Sopenharmony_ci```
4187e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING_REF = "GPSDestBearingRef"
4188e41f4b71Sopenharmony_ci```
4189e41f4b71Sopenharmony_ci
4190e41f4b71Sopenharmony_ci**Description**
4191e41f4b71Sopenharmony_ci
4192e41f4b71Sopenharmony_ciReference of the bearing to the destination point.
4193e41f4b71Sopenharmony_ci
4194e41f4b71Sopenharmony_ci**Since**: 12
4195e41f4b71Sopenharmony_ci
4196e41f4b71Sopenharmony_ci
4197e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE
4198e41f4b71Sopenharmony_ci
4199e41f4b71Sopenharmony_ci```
4200e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE = "GPSDestDistance"
4201e41f4b71Sopenharmony_ci```
4202e41f4b71Sopenharmony_ci
4203e41f4b71Sopenharmony_ci**Description**
4204e41f4b71Sopenharmony_ci
4205e41f4b71Sopenharmony_ciDistance to the destination point.
4206e41f4b71Sopenharmony_ci
4207e41f4b71Sopenharmony_ci**Since**: 12
4208e41f4b71Sopenharmony_ci
4209e41f4b71Sopenharmony_ci
4210e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE_REF
4211e41f4b71Sopenharmony_ci
4212e41f4b71Sopenharmony_ci```
4213e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE_REF = "GPSDestDistanceRef"
4214e41f4b71Sopenharmony_ci```
4215e41f4b71Sopenharmony_ci
4216e41f4b71Sopenharmony_ci**Description**
4217e41f4b71Sopenharmony_ci
4218e41f4b71Sopenharmony_ciUnit used to express the distance to the destination point.
4219e41f4b71Sopenharmony_ci
4220e41f4b71Sopenharmony_ci**Since**: 12
4221e41f4b71Sopenharmony_ci
4222e41f4b71Sopenharmony_ci
4223e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE
4224e41f4b71Sopenharmony_ci
4225e41f4b71Sopenharmony_ci```
4226e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE = "GPSDestLatitude"
4227e41f4b71Sopenharmony_ci```
4228e41f4b71Sopenharmony_ci
4229e41f4b71Sopenharmony_ci**Description**
4230e41f4b71Sopenharmony_ci
4231e41f4b71Sopenharmony_ciLatitude of the destination point.
4232e41f4b71Sopenharmony_ci
4233e41f4b71Sopenharmony_ci**Since**: 12
4234e41f4b71Sopenharmony_ci
4235e41f4b71Sopenharmony_ci
4236e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE_REF
4237e41f4b71Sopenharmony_ci
4238e41f4b71Sopenharmony_ci```
4239e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE_REF = "GPSDestLatitudeRef"
4240e41f4b71Sopenharmony_ci```
4241e41f4b71Sopenharmony_ci
4242e41f4b71Sopenharmony_ci**Description**
4243e41f4b71Sopenharmony_ci
4244e41f4b71Sopenharmony_ciWhether the latitude of the destination point is north or south latitude.
4245e41f4b71Sopenharmony_ci
4246e41f4b71Sopenharmony_ci**Since**: 12
4247e41f4b71Sopenharmony_ci
4248e41f4b71Sopenharmony_ci
4249e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE
4250e41f4b71Sopenharmony_ci
4251e41f4b71Sopenharmony_ci```
4252e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE = "GPSDestLongitude"
4253e41f4b71Sopenharmony_ci```
4254e41f4b71Sopenharmony_ci
4255e41f4b71Sopenharmony_ci**Description**
4256e41f4b71Sopenharmony_ci
4257e41f4b71Sopenharmony_ciLongitude of the destination point.
4258e41f4b71Sopenharmony_ci
4259e41f4b71Sopenharmony_ci**Since**: 12
4260e41f4b71Sopenharmony_ci
4261e41f4b71Sopenharmony_ci
4262e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE_REF
4263e41f4b71Sopenharmony_ci
4264e41f4b71Sopenharmony_ci```
4265e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE_REF = "GPSDestLongitudeRef"
4266e41f4b71Sopenharmony_ci```
4267e41f4b71Sopenharmony_ci
4268e41f4b71Sopenharmony_ci**Description**
4269e41f4b71Sopenharmony_ci
4270e41f4b71Sopenharmony_ciWhether the longitude of the destination point is east or west longitude.
4271e41f4b71Sopenharmony_ci
4272e41f4b71Sopenharmony_ci**Since**: 12
4273e41f4b71Sopenharmony_ci
4274e41f4b71Sopenharmony_ci
4275e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DIFFERENTIAL
4276e41f4b71Sopenharmony_ci
4277e41f4b71Sopenharmony_ci```
4278e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DIFFERENTIAL = "GPSDifferential"
4279e41f4b71Sopenharmony_ci```
4280e41f4b71Sopenharmony_ci
4281e41f4b71Sopenharmony_ci**Description**
4282e41f4b71Sopenharmony_ci
4283e41f4b71Sopenharmony_ciWhether differential correction is applied to the GPS receiver. It is critical to accurate location accuracy.
4284e41f4b71Sopenharmony_ci
4285e41f4b71Sopenharmony_ci**Since**: 12
4286e41f4b71Sopenharmony_ci
4287e41f4b71Sopenharmony_ci
4288e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_DOP
4289e41f4b71Sopenharmony_ci
4290e41f4b71Sopenharmony_ci```
4291e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_DOP = "GPSDOP"
4292e41f4b71Sopenharmony_ci```
4293e41f4b71Sopenharmony_ci
4294e41f4b71Sopenharmony_ci**Description**
4295e41f4b71Sopenharmony_ci
4296e41f4b71Sopenharmony_ciGPS DOP (data degree of precision)
4297e41f4b71Sopenharmony_ci
4298e41f4b71Sopenharmony_ci**Since**: 12
4299e41f4b71Sopenharmony_ci
4300e41f4b71Sopenharmony_ci
4301e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_H_POSITIONING_ERROR
4302e41f4b71Sopenharmony_ci
4303e41f4b71Sopenharmony_ci```
4304e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_H_POSITIONING_ERROR = "GPSHPositioningError"
4305e41f4b71Sopenharmony_ci```
4306e41f4b71Sopenharmony_ci
4307e41f4b71Sopenharmony_ci**Description**
4308e41f4b71Sopenharmony_ci
4309e41f4b71Sopenharmony_ciHorizontal positioning error, in meters.
4310e41f4b71Sopenharmony_ci
4311e41f4b71Sopenharmony_ci**Since**: 12
4312e41f4b71Sopenharmony_ci
4313e41f4b71Sopenharmony_ci
4314e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION
4315e41f4b71Sopenharmony_ci
4316e41f4b71Sopenharmony_ci```
4317e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION = "GPSImgDirection"
4318e41f4b71Sopenharmony_ci```
4319e41f4b71Sopenharmony_ci
4320e41f4b71Sopenharmony_ci**Description**
4321e41f4b71Sopenharmony_ci
4322e41f4b71Sopenharmony_ciDirection of the image when it was captured.
4323e41f4b71Sopenharmony_ci
4324e41f4b71Sopenharmony_ci**Since**: 12
4325e41f4b71Sopenharmony_ci
4326e41f4b71Sopenharmony_ci
4327e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION_REF
4328e41f4b71Sopenharmony_ci
4329e41f4b71Sopenharmony_ci```
4330e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION_REF = "GPSImgDirectionRef"
4331e41f4b71Sopenharmony_ci```
4332e41f4b71Sopenharmony_ci
4333e41f4b71Sopenharmony_ci**Description**
4334e41f4b71Sopenharmony_ci
4335e41f4b71Sopenharmony_ciReference of the direction of the image when it was captured.
4336e41f4b71Sopenharmony_ci
4337e41f4b71Sopenharmony_ci**Since**: 12
4338e41f4b71Sopenharmony_ci
4339e41f4b71Sopenharmony_ci
4340e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_LATITUDE
4341e41f4b71Sopenharmony_ci
4342e41f4b71Sopenharmony_ci```
4343e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_LATITUDE = "GPSLatitude"
4344e41f4b71Sopenharmony_ci```
4345e41f4b71Sopenharmony_ci
4346e41f4b71Sopenharmony_ci**Description**
4347e41f4b71Sopenharmony_ci
4348e41f4b71Sopenharmony_ciImage latitude.
4349e41f4b71Sopenharmony_ci
4350e41f4b71Sopenharmony_ci**Since**: 12
4351e41f4b71Sopenharmony_ci
4352e41f4b71Sopenharmony_ci
4353e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_LATITUDE_REF
4354e41f4b71Sopenharmony_ci
4355e41f4b71Sopenharmony_ci```
4356e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_LATITUDE_REF = "GPSLatitudeRef"
4357e41f4b71Sopenharmony_ci```
4358e41f4b71Sopenharmony_ci
4359e41f4b71Sopenharmony_ci**Description**
4360e41f4b71Sopenharmony_ci
4361e41f4b71Sopenharmony_ciWhether the latitude is north or south latitude.
4362e41f4b71Sopenharmony_ci
4363e41f4b71Sopenharmony_ci**Since**: 12
4364e41f4b71Sopenharmony_ci
4365e41f4b71Sopenharmony_ci
4366e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_LONGITUDE
4367e41f4b71Sopenharmony_ci
4368e41f4b71Sopenharmony_ci```
4369e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_LONGITUDE = "GPSLongitude"
4370e41f4b71Sopenharmony_ci```
4371e41f4b71Sopenharmony_ci
4372e41f4b71Sopenharmony_ci**Description**
4373e41f4b71Sopenharmony_ci
4374e41f4b71Sopenharmony_ciImage longitude.
4375e41f4b71Sopenharmony_ci
4376e41f4b71Sopenharmony_ci**Since**: 12
4377e41f4b71Sopenharmony_ci
4378e41f4b71Sopenharmony_ci
4379e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_LONGITUDE_REF
4380e41f4b71Sopenharmony_ci
4381e41f4b71Sopenharmony_ci```
4382e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_LONGITUDE_REF = "GPSLongitudeRef"
4383e41f4b71Sopenharmony_ci```
4384e41f4b71Sopenharmony_ci
4385e41f4b71Sopenharmony_ci**Description**
4386e41f4b71Sopenharmony_ci
4387e41f4b71Sopenharmony_ciWhether the longitude is east or west longitude.
4388e41f4b71Sopenharmony_ci
4389e41f4b71Sopenharmony_ci**Since**: 12
4390e41f4b71Sopenharmony_ci
4391e41f4b71Sopenharmony_ci
4392e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_MAP_DATUM
4393e41f4b71Sopenharmony_ci
4394e41f4b71Sopenharmony_ci```
4395e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_MAP_DATUM = "GPSMapDatum"
4396e41f4b71Sopenharmony_ci```
4397e41f4b71Sopenharmony_ci
4398e41f4b71Sopenharmony_ci**Description**
4399e41f4b71Sopenharmony_ci
4400e41f4b71Sopenharmony_ciGeodetic survey data used by the GPS receiver.
4401e41f4b71Sopenharmony_ci
4402e41f4b71Sopenharmony_ci**Since**: 12
4403e41f4b71Sopenharmony_ci
4404e41f4b71Sopenharmony_ci
4405e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_MEASURE_MODE
4406e41f4b71Sopenharmony_ci
4407e41f4b71Sopenharmony_ci```
4408e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_MEASURE_MODE = "GPSMeasureMode"
4409e41f4b71Sopenharmony_ci```
4410e41f4b71Sopenharmony_ci
4411e41f4b71Sopenharmony_ci**Description**
4412e41f4b71Sopenharmony_ci
4413e41f4b71Sopenharmony_ciGPS measurement pmode.
4414e41f4b71Sopenharmony_ci
4415e41f4b71Sopenharmony_ci**Since**: 12
4416e41f4b71Sopenharmony_ci
4417e41f4b71Sopenharmony_ci
4418e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_PROCESSING_METHOD
4419e41f4b71Sopenharmony_ci
4420e41f4b71Sopenharmony_ci```
4421e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_PROCESSING_METHOD = "GPSProcessingMethod"
4422e41f4b71Sopenharmony_ci```
4423e41f4b71Sopenharmony_ci
4424e41f4b71Sopenharmony_ci**Description**
4425e41f4b71Sopenharmony_ci
4426e41f4b71Sopenharmony_ciString that records the name of the method used for positioning.
4427e41f4b71Sopenharmony_ci
4428e41f4b71Sopenharmony_ci**Since**: 12
4429e41f4b71Sopenharmony_ci
4430e41f4b71Sopenharmony_ci
4431e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_SATELLITES
4432e41f4b71Sopenharmony_ci
4433e41f4b71Sopenharmony_ci```
4434e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_SATELLITES = "GPSSatellites"
4435e41f4b71Sopenharmony_ci```
4436e41f4b71Sopenharmony_ci
4437e41f4b71Sopenharmony_ci**Description**
4438e41f4b71Sopenharmony_ci
4439e41f4b71Sopenharmony_ciGPS satellites used for measurement.
4440e41f4b71Sopenharmony_ci
4441e41f4b71Sopenharmony_ci**Since**: 12
4442e41f4b71Sopenharmony_ci
4443e41f4b71Sopenharmony_ci
4444e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_SPEED
4445e41f4b71Sopenharmony_ci
4446e41f4b71Sopenharmony_ci```
4447e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_SPEED = "GPSSpeed"
4448e41f4b71Sopenharmony_ci```
4449e41f4b71Sopenharmony_ci
4450e41f4b71Sopenharmony_ci**Description**
4451e41f4b71Sopenharmony_ci
4452e41f4b71Sopenharmony_ciMovement speed of the GPS receiver.
4453e41f4b71Sopenharmony_ci
4454e41f4b71Sopenharmony_ci**Since**: 12
4455e41f4b71Sopenharmony_ci
4456e41f4b71Sopenharmony_ci
4457e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_SPEED_REF
4458e41f4b71Sopenharmony_ci
4459e41f4b71Sopenharmony_ci```
4460e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_SPEED_REF = "GPSSpeedRef"
4461e41f4b71Sopenharmony_ci```
4462e41f4b71Sopenharmony_ci
4463e41f4b71Sopenharmony_ci**Description**
4464e41f4b71Sopenharmony_ci
4465e41f4b71Sopenharmony_ciUnit used to express the movement speed of the GPS receiver.
4466e41f4b71Sopenharmony_ci
4467e41f4b71Sopenharmony_ci**Since**: 12
4468e41f4b71Sopenharmony_ci
4469e41f4b71Sopenharmony_ci
4470e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_STATUS
4471e41f4b71Sopenharmony_ci
4472e41f4b71Sopenharmony_ci```
4473e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_STATUS = "GPSStatus"
4474e41f4b71Sopenharmony_ci```
4475e41f4b71Sopenharmony_ci
4476e41f4b71Sopenharmony_ci**Description**
4477e41f4b71Sopenharmony_ci
4478e41f4b71Sopenharmony_ciStatus of the GPS receiver when the image was recorded.
4479e41f4b71Sopenharmony_ci
4480e41f4b71Sopenharmony_ci**Since**: 12
4481e41f4b71Sopenharmony_ci
4482e41f4b71Sopenharmony_ci
4483e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_TRACK
4484e41f4b71Sopenharmony_ci
4485e41f4b71Sopenharmony_ci```
4486e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_TRACK = "GPSTrack"
4487e41f4b71Sopenharmony_ci```
4488e41f4b71Sopenharmony_ci
4489e41f4b71Sopenharmony_ci**Description**
4490e41f4b71Sopenharmony_ci
4491e41f4b71Sopenharmony_ciMovement direction of the GPS receiver.
4492e41f4b71Sopenharmony_ci
4493e41f4b71Sopenharmony_ci**Since**: 12
4494e41f4b71Sopenharmony_ci
4495e41f4b71Sopenharmony_ci
4496e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_TRACK_REF
4497e41f4b71Sopenharmony_ci
4498e41f4b71Sopenharmony_ci```
4499e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_TRACK_REF = "GPSTrackRef"
4500e41f4b71Sopenharmony_ci```
4501e41f4b71Sopenharmony_ci
4502e41f4b71Sopenharmony_ci**Description**
4503e41f4b71Sopenharmony_ci
4504e41f4b71Sopenharmony_ciReference of the movement direction of the GPS receiver.
4505e41f4b71Sopenharmony_ci
4506e41f4b71Sopenharmony_ci**Since**: 12
4507e41f4b71Sopenharmony_ci
4508e41f4b71Sopenharmony_ci
4509e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_GPS_VERSION_ID
4510e41f4b71Sopenharmony_ci
4511e41f4b71Sopenharmony_ci```
4512e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_GPS_VERSION_ID = "GPSVersionID"
4513e41f4b71Sopenharmony_ci```
4514e41f4b71Sopenharmony_ci
4515e41f4b71Sopenharmony_ci**Description**
4516e41f4b71Sopenharmony_ci
4517e41f4b71Sopenharmony_ciVersion of GPSInfoIFD.
4518e41f4b71Sopenharmony_ci
4519e41f4b71Sopenharmony_ci**Since**: 12
4520e41f4b71Sopenharmony_ci
4521e41f4b71Sopenharmony_ci
4522e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_IMAGE_LENGTH
4523e41f4b71Sopenharmony_ci
4524e41f4b71Sopenharmony_ci```
4525e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_IMAGE_LENGTH = "ImageLength"
4526e41f4b71Sopenharmony_ci```
4527e41f4b71Sopenharmony_ci
4528e41f4b71Sopenharmony_ci**Description**
4529e41f4b71Sopenharmony_ci
4530e41f4b71Sopenharmony_ciImage length.
4531e41f4b71Sopenharmony_ci
4532e41f4b71Sopenharmony_ci**Since**: 12
4533e41f4b71Sopenharmony_ci
4534e41f4b71Sopenharmony_ci
4535e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_IMAGE_UNIQUE_ID
4536e41f4b71Sopenharmony_ci
4537e41f4b71Sopenharmony_ci```
4538e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_IMAGE_UNIQUE_ID = "ImageUniqueID"
4539e41f4b71Sopenharmony_ci```
4540e41f4b71Sopenharmony_ci
4541e41f4b71Sopenharmony_ci**Description**
4542e41f4b71Sopenharmony_ci
4543e41f4b71Sopenharmony_ciUnique identifier assigned to each image.
4544e41f4b71Sopenharmony_ci
4545e41f4b71Sopenharmony_ci**Since**: 12
4546e41f4b71Sopenharmony_ci
4547e41f4b71Sopenharmony_ci
4548e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_IMAGE_WIDTH
4549e41f4b71Sopenharmony_ci
4550e41f4b71Sopenharmony_ci```
4551e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_IMAGE_WIDTH = "ImageWidth"
4552e41f4b71Sopenharmony_ci```
4553e41f4b71Sopenharmony_ci
4554e41f4b71Sopenharmony_ci**Description**
4555e41f4b71Sopenharmony_ci
4556e41f4b71Sopenharmony_ciImage width.
4557e41f4b71Sopenharmony_ci
4558e41f4b71Sopenharmony_ci**Since**: 12
4559e41f4b71Sopenharmony_ci
4560e41f4b71Sopenharmony_ci
4561e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEYYY
4562e41f4b71Sopenharmony_ci
4563e41f4b71Sopenharmony_ci```
4564e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEYYY = "ISOSpeedLatitudeyyy"
4565e41f4b71Sopenharmony_ci```
4566e41f4b71Sopenharmony_ci
4567e41f4b71Sopenharmony_ci**Description**
4568e41f4b71Sopenharmony_ci
4569e41f4b71Sopenharmony_ciISO speed latitude yyy value of the camera or input device, which is defined in ISO 12232.
4570e41f4b71Sopenharmony_ci
4571e41f4b71Sopenharmony_ci**Since**: 12
4572e41f4b71Sopenharmony_ci
4573e41f4b71Sopenharmony_ci
4574e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEZZZ
4575e41f4b71Sopenharmony_ci
4576e41f4b71Sopenharmony_ci```
4577e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEZZZ = "ISOSpeedLatitudezzz"
4578e41f4b71Sopenharmony_ci```
4579e41f4b71Sopenharmony_ci
4580e41f4b71Sopenharmony_ci**Description**
4581e41f4b71Sopenharmony_ci
4582e41f4b71Sopenharmony_ciISO speed latitude zzz value of the camera or input device, which is defined in ISO 12232.
4583e41f4b71Sopenharmony_ci
4584e41f4b71Sopenharmony_ci**Since**: 12
4585e41f4b71Sopenharmony_ci
4586e41f4b71Sopenharmony_ci
4587e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_ISO_SPEED_RATINGS
4588e41f4b71Sopenharmony_ci
4589e41f4b71Sopenharmony_ci```
4590e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_ISO_SPEED_RATINGS = "ISOSpeedRatings"
4591e41f4b71Sopenharmony_ci```
4592e41f4b71Sopenharmony_ci
4593e41f4b71Sopenharmony_ci**Description**
4594e41f4b71Sopenharmony_ci
4595e41f4b71Sopenharmony_ciISO sensitivity or ISO speed, for example, 400.
4596e41f4b71Sopenharmony_ci
4597e41f4b71Sopenharmony_ci**Since**: 12
4598e41f4b71Sopenharmony_ci
4599e41f4b71Sopenharmony_ci
4600e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT
4601e41f4b71Sopenharmony_ci
4602e41f4b71Sopenharmony_ci```
4603e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT = "JPEGInterchangeFormat"
4604e41f4b71Sopenharmony_ci```
4605e41f4b71Sopenharmony_ci
4606e41f4b71Sopenharmony_ci**Description**
4607e41f4b71Sopenharmony_ci
4608e41f4b71Sopenharmony_ciOffset of the SOI marker of a JPEG interchange format bitstream.
4609e41f4b71Sopenharmony_ci
4610e41f4b71Sopenharmony_ci**Since**: 12
4611e41f4b71Sopenharmony_ci
4612e41f4b71Sopenharmony_ci
4613e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT_LENGTH
4614e41f4b71Sopenharmony_ci
4615e41f4b71Sopenharmony_ci```
4616e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT_LENGTH = "JPEGInterchangeFormatLength"
4617e41f4b71Sopenharmony_ci```
4618e41f4b71Sopenharmony_ci
4619e41f4b71Sopenharmony_ci**Description**
4620e41f4b71Sopenharmony_ci
4621e41f4b71Sopenharmony_ciNumber of bytes of the JPEG stream.
4622e41f4b71Sopenharmony_ci
4623e41f4b71Sopenharmony_ci**Since**: 12
4624e41f4b71Sopenharmony_ci
4625e41f4b71Sopenharmony_ci
4626e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_LENS_MAKE
4627e41f4b71Sopenharmony_ci
4628e41f4b71Sopenharmony_ci```
4629e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_LENS_MAKE = "LensMake"
4630e41f4b71Sopenharmony_ci```
4631e41f4b71Sopenharmony_ci
4632e41f4b71Sopenharmony_ci**Description**
4633e41f4b71Sopenharmony_ci
4634e41f4b71Sopenharmony_ciManufacturer of the lens.
4635e41f4b71Sopenharmony_ci
4636e41f4b71Sopenharmony_ci**Since**: 12
4637e41f4b71Sopenharmony_ci
4638e41f4b71Sopenharmony_ci
4639e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_LENS_MODEL
4640e41f4b71Sopenharmony_ci
4641e41f4b71Sopenharmony_ci```
4642e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_LENS_MODEL = "LensModel"
4643e41f4b71Sopenharmony_ci```
4644e41f4b71Sopenharmony_ci
4645e41f4b71Sopenharmony_ci**Description**
4646e41f4b71Sopenharmony_ci
4647e41f4b71Sopenharmony_ciModel of the lens.
4648e41f4b71Sopenharmony_ci
4649e41f4b71Sopenharmony_ci**Since**: 12
4650e41f4b71Sopenharmony_ci
4651e41f4b71Sopenharmony_ci
4652e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_LENS_SERIAL_NUMBER
4653e41f4b71Sopenharmony_ci
4654e41f4b71Sopenharmony_ci```
4655e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_LENS_SERIAL_NUMBER = "LensSerialNumber"
4656e41f4b71Sopenharmony_ci```
4657e41f4b71Sopenharmony_ci
4658e41f4b71Sopenharmony_ci**Description**
4659e41f4b71Sopenharmony_ci
4660e41f4b71Sopenharmony_ciSerial number of the lens.
4661e41f4b71Sopenharmony_ci
4662e41f4b71Sopenharmony_ci**Since**: 12
4663e41f4b71Sopenharmony_ci
4664e41f4b71Sopenharmony_ci
4665e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_LENS_SPECIFICATION
4666e41f4b71Sopenharmony_ci
4667e41f4b71Sopenharmony_ci```
4668e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_LENS_SPECIFICATION = "LensSpecification"
4669e41f4b71Sopenharmony_ci```
4670e41f4b71Sopenharmony_ci
4671e41f4b71Sopenharmony_ci**Description**
4672e41f4b71Sopenharmony_ci
4673e41f4b71Sopenharmony_ciSpecifications of the lens.
4674e41f4b71Sopenharmony_ci
4675e41f4b71Sopenharmony_ci**Since**: 12
4676e41f4b71Sopenharmony_ci
4677e41f4b71Sopenharmony_ci
4678e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_MAKER_NOTE
4679e41f4b71Sopenharmony_ci
4680e41f4b71Sopenharmony_ci```
4681e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_MAKER_NOTE = "MakerNote"
4682e41f4b71Sopenharmony_ci```
4683e41f4b71Sopenharmony_ci
4684e41f4b71Sopenharmony_ci**Description**
4685e41f4b71Sopenharmony_ci
4686e41f4b71Sopenharmony_ciMarker used by EXIF/DCF manufacturers to record any required information.
4687e41f4b71Sopenharmony_ci
4688e41f4b71Sopenharmony_ci**Since**: 12
4689e41f4b71Sopenharmony_ci
4690e41f4b71Sopenharmony_ci
4691e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_MAX_APERTURE_VALUE
4692e41f4b71Sopenharmony_ci
4693e41f4b71Sopenharmony_ci```
4694e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_MAX_APERTURE_VALUE = "MaxApertureValue"
4695e41f4b71Sopenharmony_ci```
4696e41f4b71Sopenharmony_ci
4697e41f4b71Sopenharmony_ci**Description**
4698e41f4b71Sopenharmony_ci
4699e41f4b71Sopenharmony_ciSmallest F number of the lens.
4700e41f4b71Sopenharmony_ci
4701e41f4b71Sopenharmony_ci**Since**: 12
4702e41f4b71Sopenharmony_ci
4703e41f4b71Sopenharmony_ci
4704e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_NEW_SUBFILE_TYPE
4705e41f4b71Sopenharmony_ci
4706e41f4b71Sopenharmony_ci```
4707e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_NEW_SUBFILE_TYPE = "NewSubfileType"
4708e41f4b71Sopenharmony_ci```
4709e41f4b71Sopenharmony_ci
4710e41f4b71Sopenharmony_ci**Description**
4711e41f4b71Sopenharmony_ci
4712e41f4b71Sopenharmony_ciData type of a subfile, such as a full-resolution image, a thumbnail, or a part of a multi-frame image. The value is a bit mask. The value 0 indicates a full-resolution image, **1** indicates a thumbnail, and **2** indicates a part of a multi-frame image.
4713e41f4b71Sopenharmony_ci
4714e41f4b71Sopenharmony_ci**Since**: 12
4715e41f4b71Sopenharmony_ci
4716e41f4b71Sopenharmony_ci
4717e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_OECF
4718e41f4b71Sopenharmony_ci
4719e41f4b71Sopenharmony_ci```
4720e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_OECF = "OECF"
4721e41f4b71Sopenharmony_ci```
4722e41f4b71Sopenharmony_ci
4723e41f4b71Sopenharmony_ci**Description**
4724e41f4b71Sopenharmony_ci
4725e41f4b71Sopenharmony_ciOpto-Electric Conversion Function (OECF) specified in ISO 14524.
4726e41f4b71Sopenharmony_ci
4727e41f4b71Sopenharmony_ci**Since**: 12
4728e41f4b71Sopenharmony_ci
4729e41f4b71Sopenharmony_ci
4730e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_OFFSET_TIME
4731e41f4b71Sopenharmony_ci
4732e41f4b71Sopenharmony_ci```
4733e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_OFFSET_TIME = "OffsetTime"
4734e41f4b71Sopenharmony_ci```
4735e41f4b71Sopenharmony_ci
4736e41f4b71Sopenharmony_ci**Description**
4737e41f4b71Sopenharmony_ci
4738e41f4b71Sopenharmony_ciTime with an offset from UTC when the image was captured, in the format of ±HH:MM.
4739e41f4b71Sopenharmony_ci
4740e41f4b71Sopenharmony_ci**Since**: 12
4741e41f4b71Sopenharmony_ci
4742e41f4b71Sopenharmony_ci
4743e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_OFFSET_TIME_DIGITIZED
4744e41f4b71Sopenharmony_ci
4745e41f4b71Sopenharmony_ci```
4746e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_OFFSET_TIME_DIGITIZED = "OffsetTimeDigitized"
4747e41f4b71Sopenharmony_ci```
4748e41f4b71Sopenharmony_ci
4749e41f4b71Sopenharmony_ci**Description**
4750e41f4b71Sopenharmony_ci
4751e41f4b71Sopenharmony_ciTime with an offset from UTC when the image was digitized. It helps to accurately adjust the timestamp.
4752e41f4b71Sopenharmony_ci
4753e41f4b71Sopenharmony_ci**Since**: 12
4754e41f4b71Sopenharmony_ci
4755e41f4b71Sopenharmony_ci
4756e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_OFFSET_TIME_ORIGINAL
4757e41f4b71Sopenharmony_ci
4758e41f4b71Sopenharmony_ci```
4759e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_OFFSET_TIME_ORIGINAL = "OffsetTimeOriginal"
4760e41f4b71Sopenharmony_ci```
4761e41f4b71Sopenharmony_ci
4762e41f4b71Sopenharmony_ci**Description**
4763e41f4b71Sopenharmony_ci
4764e41f4b71Sopenharmony_ciTime with an offset from UTC when the original image was created. It is critical for time-sensitive applications.
4765e41f4b71Sopenharmony_ci
4766e41f4b71Sopenharmony_ci**Since**: 12
4767e41f4b71Sopenharmony_ci
4768e41f4b71Sopenharmony_ci
4769e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_ORIENTATION
4770e41f4b71Sopenharmony_ci
4771e41f4b71Sopenharmony_ci```
4772e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_ORIENTATION = "Orientation"
4773e41f4b71Sopenharmony_ci```
4774e41f4b71Sopenharmony_ci
4775e41f4b71Sopenharmony_ci**Description**
4776e41f4b71Sopenharmony_ci
4777e41f4b71Sopenharmony_ciImage orientation.
4778e41f4b71Sopenharmony_ci
4779e41f4b71Sopenharmony_ci**Since**: 12
4780e41f4b71Sopenharmony_ci
4781e41f4b71Sopenharmony_ci
4782e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_PHOTOGRAPHIC_SENSITIVITY
4783e41f4b71Sopenharmony_ci
4784e41f4b71Sopenharmony_ci```
4785e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_PHOTOGRAPHIC_SENSITIVITY = "PhotographicSensitivity"
4786e41f4b71Sopenharmony_ci```
4787e41f4b71Sopenharmony_ci
4788e41f4b71Sopenharmony_ci**Description**
4789e41f4b71Sopenharmony_ci
4790e41f4b71Sopenharmony_ciSensitivity of the camera or input device when the image was captured.
4791e41f4b71Sopenharmony_ci
4792e41f4b71Sopenharmony_ci**Since**: 12
4793e41f4b71Sopenharmony_ci
4794e41f4b71Sopenharmony_ci
4795e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_PHOTOMETRIC_INTERPRETATION
4796e41f4b71Sopenharmony_ci
4797e41f4b71Sopenharmony_ci```
4798e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_PHOTOMETRIC_INTERPRETATION = "PhotometricInterpretation"
4799e41f4b71Sopenharmony_ci```
4800e41f4b71Sopenharmony_ci
4801e41f4b71Sopenharmony_ci**Description**
4802e41f4b71Sopenharmony_ci
4803e41f4b71Sopenharmony_ciColor space of the image data, for example, RGB or YCbCr.
4804e41f4b71Sopenharmony_ci
4805e41f4b71Sopenharmony_ci**Since**: 12
4806e41f4b71Sopenharmony_ci
4807e41f4b71Sopenharmony_ci
4808e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_PLANAR_CONFIGURATION
4809e41f4b71Sopenharmony_ci
4810e41f4b71Sopenharmony_ci```
4811e41f4b71Sopenharmony_ciconst char* OHOS_IMAGE_PROPERTY_PLANAR_CONFIGURATION = "PlanarConfiguration"
4812e41f4b71Sopenharmony_ci```
4813e41f4b71Sopenharmony_ci
4814e41f4b71Sopenharmony_ci**Description**
4815e41f4b71Sopenharmony_ci
4816e41f4b71Sopenharmony_ciStorage format of components of each pixel, which can be chunky or planar.
4817e41f4b71Sopenharmony_ci
4818e41f4b71Sopenharmony_ci**Since**: 12
4819e41f4b71Sopenharmony_ci
4820e41f4b71Sopenharmony_ci
4821e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_PRIMARY_CHROMATICITIES
4822e41f4b71Sopenharmony_ci
4823e41f4b71Sopenharmony_ci```
4824e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_PRIMARY_CHROMATICITIES = "PrimaryChromaticities"
4825e41f4b71Sopenharmony_ci```
4826e41f4b71Sopenharmony_ci
4827e41f4b71Sopenharmony_ci**Description**
4828e41f4b71Sopenharmony_ci
4829e41f4b71Sopenharmony_ciChromaticities of the primaries of the image.
4830e41f4b71Sopenharmony_ci
4831e41f4b71Sopenharmony_ci**Since**: 12
4832e41f4b71Sopenharmony_ci
4833e41f4b71Sopenharmony_ci
4834e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_REFERENCE_BLACK_WHITE
4835e41f4b71Sopenharmony_ci
4836e41f4b71Sopenharmony_ci```
4837e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_REFERENCE_BLACK_WHITE = "ReferenceBlackWhite"
4838e41f4b71Sopenharmony_ci```
4839e41f4b71Sopenharmony_ci
4840e41f4b71Sopenharmony_ci**Description**
4841e41f4b71Sopenharmony_ci
4842e41f4b71Sopenharmony_ciA pair of headroom and footroom image data values (codes) for each pixel component.
4843e41f4b71Sopenharmony_ci
4844e41f4b71Sopenharmony_ci**Since**: 12
4845e41f4b71Sopenharmony_ci
4846e41f4b71Sopenharmony_ci
4847e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_RELATED_SOUND_FILE
4848e41f4b71Sopenharmony_ci
4849e41f4b71Sopenharmony_ci```
4850e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_RELATED_SOUND_FILE = "RelatedSoundFile"
4851e41f4b71Sopenharmony_ci```
4852e41f4b71Sopenharmony_ci
4853e41f4b71Sopenharmony_ci**Description**
4854e41f4b71Sopenharmony_ci
4855e41f4b71Sopenharmony_ciName of an audio file related to the image data.
4856e41f4b71Sopenharmony_ci
4857e41f4b71Sopenharmony_ci**Since**: 12
4858e41f4b71Sopenharmony_ci
4859e41f4b71Sopenharmony_ci
4860e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_RESOLUTION_UNIT
4861e41f4b71Sopenharmony_ci
4862e41f4b71Sopenharmony_ci```
4863e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_RESOLUTION_UNIT = "ResolutionUnit"
4864e41f4b71Sopenharmony_ci```
4865e41f4b71Sopenharmony_ci
4866e41f4b71Sopenharmony_ci**Description**
4867e41f4b71Sopenharmony_ci
4868e41f4b71Sopenharmony_ciUnit of measurement for XResolution and YResolution.
4869e41f4b71Sopenharmony_ci
4870e41f4b71Sopenharmony_ci**Since**: 12
4871e41f4b71Sopenharmony_ci
4872e41f4b71Sopenharmony_ci
4873e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_ROWS_PER_STRIP
4874e41f4b71Sopenharmony_ci
4875e41f4b71Sopenharmony_ci```
4876e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_ROWS_PER_STRIP = "RowsPerStrip"
4877e41f4b71Sopenharmony_ci```
4878e41f4b71Sopenharmony_ci
4879e41f4b71Sopenharmony_ci**Description**
4880e41f4b71Sopenharmony_ci
4881e41f4b71Sopenharmony_ciNumber of rows per strip.
4882e41f4b71Sopenharmony_ci
4883e41f4b71Sopenharmony_ci**Since**: 12
4884e41f4b71Sopenharmony_ci
4885e41f4b71Sopenharmony_ci
4886e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SAMPLES_PER_PIXEL
4887e41f4b71Sopenharmony_ci
4888e41f4b71Sopenharmony_ci```
4889e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SAMPLES_PER_PIXEL = "SamplesPerPixel"
4890e41f4b71Sopenharmony_ci```
4891e41f4b71Sopenharmony_ci
4892e41f4b71Sopenharmony_ci**Description**
4893e41f4b71Sopenharmony_ci
4894e41f4b71Sopenharmony_ciNumber of components per pixel. The value is **3** for RGB and YCbCr images. The **JPEG** key is used in JPEG compressed data.
4895e41f4b71Sopenharmony_ci
4896e41f4b71Sopenharmony_ci**Since**: 12
4897e41f4b71Sopenharmony_ci
4898e41f4b71Sopenharmony_ci
4899e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SATURATION
4900e41f4b71Sopenharmony_ci
4901e41f4b71Sopenharmony_ci```
4902e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SATURATION = "Saturation"
4903e41f4b71Sopenharmony_ci```
4904e41f4b71Sopenharmony_ci
4905e41f4b71Sopenharmony_ci**Description**
4906e41f4b71Sopenharmony_ci
4907e41f4b71Sopenharmony_ciDirection of saturation processing used by the camera.
4908e41f4b71Sopenharmony_ci
4909e41f4b71Sopenharmony_ci**Since**: 12
4910e41f4b71Sopenharmony_ci
4911e41f4b71Sopenharmony_ci
4912e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SCENE_CAPTURE_TYPE
4913e41f4b71Sopenharmony_ci
4914e41f4b71Sopenharmony_ci```
4915e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SCENE_CAPTURE_TYPE = "SceneCaptureType"
4916e41f4b71Sopenharmony_ci```
4917e41f4b71Sopenharmony_ci
4918e41f4b71Sopenharmony_ci**Description**
4919e41f4b71Sopenharmony_ci
4920e41f4b71Sopenharmony_ciType of the scene that was captured.
4921e41f4b71Sopenharmony_ci
4922e41f4b71Sopenharmony_ci**Since**: 12
4923e41f4b71Sopenharmony_ci
4924e41f4b71Sopenharmony_ci
4925e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SCENE_POINTER
4926e41f4b71Sopenharmony_ci
4927e41f4b71Sopenharmony_ci```
4928e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SCENE_POINTER = "HwMnoteScenePointer"
4929e41f4b71Sopenharmony_ci```
4930e41f4b71Sopenharmony_ci
4931e41f4b71Sopenharmony_ci**Description**
4932e41f4b71Sopenharmony_ci
4933e41f4b71Sopenharmony_ciPointer to the scene.
4934e41f4b71Sopenharmony_ci
4935e41f4b71Sopenharmony_ci**Since**: 12
4936e41f4b71Sopenharmony_ci
4937e41f4b71Sopenharmony_ci
4938e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SCENE_TYPE
4939e41f4b71Sopenharmony_ci
4940e41f4b71Sopenharmony_ci```
4941e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SCENE_TYPE = "SceneType"
4942e41f4b71Sopenharmony_ci```
4943e41f4b71Sopenharmony_ci
4944e41f4b71Sopenharmony_ci**Description**
4945e41f4b71Sopenharmony_ci
4946e41f4b71Sopenharmony_ciType of the scene, for example, portrait, scenery, motion, and night.
4947e41f4b71Sopenharmony_ci
4948e41f4b71Sopenharmony_ci**Since**: 12
4949e41f4b71Sopenharmony_ci
4950e41f4b71Sopenharmony_ci
4951e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SCENE_VERSION
4952e41f4b71Sopenharmony_ci
4953e41f4b71Sopenharmony_ci```
4954e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SCENE_VERSION = "HwMnoteSceneVersion"
4955e41f4b71Sopenharmony_ci```
4956e41f4b71Sopenharmony_ci
4957e41f4b71Sopenharmony_ci**Description**
4958e41f4b71Sopenharmony_ci
4959e41f4b71Sopenharmony_ciScene algorithm version.
4960e41f4b71Sopenharmony_ci
4961e41f4b71Sopenharmony_ci**Since**: 12
4962e41f4b71Sopenharmony_ci
4963e41f4b71Sopenharmony_ci
4964e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SENSING_METHOD
4965e41f4b71Sopenharmony_ci
4966e41f4b71Sopenharmony_ci```
4967e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SENSING_METHOD = "SensingMethod"
4968e41f4b71Sopenharmony_ci```
4969e41f4b71Sopenharmony_ci
4970e41f4b71Sopenharmony_ci**Description**
4971e41f4b71Sopenharmony_ci
4972e41f4b71Sopenharmony_ciType of the image sensor on the camera.
4973e41f4b71Sopenharmony_ci
4974e41f4b71Sopenharmony_ci**Since**: 12
4975e41f4b71Sopenharmony_ci
4976e41f4b71Sopenharmony_ci
4977e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SHARPNESS
4978e41f4b71Sopenharmony_ci
4979e41f4b71Sopenharmony_ci```
4980e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SHARPNESS = "Sharpness"
4981e41f4b71Sopenharmony_ci```
4982e41f4b71Sopenharmony_ci
4983e41f4b71Sopenharmony_ci**Description**
4984e41f4b71Sopenharmony_ci
4985e41f4b71Sopenharmony_ciDirection of sharpness processing used by the camera.
4986e41f4b71Sopenharmony_ci
4987e41f4b71Sopenharmony_ci**Since**: 12
4988e41f4b71Sopenharmony_ci
4989e41f4b71Sopenharmony_ci
4990e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SHUTTER_SPEED_VALUE
4991e41f4b71Sopenharmony_ci
4992e41f4b71Sopenharmony_ci```
4993e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SHUTTER_SPEED_VALUE = "ShutterSpeedValue"
4994e41f4b71Sopenharmony_ci```
4995e41f4b71Sopenharmony_ci
4996e41f4b71Sopenharmony_ci**Description**
4997e41f4b71Sopenharmony_ci
4998e41f4b71Sopenharmony_ciShutter speed, expressed in Additive System of Photographic Exposure (APEX) values.
4999e41f4b71Sopenharmony_ci
5000e41f4b71Sopenharmony_ci**Since**: 12
5001e41f4b71Sopenharmony_ci
5002e41f4b71Sopenharmony_ci
5003e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SOFTWARE
5004e41f4b71Sopenharmony_ci
5005e41f4b71Sopenharmony_ci```
5006e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SOFTWARE = "Software"
5007e41f4b71Sopenharmony_ci```
5008e41f4b71Sopenharmony_ci
5009e41f4b71Sopenharmony_ci**Description**
5010e41f4b71Sopenharmony_ci
5011e41f4b71Sopenharmony_ciName and version number of the software used to create the image.
5012e41f4b71Sopenharmony_ci
5013e41f4b71Sopenharmony_ci**Since**: 12
5014e41f4b71Sopenharmony_ci
5015e41f4b71Sopenharmony_ci
5016e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE
5017e41f4b71Sopenharmony_ci
5018e41f4b71Sopenharmony_ci```
5019e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE = "SourceExposureTimesOfCompositeImage"
5020e41f4b71Sopenharmony_ci```
5021e41f4b71Sopenharmony_ci
5022e41f4b71Sopenharmony_ci**Description**
5023e41f4b71Sopenharmony_ci
5024e41f4b71Sopenharmony_ciExposure time of source images of the composite image.
5025e41f4b71Sopenharmony_ci
5026e41f4b71Sopenharmony_ci**Since**: 12
5027e41f4b71Sopenharmony_ci
5028e41f4b71Sopenharmony_ci
5029e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE
5030e41f4b71Sopenharmony_ci
5031e41f4b71Sopenharmony_ci```
5032e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE = "SourceImageNumberOfCompositeImage"
5033e41f4b71Sopenharmony_ci```
5034e41f4b71Sopenharmony_ci
5035e41f4b71Sopenharmony_ci**Description**
5036e41f4b71Sopenharmony_ci
5037e41f4b71Sopenharmony_ciNumber of source images of the composite image.
5038e41f4b71Sopenharmony_ci
5039e41f4b71Sopenharmony_ci**Since**: 12
5040e41f4b71Sopenharmony_ci
5041e41f4b71Sopenharmony_ci
5042e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SPATIAL_FREQUENCY_RESPONSE
5043e41f4b71Sopenharmony_ci
5044e41f4b71Sopenharmony_ci```
5045e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SPATIAL_FREQUENCY_RESPONSE = "SpatialFrequencyResponse"
5046e41f4b71Sopenharmony_ci```
5047e41f4b71Sopenharmony_ci
5048e41f4b71Sopenharmony_ci**Description**
5049e41f4b71Sopenharmony_ci
5050e41f4b71Sopenharmony_ciSpatial frequency table of the camera or input device.
5051e41f4b71Sopenharmony_ci
5052e41f4b71Sopenharmony_ci**Since**: 12
5053e41f4b71Sopenharmony_ci
5054e41f4b71Sopenharmony_ci
5055e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SPECTRAL_SENSITIVITY
5056e41f4b71Sopenharmony_ci
5057e41f4b71Sopenharmony_ci```
5058e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SPECTRAL_SENSITIVITY = "SpectralSensitivity"
5059e41f4b71Sopenharmony_ci```
5060e41f4b71Sopenharmony_ci
5061e41f4b71Sopenharmony_ci**Description**
5062e41f4b71Sopenharmony_ci
5063e41f4b71Sopenharmony_ciSpectral sensitivity of each channel of the camera.
5064e41f4b71Sopenharmony_ci
5065e41f4b71Sopenharmony_ci**Since**: 12
5066e41f4b71Sopenharmony_ci
5067e41f4b71Sopenharmony_ci
5068e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_STRIP_BYTE_COUNTS
5069e41f4b71Sopenharmony_ci
5070e41f4b71Sopenharmony_ci```
5071e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_STRIP_BYTE_COUNTS = "StripByteCounts"
5072e41f4b71Sopenharmony_ci```
5073e41f4b71Sopenharmony_ci
5074e41f4b71Sopenharmony_ci**Description**
5075e41f4b71Sopenharmony_ci
5076e41f4b71Sopenharmony_ciNumber of bytes in each strip after compression.
5077e41f4b71Sopenharmony_ci
5078e41f4b71Sopenharmony_ci**Since**: 12
5079e41f4b71Sopenharmony_ci
5080e41f4b71Sopenharmony_ci
5081e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_STRIP_OFFSETS
5082e41f4b71Sopenharmony_ci
5083e41f4b71Sopenharmony_ci```
5084e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_STRIP_OFFSETS = "StripOffsets"
5085e41f4b71Sopenharmony_ci```
5086e41f4b71Sopenharmony_ci
5087e41f4b71Sopenharmony_ci**Description**
5088e41f4b71Sopenharmony_ci
5089e41f4b71Sopenharmony_ciByte offset of each strip.
5090e41f4b71Sopenharmony_ci
5091e41f4b71Sopenharmony_ci**Since**: 12
5092e41f4b71Sopenharmony_ci
5093e41f4b71Sopenharmony_ci
5094e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBFILE_TYPE
5095e41f4b71Sopenharmony_ci
5096e41f4b71Sopenharmony_ci```
5097e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBFILE_TYPE = "SubfileType"
5098e41f4b71Sopenharmony_ci```
5099e41f4b71Sopenharmony_ci
5100e41f4b71Sopenharmony_ci**Description**
5101e41f4b71Sopenharmony_ci
5102e41f4b71Sopenharmony_ciType of data contained in this subfile. This tag has been deprecated. Use **NewSubfileType** instead.
5103e41f4b71Sopenharmony_ci
5104e41f4b71Sopenharmony_ci**Since**: 12
5105e41f4b71Sopenharmony_ci
5106e41f4b71Sopenharmony_ci
5107e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBJECT_AREA
5108e41f4b71Sopenharmony_ci
5109e41f4b71Sopenharmony_ci```
5110e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBJECT_AREA = "SubjectArea"
5111e41f4b71Sopenharmony_ci```
5112e41f4b71Sopenharmony_ci
5113e41f4b71Sopenharmony_ci**Description**
5114e41f4b71Sopenharmony_ci
5115e41f4b71Sopenharmony_ciLocation and area of the main subject in the entire scene.
5116e41f4b71Sopenharmony_ci
5117e41f4b71Sopenharmony_ci**Since**: 12
5118e41f4b71Sopenharmony_ci
5119e41f4b71Sopenharmony_ci
5120e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE
5121e41f4b71Sopenharmony_ci
5122e41f4b71Sopenharmony_ci```
5123e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE = "SubjectDistance"
5124e41f4b71Sopenharmony_ci```
5125e41f4b71Sopenharmony_ci
5126e41f4b71Sopenharmony_ci**Description**
5127e41f4b71Sopenharmony_ci
5128e41f4b71Sopenharmony_ciDistance to the subject, in meters.
5129e41f4b71Sopenharmony_ci
5130e41f4b71Sopenharmony_ci**Since**: 12
5131e41f4b71Sopenharmony_ci
5132e41f4b71Sopenharmony_ci
5133e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE_RANGE
5134e41f4b71Sopenharmony_ci
5135e41f4b71Sopenharmony_ci```
5136e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE_RANGE = "SubjectDistanceRange"
5137e41f4b71Sopenharmony_ci```
5138e41f4b71Sopenharmony_ci
5139e41f4b71Sopenharmony_ci**Description**
5140e41f4b71Sopenharmony_ci
5141e41f4b71Sopenharmony_ciDistance to the subject.
5142e41f4b71Sopenharmony_ci
5143e41f4b71Sopenharmony_ci**Since**: 12
5144e41f4b71Sopenharmony_ci
5145e41f4b71Sopenharmony_ci
5146e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBJECT_LOCATION
5147e41f4b71Sopenharmony_ci
5148e41f4b71Sopenharmony_ci```
5149e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBJECT_LOCATION = "SubjectLocation"
5150e41f4b71Sopenharmony_ci```
5151e41f4b71Sopenharmony_ci
5152e41f4b71Sopenharmony_ci**Description**
5153e41f4b71Sopenharmony_ci
5154e41f4b71Sopenharmony_ciLocation of the main subject relative to the left edge.
5155e41f4b71Sopenharmony_ci
5156e41f4b71Sopenharmony_ci**Since**: 12
5157e41f4b71Sopenharmony_ci
5158e41f4b71Sopenharmony_ci
5159e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBSEC_TIME
5160e41f4b71Sopenharmony_ci
5161e41f4b71Sopenharmony_ci```
5162e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBSEC_TIME = "SubsecTime"
5163e41f4b71Sopenharmony_ci```
5164e41f4b71Sopenharmony_ci
5165e41f4b71Sopenharmony_ci**Description**
5166e41f4b71Sopenharmony_ci
5167e41f4b71Sopenharmony_ciTag used to record fractions of seconds for the **DateTime** tag.
5168e41f4b71Sopenharmony_ci
5169e41f4b71Sopenharmony_ci**Since**: 12
5170e41f4b71Sopenharmony_ci
5171e41f4b71Sopenharmony_ci
5172e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBSEC_TIME_DIGITIZED
5173e41f4b71Sopenharmony_ci
5174e41f4b71Sopenharmony_ci```
5175e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBSEC_TIME_DIGITIZED = "SubsecTimeDigitized"
5176e41f4b71Sopenharmony_ci```
5177e41f4b71Sopenharmony_ci
5178e41f4b71Sopenharmony_ci**Description**
5179e41f4b71Sopenharmony_ci
5180e41f4b71Sopenharmony_ciTag used to record fractions of seconds for the **DateTimeDigitized** tag.
5181e41f4b71Sopenharmony_ci
5182e41f4b71Sopenharmony_ci**Since**: 12
5183e41f4b71Sopenharmony_ci
5184e41f4b71Sopenharmony_ci
5185e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_SUBSEC_TIME_ORIGINAL
5186e41f4b71Sopenharmony_ci
5187e41f4b71Sopenharmony_ci```
5188e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_SUBSEC_TIME_ORIGINAL = "SubsecTimeOriginal"
5189e41f4b71Sopenharmony_ci```
5190e41f4b71Sopenharmony_ci
5191e41f4b71Sopenharmony_ci**Description**
5192e41f4b71Sopenharmony_ci
5193e41f4b71Sopenharmony_ciTag used to record fractions of seconds for the **DateTimeOriginal** tag.
5194e41f4b71Sopenharmony_ci
5195e41f4b71Sopenharmony_ci**Since**: 12
5196e41f4b71Sopenharmony_ci
5197e41f4b71Sopenharmony_ci
5198e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_TRANSFER_FUNCTION
5199e41f4b71Sopenharmony_ci
5200e41f4b71Sopenharmony_ci```
5201e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_TRANSFER_FUNCTION = "TransferFunction"
5202e41f4b71Sopenharmony_ci```
5203e41f4b71Sopenharmony_ci
5204e41f4b71Sopenharmony_ci**Description**
5205e41f4b71Sopenharmony_ci
5206e41f4b71Sopenharmony_ciTransfer function for the image, which is usually used for color correction.
5207e41f4b71Sopenharmony_ci
5208e41f4b71Sopenharmony_ci**Since**: 12
5209e41f4b71Sopenharmony_ci
5210e41f4b71Sopenharmony_ci
5211e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_WHITE_POINT
5212e41f4b71Sopenharmony_ci
5213e41f4b71Sopenharmony_ci```
5214e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_WHITE_POINT = "WhitePoint"
5215e41f4b71Sopenharmony_ci```
5216e41f4b71Sopenharmony_ci
5217e41f4b71Sopenharmony_ci**Description**
5218e41f4b71Sopenharmony_ci
5219e41f4b71Sopenharmony_ciChromaticity of the white point of the image.
5220e41f4b71Sopenharmony_ci
5221e41f4b71Sopenharmony_ci**Since**: 12
5222e41f4b71Sopenharmony_ci
5223e41f4b71Sopenharmony_ci
5224e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_X_RESOLUTION
5225e41f4b71Sopenharmony_ci
5226e41f4b71Sopenharmony_ci```
5227e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_X_RESOLUTION = "XResolution"
5228e41f4b71Sopenharmony_ci```
5229e41f4b71Sopenharmony_ci
5230e41f4b71Sopenharmony_ci**Description**
5231e41f4b71Sopenharmony_ci
5232e41f4b71Sopenharmony_ciNumber of pixels per ResolutionUnit in the image width (X) direction.
5233e41f4b71Sopenharmony_ci
5234e41f4b71Sopenharmony_ci**Since**: 12
5235e41f4b71Sopenharmony_ci
5236e41f4b71Sopenharmony_ci
5237e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_Y_RESOLUTION
5238e41f4b71Sopenharmony_ci
5239e41f4b71Sopenharmony_ci```
5240e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_Y_RESOLUTION = "YResolution"
5241e41f4b71Sopenharmony_ci```
5242e41f4b71Sopenharmony_ci
5243e41f4b71Sopenharmony_ci**Description**
5244e41f4b71Sopenharmony_ci
5245e41f4b71Sopenharmony_ciNumber of pixels per ResolutionUnit in the image height (Y) direction.
5246e41f4b71Sopenharmony_ci
5247e41f4b71Sopenharmony_ci**Since**: 12
5248e41f4b71Sopenharmony_ci
5249e41f4b71Sopenharmony_ci
5250e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_YCBCR_COEFFICIENTS
5251e41f4b71Sopenharmony_ci
5252e41f4b71Sopenharmony_ci```
5253e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_YCBCR_COEFFICIENTS = "YCbCrCoefficients"
5254e41f4b71Sopenharmony_ci```
5255e41f4b71Sopenharmony_ci
5256e41f4b71Sopenharmony_ci**Description**
5257e41f4b71Sopenharmony_ci
5258e41f4b71Sopenharmony_ciTransformation from RGB to YCbCr image data.
5259e41f4b71Sopenharmony_ci
5260e41f4b71Sopenharmony_ci**Since**: 12
5261e41f4b71Sopenharmony_ci
5262e41f4b71Sopenharmony_ci
5263e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_YCBCR_POSITIONING
5264e41f4b71Sopenharmony_ci
5265e41f4b71Sopenharmony_ci```
5266e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_YCBCR_POSITIONING = "YCbCrPositioning"
5267e41f4b71Sopenharmony_ci```
5268e41f4b71Sopenharmony_ci
5269e41f4b71Sopenharmony_ci**Description**
5270e41f4b71Sopenharmony_ci
5271e41f4b71Sopenharmony_ciPositioning of subsampled chrominance components relative to luminance samples.
5272e41f4b71Sopenharmony_ci
5273e41f4b71Sopenharmony_ci**Since**: 12
5274e41f4b71Sopenharmony_ci
5275e41f4b71Sopenharmony_ci
5276e41f4b71Sopenharmony_ci### OHOS_IMAGE_PROPERTY_YCBCR_SUB_SAMPLING
5277e41f4b71Sopenharmony_ci
5278e41f4b71Sopenharmony_ci```
5279e41f4b71Sopenharmony_cistatic const char* OHOS_IMAGE_PROPERTY_YCBCR_SUB_SAMPLING = "YCbCrSubSampling"
5280e41f4b71Sopenharmony_ci```
5281e41f4b71Sopenharmony_ci
5282e41f4b71Sopenharmony_ci**Description**
5283e41f4b71Sopenharmony_ci
5284e41f4b71Sopenharmony_ciSubsampling factors used for the chrominance components of a YCbCr image.
5285e41f4b71Sopenharmony_ci
5286e41f4b71Sopenharmony_ci**Since**: 12
5287