Skip to contentSkip to conversation

Illuminators control

PATCH In review Jean-Francois Moine 4 participants 6 messages Sep 11, 2010 – Sep 13, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Illuminators control

Hi,

This new proposal cancels the previous patch 'Illuminators control'.

Cheers.

Signature · 2 lines
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Saturday, September 11, 2010 11:03:50 Jean-Francois Moine wrote:

Hi,

This new proposal cancels the previous patch 'Illuminators control'.

Cheers.

Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG, part of Cisco
#3 lore raw
In reply to Jean-Francois Moine

Hi,

Review void v4l2_ctrl_fill(u32 id, const char **name, enum

Quoted 1 line · On Saturday 11 September 2010 11:03:50 Jean-Francois Moine wrote:
(quoted diff) +0 -0
@@ -419,6 +421,8 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum 

v4l2_ctrl_type *type,

Review void v4l2_ctrl_fill(u32 id, const char **name, enum · line 428

Quoted 8 lines
(quoted diff) +2 -0
 	case V4L2_CID_AUDIO_LIMITER_ENABLED:
 	case V4L2_CID_AUDIO_COMPRESSION_ENABLED:
 	case V4L2_CID_PILOT_TONE_ENABLED:
+	case V4L2_CID_ILLUMINATORS_1:
+	case V4L2_CID_ILLUMINATORS_2:
 		*type = V4L2_CTRL_TYPE_BOOLEAN;
 		*min = 0;
 		*max = *step = 1;

I would prefer integer controls for this, as we will need to support dimmable illuminators.

Signature · 3 lines
Regards,

Laurent Pinchart
#4 lore raw
Quoted 6 lines · On Monday, September 13, 2010 09:08:36 Laurent Pinchart wrote:

Hi,

Review void v4l2_ctrl_fill(u32 id, const char **name, enum

Quoted 1 line · On Saturday 11 September 2010 11:03:50 Jean-Francois Moine wrote:
(quoted diff) +0 -0
@@ -419,6 +421,8 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum 

v4l2_ctrl_type *type,

Quoted 13 lines

Review void v4l2_ctrl_fill(u32 id, const char **name, enum · line 428

Quoted 8 lines
(quoted diff) +2 -0
 	case V4L2_CID_AUDIO_LIMITER_ENABLED:
 	case V4L2_CID_AUDIO_COMPRESSION_ENABLED:
 	case V4L2_CID_PILOT_TONE_ENABLED:
+	case V4L2_CID_ILLUMINATORS_1:
+	case V4L2_CID_ILLUMINATORS_2:
 		*type = V4L2_CTRL_TYPE_BOOLEAN;
 		*min = 0;
 		*max = *step = 1;

I would prefer integer controls for this, as we will need to support dimmable illuminators.

Don't. That should be a separate control. I expect that the brightness is something you touch a lot less than the on/of controls. Anyway, I think it makes a lot more sense to separate these two functions.

Regards,

Hans

Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG, part of Cisco
#5 lore raw
Quoted 21 lines · Hans Verkuil
Quoted 6 lines · On Monday, September 13, 2010 09:08:36 Laurent Pinchart wrote:

Hi,

Review void v4l2_ctrl_fill(u32 id, const char **name, enum

Quoted 1 line · On Saturday 11 September 2010 11:03:50 Jean-Francois Moine wrote:
(quoted diff) +0 -0
@@ -419,6 +421,8 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum 

v4l2_ctrl_type *type,

Quoted 13 lines

Review void v4l2_ctrl_fill(u32 id, const char **name, enum · line 428

Quoted 8 lines
(quoted diff) +2 -0
 	case V4L2_CID_AUDIO_LIMITER_ENABLED:
 	case V4L2_CID_AUDIO_COMPRESSION_ENABLED:
 	case V4L2_CID_PILOT_TONE_ENABLED:
+	case V4L2_CID_ILLUMINATORS_1:
+	case V4L2_CID_ILLUMINATORS_2:
 		*type = V4L2_CTRL_TYPE_BOOLEAN;
 		*min = 0;
 		*max = *step = 1;

I would prefer integer controls for this, as we will need to support dimmable illuminators.

Quoted 3 lines

Don't. That should be a separate control. I expect that the brightness is something you touch a lot less than the on/of controls. Anyway, I think it makes a lot more sense to separate these two functions.

I would need to research what computerized microscopes today actually have.

A quick look reveals:
http://www.bodelin.com/proscopehr/how_it_works/
http://www.ecoscopestore.com/main.sc
http://www.microscopeworld.com/MSWorld/Microscope-World/Digital-Microscopes/

handheld units likely have only on/off control for illumination. Eyepiece cameras rely on what the existing laboratory microscope already has for illumination.

In my limited experience, there are some microscope controls that a human is going to have his hands on to get the desired image:
magnification, focus, and specimen position. Illumination intensity seems like it would fit in that group.

When I had a job in college fixing medical equipment, most microscopes limited light using a mechanical iris controlled by hand. The illuminator was simply an on/off switch. (BTW a mechanical iris is a pain to take apart and rebuild.) Light filters could be installed between the illuminator and the iris.

On some of the "digital microscopes" in the links above, you can see the iris assembly underneath the stage. The DMBA210 microscope has both a manual iris and an illumination intensity knob.

So for digital microscopes we may not see illumination intensity controllable by software. Maybe for other types of cameras we will.

Regards,
Andy