diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-08-16 14:01:09 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-08-16 14:01:09 +0400 |
commit | a8353530be6c2e61243110fcf469f7b70834bdd9 (patch) | |
tree | a6ed401b2a71fd5399f2c6db2df738cfcad79ca7 /source/blender/compositor/operations/COM_ImageOperation.h | |
parent | 970c80e473fd390dff329acb7f3a08fc2edfd26d (diff) |
Make byte-float conversion threaded in compositor
In fact, there's no need to get float buffer at all,
conversion could be done in pixel processor level
after interpolation.
It might give slightly worse interpolation results
(which i'm not sure would be visible by eye) but
it gives more than 2x speedup on my laptop on node
setups used for warping image.
--
svn merge -r58988:58989 ^/branches/soc-2011-tomato
Diffstat (limited to 'source/blender/compositor/operations/COM_ImageOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ImageOperation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_ImageOperation.h b/source/blender/compositor/operations/COM_ImageOperation.h index e75e7daa186..b51f11edd04 100644 --- a/source/blender/compositor/operations/COM_ImageOperation.h +++ b/source/blender/compositor/operations/COM_ImageOperation.h @@ -42,7 +42,8 @@ protected: ImBuf *m_buffer; Image *m_image; ImageUser *m_imageUser; - float *m_imageBuffer; + float *m_imageFloatBuffer; + unsigned int *m_imageByteBuffer; float *m_depthBuffer; int m_imageheight; int m_imagewidth; |