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:
authorAntony Riakiotakis <kalast@gmail.com>2015-02-23 18:30:37 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-02-23 18:30:37 +0300
commit1940cf5a0b24d5d4e4b21b495fd84433d68483da (patch)
tree46a11fa887b54bd57c515847cdaec6356d2fac64 /source/blender/imbuf/IMB_imbuf.h
parent041f706506da3962e6c03fcf2a4227afd678dca0 (diff)
After discussion on irc change new function to only allocate from a
buffer only. scaling can be done separately
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h
index 27cb9347aa9..299918a47a5 100644
--- a/source/blender/imbuf/IMB_imbuf.h
+++ b/source/blender/imbuf/IMB_imbuf.h
@@ -353,12 +353,11 @@ struct ImBuf *IMB_onehalf(struct ImBuf *ibuf1);
struct ImBuf *IMB_scaleImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
/**
- * Scales an array of pixels and returns the result to a new ImBuf
+ * Create a copy of a pixel buffer and wrap it to a new ImBuf
* \attention Defined in scaling.c
*/
-struct ImBuf *IMB_scaleArray(const unsigned int *rect, const float *frect,
- unsigned int oldw, unsigned int oldh,
- unsigned int neww, unsigned int newh);
+struct ImBuf *IMB_allocFromBuffer(const unsigned int *rect, const float *frect,
+ unsigned int w, unsigned int h);
/**
*