harmony 鸿蒙native_color_space_manager.h

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

native_color_space_manager.h

Overview

The native_color_space_manager.h file declares the functions for creating and using a color space.

File to include: <native_color_space_manager/native_color_space_manager.h>

Library: libnative_color_space_manager.so

System capability: SystemCapability.Graphic.Graphic2D.ColorManager.Core

Since: 13

Related module: NativeColorSpaceManager

Summary

Structs

Name Description
struct ColorSpacePrimaries Describes the color space primaries.
struct WhitePointArray Describes a white point array. Each white point indicates the coordinates of white in the active color space.

Types

Name Description
typedef struct OH_NativeColorSpaceManager OH_NativeColorSpaceManager Provides the declaration of an OH_NativeColorSpaceManager struct.
typedef enum ColorSpaceName ColorSpaceName Defines an enum for the color space names.
typedef struct ColorSpacePrimaries ColorSpacePrimaries Provides the declaration of a ColorSpacePrimaries struct.
typedef struct WhitePointArray WhitePointArray Defines a struct for a white point array. Each white point indicates the coordinates of white in the active color space.

Enums

Name Description
ColorSpaceName {
NONE = 0, ADOBE_RGB = 1, DCI_P3 = 2, DISPLAY_P3 = 3,
SRGB = 4, BT709 = 6, BT601_EBU = 7, BT601_SMPTE_C = 8,
BT2020_HLG = 9, BT2020_PQ = 10, P3_HLG = 11, P3_PQ = 12,
ADOBE_RGB_LIMIT = 13, DISPLAY_P3_LIMIT = 14, SRGB_LIMIT = 15, BT709_LIMIT = 16,
BT601_EBU_LIMIT = 17, BT601_SMPTE_C_LIMIT = 18, BT2020_HLG_LIMIT = 19, BT2020_PQ_LIMIT = 20,
P3_HLG_LIMIT = 21, P3_PQ_LIMIT = 22, LINEAR_P3 = 23, LINEAR_SRGB = 24,
LINEAR_BT709 = LINEAR_SRGB, LINEAR_BT2020 = 25, DISPLAY_SRGB = SRGB, DISPLAY_P3_SRGB = DISPLAY_P3,
DISPLAY_P3_HLG = P3_HLG, DISPLAY_P3_PQ = P3_PQ, CUSTOM = 5
}
Enumerates the color space names.

Functions

Name Description
OH_NativeColorSpaceManager * OH_NativeColorSpaceManager_CreateFromName (ColorSpaceName colorSpaceName) Creates an OH_NativeColorSpaceManager instance based on a color space name. A new OH_NativeColorSpaceManager instance is created each time this function is called.
OH_NativeColorSpaceManager * OH_NativeColorSpaceManager_CreateFromPrimariesAndGamma (ColorSpacePrimaries primaries, float gamma) Creates an OH_NativeColorSpaceManager instance based on the color primaries and gamma value. A new OH_NativeColorSpaceManager instance is created each time this function is called.
void OH_NativeColorSpaceManager_Destroy (OH_NativeColorSpaceManager *nativeColorSpaceManager) Destroys an OH_NativeColorSpaceManager instance.
int OH_NativeColorSpaceManager_GetColorSpaceName (OH_NativeColorSpaceManager *nativeColorSpaceManager) Obtains the color space name.
WhitePointArrayOH_NativeColorSpaceManager_GetWhitePoint (OH_NativeColorSpaceManager *nativeColorSpaceManager) Obtains the white points.
float OH_NativeColorSpaceManager_GetGamma (OH_NativeColorSpaceManager *nativeColorSpaceManager) Obtains the gamma value.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

0  赞