Skip to main content

OH_ImageReceiverNative_ReadLatestImage

Function OH_ImageReceiverNative_ReadLatestImage 

Source
pub unsafe extern "C" fn OH_ImageReceiverNative_ReadLatestImage(
    receiver: *mut OH_ImageReceiverNative,
    image: *mut *mut OH_ImageNative,
) -> Image_ErrorCode
Expand description

@brief Obtains the latest image through an {@link OH_ImageReceiverNative} object.

@param receiver Indicates the pointer to an {@link OH_ImageReceiverNative} object. @param image Indicates the pointer to an OH_ImageNative object at the application layer. @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if bad parameter. returns {@link Image_ErrorCode} IMAGE_UNKNOWN_ERROR - inner unknown error. returns {@link Image_ErrorCode} IMAGE_ALLOC_FAILED - if alloc failed. @see OH_ImageReceiverNative, OH_ImageNative @since 12