[FFmpeg-devel] [PATCH v2 1/2] lavc/texturedsp: fix premult2straight inversion
Connor Worley
connorbworley at gmail.com
Fri Feb 2 22:15:55 EET 2024
Linked are some demo files.
I converted a sample to DDS with texconv.exe -f DXT4 -pmalpha sample.png
I converted it back to PNG against master with ffmpeg -i sample.dds
master.png
I converted it back to PNG against this patch with ffmpeg -i sample.dds
patch.png
The color in master.png is dark due to being premultiplied twice.
The color in patch.png is true to sample.png.
https://connorworley.com/sample.png
https://connorworley.com/sample.dds
https://connorworley.com/master.png
https://connorworley.com/patch.png
--
Connor Worley
More information about the ffmpeg-devel
mailing list