pub unsafe extern "C" fn OH_ImageSource_CreateIncremental(
env: napi_env,
source: *mut OhosImageSource,
ops: *mut OhosImageSourceOps,
res: *mut napi_value,
) -> i32Expand description
@brief Creates an incremental ImageSource object at the JavaScript native layer based on the specified {@link OhosImageSource} 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 src Indicates a pointer to the input resource of the image source. Only the buffer type is accepted. For details, see {@link OhosImageSource}. @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. returns {@link IRNdkErrCode} IMAGE_RESULT_SOURCE_DATA_INCOMPLETE - if image source data incomplete. returns {@link IRNdkErrCode} IMAGE_RESULT_SOURCE_DATA - if image source data error. returns {@link IRNdkErrCode} IMAGE_RESULT_GET_DATA_ABNORMAL - if image get data error. returns {@link IRNdkErrCode} IMAGE_RESULT_TOO_LARGE - if image data too large. returns {@link IRNdkErrCode} IMAGE_RESULT_DECODE_FAILED - if decode fail. returns {@link IRNdkErrCode} IMAGE_RESULT_DECODE_HEAD_ABNORMAL - if image decode head error. returns {@link IRNdkErrCode} IMAGE_RESULT_DECODE_EXIF_UNSUPPORT - if image decode exif unsupport. returns {@link IRNdkErrCode} IMAGE_RESULT_PROPERTY_NOT_EXIST - if image property not exist. returns {@link IRNdkErrCode} IMAGE_RESULT_FILE_DAMAGED - if file damaged. returns {@link IRNdkErrCode} IMAGE_RESULT_FILE_FD_ERROR - if file fd is bad. returns {@link IRNdkErrCode} IMAGE_RESULT_STREAM_SIZE_ERROR - if stream bad. returns {@link IRNdkErrCode} IMAGE_RESULT_SEEK_FAILED - if seek file failed. returns {@link IRNdkErrCode} IMAGE_RESULT_PEEK_FAILED - if peek file failed. returns {@link IRNdkErrCode} IMAGE_RESULT_FREAD_FAILED - if read file failed. @see {@link OhosImageSource}, {@link OhosImageSourceOps}, {@link OH_ImageSource_UpdateData}
@syscap SystemCapability.Multimedia.Image @since 10 @version 4.0 @deprecated since 11 @useinstead image#OH_ImageSource_CreateIncrementalFromData