Skip to main content

OH_NativeBuffer_FromNativeWindowBuffer

Function OH_NativeBuffer_FromNativeWindowBuffer 

Source
pub unsafe extern "C" fn OH_NativeBuffer_FromNativeWindowBuffer(
    nativeWindowBuffer: *mut OHNativeWindowBuffer,
    buffer: *mut *mut OH_NativeBuffer,
) -> i32
Available on crate feature api-12 only.
Expand description

Converts an OHNativeWindowBuffer instance to an OH_NativeBuffer.

This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeBuffer

§Arguments

  • nativeWindowBuffer - Indicates the pointer to a OHNativeWindowBuffer instance.

  • buffer - Indicates the pointer to a OH_NativeBuffer pointer.

§Returns

  • Returns an error code, 0 is success, otherwise, failed.

Available since API-level: 12

Version: 1.0