pub unsafe extern "C" fn OH_NativeBuffer_GetColorSpace(
buffer: *mut OH_NativeBuffer,
colorSpace: *mut OH_NativeBuffer_ColorSpace,
) -> i32Expand description
@brief Get the color space of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer @param buffer Indicates the pointer to a OH_NativeBuffer instance. @param colorSpace Indicates the color space of native buffer, see OH_NativeBuffer_ColorSpace. @return {@link NATIVE_ERROR_OK} 0 - Success. {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - buffer is NULL. {@link NATIVE_ERROR_BUFFER_STATE_INVALID} 41207000 - Incorrect colorSpace state. @since 12 @version 1.0