diff options
author | Matt Ebb <matt@mke3.net> | 2010-05-10 05:46:44 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-05-10 05:46:44 +0400 |
commit | d384174b455c58f4f38a29dc518ce0b3d8fa696d (patch) | |
tree | 895acfb97754d29c71ffe0f1f09b8c3364d3b720 /source/blender/blenkernel | |
parent | 29ba391a164d432c5710a1fba1b4e70ea06acde7 (diff) |
Tweaks to image editor scopes, while testing a bug
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_colortools.h | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/colortools.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_colortools.h b/source/blender/blenkernel/BKE_colortools.h index f78389fe4de..1f2dee6dcfc 100644 --- a/source/blender/blenkernel/BKE_colortools.h +++ b/source/blender/blenkernel/BKE_colortools.h @@ -76,6 +76,7 @@ void colorcorrection_do_ibuf(struct ImBuf *ibuf, const char *profile); void scopes_update(struct Scopes *scopes, struct ImBuf *ibuf, int use_color_management); void scopes_free(struct Scopes *scopes); +void scopes_new(struct Scopes *scopes); #endif diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c index 66ebac2e25e..2856a333a5f 100644 --- a/source/blender/blenkernel/intern/colortools.c +++ b/source/blender/blenkernel/intern/colortools.c @@ -1110,3 +1110,19 @@ void scopes_free(Scopes *scopes) scopes->vecscope = NULL; } } + +void scopes_new(Scopes *scopes) +{ + scopes->accuracy=30.0; + scopes->hist.mode=HISTO_MODE_RGB; + scopes->wavefrm_alpha=0.3; + scopes->vecscope_alpha=0.3; + scopes->wavefrm_height= 100; + scopes->vecscope_height= 100; + scopes->hist.height= 100; + scopes->ok= 0; + scopes->waveform_1 = NULL; + scopes->waveform_2 = NULL; + scopes->waveform_3 = NULL; + scopes->vecscope = NULL; +} |