tornavis/source/blender/imbuf
Omar Emara 0c91ad9008 Fix #120175: File Output node has wrong BW output
The File Output node produces wrong output when the output is set to BW.
This is because the image saving logic assumes float buffers always have
4 channels and ignores the image buffer channels member. So for single
channel images, the code weighted sum neighbouring pixels and asigned
them as a single pixel, producing bleeding at best and crashes at worst.

To fix this, we skip Color to BW conversion if the image is already BW.
And, we fix the functions that assume 4 channels for float buffers.

Pull Request: https://projects.blender.org/blender/blender/pulls/120206
2024-04-04 08:51:57 +02:00
..
intern Fix #120175: File Output node has wrong BW output 2024-04-04 08:51:57 +02:00
CMakeLists.txt Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_colormanagement.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_imbuf.hh Compositor: Unify sRGB to Linear between CPU and GPU 2024-03-25 14:09:54 +01:00
IMB_imbuf_enums.h Cleanup: reduce C-isms in imbuf headers 2024-01-19 20:29:43 +01:00
IMB_imbuf_types.hh Compositor: Unify sRGB to Linear between CPU and GPU 2024-03-25 14:09:54 +01:00
IMB_interp.hh BLI: Add nearest interpolation with clamped boundary 2024-03-21 13:22:10 +01:00
IMB_metadata.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_moviecache.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_openexr.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_thumbs.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00