Skip to main content

OH_ImageSourceNative_CreateFromFd

Function OH_ImageSourceNative_CreateFromFd 

Source
pub unsafe extern "C" fn OH_ImageSourceNative_CreateFromFd(
    fd: i32,
    res: *mut *mut OH_ImageSourceNative,
) -> Image_ErrorCode
Expand description

@brief Creates an void pointer

@param fd Indicates the image source file descriptor. @param res Indicates a void pointer to the ImageSource object created at the C++ native layer. @return Returns one of the following result codes: {@link IMAGE_SUCCESS} if the execution is successful. {@link IMAGE_BAD_PARAMETER} if fd is invalid. @since 12