• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OhosImageComponent
2<!--Kit: Image Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @aulight02-->
5<!--SE: @liyang_bryan-->
6<!--TSE: @xchaosioda-->
7
8## Overview
9
10The OhosImageComponent struct describes the information about an image component.
11
12**Since**: 10
13
14**Related module**: [Image](capi-image.md)
15
16**Header file**: [image_mdk.h](capi-image-mdk-h.md)
17
18## Summary
19
20### Member Variables
21
22| Name| Description|
23| -- | -- |
24| uint8_t* byteBuffer | Pointer to the buffer that stores the pixel data.|
25| size_t size | Size of the pixel data in the memory.|
26| int32_t componentType | Type of the pixel data.<br>**1**: OHOS_IMAGE_COMPONENT_FORMAT_YUV_Y, luminance information<br>**2**: OHOS_IMAGE_COMPONENT_FORMAT_YUV_U, chrominance component.<br>**3**: OHOS_IMAGE_COMPONENT_FORMAT_YUV_V, chrominance component.<br>**4**: OHOS_IMAGE_COMPONENT_FORMAT_JPEG, JPEG format.|
27| int32_t rowStride | Row stride of the pixel data. Camera preview stream data must be read based on the stride. For details, see [Secondary Processing of Preview Streams (C/C++)](../../media/camera/native-camera-preview-imageReceiver.md).|
28| int32_t pixelStride | Pixel stride of the pixel data.|
29