Re: how about adding FOCUS mode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 27 March 2009 07:20:51 Kim, Heung Jun wrote:
> Hello, Hans & everyone.
>
> I'm trying to adapt the various FOCUS MODE int the NEC ISP driver.
> NEC ISP supports 4 focus mode, AUTO/MACRO/MANUAL/FULL or NORMAL.
> but, i think that it's a little insufficient to use V4L2 FOCUS Feature.
>
> so, suggest that,
>
> - change V4L2_CID_FOCUS_AUTO's type from boolean to interger, and add
> the following enumerations for CID values.
>
> enum v4l2_focus_mode {
>     V4L2_FOCUS_AUTO            = 0,
>     V4L2_FOCUS_MACRO        = 1,
>     V4L2_FOCUS_MANUAL        = 2,
>     V4L2_FOCUS_NORMAL        = 3,
>     V4L2_FOCUS_LASTP        = 3,
> };
>
> how about this usage? i wanna get some advice about FOCUS MODE.

This seems more logical to me:

enum v4l2_focus_mode {
    V4L2_FOCUS_MANUAL = 0,
    V4L2_FOCUS_AUTO_NORMAL = 1,
    V4L2_FOCUS_AUTO_MACRO = 2,
};

At least this maps the current boolean values correctly. I'm not sure from 
your decription what the fourth auto focus mode is supposed to be.

But I think it might be better to have a separate control that allows you to 
set the auto-focus mode. I can imagine that different devices might have 
different auto-focus modes.

I've CC-ed Laurent since this is more his field than mine.

Regards,

	Hans

>
> Thanks,
> Riverful



-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux