]> git.tdb.fi Git - libs/gui.git/commit
Avoid the unpadding loop with kCGImageAlphaNoneSkipFirst
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Oct 2013 09:52:43 +0000 (12:52 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Oct 2013 13:54:24 +0000 (16:54 +0300)
commit03f5e11e6bcf9487e396403041f84009ff4eb900
treee7cf1829169e5809ba166d00c60ab043fddab4a4
parent0a7b21172f7124439171e3921a12952a060c39fc
Avoid the unpadding loop with kCGImageAlphaNoneSkipFirst

The data looks like this:

  X RGB X RGB X RGB X RGB ...

Ignoring the first padding byte allows treating it as RGBX.  The padding
bytes move to different RGB triplets, but they're going to get ignored
anyway.
source/graphics/quartz/quartzloader.cpp