* Proposal to extend V4L2 Control ID for advanced imaging processing features.
@ 2010-09-11 10:40 Wang, Wen W
2010-10-12 17:56 ` Sakari Ailus
0 siblings, 1 reply; 2+ messages in thread
From: Wang, Wen W @ 2010-09-11 10:40 UTC (permalink / raw)
To: linux-media@vger.kernel.org; +Cc: Zhang, Xiaolin, Hu, Gang A
Hi all,
We are developing a V4L2 device driver which the ISP has many advanced features such as manual exposure setting, GDC (Geometric Distortion Correction), CAC (Chromatic Aberration Correction), video stabilization, false color correction, shading correction, etc. But to control those features, we find current v4l2 framework has limited CIDs and cannot support these advanced features in normal way .
So we propose to extend the V4L2 CIDs and add the below CIDs. Can you please review and feel free to give your comments?
V4L2_CID_ISO_ABSOLUTE -- This CID is used to set up manual ISO speed value. This CID has integer type and with as valid range or limited valid value, depending on the hardware. If the target value is not supported by hardware, a closest value will be set
V4L2_CID_APERTURE_ABSOLUTE -- This CID is used to set up manual aperture value. This CID has integer type and with as valid range or limited valid value, depending on the hardware. If the target value is not supported by hardware, a closest value will be set
V4L2_CID_ATOMISP_FIXED_PATTERN_NR - This CID is used to enable/disable Fixed pattern noise reduction. This CID has Boolean type and 0 indicate to disable fixed pattern NR and 1 indicate to enable it.
V4L2_CID_ATOMISP_POSTPROCESS_XNR - This CID is used to enable/disable XNR. This CID has Boolean type and 0 indicate to disable XNR and 1 indicate to enable it.
V4L2_CID_ATOMISP_POSTPROCESS_GDC_CAC - Our ISP combined GDC and CAC together. This CID is used to enable/disable GDC and CAC. This CID has Boolean type and 0 indicate to disable it and 1 indicate to enable it.
V4L2_CID_ATOMISP_VIDEO_STABILIZATION -- This CID is used to enable/disable video stabilization capability. This CID has Boolean type and 0 indicate to disable it and 1 indicate to enable it.
V4L2_CID_ATOMISP_FALSE_COLOR_CORRECTION - This CID is used to enable color correction capability. This CID has Boolean type and 0 indicate to disable it and 1 indicate to enable it.
Thanks,
Wen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Proposal to extend V4L2 Control ID for advanced imaging processing features.
2010-09-11 10:40 Proposal to extend V4L2 Control ID for advanced imaging processing features Wang, Wen W
@ 2010-10-12 17:56 ` Sakari Ailus
0 siblings, 0 replies; 2+ messages in thread
From: Sakari Ailus @ 2010-10-12 17:56 UTC (permalink / raw)
To: Wang, Wen W
Cc: linux-media@vger.kernel.org, Zhang, Xiaolin, Hu, Gang A,
Laurent Pinchart, Hans Verkuil
Wang, Wen W wrote:
> Hi all,
Hi Wang,
Thanks for the proposal!
(Cc'ing Hans Verkuil.)
> We are developing a V4L2 device driver which the ISP has many
> advanced features such as manual exposure setting, GDC (Geometric
> Distortion Correction), CAC (Chromatic Aberration Correction), video
> stabilization, false color correction, shading correction, etc. But
> to control those features, we find current v4l2 framework has limited
> CIDs and cannot support these advanced features in normal way .
Manual exposure sounds like a sensor property, not ISP's. Are the rest
implemented in the ISP or is there a user space library to support them?
I think in either case the definition will be in kernel headers.
These controls appear quite high level to me. What about the specific
parameters for the functionality, I suppose shading correction for
example has a lot more parameters than just disable/enable?
> So we propose to extend the V4L2 CIDs and add the below CIDs. Can you
> please review and feel free to give your comments?
>
> V4L2_CID_ISO_ABSOLUTE -- This CID is used to set up manual ISO speed
> value. This CID has integer type and with as valid range or limited
> valid value, depending on the hardware. If the target value is not
> supported by hardware, a closest value will be set
> V4L2_CID_APERTURE_ABSOLUTE -- This CID is used to set up manual
> aperture value. This CID has integer type and with as valid range or
> limited valid value, depending on the hardware. If the target value
> is not supported by hardware, a closest value will be set
The above look like image sensor properties.
I wonder if it would make sense to create a new control class for these.
> V4L2_CID_ATOMISP_FIXED_PATTERN_NR - This CID is used to
> enable/disable Fixed pattern noise reduction. This CID has Boolean
> type and 0 indicate to disable fixed pattern NR and 1 indicate to
> enable it. V4L2_CID_ATOMISP_POSTPROCESS_XNR - This CID is used to
> enable/disable XNR. This CID has Boolean type and 0 indicate to
> disable XNR and 1 indicate to enable it.
> V4L2_CID_ATOMISP_POSTPROCESS_GDC_CAC - Our ISP combined GDC and CAC
> together. This CID is used to enable/disable GDC and CAC. This CID
> has Boolean type and 0 indicate to disable it and 1 indicate to
What are GDC and CAC?
> enable it. V4L2_CID_ATOMISP_VIDEO_STABILIZATION -- This CID is used
> to enable/disable video stabilization capability. This CID has
> Boolean type and 0 indicate to disable it and 1 indicate to enable
> it. V4L2_CID_ATOMISP_FALSE_COLOR_CORRECTION - This CID is used to
> enable color correction capability. This CID has Boolean type and 0
> indicate to disable it and 1 indicate to enable it.
Ps. Could you wrap your lines to 80 characters, please? That makes your
messages easier to read and reply. Thank you.
Regards,
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-12 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-11 10:40 Proposal to extend V4L2 Control ID for advanced imaging processing features Wang, Wen W
2010-10-12 17:56 ` Sakari Ailus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox