pub unsafe extern "C" fn OH_ImageSourceNative_CreateFromFd(
fd: i32,
res: *mut *mut OH_ImageSourceNative,
) -> Image_ErrorCodeExpand description
@brief Creates the pointer to an OH_ImageSourceNative object based on a file descriptor.
@param fd File descriptor.
@param res Double pointer to the OH_ImageSourceNative object created at the C++ local layer.
@return {@link IMAGE_SUCCESS} if the execution is successful.
{@link IMAGE_BAD_PARAMETER} if fd is invalid.
@since 12