Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-10 16:09:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-10 16:09:25 +0400
commit5e29381825bb7e84b6e3535bd6ca6a53c8079e2a (patch)
treef39204624c80ff68c24910d1db817afb75a654f2 /source/blender/makesdna/DNA_color_types.h
parent6ba5650428390158208cf4369e0cc6a2baad2fbd (diff)
mango request
- optionally display the histogram as lines (not filled areas). - expand the enum for faster access. - keep the sample line displayed after doing the line sample (running again clears).
Diffstat (limited to 'source/blender/makesdna/DNA_color_types.h')
-rw-r--r--source/blender/makesdna/DNA_color_types.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_color_types.h b/source/blender/makesdna/DNA_color_types.h
index 676389ffeea..dd2b38ffcf5 100644
--- a/source/blender/makesdna/DNA_color_types.h
+++ b/source/blender/makesdna/DNA_color_types.h
@@ -102,6 +102,11 @@ typedef enum CurveMappingPreset {
#define HISTO_MODE_G 3
#define HISTO_MODE_B 4
+enum {
+ HISTO_FLAG_LINE = (1 << 0),
+ HISTO_FLAG_SAMPLELINE = (1 << 1)
+};
+
typedef struct Histogram {
int channels;
int x_resolution;
@@ -110,8 +115,13 @@ typedef struct Histogram {
float data_b[256];
float data_luma[256];
float xmax, ymax;
- int mode;
+ short mode;
+ short flag;
int height;
+
+ /* sample line only */
+ /* image coords src -> est */
+ float co[2][2];
} Histogram;
struct ImBuf;