pub unsafe extern "C" fn OH_PixelmapNative_SetMetadata(
pixelmap: *mut OH_PixelmapNative,
key: OH_Pixelmap_HdrMetadataKey,
value: *mut OH_Pixelmap_HdrMetadataValue,
) -> Image_ErrorCodeExpand description
@brief Set metadata.
@param pixelmap The Pixelmap pointer to be operated. @param key Type of metadata. @param value Value of metadata. @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if invalid parameter, key and value are incorrect. returns {@link Image_ErrorCode} IMAGE_DMA_NOT_EXIST - if DMA memory does not exist. returns {@link Image_ErrorCode} IMAGE_COPY_FAILED - if memory copy failed. @see OH_PixelmapNative @since 12