Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-07-13 Thread Pavel Machek
Hi! > Oh, somehow I got confused that this is kernel code :) > > >But I'd say NEON conversion is not neccessary anytime soon. First, > >this is just trying to get average luminosity. We can easily skip > >quite a lot of pixels, and still get reasonable answer. > > > >Second, omap3isp actually

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-05-03 Thread Pavel Machek
On Wed 2017-05-03 20:05:56, Russell King - ARM Linux wrote: > On Wed, Apr 26, 2017 at 06:43:54PM +0300, Ivaylo Dimitrov wrote: > > >+static int get_luminosity_bayer10(uint16_t *buf, const struct v4l2_format > > >*fmt) > > >+{ > > >+ long long avg_lum = 0; > > >+ int x, y; > > >+ > > >+ buf

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-05-03 Thread Russell King - ARM Linux
On Wed, Apr 26, 2017 at 06:43:54PM +0300, Ivaylo Dimitrov wrote: > >+static int get_luminosity_bayer10(uint16_t *buf, const struct v4l2_format > >*fmt) > >+{ > >+long long avg_lum = 0; > >+int x, y; > >+ > >+buf += fmt->fmt.pix.height * fmt->fmt.pix.bytesperline / 4 + > >+

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-30 Thread Pavel Machek
On Wed 2017-04-26 15:23:37, Pavel Machek wrote: > Hi! > > > > > I don't see why it would be hard to open files or have threads inside > > > > a library. There are several libraries that do that already, specially > > > > the ones designed to be used on multimidia apps. > > > > > > Well, This

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Ivaylo Dimitrov
On 27.04.2017 01:51, Pavel Machek wrote: Hi! There are two separate things here: 1) Autofoucs for a device that doesn't use subdev API 2) libv4l2 support for devices that require MC and subdev API Actually there are three: 0) autogain. Unfortunately, I need autogain first before autofocus

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Pavel Machek
Hi! > >>There are two separate things here: > >> > >>1) Autofoucs for a device that doesn't use subdev API > >>2) libv4l2 support for devices that require MC and subdev API > > > >Actually there are three: 0) autogain. Unfortunately, I need autogain > >first before autofocus has a chance... > > >

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Ivaylo Dimitrov
Hi, On 26.04.2017 16:23, Pavel Machek wrote: Hi! I don't see why it would be hard to open files or have threads inside a library. There are several libraries that do that already, specially the ones designed to be used on multimidia apps. Well, This is what the libv4l2 says: This file

[patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Pavel Machek
Hi! > > > I don't see why it would be hard to open files or have threads inside > > > a library. There are several libraries that do that already, specially > > > the ones designed to be used on multimidia apps. > > > > Well, This is what the libv4l2 says: > > > >This file implements