ADL (AMD Display Library) Public APIs  Version 17.0
Macros
Driver Supported Gamut Space

Macros

#define ADL_APPLY_DEGAMMA   (1 << 5)
 Used for struct ADLRegamma. If the gamma ramp flag is used then the driver could apply de gamma corretion to the supplied curve and this depends on this flag. More...
 
#define ADL_CUSTOM_GAMUT   (1 << 1)
 
#define ADL_CUSTOM_WHITE_POINT   (1 << 0)
 The flags are used to describe the source of gamut and how read information from struct ADLGamutData. More...
 
#define ADL_EDID_REGAMMA_COEFFICIENTS   (1 << 0)
 describes whether the coefficients are from EDID or custom user values. More...
 
#define ADL_EDID_REGAMMA_PREDEFINED_36   (1 << 6)
 specifies that 3.6 gamma should be applied More...
 
#define ADL_EDID_REGAMMA_PREDEFINED_APPCTRL   (1 << 8)
 specifies that regamma should be disabled, and application controls regamma content (of the whole screen) More...
 
#define ADL_EDID_REGAMMA_PREDEFINED_BT709   (1 << 7)
 specifies that BT709 gama should be applied More...
 
#define ADL_EDID_REGAMMA_PREDEFINED_PQ   (1 << 2)
 specifies that PQ gamma curve should be applied More...
 
#define ADL_EDID_REGAMMA_PREDEFINED_PQ_2084_INTERIM   (1 << 3)
 specifies that PQ gamma curve should be applied, lower max nits More...
 
#define ADL_EDID_REGAMMA_PREDEFINED_SRGB   (1 << 1)
 specifies that standard SRGB gamma should be applied More...
 
#define ADL_GAMUT_GAMUT_VIDEO_CONTENT   (1 << 1)
 
#define ADL_GAMUT_REFERENCE_SOURCE   (1 << 0)
 The flags desribes that gamut is related to source or to destination and to overlay or to graphics. More...
 
#define ADL_GAMUT_REMAP_ONLY   (1 << 2)
 
#define ADL_GAMUT_SPACE_ADOBE_RGB   (1 << 2)
 
#define ADL_GAMUT_SPACE_APPCTRL   (1 << 6)
 
#define ADL_GAMUT_SPACE_CCIR_2020   (1 << 5)
 
#define ADL_GAMUT_SPACE_CCIR_601   (1 << 1)
 
#define ADL_GAMUT_SPACE_CCIR_709   (1 << 0)
 
#define ADL_GAMUT_SPACE_CIE_RGB   (1 << 3)
 
#define ADL_GAMUT_SPACE_CUSTOM   (1 << 4)
 
#define ADL_GAMUT_WHITEPOINT_DIVIDER   10000
 
#define ADL_REGAMMA_COEFFICIENT_A0_DIVIDER   10000000
 gamma a0 coefficient uses the following divider: More...
 
#define ADL_REGAMMA_COEFFICIENT_A1A2A3_DIVIDER   1000
 gamma a1 ,a2,a3 coefficients use the following divider: More...
 
#define ADL_USE_GAMMA_RAMP   (1 << 4)
 Used for struct ADLRegamma. Feature if set use gamma ramp, if missing use regamma coefficents. More...
 
#define ADL_WHITE_POINT_5000K   (1 << 0)
 Predefine white point values are structed similar to gamut . More...
 
#define ADL_WHITE_POINT_6500K   (1 << 1)
 
#define ADL_WHITE_POINT_7500K   (1 << 2)
 
#define ADL_WHITE_POINT_9300K   (1 << 3)
 
#define ADL_WHITE_POINT_CUSTOM   (1 << 4)
 

Detailed Description

Macro Definition Documentation

◆ ADL_APPLY_DEGAMMA

#define ADL_APPLY_DEGAMMA   (1 << 5)

Used for struct ADLRegamma. If the gamma ramp flag is used then the driver could apply de gamma corretion to the supplied curve and this depends on this flag.

◆ ADL_CUSTOM_GAMUT

#define ADL_CUSTOM_GAMUT   (1 << 1)

◆ ADL_CUSTOM_WHITE_POINT

#define ADL_CUSTOM_WHITE_POINT   (1 << 0)

The flags are used to describe the source of gamut and how read information from struct ADLGamutData.

◆ ADL_EDID_REGAMMA_COEFFICIENTS

#define ADL_EDID_REGAMMA_COEFFICIENTS   (1 << 0)

describes whether the coefficients are from EDID or custom user values.

◆ ADL_EDID_REGAMMA_PREDEFINED_36

#define ADL_EDID_REGAMMA_PREDEFINED_36   (1 << 6)

specifies that 3.6 gamma should be applied

◆ ADL_EDID_REGAMMA_PREDEFINED_APPCTRL

#define ADL_EDID_REGAMMA_PREDEFINED_APPCTRL   (1 << 8)

specifies that regamma should be disabled, and application controls regamma content (of the whole screen)

◆ ADL_EDID_REGAMMA_PREDEFINED_BT709

#define ADL_EDID_REGAMMA_PREDEFINED_BT709   (1 << 7)

specifies that BT709 gama should be applied

◆ ADL_EDID_REGAMMA_PREDEFINED_PQ

#define ADL_EDID_REGAMMA_PREDEFINED_PQ   (1 << 2)

specifies that PQ gamma curve should be applied

◆ ADL_EDID_REGAMMA_PREDEFINED_PQ_2084_INTERIM

#define ADL_EDID_REGAMMA_PREDEFINED_PQ_2084_INTERIM   (1 << 3)

specifies that PQ gamma curve should be applied, lower max nits

◆ ADL_EDID_REGAMMA_PREDEFINED_SRGB

#define ADL_EDID_REGAMMA_PREDEFINED_SRGB   (1 << 1)

specifies that standard SRGB gamma should be applied

◆ ADL_GAMUT_GAMUT_VIDEO_CONTENT

#define ADL_GAMUT_GAMUT_VIDEO_CONTENT   (1 << 1)

◆ ADL_GAMUT_REFERENCE_SOURCE

#define ADL_GAMUT_REFERENCE_SOURCE   (1 << 0)

The flags desribes that gamut is related to source or to destination and to overlay or to graphics.

◆ ADL_GAMUT_REMAP_ONLY

#define ADL_GAMUT_REMAP_ONLY   (1 << 2)

◆ ADL_GAMUT_SPACE_ADOBE_RGB

#define ADL_GAMUT_SPACE_ADOBE_RGB   (1 << 2)

◆ ADL_GAMUT_SPACE_APPCTRL

#define ADL_GAMUT_SPACE_APPCTRL   (1 << 6)

◆ ADL_GAMUT_SPACE_CCIR_2020

#define ADL_GAMUT_SPACE_CCIR_2020   (1 << 5)

◆ ADL_GAMUT_SPACE_CCIR_601

#define ADL_GAMUT_SPACE_CCIR_601   (1 << 1)

◆ ADL_GAMUT_SPACE_CCIR_709

#define ADL_GAMUT_SPACE_CCIR_709   (1 << 0)

The define means the predefined gamut values . Driver uses to find entry in the table and apply appropriate gamut space.

◆ ADL_GAMUT_SPACE_CIE_RGB

#define ADL_GAMUT_SPACE_CIE_RGB   (1 << 3)

◆ ADL_GAMUT_SPACE_CUSTOM

#define ADL_GAMUT_SPACE_CUSTOM   (1 << 4)

◆ ADL_GAMUT_WHITEPOINT_DIVIDER

#define ADL_GAMUT_WHITEPOINT_DIVIDER   10000

gamut and white point coordinates are from 0.0 -1.0 and divider is used to find the real value . X float = X int /divider

◆ ADL_REGAMMA_COEFFICIENT_A0_DIVIDER

#define ADL_REGAMMA_COEFFICIENT_A0_DIVIDER   10000000

gamma a0 coefficient uses the following divider:

◆ ADL_REGAMMA_COEFFICIENT_A1A2A3_DIVIDER

#define ADL_REGAMMA_COEFFICIENT_A1A2A3_DIVIDER   1000

gamma a1 ,a2,a3 coefficients use the following divider:

◆ ADL_USE_GAMMA_RAMP

#define ADL_USE_GAMMA_RAMP   (1 << 4)

Used for struct ADLRegamma. Feature if set use gamma ramp, if missing use regamma coefficents.

◆ ADL_WHITE_POINT_5000K

#define ADL_WHITE_POINT_5000K   (1 << 0)

Predefine white point values are structed similar to gamut .

◆ ADL_WHITE_POINT_6500K

#define ADL_WHITE_POINT_6500K   (1 << 1)

◆ ADL_WHITE_POINT_7500K

#define ADL_WHITE_POINT_7500K   (1 << 2)

◆ ADL_WHITE_POINT_9300K

#define ADL_WHITE_POINT_9300K   (1 << 3)

◆ ADL_WHITE_POINT_CUSTOM

#define ADL_WHITE_POINT_CUSTOM   (1 << 4)

Copyright © 2009-2020 Advanced Micro Devices, Inc. All rights reserved.