Skip to main content

OH_ImageSource_GetSupportedFormats

Function OH_ImageSource_GetSupportedFormats 

Source
pub unsafe extern "C" fn OH_ImageSource_GetSupportedFormats(
    res: *mut OhosImageSourceSupportedFormatList,
) -> i32
Expand description

@brief Obtains all supported decoding formats.

@param res Indicates a pointer to the OhosImageSourceSupportedFormatList struct. When the input supportedFormatList is a null pointer and size is 0, the size of the supported formats is returned through size in res. To obtain all formats, a space larger than size is required. In addition, sufficient space must be reserved for each format supported. @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_DECODE_FAILED - if decode fail. returns {@link IRNdkErrCode} IMAGE_RESULT_CHECK_FORMAT_ERROR - if decode fail. @see {@link OhosImageSourceSupportedFormatList}, {@link OhosImageSourceSupportedFormat}

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