pub unsafe extern "C" fn OH_ImageSource_CreateIncrementalFromData(
env: napi_env,
data: *mut u8,
dataSize: usize,
ops: *mut OhosImageSourceOps,
res: *mut napi_value,
) -> i32Expand description
@brief Creates an incremental ImageSource object at the JavaScript native layer based on the specified image source data and {@link OhosImageSourceOps} structs. The image source data will be updated through {@link OH_ImageSource_UpdateData}.
@param env Indicates a pointer to the JNI environment. @param data Indicates a pointer to the image source data. Only a formatted packet data or Base64 data is accepted. @param dataSize Indicates the size of the image source data. @param ops Indicates a pointer to the options for creating the image source. For details, see {@link OhosImageSourceOps}. @param res Indicates a pointer to the ImageSource object created at the JavaScript native layer. @return Returns {@link IRNdkErrCode} IMAGE_RESULT_SUCCESS - if the operation is successful. returns {@link IRNdkErrCode} IMAGE_RESULT_BAD_PARAMETER - if bad parameter. returns {@link IRNdkErrCode} IMAGE_RESULT_JNI_ENV_ABNORMAL - if Abnormal JNI environment. returns {@link IRNdkErrCode} IMAGE_RESULT_INVALID_PARAMETER - if invalid parameter. @see {@link OhosImageSourceOps}, {@link OH_ImageSource_UpdateData}
@since 11 @version 4.1