Skip to content

DDS BC6 decoding has a broken blue channel #6344

@expenses

Description

@expenses

I attempted to use the code in https://github.com/python-pillow/Pillow/blob/main/src/libImaging/BcnDecode.c for a project in order to decode BC6 textures. The red and green channels decoded correctly but the blue channel ended up being mangled somehow.

Here's the red channel of the image as displayed in renderdoc:
20220601_16h17m43s_grim

and here's the blue channel:

20220601_16h17m52s_grim

This results in an image that looks like this:

20220601_15h56m13s_grim

What are your OS, Python and Pillow versions?

  • OS: N/A
  • Python: N/A
  • Pillow: b261e17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions