diff options
author | Peter Schlaile <peter@schlaile.de> | 2006-06-10 23:56:28 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2006-06-10 23:56:28 +0400 |
commit | c4229b0272ac223e3723773321ce9263ef858607 (patch) | |
tree | 1f9ea6ba659b09eac7532924b3591aa3770242d2 /source/blender/imbuf/intern/scaling.c | |
parent | 43e776690f651f941b2612d94a943398e3518de2 (diff) |
==Sequencer==
Fixed the blur-plugin (and maybe a lot more) crashes by expecting
future float-buffer aware sequencer-plugins to have a bumped PLUGIN_VERSION
number. Since quality and speed is degraded by converting the float
buffer first to byte, performing the effect on bytes and then converting
back again an additional warning is displayed in the effect strip,
suggesting to update the used sequencer-plugins.
Fixed some more crashes along the way.
Float buffer aware sequencer plugins should
- first check, if the output-ibuf has a rect_float
=> perform all operations with floats (input and output)
- if not: perform everything on bytes (intput and output)
Diffstat (limited to 'source/blender/imbuf/intern/scaling.c')
-rw-r--r-- | source/blender/imbuf/intern/scaling.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index a21e5c7b592..be391fad69d 100644 --- a/source/blender/imbuf/intern/scaling.c +++ b/source/blender/imbuf/intern/scaling.c @@ -849,7 +849,7 @@ static struct ImBuf *scaleupy(struct ImBuf *ibuf, int newy) _newrectf = MEM_mallocN(newy * ibuf->x * sizeof(float) * 4, "scaleupyf"); if (_newrectf==NULL) return(ibuf); } - + add = (ibuf->y - 1.001) / (newy - 1.0); skipx = 4 * ibuf->x; @@ -919,7 +919,6 @@ static struct ImBuf *scaleupy(struct ImBuf *ibuf, int newy) ibuf->mall |= IB_rectfloat; ibuf->rect_float = _newrectf; } - ibuf->y = newy; return(ibuf); } |