Skip to main content

Crate ohos_image_sys

Crate ohos_image_sys 

Source

Structs§

ImageNative_
ImagePacker_Native_
ImagePacker_Opts_
@brief Defines the image packing options.
ImageReceiverNative_
@brief Defines an ImageReceiver object at the native layer.
ImageSourceNative_
@brief Defines a native image source object for the image source APIs.
NativePixelMap_
@brief Defines the native pixel map information. @since 10 @version 1.0
OhosImageComponent
@brief Defines the image composition information.
OhosImageDecodingOps
@brief Defines the options for decoding the image source. It is used in {@link OH_ImageSource_CreatePixelMap} and {@link OH_ImageSource_CreatePixelMapList}.
OhosImageReceiverInfo
@brief Defines the information about an image receiver.
OhosImageRect
@brief Defines the information about an image rectangle.
OhosImageRegion
@brief Defines the region of the image source to decode. It is used in {@link OhosImageDecodingOps}, {@link OH_ImageSource_CreatePixelMap}, and {@link OH_ImageSource_CreatePixelMapList}.
OhosImageSize
@brief Defines the image size.
OhosImageSource
@brief Defines the input resource of the image source. It is obtained by calling {@link OH_ImageSource_Create}. Only one type of resource is accepted at a time.
OhosImageSourceDelayTimeList
@brief Defines the delay time list of the image source. It is obtained by calling {@link OH_ImageSource_GetDelayTime}.
OhosImageSourceInfo
@brief Defines the image source information, which is obtained by calling {@link OH_ImageSource_GetImageInfo}.
OhosImageSourceOps
@brief Defines image source options information {@link OH_ImageSource_Create} and {@link OH_ImageSource_CreateIncremental}.
OhosImageSourceProperty
@brief Defines the property string (in key-value format) of the image source. It is used in {@link OH_ImageSource_GetImageProperty} and {@link OH_ImageSource_ModifyImageProperty}.
OhosImageSourceSupportedFormat
@brief Defines image source supported format string. {@link OhosImageSourceSupportedFormatList} and {@link OH_ImageSource_GetSupportedFormats}
OhosImageSourceSupportedFormatList
@brief Defines the format string list supported by the image source. It is obtained by calling {@link OH_ImageSource_GetSupportedFormats}.
OhosImageSourceUpdateData
@brief Defines the update data of the image source. It is obtained by calling {@link OH_ImageSource_UpdateData}.
OhosPixelMapCreateOps
@brief Defines the options used for creating a pixel map.
OhosPixelMapInfos
@brief Defines the pixel map information.

Constants§

OH_PixelMap_AntiAliasingLevel_OH_PixelMap_AntiAliasing_HIGH
Cubic interpolation.
OH_PixelMap_AntiAliasingLevel_OH_PixelMap_AntiAliasing_LOW
Bilinear interpolation, without mipmap linear filtering.
OH_PixelMap_AntiAliasingLevel_OH_PixelMap_AntiAliasing_MEDIUM
Bilinear interpolation, with mipmap linear filtering.
OH_PixelMap_AntiAliasingLevel_OH_PixelMap_AntiAliasing_NONE
Nearest-neighbor interpolation.

Functions§

