Skip to main content

OH_Image_Receiver_GetFormat

Function OH_Image_Receiver_GetFormat 

Source
pub unsafe extern "C" fn OH_Image_Receiver_GetFormat(
    native: *const ImageReceiverNative,
    format: *mut i32,
) -> i32
Expand description

@brief Obtains the format of the image receiver through an {@link ImageReceiverNative} object.

@param native Indicates the pointer to an {@link ImageReceiverNative} object at the native layer. @param format Indicates the pointer to the format obtained. @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_DATA_UNSUPPORT - if image type unsupported. @see ImageReceiverNative

@since 10 @version 2.0