diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-02-23 17:51:01 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-02-23 17:51:30 +0300 |
commit | 041f706506da3962e6c03fcf2a4227afd678dca0 (patch) | |
tree | 0affe06ec35a28fbb2cf3f357f101abbfebe376a /source/blender/imbuf/IMB_imbuf.h | |
parent | eacc3debb75f1eed9777194773f2cab398c48d17 (diff) |
IMB library: Add function that scales an array of byte or float pixels.
Function just wraps the array in an imbuf and does regular imbuf
scaling.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 17bb873cd98..27cb9347aa9 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -353,6 +353,14 @@ 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 + * \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); + +/** * * \attention Defined in scaling.c */ |