Skip to main content

OH_PixelmapNative_GetNativeBuffer

Function OH_PixelmapNative_GetNativeBuffer 

Source
pub unsafe extern "C" fn OH_PixelmapNative_GetNativeBuffer(
    pixelmap: *mut OH_PixelmapNative,
    nativeBuffer: *mut *mut OH_NativeBuffer,
) -> Image_ErrorCode
Expand 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