diff options
author | Peter Schlaile <peter@schlaile.de> | 2008-02-03 02:28:50 +0300 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2008-02-03 02:28:50 +0300 |
commit | 3a6a3d0389d6e2cee0f91e721667853ba7fdafc3 (patch) | |
tree | 6c54f6bfbbb784b0b33bcc278f30b632788cdea4 /source/blender/src/seqscopes.c | |
parent | e29dba8a5a39c563d21e6ddf65a2dd147b732c82 (diff) |
== Sequencer ==
New feature: color balance aka 3-way-color-correction aka lift/gamma/gain
on input (folded into byte -> float conversion, so _very_ fast in that case).
Interface is inspired from Rebel CC (but not as complete yet, you can't
choose white and black points right now).
Bugfix: clamp color seperated wave form display correctly.
Diffstat (limited to 'source/blender/src/seqscopes.c')
-rw-r--r-- | source/blender/src/seqscopes.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/seqscopes.c b/source/blender/src/seqscopes.c index 84a92982ab5..b7b1d2436f8 100644 --- a/source/blender/src/seqscopes.c +++ b/source/blender/src/seqscopes.c @@ -323,7 +323,11 @@ static struct ImBuf *make_sep_waveform_view_from_ibuf_float( float * rgb = src + 4 * (ibuf->x * y + x); for (c = 0; c < 3; c++) { unsigned char * p = tgt; - p += 4 * (w * ((int) (rgb[c] * (h - 3)) + 1) + float v = rgb[c]; + + CLAMP(v, 0.0, 1.0); + + p += 4 * (w * ((int) (v * (h - 3)) + 1) + c * sw + x/3 + 1); scope_put_pixel_single(wtable, p, c); |