v4l2-ctrls: add new focus mode
cover v4l2-ctrls: add new focus mode
Hello,
I faced to the absence of the mode of v4l2 focus for a couple of years. While dealing with some few morebile camera sensors, the focus modes are needed more than the current v4l2 focus mode, like a Macro & Continuous mode. The M-5MOLS camera sensor I dealt with, also support these 2 modes. So, I'm going to suggest supports of more detailed v4l2 focus mode.
This RFC series of patch adds new auto focus modes, and documents it.
The first changes the boolean type of V4L2_CID_FOCUS_AUTO to menu type, and insert menus 4 enumerations:
V4L2_FOCUS_AUTO,V4L2_FOCUS_MACRO,V4L2_FOCUS_MANUAL,V4L2_FOCUS_CONTINUOUS
The recent mobile camera sensors with ISP supports Macro & Continuous Auto Focus aka CAF mode, of course normal AUTO mode, even Continuous mode. Changing the type of V4L2_CID_FOCUS_MODE, is able to define more exact focusing mode of camera sensor.
The second changes let the previous drivers using V4L2_CID_FOCUS_AUTO by boolean type be able to use the type of menu.
Thanks for reading this, and I hope any ideas and any comments.
Regards,
Heungjun Kim
Hi,
Quoted 14 lines · HeungJun
Hello,
I faced to the absence of the mode of v4l2 focus for a couple of years. While dealing with some few morebile camera sensors, the focus modes are needed more than the current v4l2 focus mode, like a Macro & Continuous mode. The M-5MOLS camera sensor I dealt with, also support these 2 modes. So, I'm going to suggest supports of more detailed v4l2 focus mode.
This RFC series of patch adds new auto focus modes, and documents it.
The first changes the boolean type of
V4L2_CID_FOCUS_AUTOto menu type, and insert menus 4 enumerations:
Quoted 7 lines
V4L2_FOCUS_AUTO,V4L2_FOCUS_MACRO,V4L2_FOCUS_MANUAL,V4L2_FOCUS_CONTINUOUSThe recent mobile camera sensors with ISP supports Macro & Continuous Auto Focus aka CAF mode, of course normal AUTO mode, even Continuous mode.
I'm curious, what sensor are you referring to ?
Quoted 7 lines
Changing the type of
V4L2_CID_FOCUS_MODE, is able to define more exact focusing mode of camera sensor.The second changes let the previous drivers using
V4L2_CID_FOCUS_AUTOby boolean type be able to use the type of menu.Thanks for reading this, and I hope any ideas and any comments.
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent,
First, Thanks to reply.
I commented below.
2011-02-24 오후 7:49, Laurent Pinchart 쓴 글:
Quoted 22 lines
Hi,
Quoted 19 lines · HeungJun
Hello,
I faced to the absence of the mode of v4l2 focus for a couple of years. While dealing with some few morebile camera sensors, the focus modes are needed more than the current v4l2 focus mode, like a Macro & Continuous mode. The M-5MOLS camera sensor I dealt with, also support these 2 modes. So, I'm going to suggest supports of more detailed v4l2 focus mode.
This RFC series of patch adds new auto focus modes, and documents it.
The first changes the boolean type of
V4L2_CID_FOCUS_AUTOto menu type, and insert menus 4 enumerations:
V4L2_FOCUS_AUTO,V4L2_FOCUS_MACRO,V4L2_FOCUS_MANUAL,V4L2_FOCUS_CONTINUOUS
Quoted 4 lines
Quoted 2 lines
The recent mobile camera sensors with ISP supports Macro & Continuous Auto Focus aka CAF mode, of course normal AUTO mode, even Continuous mode.
I'm curious, what sensor are you referring to ?
Yes. The Fujitsu M-5MO LS sensor supports these modes. And, actually NEC CE147 sensor also support Macro Focus mode, not includeing CAF mode.
The current Samsung Galaxy S phone use same sensor(M-5MO) too. and these mobile phone's camera suport Macro Focus mode.
Regards,
Heungjun Kim