Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-31 Thread Laurent Pinchart
Hi Guennadi, On Friday 27 August 2010 21:16:26 Guennadi Liakhovetski wrote: > On Sat, 7 Aug 2010, Laurent Pinchart wrote: > > On Saturday 07 August 2010 15:20:58 Guennadi Liakhovetski wrote: > > > On Sat, 7 Aug 2010, lawrence rust wrote: > > [snip] > > > > > > A mean squared error metric such as

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-27 Thread Guennadi Liakhovetski
On Sat, 7 Aug 2010, Laurent Pinchart wrote: > Hi Guennadi, > > On Saturday 07 August 2010 15:20:58 Guennadi Liakhovetski wrote: > > On Sat, 7 Aug 2010, lawrence rust wrote: > > [snip] > > > > A mean squared error metric such as hypot() could be better but requires > > > FP. An integer only ver

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-07 Thread Laurent Pinchart
Hi Guennadi, On Saturday 07 August 2010 15:20:58 Guennadi Liakhovetski wrote: > On Sat, 7 Aug 2010, lawrence rust wrote: [snip] > > A mean squared error metric such as hypot() could be better but requires > > FP. An integer only version wouldn't be too difficult. > > No FP in the kernel. And I

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-07 Thread Hans Verkuil
On Saturday 07 August 2010 15:12:13 Guennadi Liakhovetski wrote: > On Sat, 7 Aug 2010, Hans Verkuil wrote: > > > On Friday 06 August 2010 22:21:36 Guennadi Liakhovetski wrote: > > > On Fri, 6 Aug 2010, Laurent Pinchart wrote: > > > > > > > Hi Guennadi, > > > > > > > > On Thursday 05 August 2010

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-07 Thread Guennadi Liakhovetski
On Sat, 7 Aug 2010, lawrence rust wrote: > On Fri, 2010-08-06 at 22:21 +0200, Guennadi Liakhovetski wrote: > > On Fri, 6 Aug 2010, Laurent Pinchart wrote: > > > > > Hi Guennadi, > > > > > > On Thursday 05 August 2010 20:03:46 Guennadi Liakhovetski wrote: > > > > Many video drivers implement a di

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-07 Thread Guennadi Liakhovetski
On Sat, 7 Aug 2010, Hans Verkuil wrote: > On Friday 06 August 2010 22:21:36 Guennadi Liakhovetski wrote: > > On Fri, 6 Aug 2010, Laurent Pinchart wrote: > > > > > Hi Guennadi, > > > > > > On Thursday 05 August 2010 20:03:46 Guennadi Liakhovetski wrote: > > > > Many video drivers implement a disc

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-07 Thread lawrence rust
On Fri, 2010-08-06 at 22:21 +0200, Guennadi Liakhovetski wrote: > On Fri, 6 Aug 2010, Laurent Pinchart wrote: > > > Hi Guennadi, > > > > On Thursday 05 August 2010 20:03:46 Guennadi Liakhovetski wrote: > > > Many video drivers implement a discrete set of frame formats and thus face > > > a task o

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-07 Thread Hans Verkuil
On Friday 06 August 2010 22:21:36 Guennadi Liakhovetski wrote: > On Fri, 6 Aug 2010, Laurent Pinchart wrote: > > > Hi Guennadi, > > > > On Thursday 05 August 2010 20:03:46 Guennadi Liakhovetski wrote: > > > Many video drivers implement a discrete set of frame formats and thus face > > > a task of

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-06 Thread Guennadi Liakhovetski
On Fri, 6 Aug 2010, Laurent Pinchart wrote: > Hi Guennadi, > > On Thursday 05 August 2010 20:03:46 Guennadi Liakhovetski wrote: > > Many video drivers implement a discrete set of frame formats and thus face > > a task of finding the best match for a user-requested format. Implementing > > this in

Re: [PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-06 Thread Laurent Pinchart
Hi Guennadi, On Thursday 05 August 2010 20:03:46 Guennadi Liakhovetski wrote: > Many video drivers implement a discrete set of frame formats and thus face > a task of finding the best match for a user-requested format. Implementing > this in a generic function has also an advantage, that different

[PATCH/RFC] V4L2: add a generic function to find the nearest discrete format

2010-08-05 Thread Guennadi Liakhovetski
Many video drivers implement a discrete set of frame formats and thus face a task of finding the best match for a user-requested format. Implementing this in a generic function has also an advantage, that different drivers with similar supported format sets will select the same format for the u