blender/tests/files/imbuf_io/reference/jpeg2000-bw-12-jp2-90__from__rgba08.jp2
Aras Pranckevicius 14d549b16e Refactor: change ImBuf::planes to be ImColorMode enum, and rename to color_mode
- Instead of using integers 8, 16, 24, 32 (planes), use an enum
  ImColorMode (BW, BW_A, RGB, RGBA respectively) and rename the member
  to color_mode.
- Change IMB_allocImBuf to always set color mode to RGBA (that was
  majority of use cases); code that needs something else can just set
  color mode separately.
- Fix several places were checking "can an image possibly contain alpha"
  were not handling "grayscale + alpha" (planes==16) case correctly.
  E.g. VSE was treating a strip with such an image as opaque, and could
  wrongly occlude strips behind it.
- Several image file formats were not roundtripping gray+alpha images
  correctly, even when they can; that is now fixed.
- As a side effect, Jpeg 2000 images can be saved as grayscale (BW) now.
- RNA Image.color_mode and color_depth were marked as "enum_bitflag"
  seemingly by accident, that is no longer so.
- IRIS image writing code had option to write "Z" channel that was
  never used; removed.
- Cineon/DPX writing code had an even number of "wrong arguments" being
  passed to logImageCreate; behavior was fine since the errors cancelled
  out.
- uiTemplateImageInfo had incorrect check for grayscale format display.

Co-authored-by: Campbell Barton <campbell@blender.org>
Pull Request: https://projects.blender.org/blender/blender/pulls/158207
2026-05-12 18:34:01 +02:00

3 lines
129 B
Text

version https://git-lfs.github.com/spec/v1
oid sha256:3e2946e57ea6cbf0424b4491069cbea92440654b738ecc31f91366caf1b26b9f
size 2061