Blender V4.3
DNA_color_types.h File Reference
#include "DNA_defs.h"
#include "DNA_vec_types.h"

Go to the source code of this file.

Classes

struct  CurveMapPoint
 
struct  CurveMap
 
struct  CurveMapping
 
struct  Histogram
 
struct  Scopes
 
struct  ColorManagedViewSettings
 
struct  ColorManagedDisplaySettings
 
struct  ColorManagedColorspaceSettings
 

Macros

#define CM_RESOL   32
 
#define CM_TABLE   256
 
#define CM_TABLEDIV   (1.0f / 256.0f)
 
#define CM_TOT   4
 
#define GPU_SKY_WIDTH   512
 
#define GPU_SKY_HEIGHT   128
 

Typedefs

typedef struct CurveMapPoint CurveMapPoint
 
typedef struct CurveMap CurveMap
 
typedef struct CurveMapping CurveMapping
 
typedef enum eCurveMappingFlags eCurveMappingFlags
 
typedef enum eCurveMappingPreset eCurveMappingPreset
 
typedef enum eCurveMappingTone eCurveMappingTone
 
typedef struct Histogram Histogram
 
typedef struct Scopes Scopes
 
typedef struct ColorManagedViewSettings ColorManagedViewSettings
 
typedef struct ColorManagedDisplaySettings ColorManagedDisplaySettings
 
typedef struct ColorManagedColorspaceSettings ColorManagedColorspaceSettings
 

Enumerations

enum  { CUMA_SELECT = (1 << 0) , CUMA_HANDLE_VECTOR = (1 << 1) , CUMA_HANDLE_AUTO_ANIM = (1 << 2) , CUMA_REMOVE = (1 << 3) }
 
enum  eCurveMappingFlags {
  CUMA_DO_CLIP = (1 << 0) , CUMA_PREMULLED = (1 << 1) , CUMA_DRAW_CFRA = (1 << 2) , CUMA_DRAW_SAMPLE = (1 << 3) ,
  CUMA_EXTEND_EXTRAPOLATE = (1 << 4) , CUMA_USE_WRAPPING = (1 << 5)
}
 
enum  eCurveMappingPreset {
  CURVE_PRESET_LINE = 0 , CURVE_PRESET_SHARP = 1 , CURVE_PRESET_SMOOTH = 2 , CURVE_PRESET_MAX = 3 ,
  CURVE_PRESET_MID8 = 4 , CURVE_PRESET_ROUND = 5 , CURVE_PRESET_ROOT = 6 , CURVE_PRESET_GAUSS = 7 ,
  CURVE_PRESET_BELL = 8 , CURVE_PRESET_CONSTANT_MEDIAN = 9
}
 
enum  eCurveMappingTone { CURVE_TONE_STANDARD = 0 , CURVE_TONE_FILMLIKE = 2 }
 
enum  {
  HISTO_MODE_LUMA = 0 , HISTO_MODE_RGB = 1 , HISTO_MODE_R = 2 , HISTO_MODE_G = 3 ,
  HISTO_MODE_B = 4 , HISTO_MODE_ALPHA = 5
}
 
enum  { HISTO_FLAG_LINE = (1 << 0) , HISTO_FLAG_SAMPLELINE = (1 << 1) }
 
enum  {
  SCOPES_WAVEFRM_LUMA = 0 , SCOPES_WAVEFRM_RGB_PARADE = 1 , SCOPES_WAVEFRM_YCC_601 = 2 , SCOPES_WAVEFRM_YCC_709 = 3 ,
  SCOPES_WAVEFRM_YCC_JPEG = 4 , SCOPES_WAVEFRM_RGB = 5
}
 
enum  { SCOPES_VECSCOPE_RGB = 0 , SCOPES_VECSCOPE_LUMA = 1 }
 
enum  { COLORMANAGE_VIEW_USE_CURVES = (1 << 0) , COLORMANAGE_VIEW_USE_HDR = (1 << 1) , COLORMANAGE_VIEW_USE_WHITE_BALANCE = (1 << 2) }
 

Macro Definition Documentation

◆ CM_RESOL

#define CM_RESOL   32

Definition at line 15 of file DNA_color_types.h.

Referenced by curve_eval_bezier_point(), and curvemap_make_table().

