diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-03-01 10:40:08 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-03-01 10:41:25 +0300 |
commit | 5e9c1feb8aff0ca40eff6689f9bf6a9678711a9e (patch) | |
tree | 90d6da9466714511a49c536886bcfd08ca556239 /source/blender/imbuf/IMB_imbuf.h | |
parent | 91de337dc5704d6a74a7aed76e2487187e559e8d (diff) |
Image Engine: Performance 8 byte images.
Previously we used to cache a float image representation of the image in
rect_float. This adds some incorrect behavior as many areas only expect
one of these buffers to be used.
This patch stores float buffers inside the image engine. This is done per
instance. In the future we should consider making a global cache.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index a557d7dc6d1..2f0dc6345e5 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -576,6 +576,9 @@ bool IMB_alpha_affects_rgb(const struct ImBuf *ibuf); * Create char buffer, color corrected if necessary, for ImBufs that lack one. */ void IMB_rect_from_float(struct ImBuf *ibuf); +void IMB_float_from_rect_ex(struct ImBuf *dst, + const struct ImBuf *src, + const struct rcti *region_to_update); void IMB_float_from_rect(struct ImBuf *ibuf); /** * No profile conversion. |