Re: [Query] What is the best way to handle V4L2_PIX_FMT_NV12 buffers?

2011-03-06 Thread Andy Walls
On Sat, 2011-03-05 at 22:49 -0600, Aguirre, Sergio wrote: Hi, I was curious in how to handle properly buffers of pixelformat V4L2_PIX_FMT_NV12. I see that the standard convention for determining a bytesize of an image buffer is: bytesperline * height However, for NV12 case, the

Re: [Query] What is the best way to handle V4L2_PIX_FMT_NV12 buffers?

2011-03-06 Thread Guennadi Liakhovetski
On Sun, 6 Mar 2011, Andy Walls wrote: On Sat, 2011-03-05 at 22:49 -0600, Aguirre, Sergio wrote: Hi, I was curious in how to handle properly buffers of pixelformat V4L2_PIX_FMT_NV12. I see that the standard convention for determining a bytesize of an image buffer is: