[webkit-dev] RGBA8 and BGRA8 formats in WebKit
Allan Sandfeld Jensen
kde at carewolf.com
Tue Jan 22 12:39:14 PST 2013
On Tuesday 22 January 2013, John Bauman wrote:
> Couldn't you just swizzle the value in whatever shader you use? Or you
> could use EXT_texture_format_BGRA8888 or APPLE_texture_format_BGRA8888.
>
> Also, an optimized BGRA<->RGBA conversion is about the same cost as a
> memcpy, so if you have any memcpys you need to do you could possibly
> replace one with the conversion.
>
memcpy is heavily optimized for different architectures and even
subarchitectures. Unless you take the time to write several architecture
specific BGRA<->RGBA conversions it will never be as fast as memcpy.
Regards
`Allan
More information about the webkit-dev
mailing list