Skip to main content

OH_PixelMap_GetBytesNumberPerRow

Function OH_PixelMap_GetBytesNumberPerRow 

Source
pub unsafe extern "C" fn OH_PixelMap_GetBytesNumberPerRow(
    native: *const NativePixelMap,
    num: *mut i32,
) -> i32
Expand description

@brief Obtains the number of bytes per row of a NativePixelMap object.

@param native Pointer to a NativePixelMap object. @param num Pointer to the number of bytes per row. @return Result code defined in {@link IRNdkErrCode}:

  • {@link IMAGE_RESULT_SUCCESS}: The operation is successful.
  • {@link IMAGE_RESULT_BAD_PARAMETER}: A parameter is incorrect.
  • {@link IMAGE_RESULT_JNI_ENV_ABNORMAL}: The JNI environment is abnormal.
  • {@link IMAGE_RESULT_INVALID_PARAMETER}: A parameter is invalid.
  • {@link IMAGE_RESULT_DATA_ABNORMAL}: The image input data is incorrect.
  • {@link IMAGE_RESULT_DATA_UNSUPPORT}: The attribute is invalid or the image data is not supported.
@see GetBytesNumberPerRow @since 10 @version 1.0