• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OhosImageSource
2<!--Kit: Image Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @aulight02-->
5<!--SE: @liyang_bryan-->
6<!--TSE: @xchaosioda-->
7
8## Overview
9
10The OhosImageSource struct describes the input resource of an image source. Only one type of resource is accepted at a time. The image source is obtained by calling [OH_ImageSource_Create](capi-image-source-mdk-h.md#oh_imagesource_create).
11
12**Since**: 10
13
14**Deprecated from**: 11
15
16**Related module**: [Image](capi-image.md)
17
18**Header file**: [image_source_mdk.h](capi-image-source-mdk-h.md)
19
20## Summary
21
22### Member Variables
23
24| Name| Description|
25| -- | -- |
26| char* uri = nullptr | Pointer to the image source URI. Only a file URI or Base64 URI is accepted.|
27| size_t uriSize = 0 | Length of the image source URI.|
28| int32_t fd = - 1 | Descriptor of the image source.|
29| uint8_t* buffer = nullptr | Pointer to the image source buffer. Only a formatted packet buffer or Base64 buffer is accepted.|
30| size_t bufferSize = 0 | Size of the image source buffer.|
31