linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reading config parameters of omap3-isp subdevs
@ 2012-03-16 14:06 Michael Jones
  2012-03-19 23:22 ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Jones @ 2012-03-16 14:06 UTC (permalink / raw)
  To: linux-media ML; +Cc: Laurent Pinchart

Hi all,

I am playing around with some parameters in the previewer on the ISP. 
With ioctl VIDIOC_OMAP3ISP_PRV_CFG I am able to write the various 
parameters but what I'm missing is a way to read them.  For example, I 
have no way to adjust only coef2 in 'struct omap3isp_prev_wbal' while 
leaving the others unchanged.  If I could first read the whole 
omap3isp_prev_wbal structure, then I could change just the things I want 
to change.  This seems like it would be common functionality for such 
ioctls.  I didn't find any previous discussion related to this.

I could imagine either adding a r/w flag to 'struct 
omap3isp_prev_update_config' or adding a new ioctl entirely.  I think I 
would prefer the r/w flag.  Feedback?

I noticed that other ISP subdevs have similar ioctls.  Perhaps a similar 
thing would be useful there, but right now I'm only looking at the 
previewer.

-Michael

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: reading config parameters of omap3-isp subdevs
@ 2012-03-25 23:42 Joshua Hintze
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Hintze @ 2012-03-25 23:42 UTC (permalink / raw)
  To: laurent.pinchart, linux-media

I was just wondering the same thing as far as reading the current
settings. The reason why I would want to read the settings (could be
different than Michael's) is that there are a lot of settings that I
am still unfamiliar with yet. I don't know the default values. So by
being able to read the entire settings and adjust only the white
balance gain or such would make the learning process considerably less
sharp. I would love to have the read option.

Josh


Hi Michael,

On Friday 16 March 2012 15:06:15 Michael Jones wrote:
> Hi all,
>
> I am playing around with some parameters in the previewer on the ISP. With
> ioctl VIDIOC_OMAP3ISP_PRV_CFG I am able to write the various parameters but
> what I'm missing is a way to read them. For example, I have no way to adjust
> only coef2 in 'struct omap3isp_prev_wbal' while leaving the others
> unchanged. If I could first read the whole omap3isp_prev_wbal structure,
> then I could change just the things I want to change. This seems like it
> would be common functionality for such ioctls. I didn't find any previous
> discussion related to this.
>
> I could imagine either adding a r/w flag to 'struct
> omap3isp_prev_update_config' or adding a new ioctl entirely. I think I
> would prefer the r/w flag.  Feedback?
>
> I noticed that other ISP subdevs have similar ioctls.  Perhaps a similar
> thing would be useful there, but right now I'm only looking at the
> previewer.

Adding a R/W bit to the flag argument should indeed work. However, I'm
wondering what your use case for reading parameters back is. The preview
engine parameter structures seem pretty-much self-contained to me, I'm not
sure it would make sense to only modify one of the parameters.

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-28 19:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 14:06 reading config parameters of omap3-isp subdevs Michael Jones
2012-03-19 23:22 ` Laurent Pinchart
2012-03-20 10:06   ` Michael Jones
2012-03-28 15:54     ` Laurent Pinchart
  -- strict thread matches above, loose matches on Subject: below --
2012-03-25 23:42 Joshua Hintze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).