openharmony 鸿蒙 capi-image-ohosimagecomponent

2026-08-25 浏览 (1)

OhosImageComponent

struct OhosImageComponent {...}

Overview

The struct describes the information about an image component.

Since: 10

Related module: Image

Header file: image_mdk.h

Summary

Member Variables

NameDescription
uint8_t* byteBufferPointer to the buffer that stores the pixel data.
size_t sizeSize of the pixel data in the memory.
int32_t componentTypeType of the pixel data.
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.
int32_t rowStrideRow 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++).
int32_t pixelStridePixel stride of the pixel data.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/H2eezdf7