pub unsafe extern "C" fn OH_PixelmapNative_GetNativeBuffer(
pixelmap: *mut OH_PixelmapNative,
nativeBuffer: *mut *mut OH_NativeBuffer,
) -> Image_ErrorCodeExpand description
@brief Get the native buffer from the PixelMap.
@param pixelmap The PixelMap to get the native buffer from. @param nativeBuffer The native buffer to retrieve. @return Returns {@link Image_ErrorCode} IMAGE_RESULT_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if invalid parameter, pixelmap or nativeBuffer is null. returns {@link Image_ErrorCode} IMAGE_DMA_NOT_EXIST - if DMA memory dose not exist. returns {@link Image_ErrorCode} IMAGE_DMA_OPERATION_FAILED - if operations related to DMA memory has failed. @see OH_PixelmapNative @since 12