H-uru / PlasmaShop

Swiss army knife for Plasma file hacking
GNU General Public License v3.0
17 stars 17 forks source link

BGRA Fixes #44

Open Hoikas opened 6 years ago

Hoikas commented 6 years ago

Plasma stores its image data in plMipmap as BGR(A), with the exception of DXT formatted data. This changeset updates PRPShop to match the fixes in libHSPlasma in that regard. Also teaches PRPShop about PNG compressed images. I believe a more complete changeset from @Deledrius is incoming to improve the import/export image options.

Depends on:

Deledrius commented 6 years ago

Correct. I'm working on a revamped dialog that should have a unified, flexible import/export.

Hoikas commented 6 years ago

I updated the pull request to not change the RGB bitmask on the plDDSurface because this seemed to introduce an issue that could be triggered by importing a DDS file into a jpeg compressed image. Instead, we now flip the channels on import and export of dds data.

Hoikas commented 7 months ago

The CI failure here is due to H-uru/libhsplasma#127 being a prerequisite of this.