tornavis/source/blender/compositor
Omar Emara 5258b17ef6 Fix #114260: Compositor sometimes produces straight alpha
The compositor sometimes produces straight alpha even though
premultiplied alpha is expected. Moreover, there is an inconsistency
between the CPU and GPU compositors.

For the GPU compositor, this is because GPU textures sometimes store
straight alpha, while the compositor always expects premultiplied alpha,
so we need to premultiply the alpha in those cases.

For the CPU compositor, this is because the image operation didn't
premultiply the alpha of byte textures, so we need to ensure
premultiplied alpha in those cases.

There is a data loss issue in case of byte images, since the IMB module
unpremultiplies premultiplied images then the compositor premultiplies
it again. But this will be handled in a different patch since it require
some design and refactoring first.

Pull Request: https://projects.blender.org/blender/blender/pulls/114305
2023-11-06 15:15:22 +01:00
..
intern Fix #114260: Compositor sometimes produces straight alpha 2023-11-06 15:15:22 +01:00
nodes Speedup classic Kuwahara filter by summed area table 2023-11-01 10:49:09 +01:00
operations Fix #114260: Compositor sometimes produces straight alpha 2023-11-06 15:15:22 +01:00
realtime_compositor Fix #114260: Compositor sometimes produces straight alpha 2023-11-06 15:15:22 +01:00
tests Speedup classic Kuwahara filter by summed area table 2023-11-01 10:49:09 +01:00
CMakeLists.txt Speedup classic Kuwahara filter by summed area table 2023-11-01 10:49:09 +01:00
COM_compositor.hh Cleanup: spelling in comments 2023-10-23 10:09:05 +11:00
COM_defines.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
COM_precomp.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00