harmony 鸿蒙image_mdk.h

  • 2023-10-30
  • 浏览 (287)

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

Image

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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