Skip to main content

OH_ImageNative_GetByteBuffer

Function OH_ImageNative_GetByteBuffer 

Source
pub unsafe extern "C" fn OH_ImageNative_GetByteBuffer(
    image: *mut OH_ImageNative,
    componentType: u32,
    nativeBuffer: *mut *mut OH_NativeBuffer,
) -> Image_ErrorCode
Expand description

@brief Get byte buffer from an {@link OH_ImageNative} object by the component type.

@param image Indicates the pointer to an {@link OH_ImageNative} object. @param componentType Indicates the type of component. @param nativeBuffer Indicates the pointer to the component buffer obtained. @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if bad parameter. @since 12