◆ CM_TABLE

◆ CM_TABLEDIV

#define CM_TABLEDIV   (1.0f / 256.0f)

Definition at line 17 of file DNA_color_types.h.

Referenced by curvemap_make_table().

◆ CM_TOT

◆ GPU_SKY_HEIGHT

◆ GPU_SKY_WIDTH

Typedef Documentation

◆ ColorManagedColorspaceSettings

typedef struct ColorManagedColorspaceSettings ColorManagedColorspaceSettings

◆ ColorManagedDisplaySettings

typedef struct ColorManagedDisplaySettings ColorManagedDisplaySettings

◆ ColorManagedViewSettings

typedef struct ColorManagedViewSettings ColorManagedViewSettings

◆ CurveMap

typedef struct CurveMap CurveMap

◆ CurveMapping

typedef struct CurveMapping CurveMapping

◆ CurveMapPoint

typedef struct CurveMapPoint CurveMapPoint

◆ eCurveMappingFlags

◆ eCurveMappingPreset

◆ eCurveMappingTone

◆ Histogram

typedef struct Histogram Histogram

◆ Scopes

typedef struct Scopes Scopes

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

CurveMapPoint.flag

Enumerator
CUMA_SELECT 
CUMA_HANDLE_VECTOR 
CUMA_HANDLE_AUTO_ANIM 
CUMA_REMOVE 

Temporary tag for point deletion.

Definition at line 31 of file DNA_color_types.h.

◆ anonymous enum

anonymous enum

Histogram.mode

Enumerator
HISTO_MODE_LUMA 
HISTO_MODE_RGB 
HISTO_MODE_R 
HISTO_MODE_G 
HISTO_MODE_B 
HISTO_MODE_ALPHA 

Definition at line 119 of file DNA_color_types.h.

◆ anonymous enum

anonymous enum
Enumerator
HISTO_FLAG_LINE 
HISTO_FLAG_SAMPLELINE 

Definition at line 128 of file DNA_color_types.h.

◆ anonymous enum

anonymous enum

Scopes.wavefrm_mode

Enumerator
SCOPES_WAVEFRM_LUMA 
SCOPES_WAVEFRM_RGB_PARADE 
SCOPES_WAVEFRM_YCC_601 
SCOPES_WAVEFRM_YCC_709 
SCOPES_WAVEFRM_YCC_JPEG 
SCOPES_WAVEFRM_RGB 

Definition at line 173 of file DNA_color_types.h.

◆ anonymous enum

anonymous enum

Scopes.vecscope_mode

Enumerator
SCOPES_VECSCOPE_RGB 
SCOPES_VECSCOPE_LUMA 

Definition at line 183 of file DNA_color_types.h.

◆ anonymous enum

anonymous enum

ColorManagedViewSettings.flag

Enumerator
COLORMANAGE_VIEW_USE_CURVES 
COLORMANAGE_VIEW_USE_HDR 
COLORMANAGE_VIEW_USE_WHITE_BALANCE 

Definition at line 218 of file DNA_color_types.h.

◆ eCurveMappingFlags

CurveMapping.flag

Enumerator
CUMA_DO_CLIP 
CUMA_PREMULLED 
CUMA_DRAW_CFRA 
CUMA_DRAW_SAMPLE 
CUMA_EXTEND_EXTRAPOLATE 

The curve is extended by extrapolation. When not set the curve is extended horizontally.

CUMA_USE_WRAPPING 

Definition at line 87 of file DNA_color_types.h.

◆ eCurveMappingPreset

CurveMapping.preset

Enumerator
CURVE_PRESET_LINE 
CURVE_PRESET_SHARP 
CURVE_PRESET_SMOOTH 
CURVE_PRESET_MAX 
CURVE_PRESET_MID8 
CURVE_PRESET_ROUND 
CURVE_PRESET_ROOT 
CURVE_PRESET_GAUSS 
CURVE_PRESET_BELL 
CURVE_PRESET_CONSTANT_MEDIAN 

Definition at line 99 of file DNA_color_types.h.

◆ eCurveMappingTone

CurveMapping.tone

Enumerator
CURVE_TONE_STANDARD 
CURVE_TONE_FILMLIKE 

Definition at line 113 of file DNA_color_types.h.