harmony 鸿蒙OhosImageComponent

  • 2025-06-12
  • 浏览 (5)

OhosImageComponent

Overview

The OHOS::Media::OhosImageComponent struct describes the information about an image component.

System capability: SystemCapability.Multimedia.Image

Since: 10

Related module: Image

Header file: image_mdk.h

Summary

Member Variables

Name Description
uint8_t * byteBuffer Pointer to the buffer that stores the pixel data.
size_t size Size of the pixel data in the memory.
int32_t componentType Type of the pixel data.
int32_t rowStride Row stride of the pixel data.
int32_t pixelStride Pixel stride of the pixel data.

Member Variable Description

byteBuffer

uint8_t* OhosImageComponent::byteBuffer

Description

Pointer to the 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. Camera preview stream data must be read based on the stride. For details, see Secondary Processing of Preview Streams (C/C++).

size

size_t OhosImageComponent::size

Description

Size of the pixel data in the memory.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit

harmony 鸿蒙_image___native_module

harmony 鸿蒙Image_Region

harmony 鸿蒙Image_Size

harmony 鸿蒙Image_String

harmony 鸿蒙ImageEffect

harmony 鸿蒙ImageEffect_Any

harmony 鸿蒙ImageEffect_FilterDelegate

harmony 鸿蒙ImageEffect_FilterNames

harmony 鸿蒙ImageEffect_Region

0  赞