[Pixman] sRGB scaling without alpha channel?
soren.sandmann at gmail.com
Thu Mar 4 19:55:50 UTC 2021
You are right that pixman doesn't have support for sRGB formats
without an alpha channel. It would make sense to add such support (and
it should be straightforward to do so).
You might consider biting the bullet and just use an alpha channel.
Usually a8r8g8b8 images are faster to work with than r8g8b8 anyway
since they are aligned at 32 bits and tend to have more optimized fast
paths available for them.
On Thu, Mar 4, 2021 at 5:43 AM Claude Heiland-Allen <claude at mathr.co.uk> wrote:
> I have some image downscaling code  using Pixman that currently works
> in regular RGB. I would like instead to do gamma-correct sRGB
> downscaling, but I only see an sRGB-with-alpha format in the source code
> . Is it possible to use this with sRGB-without-alpha data somehow?
> I would like to avoid having to add a placeholder alpha channel before
> downscaling only to remove it afterwards.
> Pixman mailing list
> Pixman at lists.freedesktop.org
More information about the Pixman