image_mdk.h
Overview
The image_mdk.h file declares the functions that access the image rectangle, size, format, and component data.
Since
10
Related Modules
Summary
Structs
Name | Description |
---|---|
OhosImageRect | Defines the information about an image rectangle. |
OhosImageComponent | Defines the information about an image component. |
Types
Name | Description |
---|---|
ImageNative | Defines an image object at the native layer. |
Enums
Name | Description |
---|---|
{ OHOS_IMAGE_FORMAT_YCBCR_422_SP = 1000, OHOS_IMAGE_FORMAT_JPEG = 2000, } |
Enumerates the image formats. |
{ OHOS_IMAGE_COMPONENT_FORMAT_YUV_Y = 1, OHOS_IMAGE_COMPONENT_FORMAT_YUV_U = 2, OHOS_IMAGE_COMPONENT_FORMAT_YUV_V = 3, OHOS_IMAGE_COMPONENT_FORMAT_JPEG = 4, } |
Enumerates the image components. |
Functions
Name | Description |
---|---|
OH_Image_InitImageNative (napi_env env, napi_value source) | Parses an ImageNative object from an Image object at the JavaScript native layer. |
OH_Image_ClipRect (const ImageNative *native, struct OhosImageRect *rect) | Obtains OhosImageRect of an ImageNative object. |
OH_Image_Size (const ImageNative *native, struct OhosImageSize *size) | Obtains OhosImageSize of an ImageNative object. |
OH_Image_Format (const ImageNative *native, int32_t *format) | Obtains the image format of an ImageNative object. |
OH_Image_GetComponent (const ImageNative *native, int32_t componentType, struct OhosImageComponent *componentNative) | Obtains OhosImageComponent of an ImageNative object. |
OH_Image_Release (ImageNative *native) | Releases an ImageNative object. |