harmony 鸿蒙image_mdk.h

2025-06-12 浏览 (1)

image_mdk.h

Overview

The image_mdk.h file declares the APIs used to access the image rectangle, size, format, and component data.

Library: libimage_ndk.z.so

File to include: <multimedia/image_framework/image_mdk.h>

Since: 10

Related module: Image

Summary

Structs

NameDescription
struct OhosImageRectDefines the information about an image rectangle.
struct OhosImageComponentDefines the information about an image component.

Types

NameDescription
typedef struct ImageNative_ ImageNativeDefines an image object at the native layer.

Enums

NameDescription
{ 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

NameDescription
ImageNative * OH_Image_InitImageNative (napi_env env, napi_value source)Converts an Image object at the JavaScript native layer into an ImageNative object.
int32_t OH_Image_ClipRect (const ImageNative *native, struct OhosImageRect *rect)Obtains OhosImageRect of an ImageNative object.
int32_t OH_Image_Size (const ImageNative *native, struct OhosImageSize *size)Obtains OhosImageSize of an ImageNative object.
int32_t OH_Image_Format (const ImageNative *native, int32_t *format)Obtains the image format of an ImageNative object.
int32_t OH_Image_GetComponent (const ImageNative *native, int32_t componentType, struct OhosImageComponent *componentNative)Obtains OhosImageComponent of an ImageNative object.
int32_t OH_Image_Release (ImageNative *native)Releases an ImageNative object.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit

harmony 鸿蒙_image___native_module

harmony 鸿蒙Image_Region

harmony 鸿蒙Image_Size

harmony 鸿蒙Image_String

harmony 鸿蒙ImageEffect

harmony 鸿蒙ImageEffect_Any

harmony 鸿蒙ImageEffect_FilterDelegate

harmony 鸿蒙ImageEffect_FilterNames

harmony 鸿蒙ImageEffect_Region

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/5qOkzm