Skip to main content

OH_ImageNative_GetBufferSize

Function OH_ImageNative_GetBufferSize 

Source
pub unsafe extern "C" fn OH_ImageNative_GetBufferSize(
    image: *mut OH_ImageNative,
    componentType: u32,
    size: *mut usize,
) -> Image_ErrorCode
Expand description

@brief Obtains the size of the buffer corresponding to a component type in an {@link OH_ImageNative} object.

@param image Pointer to an {@link OH_ImageNative} object. @param componentType Component type. The value is obtained using the {@link OH_ImageNative_GetComponentTypes} API. @param size Pointer to the size of the buffer. @return {@linkImage_ErrorCode} IMAGE_SUCCESS - The operation is successful.
{@linkImage_ErrorCode} IMAGE_BAD_PARAMETER - A parameter is incorrect. @since 12