openharmony 鸿蒙 capi-image-nativemodule-oh-imagereceivernative

2026-08-25 浏览 (1)

OH_ImageReceiverNative

struct OH_ImageReceiverNative 

Overview

The OH_ImageReceiverNative struct describes the image receiver, which is encapsulated at the native layer. The struct cannot be directly operated. Instead, functions must be called to create and release the struct and operate the fields in the struct.

To create an OH_ImageReceiverNative object, call OH_ImageReceiverNative_Create.

To release an OH_ImageReceiverNative object, call OH_ImageReceiverNative_Release.

The table below describes the content and operation mode of the OH_ImageReceiverNative struct.

Field TypeField NameField DescriptionOperation FunctionFunction Description
uint64_tsurfaceIdSurface ID of the receiver.OH_ImageReceiverNative_GetReceivingSurfaceIdObtains the surface ID through an OH_ImageReceiverNative object.
OH_ImageNativeimageImage at the native layer.OH_ImageReceiverNative_ReadLatestImageObtains the latest image through an OH_ImageReceiverNative object.
OH_ImageNativeimageImage at the native layer.OH_ImageReceiverNative_ReadNextImageObtains the next image through an OH_ImageReceiverNative object.
OH_ImageReceiver_OnCallbackcallbackCallback function of the image receiver.OH_ImageReceiverNative_OnRegisters an OH_ImageReceiver_OnCallback.
OH_ImageReceiver_OnCallbackcallbackCallback function of the image receiver.OH_ImageReceiverNative_OffUnregisters an OH_ImageReceiver_OnCallback.
Image_SizesizeSize of an image receiver.OH_ImageReceiverNative_GetSizeObtains the size of an OH_ImageReceiverNative.
int32_tcapacityCapacity of an image receiver.OH_ImageReceiverNative_GetCapacityObtains the capacity of an OH_ImageReceiverNative.

Since: 12

Related module: Image_NativeModule

Header file: image_receiver_native.h

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

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