harmony 鸿蒙OhosImageComponent

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

OhosImageComponent

概述

定义图像组成信息。

起始版本: 10

相关模块: Image

所在头文件: image_mdk.h

汇总

成员变量

|名称|描述| |–|–| |uint8_t* byteBuffer|像素数据地址。| |size_t size|内存中的像素数据大小。| |int32_t componentType|像素数据类型。
1:OHOS_IMAGE_COMPONENT_FORMAT_YUV_Y 亮度信息。
2:OHOS_IMAGE_COMPONENT_FORMAT_YUV_U 色度信息。
3:OHOS_IMAGE_COMPONENT_FORMAT_YUV_V 色差值信息。
4:OHOS_IMAGE_COMPONENT_FORMAT_JPEG Jpeg格式。| |int32_t rowStride|像素数据行宽。读取相机预览流数据时,需要考虑按stride进行读取,具体用法见C/C++预览流二次处理示例。| |int32_t pixelStride|像素数据的像素大小。|

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit(图片处理服务)

harmony 鸿蒙Interface (AuxiliaryPicture)

harmony 鸿蒙Interface (Image)

harmony 鸿蒙Interface (ImageCreator)

harmony 鸿蒙Interface (ImagePacker)

harmony 鸿蒙Interface (ImageReceiver)

harmony 鸿蒙Interface (ImageSource)

harmony 鸿蒙Interface (Metadata)

harmony 鸿蒙Interface (Picture)

harmony 鸿蒙Interface (PixelMap)

0  赞