harmony 鸿蒙image_receiver_mdk.h

2025-06-12 浏览 (1)

image_receiver_mdk.h

Overview

The image_receiver_mdk.h file declares the APIs used to obtain image data from the native layer.

Library: libimage_receiver_ndk.z.so

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

Since: 10

Related module: Image

Summary

Structs

NameDescription
struct OhosImageReceiverInfoDefines the information about an image receiver.

Types

NameDescription
typedef struct ImageReceiverNative_ ImageReceiverNativeDefines the data type name of the image receiver at the native layer.
typedef void(* OH_Image_Receiver_On_Callback) ()Defines the callbacks for the image interface at the native layer.

Functions

NameDescription
int32_t OH_Image_Receiver_CreateImageReceiver (napi_env env, struct OhosImageReceiverInfo info, napi_value *res)Creates an ImageReceiver object at the application layer.
ImageReceiverNative * OH_Image_Receiver_InitImageReceiverNative (napi_env env, napi_value source)Initializes an ImageReceiverNative object through an ImageReceiver object.
int32_t OH_Image_Receiver_GetReceivingSurfaceId (const ImageReceiverNative *native, char *id, size_t len)Obtains the receiver ID through an ImageReceiverNative object.
int32_t OH_Image_Receiver_ReadLatestImage (const ImageReceiverNative *native, napi_value *image)Obtains the latest image through an ImageReceiverNative object.
int32_t OH_Image_Receiver_ReadNextImage (const ImageReceiverNative *native, napi_value *image)Obtains the next image through an ImageReceiverNative object.
int32_t OH_Image_Receiver_On (const ImageReceiverNative *native, OH_Image_Receiver_On_Callback callback)Registers an OH_Image_Receiver_On_Callback callback. This callback is triggered whenever a new image is received.
int32_t OH_Image_Receiver_GetSize (const ImageReceiverNative *native, struct OhosImageSize *size)Obtains the size of the image receiver through an ImageReceiverNative object.
int32_t OH_Image_Receiver_GetCapacity (const ImageReceiverNative *native, int32_t *capacity)Obtains the capacity of the image receiver through an ImageReceiverNative object.
int32_t OH_Image_Receiver_GetFormat (const ImageReceiverNative *native, int32_t *format)Obtains the format of the image receiver through an ImageReceiverNative object.
int32_t OH_Image_Receiver_Release (ImageReceiverNative *native)Releases an ImageReceiverNative 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/mSeEgT