OH_ImagePacker_Create⚠
@brief Creates an ImagePacker object at the JavaScript native layer.
OH_ImagePacker_InitNative⚠
@brief Parses an {@link ImagePacker_Native} object at the native layer from a JavaScript native API ImagePacker object.
OH_ImagePacker_PackToData⚠
@brief Encoding an ImageSource or a PixelMap into the data with required format
OH_ImagePacker_PackToFile⚠
@brief Encoding an ImageSource or a PixelMap into the a file with fd with required format
OH_ImagePacker_Release⚠
@brief Releases an {@link ImagePacker_Native} object at the native layer. Note: This API is not used to release a JavaScript native API ImagePacker object. It is used to release the object {@link ImagePacker_Native} at the native layer parsed by calling {@link OH_ImagePacker_InitNative}.
OH_ImageSource_Create⚠
@brief Creates an ImageSource object at the JavaScript native layer based on the specified {@link OhosImageSource} and {@link OhosImageSourceOps} structs.
OH_ImageSource_CreateFromData⚠
@brief Creates an ImageSource object at the JavaScript native layer based on the specified image source data and {@link OhosImageSourceOps} structs.
OH_ImageSource_CreateFromFd⚠
@brief Creates an ImageSource object at the JavaScript native layer based on the specified image source file descriptor and {@link OhosImageSourceOps} structs.
OH_ImageSource_CreateFromRawFile⚠
@brief Creates an ImageSource object at the JavaScript native layer based on the specified raw file’s file descriptor and {@link OhosImageSourceOps} structs.
OH_ImageSource_CreateFromUri⚠
@brief Creates an ImageSource object at the JavaScript native layer based on the specified image source URI and {@link OhosImageSourceOps} structs.
OH_ImageSource_CreateIncremental⚠
@brief Creates an incremental ImageSource object at the JavaScript native layer based on the specified {@link OhosImageSource} and {@link OhosImageSourceOps} structs. The image source data will be updated through {@link OH_ImageSource_UpdateData}.
OH_ImageSource_CreateIncrementalFromData⚠
@brief Creates an incremental ImageSource object at the JavaScript native layer based on the specified image source data and {@link OhosImageSourceOps} structs. The image source data will be updated through {@link OH_ImageSource_UpdateData}.
OH_ImageSource_CreatePixelMap⚠
@brief Decodes an ImageSource object to obtain a PixelMap object at the JavaScript native layer based on the specified {@link OhosImageDecodingOps} struct.
OH_ImageSource_CreatePixelMapList⚠
@brief Decodes an ImageSource to obtain all the PixelMap objects at the JavaScript native layer based on the specified {@link OhosImageDecodingOps} struct.
OH_ImageSource_GetDelayTime⚠
@brief Obtains the delay time list from some ImageSource objects (such as GIF image sources).
OH_ImageSource_GetFrameCount⚠
@brief Obtains the number of frames from an ImageSource object.
OH_ImageSource_GetImageInfo⚠
@brief Obtains image source information from an ImageSource object by index.
OH_ImageSource_GetImageProperty⚠
@brief Obtains the value of an image property from an ImageSource object.
OH_ImageSource_GetSupportedFormats⚠
@brief Obtains all supported decoding formats.
OH_ImageSource_InitNative⚠
@brief Converts an {@link ImageSource} object at the JavaScript native layer to an ImageSourceNative object at the C++ native layer.
OH_ImageSource_ModifyImageProperty⚠
@brief Modifies the value of an image property of an ImageSource object.
OH_ImageSource_Release⚠
@brief Releases an ImageSourceNative object.
OH_ImageSource_UpdateData⚠
@brief Updates the data of an ImageSource object.
OH_Image_ClipRect⚠
@brief Obtains {@link OhosImageRect} of an {@link ImageNative} at the native layer.
OH_Image_Format⚠
@brief Obtains the image format of an {@link ImageNative} object at the native layer.
OH_Image_GetComponent⚠
@brief Obtains {@link OhosImageComponent} of an {@link ImageNative} object at the native layer.
OH_Image_InitImageNative⚠
@brief Parses an {@link ImageNative} object at the native layer from a JavaScript native API image object.
OH_Image_Receiver_CreateImageReceiver⚠
@brief Creates an ImageReceiver object at the application layer.
OH_Image_Receiver_GetCapacity⚠
@brief Obtains the capacity of the image receiver through an {@link ImageReceiverNative} object.
OH_Image_Receiver_GetFormat⚠
@brief Obtains the format of the image receiver through an {@link ImageReceiverNative} object.
OH_Image_Receiver_GetReceivingSurfaceId⚠
@brief Obtains the receiver ID through an {@link ImageReceiverNative} object.
OH_Image_Receiver_GetSize⚠
@brief Obtains the size of the image receiver through an {@link ImageReceiverNative} object.
OH_Image_Receiver_InitImageReceiverNative⚠
@brief Initializes an {@link ImageReceiverNative} object at the native layer through an ImageReceiver object at the application layer.
OH_Image_Receiver_On⚠
@brief Registers an {@link OH_Image_Receiver_On_Callback} callback event.
OH_Image_Receiver_ReadLatestImage⚠
@brief Obtains the latest image through an {@link ImageReceiverNative} object.
OH_Image_Receiver_ReadNextImage⚠
@brief Obtains the next image through an {@link ImageReceiverNative} object.
OH_Image_Receiver_Release⚠
@brief Releases an {@link ImageReceiverNative} object at the native layer.
OH_Image_Release⚠
@brief Releases an {@link ImageNative} object at the native layer. Note: This API is not used to release a JavaScript native API Image object. It is used to release the object {@link ImageNative} at the native layer parsed by calling {@link OH_Image_InitImageNative}.
OH_Image_Size⚠
@brief Obtains {@link OhosImageSize} of an {@link ImageNative} object at the native layer.
OH_PixelMap_AccessPixels⚠
@brief Obtains the memory address of a NativePixelMap object and locks the memory.
OH_PixelMap_CreateAlphaPixelMap⚠
@brief Creates a PixelMap object that contains only alpha channel information.
OH_PixelMap_CreatePixelMap⚠
@brief Creates a PixelMap object. Currently, only BGRA input streams are supported.
OH_PixelMap_CreatePixelMapWithStride⚠
@brief Creates a PixelMap object.
OH_PixelMap_Crop⚠
@brief Crops a NativePixelMap object.
OH_PixelMap_Flip⚠
@brief Flips a NativePixelMap object.
OH_PixelMap_GetBytesNumberPerRow⚠
@brief Obtains the number of bytes per row of a NativePixelMap object.
OH_PixelMap_GetDensity⚠
@brief Obtains the pixel density of a NativePixelMap object.
OH_PixelMap_GetImageInfo⚠
@brief Obtains the image information of a NativePixelMap object.
OH_PixelMap_GetIsEditable⚠
@brief Checks whether a NativePixelMap object is editable.
OH_PixelMap_InitNativePixelMap⚠
@brief Initializes a NativePixelMap object.
OH_PixelMap_IsSupportAlpha⚠
@brief Checks whether a NativePixelMap object supports alpha channels.
OH_PixelMap_Rotate⚠
@brief Rotates a NativePixelMap object.
OH_PixelMap_Scale⚠
@brief Scales a NativePixelMap object.
OH_PixelMap_ScaleWithAntiAliasing⚠
@brief Scales a NativePixelMap object based on the specified anti-aliasing level, width, and height.
OH_PixelMap_SetAlphaAble⚠
@brief Sets an alpha channel for a NativePixelMap object.
OH_PixelMap_SetDensity⚠
@brief Sets the pixel density for a NativePixelMap object.
OH_PixelMap_SetOpacity⚠
@brief Sets the opacity for a NativePixelMap object.
OH_PixelMap_Translate⚠
@brief Translates a NativePixelMap object.
OH_PixelMap_UnAccessPixels⚠
@brief Unlocks the memory of a NativePixelMap object. This function is used with {@link OH_PixelMap_AccessPixels} in pairs.

Type Aliases§

ImageNative
@brief Defines an image object at the native layer for the image interface.
ImagePacker_Native
@brief Defines an image packer object at the native layer for the image packer interface.
ImagePacker_Opts
@brief Defines alias of image packing options.
ImageReceiverNative
@brief Defines the data type name of a native image receiver.
ImageSourceNative
@brief Defines a native image source object for the image source APIs.
NativePixelMap
@brief Defines the data type name of the native pixel map. @since 10 @version 1.0
OH_Image_Receiver_On_Callback
@brief Defines the callbacks for images at the native layer.
OH_PixelMap_AntiAliasingLevel
@brief Enumerates the anti-aliasing level.