harmony 鸿蒙image_receiver_mdk.h

  • 2025-06-12
  • 浏览 (4)

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

Name Description
struct OhosImageReceiverInfo Defines the information about an image receiver.

Types

Name Description
typedef struct ImageReceiverNative_ ImageReceiverNative Defines 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

Name Description
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

0  赞