Cargo Features
ohos-image-kit-sys has no features set by default.
[dependencies]
ohos-image-kit-sys = { version = "0.2.2", features = ["api-12", "api-13", "api-14", "image-packer", "image-receiver", "image-source", "pixelmap", "document-features"] }
- api-12 api-13?
-
OpenHarmony API level
The
inputmethod
API was added in API-level 12. Defaults to no bindings at all, to maintain feature composability inohos-sys
. Optionally enable one of theapi-*
features to get access to bindings for newer OpenHarmony versions.Enables bindings for OpenHarmony API-level 12.
Enables api-12 of optional ohos-rawfile-sys
Affects
ohos-image-kit-sys::native_image
,image_ffi::OH_ImageNative
,image_ffi::OH_ImageNative_GetImageSize
,image_ffi::OH_ImageNative_GetComponentTypes
,image_ffi::OH_ImageNative_GetByteBuffer
,image_ffi::OH_ImageNative_GetBufferSize
,image_ffi::OH_ImageNative_GetRowStride
,image_ffi::OH_ImageNative_GetPixelStride
,image_ffi::OH_ImageNative_GetTimestamp
,image_ffi::OH_ImageNative_Release
,image_common_ffi::Image_Size
,image_common_ffi::Image_Region
,image_common_ffi::Image_String
,image_common_ffi::Image_MimeType
,image_common_ffi::Image_ErrorCode
,image_common_ffi::MIME_TYPE_BMP
,image_common_ffi::MIME_TYPE_JPEG
,image_common_ffi::MIME_TYPE_HEIC
,image_common_ffi::MIME_TYPE_PNG
,image_common_ffi::MIME_TYPE_WEBP
… - api-13 api-14? = api-12
-
Enables bindings for OpenHarmony API-level 13.
Affects
image_common_ffi::OH_PictureMetadata
,image_common_ffi::Image_MetadataType
,image_common_ffi::OHOS_IMAGE_PROPERTY_X_IN_ORIGINAL
,image_common_ffi::OHOS_IMAGE_PROPERTY_Y_IN_ORIGINAL
,image_common_ffi::OHOS_IMAGE_PROPERTY_FRAGMENT_WIDTH
,image_common_ffi::OHOS_IMAGE_PROPERTY_FRAGMENT_HEIGHT
,image_common_ffi::OH_PictureMetadata_Create
,image_common_ffi::OH_PictureMetadata_GetProperty
,image_common_ffi::OH_PictureMetadata_SetProperty
,image_common_ffi::OH_PictureMetadata_Release
,image_common_ffi::OH_PictureMetadata_Clone
,image_packer_ffi::OH_ImagePackerNative_PackToDataFromPicture
,image_packer_ffi::OH_ImagePackerNative_PackToFileFromPicture
,image_source_ffi::OH_DecodingOptionsForPicture
,image_source_ffi::OH_ImageSourceNative_CreatePicture
,image_source_ffi::OH_DecodingOptionsForPicture_Create
,image_source_ffi::OH_DecodingOptionsForPicture_GetDesiredAuxiliaryPictures
,image_source_ffi::OH_DecodingOptionsForPicture_SetDesiredAuxiliaryPictures
,image_source_ffi::OH_DecodingOptionsForPicture_Release
,picture_ffi::OH_PictureNative
… - api-14 = api-13
-
Enables bindings for OpenHarmony API-level 14.
- image-packer
-
Image Kit Modules
The Image kit is divided into different shared libraries. We provide features, so that you can select which components you want to use.
Image Encoding
- image-receiver
-
Obtain image data from the native layer
- image-source
-
Image decoding
Enables ohos-rawfile-sys
- pixelmap
-
Pixel Map
- document-features
-
Document available features when building the documentation
Enables document-features