Re: [RFC PATCH] capture-example: allow V4L2_PIX_FMT_GREY with USERPTR

2011-07-14 Thread Mauro Carvalho Chehab
Em 14-07-2011 04:03, Michael Jones escreveu: > Hi Mauro, > > On 07/14/2011 12:35 AM, Mauro Carvalho Chehab wrote: >> Em 28-06-2011 11:23, Michael Jones escreveu: >>> There is an assumption that the format coming from the device >>> needs 2 bytes per pixel, which is not the case when the device >>>

Re: [RFC PATCH] capture-example: allow V4L2_PIX_FMT_GREY with USERPTR

2011-07-14 Thread Michael Jones
Hi Mauro, On 07/14/2011 12:35 AM, Mauro Carvalho Chehab wrote: > Em 28-06-2011 11:23, Michael Jones escreveu: >> There is an assumption that the format coming from the device >> needs 2 bytes per pixel, which is not the case when the device >> delivers e.g. V4L2_PIX_FMT_GREY. This doesn't manifest

Re: [RFC PATCH] capture-example: allow V4L2_PIX_FMT_GREY with USERPTR

2011-07-13 Thread Mauro Carvalho Chehab
Em 28-06-2011 11:23, Michael Jones escreveu: > There is an assumption that the format coming from the device > needs 2 bytes per pixel, which is not the case when the device > delivers e.g. V4L2_PIX_FMT_GREY. This doesn't manifest itself with > IO_METHOD_MMAP because init_mmap() (the default) doesn

[RFC PATCH] capture-example: allow V4L2_PIX_FMT_GREY with USERPTR

2011-06-28 Thread Michael Jones
There is an assumption that the format coming from the device needs 2 bytes per pixel, which is not the case when the device delivers e.g. V4L2_PIX_FMT_GREY. This doesn't manifest itself with IO_METHOD_MMAP because init_mmap() (the default) doesn't take sizeimage as an argument. Signed-off-by: Mic