a fast way to try may be like:
/* bgrp 32 bit, blue, green, red, pad */
#define blue *(data+o)
#define red *(data+o+2)
swap_rb(*data) {
for (o=0;o<sizeof(*data);o=+4)
{
blue^=red;
red=^blue;
blue^=red;
}
This is pseudo code to demonstrate exor swapping. just converts the data
and if the data size is cachable, it should run fast. for 24 bit it
requires a new loop.
Hope it helps,
Cagdas
--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/video4linux-list
- Re: BGR->RGB Georgios Kapetanakis
- Re: BGR->RGB Ronald Bultje
- Re: BGR->RGB Georgios Kapetanakis
- Re: BGR->RGB Ronald Bultje
- Re: BGR->RGB Ronald Bultje
- Re: BGR->RGB Georgios Kapetanakis
- Re: BGR->RGB Georgios Kapetanakis
- Re: BGR->RGB Gerd Knorr
- Re: BGR->RGB Martin Peach
- Re: BGR->RGB Alan Cox
- Re: BGR->RGB Cagdas Ogut
- Re: BGR->RGB Cagdas Ogut
- Fw: BGR->RGB Georgios Kapetanakis
- Re: BGR->RGB Georgios Kapetanakis
- Re: BGR->RGB Mark Cooke
