pub unsafe extern "C" fn OH_NativeImage_UpdateSurfaceImage(
image: *mut OH_NativeImage,
) -> i32Available on crate feature
native_image only.Expand description
Update the related Opengl ES texture with the OH_NativeImage acquired buffer.
This interface needs to be called in the Opengl ES context thread.
This interface needs to be called after receiving the OH_OnFrameAvailableListener callback.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeImage
§Arguments
image- Indicates the pointer to a OH_NativeImage instance.
§Returns
- Returns an error code, 0 is success, otherwise, failed.
Available since API-level: 9
Version: 1.0