Le lundi 19 décembre 2005 à 11:14 -0800, Jay Gowdy a écrit :
> Hugo MERCIER wrote:
>
> > But, images are in grey levels. When testing different white balacing
> > modes, I can make images in red, green or blue levels. It seems like
> > only one color channel is processed ...
>
> Perhaps the hue or saturation settings are messed up?
>
I finally found the problem.
Thanks to usbsnoop under win32 and the reading of pwc sources, it seems
my cam has a "Colour Mode" control switch, disabled by default.
The correct formatter is in pwc-ctrl.c, but never used
(COLOUR_MODE_FORMATTER)
I test a SendControlMsg(SET_CHROM_CTL, COLOUR_MODE_FORMATTER, 1) with
buf == 0xff (I replaced it in the pc_set_backlight in order to test) and
it works well !
Now, I have to include this in the pwc sources. But I'm not sure what to
do: add a 'pwc_set_colour_mode' ? Add it in an initialization part
(where ?).
First, what to do if a cam does not support this control ? I have to
test the model type (mine is 740); So, has anybody the same problem ?
With which model ?
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|