pub unsafe extern "C" fn OH_NativeImage_ReleaseNativeWindowBuffer(
image: *mut OH_NativeImage,
nativeWindowBuffer: *mut NativeWindowBuffer,
fenceFd: i32,
) -> i32Available on crate features
native_image and api-12 only.Expand description
Release the OHNativeWindowBuffer to the buffer queue through an OH_NativeImage instance for reuse.
The fenceFd will be closed by system.
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. -
nativeWindowBuffer- Indicates the pointer to an OHNativeWindowBuffer instance. -
fenceFd- Indicates a file descriptor handle, which is used for timing synchronization.
§Returns
- [
NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - image, nativeWindowBuffer is NULL. [NATIVE_ERROR_BUFFER_STATE_INVALID] 41207000 - nativeWindowBuffer state invalid. [NATIVE_ERROR_BUFFER_NOT_IN_CACHE] 41210000 - nativeWindowBuffer not in cache.
Available since API-level: 12
Version: 1.0