harmony 鸿蒙image_mdk.h

2023-10-30 浏览 (631)

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

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

Types

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

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