Skip to main content

OH_ImageSource_GetDelayTime

Function OH_ImageSource_GetDelayTime 

Source
pub unsafe extern "C" fn OH_ImageSource_GetDelayTime(
    native: *const ImageSourceNative,
    res: *mut OhosImageSourceDelayTimeList,
) -> i32
Expand description

@brief Obtains the delay time list from some ImageSource objects (such as GIF image sources).

@param native Indicates a pointer to the {@link ImageSourceNative} object at the C++ native layer. @param res Indicates a pointer to the delay time list obtained. For details, see {@link OhosImageSourceDelayTimeList}. When the input delayTimeList is a null pointer and size is 0, the size of the delay time list is returned through size in res. To obtain the complete delay time list, a space greater than size is required. @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_GET_DATA_ABNORMAL - if image get data error. 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_CREATE_DECODER_FAILED - if create decoder failed. returns {@link IRNdkErrCode} IMAGE_RESULT_THIRDPART_SKIA_ERROR - if skia error. returns {@link IRNdkErrCode} IMAGE_RESULT_DATA_ABNORMAL - if image input data error. returns {@link IRNdkErrCode} IMAGE_RESULT_DECODE_ABNORMAL - if image decode error. returns {@link IRNdkErrCode} IMAGE_RESULT_DATA_UNSUPPORT - if image init error. returns {@link IRNdkErrCode} IMAGE_RESULT_UNKNOWN_FORMAT - if image unknown format. returns {@link IRNdkErrCode} IMAGE_RESULT_PLUGIN_REGISTER_FAILED - if register plugin fail. returns {@link IRNdkErrCode} IMAGE_RESULT_PLUGIN_CREATE_FAILED - if create plugin fail. returns {@link IRNdkErrCode} IMAGE_RESULT_INDEX_INVALID - if invalid index. 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. @see {@link ImageSourceNative}, {@link OhosImageSourceDelayTimeList}

@syscap SystemCapability.Multimedia.Image @since 10 @version 4.0