Skip to main content

OH_ImageNative_GetRowStride

Function OH_ImageNative_GetRowStride 

Source
pub unsafe extern "C" fn OH_ImageNative_GetRowStride(
    image: *mut OH_ImageNative,
    componentType: u32,
    rowStride: *mut i32,
) -> Image_ErrorCode
Expand description

@brief Obtains the row stride 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 rowStride Pointer to the row stride obtained. @return {@linkImage_ErrorCode} IMAGE_SUCCESS - The operation is successful.
{@linkImage_ErrorCode} IMAGE_BAD_PARAMETER - A parameter is incorrect. @since 12