diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-12-10 17:38:46 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-12-10 17:38:46 +0300 |
commit | 60a9703de80002cbcef9c2db5f4ee8569185ca1c (patch) | |
tree | f07714fed5c816cb67409890fa4bf9724e486d49 /source | |
parent | 05df6366a46be37c6f91ccc0578ba3f9ba816e64 (diff) |
Added support for large images to openexr.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 568bd48d863..e1b9853ac21 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -1922,8 +1922,8 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, file = new MultiPartInputFile(*membuf); Box2i dw = file->header(0).dataWindow(); - const int width = dw.max.x - dw.min.x + 1; - const int height = dw.max.y - dw.min.y + 1; + const size_t width = dw.max.x - dw.min.x + 1; + const size_t height = dw.max.y - dw.min.y + 1; // printf("OpenEXR-load: image data window %d %d %d %d\n", // dw.min.x, dw.min.y, dw.max.x, dw.max.y); @@ -1986,8 +1986,8 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, const bool has_luma = exr_has_luma(*file); FrameBuffer frameBuffer; float *first; - int xstride = sizeof(float[4]); - int ystride = -xstride * width; + size_t xstride = sizeof(float[4]); + size_t ystride = -xstride * width; imb_addrectfloatImBuf(ibuf); |