harmony 鸿蒙buffer_common.h

2025-06-12 浏览 (1)

buffer_common.h

Overview

The buffer_common.h file declares the common types used in the NativeBuffer module.

Certain type definitions have been relocated from native_buffer.h to this header file for a more cohesive presentation. These types were available prior to API version 12 and can be used seamlessly across all versions.

Library: libnative_buffer.so

System capability: SystemCapability.Graphic.Graphic2D.NativeBuffer

Since: 12

Related module: OH_NativeBuffer

Summary

Structs

NameDescription
struct OH_NativeBuffer_ColorXYDescribes the X and Y coordinates of the primary color.
struct OH_NativeBuffer_Smpte2086Describes the SMPTE ST 2086 static metadata.
struct OH_NativeBuffer_Cta861Describes the CTA-861.3 static metadata.
struct OH_NativeBuffer_StaticMetadataDescribes the HDR static metadata.

Types

NameDescription
typedef enum OH_NativeBuffer_ColorSpace OH_NativeBuffer_ColorSpaceDefines an enum for the color spaces of an OH_NativeBuffer instance. It is relocated from native_buffer.h to this header file for a more cohesive presentation.
typedef enum OH_NativeBuffer_MetadataType OH_NativeBuffer_MetadataTypeDefines an enum for the OH_NativeBuffer image standards.
typedef struct OH_NativeBuffer_ColorXY OH_NativeBuffer_ColorXYDefines a struct for the X and Y coordinates of the primary color.
typedef struct OH_NativeBuffer_Smpte2086 OH_NativeBuffer_Smpte2086Defines a struct for the SMPTE ST 2086 static metadata.
typedef struct OH_NativeBuffer_Cta861 OH_NativeBuffer_Cta861Defines a struct for the CTA-861.3 static metadata.
typedef struct OH_NativeBuffer_StaticMetadata OH_NativeBuffer_StaticMetadataDefines a struct for the HDR static metadata.
typedef enum OH_NativeBuffer_MetadataKey OH_NativeBuffer_MetadataKeyDefines an enum for the keys that specify the HDR metadata of an OH_NativeBuffer instance.

Enums

NameDescription
OH_NativeBuffer_ColorSpace {
OH_COLORSPACE_NONE, OH_COLORSPACE_BT601_EBU_FULL, OH_COLORSPACE_BT601_SMPTE_C_FULL, OH_COLORSPACE_BT709_FULL,
OH_COLORSPACE_BT2020_HLG_FULL, OH_COLORSPACE_BT2020_PQ_FULL, OH_COLORSPACE_BT601_EBU_LIMIT, OH_COLORSPACE_BT601_SMPTE_C_LIMIT,
OH_COLORSPACE_BT709_LIMIT, OH_COLORSPACE_BT2020_HLG_LIMIT, OH_COLORSPACE_BT2020_PQ_LIMIT, OH_COLORSPACE_SRGB_FULL,
OH_COLORSPACE_P3_FULL, OH_COLORSPACE_P3_HLG_FULL, OH_COLORSPACE_P3_PQ_FULL, OH_COLORSPACE_ADOBERGB_FULL,
OH_COLORSPACE_SRGB_LIMIT, OH_COLORSPACE_P3_LIMIT, OH_COLORSPACE_P3_HLG_LIMIT, OH_COLORSPACE_P3_PQ_LIMIT,
OH_COLORSPACE_ADOBERGB_LIMIT, OH_COLORSPACE_LINEAR_SRGB, OH_COLORSPACE_LINEAR_BT709, OH_COLORSPACE_LINEAR_P3,
OH_COLORSPACE_LINEAR_BT2020, OH_COLORSPACE_DISPLAY_SRGB, OH_COLORSPACE_DISPLAY_P3_SRGB, OH_COLORSPACE_DISPLAY_P3_HLG,
OH_COLORSPACE_DISPLAY_P3_PQ, OH_COLORSPACE_DISPLAY_BT2020_SRGB, OH_COLORSPACE_DISPLAY_BT2020_HLG, OH_COLORSPACE_DISPLAY_BT2020_PQ
}
Enumerates the color spaces of an OH_NativeBuffer instance. It is relocated from native_buffer.h to this header file for a more cohesive presentation.
OH_NativeBuffer_MetadataType { OH_VIDEO_HDR_HLG, OH_VIDEO_HDR_HDR10, OH_VIDEO_HDR_VIVID, OH_VIDEO_NONE = -1 }Enumerates the OH_NativeBuffer image standards.
OH_NativeBuffer_MetadataKey { OH_HDR_METADATA_TYPE, OH_HDR_STATIC_METADATA, OH_HDR_DYNAMIC_METADATA }Enumerates the keys that specify the HDR metadata of an OH_NativeBuffer instance.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

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