Re: libv4lconvert: fix RGB32 conversion

2014-07-20 Thread Hans de Goede
Hi, On 07/19/2014 03:38 PM, Hans Verkuil wrote: > On 07/19/2014 02:37 PM, Hans de Goede wrote: >> Hi, >> >> On 07/19/2014 09:18 AM, Hans Verkuil wrote: >>> The RGB32 formats start with an alpha byte in memory. So before calling the >>> v4lconvert_rgb32_to_rgb24 or v4lconvert_rgb24_to_yuv420 functi

Re: libv4lconvert: fix RGB32 conversion

2014-07-19 Thread Hans Verkuil
On 07/19/2014 02:37 PM, Hans de Goede wrote: > Hi, > > On 07/19/2014 09:18 AM, Hans Verkuil wrote: >> The RGB32 formats start with an alpha byte in memory. So before calling the >> v4lconvert_rgb32_to_rgb24 or v4lconvert_rgb24_to_yuv420 function skip that >> initial >> alpha byte so the src point

Re: libv4lconvert: fix RGB32 conversion

2014-07-19 Thread Hans de Goede
Hi, On 07/19/2014 09:18 AM, Hans Verkuil wrote: The RGB32 formats start with an alpha byte in memory. So before calling the v4lconvert_rgb32_to_rgb24 or v4lconvert_rgb24_to_yuv420 function skip that initial alpha byte so the src pointer is aligned with the first color component, since that is w

libv4lconvert: fix RGB32 conversion

2014-07-19 Thread Hans Verkuil
The RGB32 formats start with an alpha byte in memory. So before calling the v4lconvert_rgb32_to_rgb24 or v4lconvert_rgb24_to_yuv420 function skip that initial alpha byte so the src pointer is aligned with the first color component, since that is what those functions expect. Signed-off-by: Hans Ve