OhosImageComponent
Overview
The OHOS::Media::OhosImageComponent struct defines the information about an image component.
System capability: SystemCapability.Multimedia.Image
Since: 10
Related module: Image
Summary
Member Variables
Name | Description |
---|---|
byteBuffer | Buffer that stores the pixel data. |
size | Size of the pixel data in the memory. |
componentType | Type of the pixel data. |
rowStride | Row stride of the pixel data. |
pixelStride | Pixel stride of the pixel data. |
Member Variable Description
byteBuffer
uint8_t* OhosImageComponent::byteBuffer
Description
Buffer that stores the pixel data.
componentType
int32_t OhosImageComponent::componentType
Description
Type of the pixel data.
Value | Description |
---|---|
1 | OHOS_IMAGE_COMPONENT_FORMAT_YUV_Y, luminance information |
2 | OHOS_IMAGE_COMPONENT_FORMAT_YUV_U, chrominance component. |
3 | OHOS_IMAGE_COMPONENT_FORMAT_YUV_V, chrominance component. |
4 | OHOS_IMAGE_COMPONENT_FORMAT_JPEG, JPEG format. |
pixelStride
int32_t OhosImageComponent::pixelStride
Description
Pixel stride of the pixel data.
rowStride
int32_t OhosImageComponent::rowStride
Description
Row stride of the pixel data.
size
size_t OhosImageComponent::size
Description
Size of the pixel data in the memory.