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 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